:root {
  --black: #000;
  --ink: #1d1d1f;
  --gray: #86868b;
  --light: #f5f5f7;
  --white: #fff;
  --blue: #0071e3;
  --link-dark: #2997ff;
  --wrap: 1024px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.015em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.dark { background: var(--black); color: var(--light); }
.light { background: var(--light); }
.white { background: var(--white); }
.muted { color: var(--gray); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 48px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background .3s;
}
.nav.scrolled { background: rgba(22, 22, 23, .8); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--light); font-size: 14px; font-weight: 600; }
.nav nav { display: flex; gap: 32px; }
.nav nav a { color: rgba(245, 245, 247, .8); font-size: 12px; transition: color .2s; }
.nav nav a:hover { color: var(--white); }

/* Buttons */
.links { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.pill { background: var(--blue); color: var(--white); padding: 12px 22px; border-radius: 980px; font-size: 17px; transition: background .2s; }
.pill:hover { background: #0077ed; }
.link { color: var(--link-dark); font-size: 19px; }
.link span { display: inline-block; transition: transform .2s; }
.link:hover span { transform: translateX(3px); }

/* Hero */
.hero { padding: 140px 22px 60px; text-align: center; overflow: hidden; position: relative; }
.kicker { font-size: 21px; font-weight: 600; color: var(--gray); margin-bottom: 10px; }
.hero h1 { font-size: clamp(56px, 11vw, 132px); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; }
.grad {
  background: linear-gradient(90deg, #2997ff, #a855f7 50%, #ff6b6b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { font-size: clamp(19px, 2.4vw, 28px); font-weight: 500; color: var(--gray); max-width: 640px; margin: 22px auto 34px; line-height: 1.25; }

.stage { position: relative; max-width: 1080px; height: 720px; margin: 60px auto 0; }
.display {
  position: absolute; left: 50%; top: 0; width: 900px; margin-left: -450px; padding: 14px 14px 18px;
  border-radius: 22px; background: linear-gradient(180deg, #2c2c2e, #161618);
  box-shadow: 0 50px 140px rgba(0, 0, 0, .7), inset 0 0 0 1.5px #3a3a3c, 0 0 120px rgba(41, 151, 255, .12);
  transform-origin: 50% 0; will-change: transform;
}
.display img { display: block; width: 100%; border-radius: 10px; }
.phone {
  position: absolute; width: 250px; border-radius: 40px; padding: 14px 10px;
  background: linear-gradient(145deg, #3a3a3c, #121214);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7), inset 0 0 0 1.5px #4a4a4d;
  will-change: transform;
}
.phone-left { left: 20px; top: 250px; z-index: 2; }
.phone-right { right: 20px; top: 300px; z-index: 3; }
.screen { border-radius: 26px; overflow: hidden; background: #000; }
.screen img { width: 100%; height: auto; display: block; }
.stage-caption { margin-top: 26px; font-size: 14px; color: var(--gray); }

/* Statement */
.statement { padding: 100px 22px 200px; }
#lit { max-width: 900px; margin: 0 auto; font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
#lit span { color: #333336; transition: color .35s; }
#lit span.on { color: var(--light); }

/* Sections */
section.light, section.white { padding: 130px 0; }
.headline { font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; text-align: center; margin-bottom: 70px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--white); border-radius: 28px; padding: 40px 34px; min-height: 300px; position: relative; overflow: hidden; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.tile:hover { transform: scale(1.015); }
.tile-xl { grid-column: span 2; grid-row: span 2; min-height: 620px; }
.tile-wide { grid-column: span 2; }
.tile-kicker { font-size: 14px; font-weight: 600; color: var(--gray); margin-bottom: 10px; }
.tile h3 { font-size: 28px; line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.tile-xl h3 { font-size: clamp(32px, 4vw, 48px); }
.tile p:not(.tile-kicker) { font-size: 17px; color: var(--gray); line-height: 1.4; max-width: 34ch; }
.dark-tile { background: var(--black); color: var(--light); }
.grad-tile { background: linear-gradient(120deg, #e8f1ff, #f3e8ff 55%, #ffe8ee); }
.orb {
  position: absolute; right: -80px; bottom: -120px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2997ff, #5e5ce6 45%, #a855f7 70%, transparent 72%);
  filter: blur(2px); opacity: .9; will-change: transform;
}

/* Numbers */
.numbers { padding: 160px 0; overflow: hidden; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 20px; }
.nums [data-speed] { will-change: transform; }
.nums strong { display: block; font-size: clamp(64px, 10vw, 128px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; will-change: transform; }
.nums div:nth-child(1) strong { color: var(--link-dark); }
.nums div:nth-child(2) strong { color: #a855f7; }
.nums div:nth-child(3) strong { color: #ff6b6b; }
.nums span { display: block; margin-top: 14px; color: var(--gray); font-size: 19px; font-weight: 500; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-card { background: var(--white); border-radius: 28px; overflow: hidden; }
.work-card { display: flex; flex-direction: column; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.work-card:hover { transform: scale(1.01); }
.work-card.wide { grid-column: 1 / -1; }
.work-media { aspect-ratio: 4 / 3; background: var(--black); display: grid; place-items: center; overflow: hidden; position: relative; }
.work-card.wide .work-media { aspect-ratio: 21 / 10; }
.work-media > span { color: var(--light); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.media-photo { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.media-photo.contain { object-fit: contain; inset: 0; height: 100%; padding: 6%; }
.media-phones { display: flex; gap: 28px; align-items: flex-end; height: 100%; padding-top: 9%; will-change: transform; }
.mini-phone {
  width: clamp(130px, 17vw, 210px); border-radius: 28px; padding: 10px 7px;
  background: linear-gradient(145deg, #3a3a3c, #121214); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 1.5px #4a4a4d;
  margin-bottom: -18%;
}
.mini-phone:nth-child(2) { margin-bottom: -26%; }
.mini-phone img { width: 100%; height: auto; border-radius: 18px; display: block; }
.media-screen { width: 86%; margin-top: 10%; will-change: transform; }
.media-screen img { width: 100%; display: block; border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.work-body { padding: 30px 34px 36px; flex: 1; }
.work-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.work-icon { width: 48px; height: 48px; border-radius: 11px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.work-title .tile-kicker { margin-bottom: 2px; }
.work-body h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.work-body > p { color: var(--gray); font-size: 17px; line-height: 1.45; max-width: 60ch; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: 13px; padding: 5px 12px; border-radius: 980px; background: var(--light); color: #515154; }
.empty { grid-column: 1 / -1; text-align: center; font-size: 21px; color: var(--gray); padding: 80px 0; background: var(--white); border-radius: 28px; }

/* Process */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.process span { font-size: 17px; font-weight: 600; color: var(--blue); }
.process h3 { font-size: 24px; font-weight: 700; margin: 10px 0 8px; letter-spacing: -0.025em; }
.process p { color: var(--gray); font-size: 17px; line-height: 1.4; }

/* Contact */
.contact { position: relative; overflow: hidden; text-align: center; padding: 200px 22px; }
.contact h2 { position: relative; font-size: clamp(48px, 8vw, 96px); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; }
.contact .sub, .contact .links { position: relative; }
.contact-glow {
  position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 151, 255, .35), rgba(168, 85, 247, .18) 40%, transparent 65%);
  will-change: transform;
}

/* Footer */
.footer { background: var(--light); color: var(--gray); font-size: 12px; padding: 22px 0; border-top: 1px solid #d2d2d7; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .1s; }
.hero .reveal:nth-child(3) { transition-delay: .2s; }
.hero .reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  #lit span { color: var(--light); }
}

@media (max-width: 1000px) {
  .stage { height: 78vw; }
  .display { width: 84%; left: 8%; margin-left: 0; }
  .phone { width: 21vw; border-radius: 3.6vw; padding: 1.4vw 1vw; }
  .screen { border-radius: 2.4vw; }
  .phone-left { left: 2%; top: 26vw; }
  .phone-right { right: 2%; top: 30vw; }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-xl { grid-column: span 2; grid-row: auto; min-height: 480px; }
  .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav nav { gap: 18px; }
  .brand span { display: none; }
  .bento, .work-grid, .process, .nums { grid-template-columns: 1fr; }
  .tile-xl, .tile-wide { grid-column: auto; }
  .nums { gap: 60px; }
  .stage { height: 440px; margin-top: 50px; }
  .display { width: 100%; left: 0; margin-left: 0; padding: 6px 6px 8px; border-radius: 12px; }
  .display img { border-radius: 7px; }
  .phone { width: 120px; border-radius: 20px; padding: 7px 5px; }
  .screen { border-radius: 13px; }
  .phone-left { left: 4px; top: 150px; }
  .phone-right { right: 4px; top: 180px; }

  /* tighter vertical rhythm on phones */
  .hero { padding-top: 100px; padding-bottom: 20px; }
  .statement { padding: 20px 22px 110px; }
  section.light, section.white { padding: 90px 0; }
  .numbers { padding: 100px 0; }
  .nums { gap: 44px; }
  .headline { margin-bottom: 40px; }
  .contact { padding: 130px 22px; }

  /* service tiles size to their content; keep the orb clear of the copy */
  .bento { gap: 14px; }
  .tile { min-height: 0; padding: 30px 24px 34px; }
  .tile-xl { min-height: 460px; }
  .orb { width: 280px; height: 280px; right: -70px; bottom: -170px; }

  /* wide work cards use the same shape as the rest on a phone */
  .work-grid { gap: 14px; }
  .work-card.wide .work-media { aspect-ratio: 4 / 3; }
  .media-phones { gap: 16px; padding-top: 12%; }
  .work-body { padding: 24px 22px 28px; }
  .work-body h3 { font-size: 24px; }
}
