*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red:   #542785;
  --black: #1a1a1a;
  --gray:  #ddd;
  --white: #ffffff;
  --text:  #444444;
  --bg:    #f5f5f5;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  padding-bottom: 80px;
}

/* ── DOT NAV ── */
#dot-nav {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 12px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ccc; border: 1.5px solid #aaa;
  cursor: pointer; transition: background .25s, transform .25s, border-color .25s;
}
.dot.active { background: var(--red); border-color: var(--red); transform: scale(1.4); }

/* ── STICKY BOTTOM BAR ── */
#bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.09);
}
.bar-label { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #bbb; }

.bar-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 3px 14px #542785;
  white-space: nowrap;
}
.bar-cta:hover {
  background: #542785;
  border-color: #542785;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px #542785;
}
.bar-cta svg { width: 13px; height: 13px; flex-shrink: 0; }

.bar-divider {
  width: 1px;
  height: 28px;
  background: var(--gray);
}

.bar-nav { display: flex; }
.bar-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--black);
  border: 1px solid var(--gray);
  transition: background .2s, color .2s, border-color .2s;
}
.bar-nav a:first-child { border-radius: 6px 0 0 6px; }
.bar-nav a:last-child  { border-radius: 0 6px 6px 0; margin-left: -1px; }
.bar-nav a:hover       { background: var(--red); color: #fff; border-color: var(--red); z-index: 1; }

/* ── HERO ── */
#hero {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #091828 0%, #0d2b4e 55%, #0a1f3a 100%);
}
.hero-shape { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; }
.hs1 { width: 600px; height: 600px; top: -160px; right: -60px;
        background: radial-gradient(circle, rgba(232,41,28,.16) 0%, transparent 70%); }
.hs2 { width: 380px; height: 380px; bottom: -80px; right: 160px;
        background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%); }
.hs3 { width: 320px; height: 320px; bottom: 60px; left: -80px;
        background: radial-gradient(circle, rgba(255,180,0,.07) 0%, transparent 70%); }

.hero-left {
  position: relative; z-index: 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 72px 56px 96px 72px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 32px; height: 1px;
  background: rgba(255,255,255,.45); flex-shrink: 0;
}
.hero-eyebrow span {
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.hero-headline {
  font-size: clamp(38px,5vw,72px); font-weight: 800;
  line-height: 1.06; letter-spacing: -.025em; color: #fff; margin-bottom: 40px;
}
.hero-meta { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-meta .lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: 7px;
}
.hero-meta .val { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.88); letter-spacing: .03em; }

.hero-right {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  padding: 60px; border-left: 1px solid rgba(255,255,255,.07);
}
.hero-right img {
  width: 100%; max-width: 380px; max-height: 340px;
  object-fit: cover; display: block;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.hero-right .logo-fb {
  display: none; font-size: 32px; font-weight: 900;
  letter-spacing: .05em; color: #fff;
}
.hero-scroll {
  position: absolute; bottom: 32px; right: 72px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 9px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.45), transparent);
  animation: sp 2s ease-in-out infinite;
}
@keyframes sp { 0%,100%{opacity:1;transform:scaleY(1)} 50%{opacity:.3;transform:scaleY(.55)} }

/* ── SERVICES STRIP ── */
.services-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 28px 72px; border-bottom: 1px solid var(--gray);
}
.stag {
  font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  padding: 7px 16px; border: 1px solid var(--gray); border-radius: 100px; color: #666;
}

/* ── SECTIONS ── */
.cs-sec { position: relative; border-bottom: 1px solid var(--gray); }

.two-col {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 80px; padding: 56px 72px; align-items: start;
}
.col-label {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--black); line-height: 1.7; padding-top: 3px;
}
.col-body {
  font-size: 15px; font-weight: 400; line-height: 2; color: var(--text); max-width: 720px;
}
.col-body p + p { margin-top: 18px; }

.red-bar {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 5px; background: var(--red); z-index: 5;
}

.vis-block { position: relative; width: 100%; border-top: 1px solid var(--gray); overflow: hidden; }

.single-img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #f4f4f4;
  max-height: 540px;
}

.img-row {
  display: grid;
  gap: 1px;
  background: #e8e8e8;
}
.img-row.two   { grid-template-columns: 1fr 1fr; }
.img-row.three { grid-template-columns: 1fr 1fr 1fr; }

.img-row .img-cell {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 300px;
}
.img-row .img-cell img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

.img-row.screens .img-cell {
  padding: 0;
  min-height: 480px;
  background: #f8f8f8;
  overflow: hidden;
}
.img-row.screens .img-cell img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.img-row.screens .img-cell img:hover { transform: scale(1.03); }

.img-row.design .img-cell {
  padding: 32px;
  min-height: 280px;
  background: #fafafa;
}
.img-row.design .img-cell img {
  max-height: 320px;
  object-fit: contain;
}

/* ── CHALLENGE ROWS ── */
.ch-list { display: flex; flex-direction: column; }
.ch-row {
  display: flex; align-items: flex-start; gap: 22px;
  padding: 20px 0; border-bottom: 1px solid #ebebeb;
}
.ch-row:last-child { border-bottom: none; padding-bottom: 0; }
.ch-num  { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .08em; min-width: 28px; padding-top: 1px; }
.ch-txt  { font-size: 15px; font-weight: 500; color: #333; line-height: 1.75; }

/* ── TECH STACK GRID ── */
.stack-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray);
}
.stack-cell {
  padding: 40px 36px; border-right: 1px solid var(--gray);
}
.stack-cell:last-child { border-right: none; }
.stack-title {
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.stack-items { display: flex; flex-direction: column; gap: 9px; }
.stack-item {
  font-size: 13px; font-weight: 500; color: #444;
  display: flex; align-items: center; gap: 9px;
}
.stack-item::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* ── METRICS ── */
.metrics-row { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--gray); }
.metric-cell { padding: 56px 48px; text-align: center; border-right: 1px solid var(--gray); }
.metric-cell:last-child { border-right: none; }
.metric-val { font-size: 64px; font-weight: 800; color: var(--red); letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; }
.metric-lbl { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #999; }

/* ── FADE IN ── */
.fi { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.fi.show { opacity: 1; transform: translateY(0); }
.fi.d1 { transition-delay: .1s; } .fi.d2 { transition-delay: .2s; } .fi.d3 { transition-delay: .3s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #hero             { grid-template-columns: 1fr; }
  .hero-right       { display: none; }
  .hero-left        { padding: 48px 28px 88px; }
  .two-col          { grid-template-columns: 1fr; gap: 20px; padding: 36px 28px; }
  .services-strip   { padding: 22px 28px; }
  #bottom-bar       { padding: 0 20px; }
  .bar-center       { gap: 8px; }
  .bar-cta          { padding: 9px 14px; font-size: 9px; }
  .metrics-row      { grid-template-columns: 1fr; }
  .metric-cell      { border-right: none; border-bottom: 1px solid var(--gray); }
  .metric-cell:last-child { border-bottom: none; }
  #dot-nav          { display: none; }
  .stack-grid       { grid-template-columns: 1fr 1fr; }
  .stack-cell       { border-bottom: 1px solid var(--gray); }
}
@media (max-width: 640px) {
  .img-row.two,
  .img-row.three    { grid-template-columns: 1fr; }
  .bar-label        { display: none; }
  .bar-nav a        { padding: 9px 12px; font-size: 9px; }
  .bar-divider      { display: none; }
  .img-row .img-cell { min-height: 210px; padding: 14px; }
  .stack-grid       { grid-template-columns: 1fr; }
}
