:root {
  color-scheme: light;
  --black: #050505;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --line: rgba(0, 0, 0, 0.1);
  --nav: rgba(22, 22, 24, 0.86);
  --white: #ffffff;
  --blue: #0071e3;
  --radius: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC",
    "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 52px;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.nav-shell {
  width: min(1120px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 48px);
}

.brand,
.nav-link {
  color: rgba(245, 245, 247, 0.78);
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  white-space: nowrap;
  transition: color 180ms ease;
}

.brand {
  font-size: 17px;
  font-weight: 700;
  color: rgba(245, 245, 247, 0.95);
  margin-right: clamp(4px, 2vw, 20px);
}

.nav-link {
  font-size: 12px;
  line-height: 1;
}

.brand:hover,
.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.hero {
  min-height: 37vh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 62px 24px 42px;
  text-align: center;
  background: #050505;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045) 18%, transparent 38%),
    radial-gradient(circle at 22% 20%, rgba(0, 113, 227, 0.16), transparent 30%),
    radial-gradient(circle at 78% 24%, rgba(154, 114, 255, 0.13), transparent 32%),
    radial-gradient(circle at 50% 105%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #161618 0%, #070708 58%, #000 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34) 70%, rgba(0, 0, 0, 0.56)),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  opacity: 0.62;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #86868b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(245, 245, 247, 0.72);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 8px;
  font-size: clamp(48px, 6.9vw, 94px);
  line-height: 0.92;
  font-weight: 800;
}

.hero-line {
  margin: 0 auto;
  max-width: 860px;
  color: rgba(245, 245, 247, 0.88);
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.16;
  font-weight: 500;
}

.hero-contact {
  margin: 22px auto 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(245, 245, 247, 0.78);
  font-size: clamp(13px, 1.4vw, 17px);
  line-height: 1.3;
}

.hero-contact span {
  padding: 9px 16px;
  border: 1px solid rgba(245, 245, 247, 0.2);
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.primary-action,
.secondary-action {
  min-height: 46px;
  padding: 12px 23px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.primary-action {
  color: #fff;
  background: var(--blue);
}

.secondary-action {
  color: #fff;
  border-color: rgba(245, 245, 247, 0.55);
}

.intro-band,
.overview,
.lead-copy,
.project-flow {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-band {
  padding: 86px 0 68px;
}

.intro-grid {
  display: block;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.intro-statement h2 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
  font-weight: 760;
}

.intro-statement p:not(.section-kicker),
.lead-copy p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.44;
}

.highlight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  background: #fbfbfd;
}

.metric strong {
  color: var(--ink);
  font-size: clamp(29px, 3vw, 48px);
  line-height: 1;
}

.metric span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
}

.overview {
  padding: 90px 0 120px;
}

.overview-list {
  display: grid;
  gap: 14px;
}

.overview-item {
  width: 100%;
  min-height: 96px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.overview-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.overview-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 15px;
}

.overview-item strong {
  display: block;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
}

.experience-hero {
  min-height: 36vh;
  padding: 58px 24px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.experience-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(48px, 6.9vw, 94px);
  line-height: 0.95;
  font-weight: 800;
}

.experience-hero p:not(.eyebrow) {
  margin: 0;
  width: min(900px, 100%);
  color: rgba(245, 245, 247, 0.9);
  font-size: clamp(21px, 2.5vw, 32px);
  line-height: 1.16;
  font-weight: 600;
}

.taptap-hero {
  background: radial-gradient(ellipse at top, rgba(92, 154, 255, 0.26), transparent 62%),
    linear-gradient(150deg, #07101d, #050505 58%, #121212);
}

.xhs-hero {
  background: radial-gradient(ellipse at top, rgba(255, 103, 119, 0.24), transparent 62%),
    linear-gradient(150deg, #1d0709, #050505 58%, #161010);
}

.byte-hero {
  background: radial-gradient(ellipse at top, rgba(143, 150, 255, 0.24), transparent 62%),
    linear-gradient(150deg, #0b0c20, #050505 58%, #121216);
}

.lead-copy {
  padding: 74px 0 14px;
}

.lead-copy p {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink);
  font-size: clamp(25px, 4vw, 50px);
  line-height: 1.12;
  font-weight: 720;
}

.project-flow {
  padding: 50px 0 120px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  padding: 86px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.project-row.is-reversed {
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
}

.project-row.is-reversed .project-media {
  order: 2;
}

.project-media {
  margin: 0;
}

.project-media a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.16);
}

.portrait-media {
  display: flex;
  justify-content: center;
}

.portrait-media img {
  width: min(100%, 338px);
}

.carousel-media {
  position: relative;
  width: min(100%, 338px);
  margin-inline: auto;
}

.carousel-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.16);
}

.carousel-frame img {
  width: 100%;
  box-shadow: none;
  border-radius: 0;
}

.carousel-slide {
  display: block;
  opacity: 0;
  transition: opacity 520ms ease;
}

.carousel-slide + .carousel-slide {
  position: absolute;
  inset: 0;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 245, 247, 0.82);
  color: rgba(29, 29, 31, 0.86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-50%);
  font-size: 25px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.22);
}

.carousel-dots button.is-active {
  width: 18px;
  background: rgba(29, 29, 31, 0.72);
}

.project-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.02;
  font-weight: 770;
}

.project-subtitle {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.2;
  font-weight: 650;
}

.project-copy p:not(.section-kicker):not(.project-subtitle),
.project-copy li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.project-copy ul {
  margin: 18px 0 0;
  padding-left: 1.1em;
}

.project-copy li + li {
  margin-top: 10px;
}

.inline-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(0, 113, 227, 0.48);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--blue);
}

@media (max-width: 820px) {
  .topbar {
    height: auto;
  }

  .nav-shell {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 14px 2px;
    gap: 22px;
  }

  .brand {
    position: sticky;
    left: 0;
    padding-right: 6px;
    background: transparent;
  }

  .hero {
    min-height: 39vh;
    padding-top: 66px;
  }

  .intro-grid,
  .project-row,
  .project-row.is-reversed {
    grid-template-columns: 1fr;
  }

  .project-row.is-reversed .project-media {
    order: 0;
  }

  .highlight-strip {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    min-height: 150px;
    padding: 24px;
  }

  .experience-hero {
    min-height: 40vh;
  }
}

@media (max-width: 540px) {
  .intro-band,
  .overview,
  .lead-copy,
  .project-flow {
    width: min(100% - 28px, 1180px);
  }

  .hero h1,
  .experience-hero h1 {
    font-size: 62px;
  }

  .highlight-strip {
    grid-template-columns: 1fr;
  }

  .project-row {
    padding: 58px 0;
  }

  .project-media img {
    border-radius: 20px;
  }
}
