:root {
  --ink: #0C0C0C;
  --ink-soft: #3A3A3A;
  --muted: #888888;
  --grey-light: #F3F4F8;
  --paper: #FFFFFF;
  --marine: #1A3560;
  --marine-dark: #112344;
  --electric: #2B6BF5;
  --electric-bright: #5B8FFF;
  --glow-blue: rgba(43, 107, 245, 0.28);
  --dark-bg: #07090F;
  --dark-mid: #0C1020;
  --dark-border: rgba(91, 143, 255, 0.18);
  --line: rgba(0, 0, 0, 0.10);
  --line-soft: rgba(0, 0, 0, 0.06);
  --display: "Barlow Condensed", sans-serif;
  --sans: "Barlow", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* ---------- HEADER ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: .4s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: var(--line-soft);
  box-shadow: 0 1px 0 var(--line-soft), 0 4px 32px rgba(0, 0, 0, .06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 96px; width: auto; display: block; }

.nav-links { display: flex; gap: 36px; align-items: center; }

.nav-links a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .22s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--electric);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s ease;
}

.nav-links a:hover { color: var(--electric); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  border: 1px solid var(--marine) !important;
  color: var(--marine) !important;
  padding: 9px 20px;
  transition: all .25s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--electric) !important;
  border-color: var(--electric) !important;
  color: var(--paper) !important;
  box-shadow: 0 0 20px var(--glow-blue);
}

/* ---------- HERO ---------- */
.hero {
  padding: 200px 0 120px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  background: #F9FAFE;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43, 107, 245, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 107, 245, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -15%;
  right: -5%;
  width: 55%;
  height: 110%;
  background: radial-gradient(ellipse at top right, rgba(43, 107, 245, .12) 0%, transparent 65%);
  pointer-events: none;
}

.hero .tag {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 32px; opacity: 0; animation: rise .9s .1s forwards;
}

.hero .tag .rule { height: 1px; width: 48px; background: var(--electric); }

.eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--electric);
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.03;
  letter-spacing: -.01em;
  max-width: 22ch;
  position: relative;
  z-index: 1;
}

h1 em {
  font-style: normal;
  background: linear-gradient(118deg, var(--marine) 25%, var(--electric-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 .ln { display: block; opacity: 0; animation: rise 1s forwards; }
h1 .ln:nth-child(1) { animation-delay: .18s; }
h1 .ln:nth-child(2) { animation-delay: .30s; }
h1 .ln:nth-child(3) { animation-delay: .42s; }

.hero-sub {
  max-width: 56ch; margin-top: 28px; font-size: 18px;
  color: var(--ink-soft); line-height: 1.65;
  opacity: 0; animation: rise 1s .58s forwards;
  position: relative; z-index: 1;
}

.hero-actions {
  display: flex; gap: 14px; margin-top: 42px; flex-wrap: wrap;
  opacity: 0; animation: rise 1s .72s forwards;
  position: relative; z-index: 1;
}

.btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; padding: 14px 26px;
  text-decoration: none; display: inline-flex; align-items: center;
  gap: 10px; transition: all .25s; border: 1px solid var(--ink);
}

.btn-fill { background: var(--marine); color: var(--paper); border-color: var(--marine); }

.btn-fill:hover {
  background: var(--electric);
  border-color: var(--electric);
  box-shadow: 0 0 28px var(--glow-blue), 0 4px 16px rgba(43, 107, 245, .3);
  transform: translateY(-1px);
}

.btn-line { color: var(--ink); }

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.btn .ar { transition: transform .25s; }
.btn:hover .ar { transform: translateX(5px); }

/* ---------- SECTIONS ---------- */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line-soft); }

.sec-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--electric); display: block; margin-bottom: 16px;
}

h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.03; letter-spacing: .01em;
}

h2 em { font-style: normal; color: var(--electric); }

.body-text { font-size: 17px; color: var(--ink-soft); line-height: 1.72; }
.body-text + .body-text { margin-top: 16px; }
.body-text strong { color: var(--ink); font-weight: 600; }

/* reveal */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s cubic-bezier(.22, 1, .36, 1), transform .75s cubic-bezier(.22, 1, .36, 1);
}
.rv.in { opacity: 1; transform: none; }

/* ---------- WHO WE ARE ---------- */
.who {
  background: var(--grey-light);
  position: relative;
  overflow: hidden;
}

.who::after {
  content: '';
  position: absolute;
  top: -30%; right: -8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(43, 107, 245, .07) 0%, transparent 70%);
  pointer-events: none;
}

.who-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

/* ---------- WHY PARTNER ---------- */
.why {
  background: var(--dark-bg);
  border-top: none !important;
  position: relative;
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 143, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 143, 255, .07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.why::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(43, 107, 245, .16) 0%, transparent 65%);
  pointer-events: none;
}

.why .sec-label { color: rgba(255, 255, 255, .35); }
.why h2 { color: #fff; }

.why-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 56px;
  position: relative; z-index: 1;
}

.why-sub {
  font-size: 18px; color: rgba(255, 255, 255, .6); line-height: 1.65;
  align-self: end;
}

.why-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
  position: relative; z-index: 1;
}

.why-point {
  padding: 36px 28px;
  background: var(--dark-bg);
  transition: background .3s ease;
  position: relative;
  overflow: hidden;
}

.why-point::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--electric), var(--electric-bright));
  transition: width .45s ease;
}

.why-point:hover { background: rgba(43, 107, 245, .07); }
.why-point:hover::before { width: 100%; }

.why-point .n {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--electric-bright);
  opacity: .65;
  margin-bottom: 14px;
}

.why-point p { font-size: 15.5px; color: rgba(255, 255, 255, .72); line-height: 1.65; }

/* ---------- WHO WE WORK WITH ---------- */
.work-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.industries {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px;
}

.industry-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--electric);
  border: 1px solid rgba(43, 107, 245, .4);
  padding: 8px 16px;
  background: rgba(43, 107, 245, .04);
  transition: all .25s;
}

.industry-tag:hover {
  background: rgba(43, 107, 245, .09);
  border-color: var(--electric);
}

/* ---------- PORTFOLIO ---------- */
.portfolio { background: var(--grey-light); }

.port-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 40px; flex-wrap: wrap; gap: 12px;
}

.brand-divider {
  display: flex; align-items: center; gap: 20px;
  margin: 48px 0 36px;
}

.brand-divider::before, .brand-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.brand-divider span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

.brand-feature {
  border: 1px solid rgba(0, 0, 0, .08);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  transition: box-shadow .35s ease;
}

.brand-feature:hover {
  box-shadow: 0 8px 48px rgba(0, 0, 0, .09), 0 0 40px rgba(43, 107, 245, .12);
}

.brand-top {
  padding: 32px 40px; display: flex; justify-content: space-between;
  align-items: center; gap: 30px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
  background: #fafafa;
}

.brand-logo-img { height: 48px; width: auto; display: block; flex-shrink: 0; }
.recom-logo { height: auto; max-height: 120px; width: auto; max-width: 320px; flex-shrink: 0; object-fit: contain; }

.brand-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

.brand-meta span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); line-height: 1.9;
}

.brand-site {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--electric); text-decoration: none; margin-top: 6px;
  display: inline-block; transition: all .22s;
}

.brand-site:hover { opacity: .72; transform: translateX(2px); }

/* text + stats row */
.brand-info {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  border-bottom: 1px solid var(--line-soft);
}

.brand-content { padding: 40px 40px; display: flex; flex-direction: column; gap: 14px; }

.brand-content h3 {
  font-family: var(--display); font-weight: 700; font-size: 52px;
  letter-spacing: .01em; line-height: 1; color: var(--ink);
}

.brand-desc { color: var(--ink-soft); font-size: 16px; line-height: 1.72; }

.brand-stats {
  display: flex; flex-direction: column; gap: 0;
  border-left: 1px solid var(--line-soft);
}

.bstat {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line-soft);
  flex: 1;
}

.bstat:last-child { border-bottom: none; }

.bstat .big {
  font-family: var(--display); font-weight: 700; font-size: 26px;
  line-height: 1; color: var(--ink);
}

.bstat .lab {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-top: 6px;
}

/* product image grid */
.brand-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
}

.brand-gallery-item {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.brand-gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
  filter: grayscale(20%);
}

.brand-gallery-item:hover img { transform: scale(1.08); filter: grayscale(0%); }

/* hero image full-width */
.brand-hero-img {
  width: 100%; aspect-ratio: 21/7;
  overflow: hidden; border-bottom: 1px solid var(--line-soft);
}

.brand-hero-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  display: block;
}

/* logo display panel */
.brand-logo-display {
  width: 100%;
  padding: 60px 48px;
  background: var(--grey-light);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-display img {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--dark-bg);
  text-align: center;
  padding: 140px 0;
  border-top: none !important;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 143, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 143, 255, .06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(43, 107, 245, .2) 0%, transparent 65%);
  pointer-events: none;
}

.cta h2 { color: #fff; margin: 0 auto; max-width: 22ch; position: relative; z-index: 1; }

.cta .body-text {
  color: rgba(255, 255, 255, .58);
  margin: 20px auto 0;
  text-align: center;
  max-width: 52ch;
  position: relative; z-index: 1;
}

.cta .sec-label { color: rgba(255, 255, 255, .38); display: block; text-align: center; position: relative; z-index: 1; }

.cta .hero-actions { justify-content: center; margin-top: 36px; position: relative; z-index: 1; }

.cta .btn-fill {
  background: var(--electric);
  border-color: var(--electric);
}

.cta .btn-fill:hover {
  background: var(--electric-bright);
  border-color: var(--electric-bright);
  box-shadow: 0 0 36px var(--glow-blue), 0 4px 20px rgba(43, 107, 245, .45);
  transform: translateY(-2px);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--dark-bg);
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 56px 0 64px;
}

.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }

.foot-logo {
  height: 64px; width: auto; display: block; margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: .65;
}

.foot-brand p { color: rgba(255, 255, 255, .38); font-size: 14px; max-width: 34ch; line-height: 1.6; }

.foot .col h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255, 255, 255, .28); margin-bottom: 14px; font-weight: 400;
}

.foot .col a { display: block; color: rgba(255, 255, 255, .52); text-decoration: none; font-size: 15px; line-height: 2; }
.foot .col a:hover { color: var(--electric-bright); }

.legal {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255, 255, 255, .22);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .why-points { grid-template-columns: repeat(2, 1fr); }
  .brand-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .logo-img { height: 52px; }
  .hero { padding: 130px 0 80px; }
  .who-inner, .work-inner, .why-head, .brand-info { grid-template-columns: 1fr; }
  .brand-stats { flex-direction: row; border-left: none; border-top: 1px solid var(--line-soft); }
  .bstat { border-bottom: none; border-right: 1px solid var(--line-soft); }
  .brand-gallery { grid-template-columns: repeat(2, 1fr); }
  .brand-hero-img { aspect-ratio: 16/7; }
  .why-points { grid-template-columns: 1fr; }
}
