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

@font-face {
  font-family: "Apple Local Display";
  src:
    url("/fonts/SystemSans.woff2") format("woff2"),
    url("/fonts/SystemSans.woff") format("woff"),
    local("SF Pro Display"),
    local("SFProDisplay-Regular"),
    local(".SFNSDisplay"),
    local("Inter Display"),
    local("Segoe UI Variable Display"),
    local("Segoe UI");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apple Local Text";
  src:
    url("/fonts/SystemSans.woff2") format("woff2"),
    url("/fonts/SystemSans.woff") format("woff"),
    local("SF Pro Text"),
    local("SFProText-Regular"),
    local(".SFNSText"),
    local("Inter"),
    local("Segoe UI Variable Text"),
    local("Segoe UI");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f5f7;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #86868b;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --cyan: #64d2ff;
  --green: #30d158;
  --pink: #ff375f;
  --violet: #bf5af2;
  --amber: #ff9f0a;
  --display-tightness: 96%;
  --display-optical-size: 96;
  --display-width: 96;
  --font-display: "Apple Local Display", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  --font-text: "Apple Local Text", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-reveal: 900ms;
  --motion-surface: 620ms;
  --motion-fast: 260ms;
  --nav-alpha: 0.7;
  --nav-border-alpha: 0.055;
  --nav-shadow-alpha: 0;
  --pointer-x: 50%;
  --pointer-y: 20%;
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(980px 540px at var(--pointer-x) -12%, rgba(255, 255, 255, 0.96), transparent 62%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 46%, #ffffff 100%);
  font-family: var(--font-text);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-optical-sizing: auto;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(0, 113, 227, 0.07), transparent 34%),
    linear-gradient(238deg, rgba(255, 55, 95, 0.055), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 245, 247, 0.68));
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 48px;
  padding: 0 max(22px, calc((100vw - 1100px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 251, 253, var(--nav-alpha));
  border-bottom: 1px solid rgba(0, 0, 0, var(--nav-border-alpha));
  box-shadow:
    0 18px 58px rgba(0, 0, 0, var(--nav-shadow-alpha)),
    inset 0 -1px 0 rgba(255, 255, 255, 0.64);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  transition:
    height var(--motion-surface) var(--ease-apple),
    background var(--motion-surface) var(--ease-apple),
    box-shadow var(--motion-surface) var(--ease-apple);
}

.nav.is-scrolled {
  height: 44px;
}

.brand,
.nav-menu a,
.button,
.eyebrow,
.section-label,
.tile p,
.step span,
.project-kicker,
.cta p {
  font-family: var(--font-text);
  letter-spacing: 0;
}

.brand {
  font-size: 13px;
  font-weight: 650;
  color: rgba(29, 29, 31, 0.92);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  position: relative;
  padding: 16px 0;
  font-size: 12px;
  font-weight: 450;
  color: rgba(29, 29, 31, 0.68);
  transition: color var(--motion-fast) ease, opacity var(--motion-fast) ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.42);
  transform-origin: center;
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) var(--ease-soft);
}

.nav-menu a:hover {
  color: var(--ink);
}

.nav-menu a:hover::after {
  opacity: 0.42;
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: calc(var(--vh, 1vh) * 100);
  padding: 104px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  opacity: var(--hero-opacity, 1);
  transform: translateY(var(--hero-lift, 0)) scale(var(--hero-scale, 1));
  transform-origin: 50% 12%;
  transition: opacity 180ms linear;
}

.hero::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 50%;
  width: min(1120px, 88vw);
  height: 320px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.96) 50%, rgba(255, 255, 255, 0.72) 58%, transparent),
    linear-gradient(90deg, rgba(0, 113, 227, 0.12), rgba(100, 210, 255, 0.13), rgba(255, 55, 95, 0.1));
  filter: blur(58px);
  opacity: 0.82;
  transform: translateX(-50%) rotate(-3deg);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
}

.eyebrow,
.section-label {
  position: relative;
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 640;
  line-height: 1.14;
  color: var(--ink);
  text-align: center;
}

.hero h1,
.section-title,
.cta h2,
.project-info h2,
.tile h3,
.step h3,
.metric strong,
.opium-word {
  font-family: var(--font-display);
  letter-spacing: 0;
  font-stretch: var(--display-tightness);
  font-optical-sizing: auto;
  font-variation-settings:
    "opsz" var(--display-optical-size),
    "wdth" var(--display-width);
}

.hero h1 {
  position: relative;
  max-width: 1120px;
  margin: 0;
  font-size: 122px;
  font-weight: 740;
  line-height: 0.88;
  text-wrap: balance;
}

.hero h1 .word {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translate3d(0, 42px, 0) scale(0.97);
  animation: word-rise 980ms var(--ease-apple) forwards;
  animation-delay: calc(130ms + var(--word-delay, 0ms));
}

.hero-text {
  position: relative;
  max-width: 760px;
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 520;
  line-height: 1.16;
  letter-spacing: 0;
  color: var(--muted);
  text-wrap: balance;
}

.hero-actions {
  position: relative;
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  --magnet-x: 0px;
  --magnet-y: 0px;
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  min-height: 44px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 450;
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0);
  transition:
    transform var(--motion-surface) var(--ease-apple),
    background var(--motion-fast) ease,
    color var(--motion-fast) ease,
    box-shadow var(--motion-surface) var(--ease-apple);
  will-change: transform;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.62), transparent 38%);
  transition: opacity var(--motion-fast) ease;
}

.button:hover::before,
.button.is-hovered::before {
  opacity: 1;
}

.primary {
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.34), transparent 48%),
    linear-gradient(180deg, var(--blue-hover), var(--blue));
  box-shadow:
    0 18px 44px rgba(0, 113, 227, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.primary:hover {
  box-shadow:
    0 22px 54px rgba(0, 113, 227, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.secondary {
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(0, 113, 227, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.secondary:hover {
  background: rgba(0, 113, 227, 0.13);
}

.product-stage {
  position: relative;
  width: min(1120px, 100%);
  margin-top: 58px;
  display: grid;
  place-items: center;
  perspective: 1600px;
}

.orb {
  position: absolute;
  pointer-events: none;
  width: min(820px, 76vw);
  height: 2px;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.64;
  transform: translateZ(0);
}

.orb-a {
  top: 18%;
  left: 4%;
  background: linear-gradient(90deg, transparent, rgba(41, 151, 255, 0.46), rgba(255, 255, 255, 0.82), transparent);
  transform: rotate(-8deg);
}

.orb-b {
  right: 4%;
  bottom: 12%;
  background: linear-gradient(90deg, transparent, rgba(48, 209, 88, 0.28), rgba(255, 55, 95, 0.22), transparent);
  transform: rotate(7deg);
}

.device {
  --device-rx: 0deg;
  --device-ry: 0deg;
  --device-float: 0px;
  --device-light-x: 50%;
  --device-light-y: 42%;
  position: relative;
  width: min(980px, 94vw);
  min-height: 548px;
  padding: 12px;
  overflow: hidden;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 239, 244, 0.84)),
    #fff;
  box-shadow:
    0 66px 150px rgba(0, 0, 0, 0.17),
    0 24px 58px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transform:
    perspective(1500px)
    translate3d(0, var(--device-float), 0)
    rotateX(var(--device-rx))
    rotateY(var(--device-ry));
  transform-style: preserve-3d;
  transition: box-shadow var(--motion-surface) var(--ease-apple);
  will-change: transform;
}

.device::before,
.device::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.device::before {
  inset: -1px;
  opacity: 0.66;
  background:
    radial-gradient(circle at var(--device-light-x) var(--device-light-y), rgba(255, 255, 255, 0.66), transparent 18%),
    linear-gradient(115deg, transparent 8%, rgba(255, 255, 255, 0.72) 30%, transparent 44%);
  transform: translateX(-66%);
  animation: device-sheen 6200ms var(--ease-apple) infinite;
}

.device::after {
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 -36px 80px rgba(0, 0, 0, 0.08);
}

.device-top {
  position: relative;
  z-index: 4;
  height: 40px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d2d2d7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.device-top span:nth-child(1) { background: #ff5f57; }
.device-top span:nth-child(2) { background: #ffbd2e; }
.device-top span:nth-child(3) { background: #28c840; }

.device-content {
  position: relative;
  min-height: 484px;
  padding: 58px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  overflow: hidden;
  border-radius: 31px;
  color: #fff;
  background:
    radial-gradient(circle at 26% 16%, rgba(255, 255, 255, 0.19), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(100, 210, 255, 0.3), transparent 36%),
    linear-gradient(145deg, #040405, #171719 52%, #303034);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device-content::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.034) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 86%, transparent);
}

.metric {
  position: relative;
  min-height: 300px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.metric::before {
  content: "";
  position: absolute;
  inset: -38% -28% auto;
  height: 68%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.22), transparent 66%);
  transform: rotate(-8deg);
}

.metric p,
.metric strong {
  position: relative;
}

.metric p {
  margin: 0;
  color: #a1a1a6;
  font-weight: 500;
}

.metric strong {
  max-width: 430px;
  display: block;
  font-size: 88px;
  font-weight: 740;
  line-height: 0.96;
}

.grid-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grid-preview span {
  position: relative;
  min-height: 144px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.58), transparent 24%),
    linear-gradient(145deg, #2997ff, #00c7be);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.grid-preview span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.34), transparent 48%);
  transform: translateX(-120%);
  animation: tile-sheen 6200ms var(--ease-apple) infinite;
  animation-delay: calc(var(--preview-index, 0) * 160ms);
}

.grid-preview span:nth-child(1) { --preview-index: 0; }
.grid-preview span:nth-child(2) {
  --preview-index: 1;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.55), transparent 24%),
    linear-gradient(145deg, #ff375f, #ff9f0a);
}
.grid-preview span:nth-child(3) {
  --preview-index: 2;
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.5), transparent 24%),
    linear-gradient(145deg, #30d158, #64d2ff);
}
.grid-preview span:nth-child(4) {
  --preview-index: 3;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.46), transparent 25%),
    linear-gradient(145deg, #bf5af2, #5e5ce6);
}

.code-lines {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  align-self: end;
}

.code-lines i {
  height: 11px;
  border-radius: 99px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.14));
  background-size: 220% 100%;
  animation: code-flow 4400ms ease-in-out infinite;
}

.code-lines i:nth-child(1) { width: 84%; }
.code-lines i:nth-child(2) { width: 62%; animation-delay: 120ms; }
.code-lines i:nth-child(3) { width: 74%; animation-delay: 240ms; }
.code-lines i:nth-child(4) { width: 48%; animation-delay: 360ms; }

.showcase {
  min-height: 760px;
  padding: 150px 24px;
  display: grid;
  place-items: center;
  text-align: center;
}

.dark {
  color: #f5f5f7;
  background:
    radial-gradient(900px 420px at 50% 4%, rgba(255, 255, 255, 0.17), transparent 58%),
    radial-gradient(780px 460px at var(--pointer-x) 0%, rgba(41, 151, 255, 0.3), transparent 58%),
    linear-gradient(180deg, #000 0%, #111114 100%);
}

.section-title {
  max-width: 1040px;
  margin: 0 auto;
  font-size: 112px;
  font-weight: 740;
  line-height: 0.9;
  text-wrap: balance;
}

.section-copy {
  max-width: 700px;
  margin: 24px auto 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 520;
  line-height: 1.2;
  letter-spacing: 0;
  color: #a1a1a6;
  text-wrap: balance;
}

.tiles {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #fff;
}

.tile,
.step,
.project-card {
  --tilt-rx: 0deg;
  --tilt-ry: 0deg;
  --hover-y: 0px;
  --spot-x: 50%;
  --spot-y: 50%;
  transform-style: preserve-3d;
  will-change: transform;
}

.tile {
  position: relative;
  min-height: 460px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.94), transparent 24%),
    linear-gradient(180deg, #fbfbfd, #f5f5f7);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transform:
    perspective(1100px)
    translate3d(0, calc(var(--reveal-y, 0px) + var(--hover-y)), 0)
    scale(var(--reveal-scale, 1))
    rotateX(var(--tilt-rx))
    rotateY(var(--tilt-ry));
  transition:
    transform var(--motion-surface) var(--ease-apple),
    box-shadow var(--motion-surface) var(--ease-apple);
}

.tile::before,
.tile::after,
.step::before,
.project-card::before,
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tile::before {
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.88), transparent 30%),
    linear-gradient(180deg, transparent, rgba(0, 113, 227, 0.08));
  opacity: 0;
  transition: opacity var(--motion-surface) var(--ease-apple);
}

.tile::after {
  inset: auto 8% 8% 8%;
  height: 44%;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at center, rgba(0, 113, 227, 0.14), transparent 70%),
    linear-gradient(90deg, rgba(100, 210, 255, 0.12), rgba(255, 55, 95, 0.09));
  filter: blur(20px);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--motion-surface) var(--ease-apple),
    transform var(--motion-surface) var(--ease-apple);
}

.tile:hover {
  box-shadow:
    0 26px 74px rgba(0, 0, 0, 0.09),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.tile:hover::before,
.tile:hover::after {
  opacity: 1;
}

.tile:hover::after {
  transform: translateY(0);
}

.tile p,
.tile h3 {
  position: relative;
  z-index: 1;
  transform: translateZ(30px);
}

.tile p {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 640;
  color: var(--soft);
}

.tile h3 {
  margin: 0;
  font-size: 46px;
  font-weight: 720;
  line-height: 0.96;
}

.project-section {
  padding: 132px 24px 160px;
  background: linear-gradient(180deg, #fff 0%, #f5f5f7 100%);
}

.project-card {
  --project-glow-x: 44%;
  --project-glow-y: 24%;
  position: relative;
  isolation: isolate;
  width: min(1180px, 100%);
  min-height: 700px;
  margin: 0 auto;
  padding: 88px;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 68px;
  align-items: center;
  overflow: hidden;
  border-radius: 46px;
  color: #fff;
  background:
    radial-gradient(680px 400px at 30% 30%, rgba(255, 255, 255, 0.2), transparent 64%),
    radial-gradient(620px 460px at 80% 78%, rgba(41, 151, 255, 0.18), transparent 66%),
    linear-gradient(145deg, #030303, #151517 54%, #2c2c2e);
  box-shadow:
    0 62px 158px rgba(0, 0, 0, 0.22),
    0 18px 46px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform:
    perspective(1300px)
    translate3d(0, calc(var(--reveal-y, 0px) + var(--hover-y)), 0)
    scale(var(--reveal-scale, 1))
    rotateX(var(--tilt-rx))
    rotateY(var(--tilt-ry));
  transition:
    transform var(--motion-surface) var(--ease-apple),
    box-shadow var(--motion-surface) var(--ease-apple);
}

.project-card::before {
  inset: -42%;
  z-index: 0;
  opacity: 0.82;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at var(--project-glow-x) var(--project-glow-y), rgba(255, 255, 255, 0.2), transparent 28%),
    radial-gradient(ellipse at 68% 76%, rgba(100, 210, 255, 0.16), transparent 34%),
    radial-gradient(ellipse at 28% 72%, rgba(191, 90, 242, 0.12), transparent 36%);
  filter: blur(24px);
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 42%, transparent 72%);
  animation: project-aurora 8800ms var(--ease-soft) infinite;
}

.project-card::after {
  z-index: 0;
  opacity: 0.52;
  background:
    linear-gradient(116deg, transparent 12%, rgba(255, 255, 255, 0.1) 32%, transparent 50%),
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.14), transparent 20%);
  mix-blend-mode: screen;
  mask-image: linear-gradient(135deg, transparent, #000 22%, #000 62%, transparent);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.opium-logo {
  min-height: 460px;
  width: 100%;
  display: grid;
  place-items: center;
  gap: 34px;
  color: #fff;
  transform: translateZ(42px);
}

svg.opium-mark {
  width: 194px;
  max-width: 42vw;
  height: auto;
  overflow: visible;
  filter:
    drop-shadow(0 28px 70px rgba(255, 255, 255, 0.18))
    drop-shadow(0 6px 22px rgba(100, 210, 255, 0.1));
}

svg.opium-mark rect,
svg.opium-mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg.opium-mark circle {
  fill: #fff;
}

.opium-word {
  font-size: 86px;
  font-weight: 280;
  line-height: 0.94;
  color: #fff;
  text-shadow:
    0 20px 62px rgba(255, 255, 255, 0.22),
    0 0 36px rgba(100, 210, 255, 0.08);
}

.project-info {
  text-align: left;
  transform: translateZ(52px);
}

.project-kicker {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 640;
  color: #a1a1a6;
}

.project-info h2 {
  margin: 0;
  font-size: 126px;
  font-weight: 740;
  line-height: 0.88;
  color: transparent;
  background: linear-gradient(
    115deg,
    #050505 0%,
    #2c2c2e 18%,
    #c8c8ce 42%,
    #fff 50%,
    #7c7c84 60%,
    #202024 82%,
    #09090a 100%
  );
  background-size: 320% 320%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 22px 40px rgba(255, 255, 255, 0.1));
  animation: shine 7200ms var(--ease-apple) infinite;
}

.project-info p:last-child {
  max-width: 500px;
  margin: 24px 0 0;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  color: #a1a1a6;
}

.process {
  padding: 132px 24px 150px;
  background: #fff;
}

.process-grid {
  width: min(1120px, 100%);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  position: relative;
  min-height: 278px;
  padding: 28px;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.92), transparent 30%),
    #f5f5f7;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transform:
    perspective(1000px)
    translate3d(0, calc(var(--reveal-y, 0px) + var(--hover-y)), 0)
    scale(var(--reveal-scale, 1))
    rotateX(var(--tilt-rx))
    rotateY(var(--tilt-ry));
  transition:
    transform var(--motion-surface) var(--ease-apple),
    box-shadow var(--motion-surface) var(--ease-apple);
}

.step::before {
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 115%, rgba(0, 113, 227, 0.14), transparent 60%),
    linear-gradient(90deg, rgba(100, 210, 255, 0.1), rgba(255, 159, 10, 0.07));
  transition: opacity var(--motion-surface) var(--ease-apple);
}

.step:hover {
  box-shadow:
    0 26px 74px rgba(0, 0, 0, 0.09),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.step:hover::before {
  opacity: 1;
}

.step span,
.step h3,
.step p {
  position: relative;
  z-index: 1;
  transform: translateZ(28px);
}

.step span {
  font-size: 15px;
  font-weight: 720;
  color: var(--blue);
}

.step h3 {
  margin: 48px 0 12px;
  font-size: 31px;
  font-weight: 700;
  line-height: 0.98;
}

.step p {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.36;
  letter-spacing: 0;
  color: var(--muted);
}

.cta {
  min-height: 680px;
  padding: 130px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background:
    radial-gradient(780px 360px at 50% 24%, rgba(0, 113, 227, 0.15), transparent 60%),
    linear-gradient(180deg, #f5f5f7, #ffffff);
}

.cta p {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 640;
  color: var(--soft);
}

.cta h2 {
  max-width: 1040px;
  margin: 0 0 30px;
  font-size: 112px;
  font-weight: 740;
  line-height: 0.9;
  text-wrap: balance;
}

.reveal {
  --reveal-y: 44px;
  --reveal-scale: 0.988;
  opacity: 0;
  filter: blur(14px);
  transition:
    opacity var(--motion-reveal) var(--ease-apple),
    transform var(--motion-reveal) var(--ease-apple),
    filter var(--motion-reveal) var(--ease-apple);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal:not(.tile):not(.step):not(.project-card):not(.device) {
  transform: translate3d(0, var(--reveal-y), 0) scale(var(--reveal-scale));
}

.reveal.is-visible {
  --reveal-y: 0px;
  --reveal-scale: 1;
  opacity: 1;
  filter: blur(0);
}

@keyframes word-rise {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes device-sheen {
  0%, 40% {
    opacity: 0;
    transform: translateX(-72%);
  }
  54% {
    opacity: 0.68;
  }
  82%, 100% {
    opacity: 0;
    transform: translateX(84%);
  }
}

@keyframes project-aurora {
  0% {
    transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1.04);
  }
  35% {
    transform: translate3d(3%, 2%, 0) rotate(8deg) scale(1.08);
  }
  68% {
    transform: translate3d(-2%, 4%, 0) rotate(-6deg) scale(1.06);
  }
  100% {
    transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1.04);
  }
}

@keyframes tile-sheen {
  0%, 46% { opacity: 0; transform: translateX(-120%); }
  58% { opacity: 1; }
  86%, 100% { opacity: 0; transform: translateX(120%); }
}

@keyframes code-flow {
  0%, 100% { background-position: 0% 50%; opacity: 0.62; }
  50% { background-position: 100% 50%; opacity: 1; }
}

@media (max-width: 1100px) {
  .hero h1,
  .section-title,
  .cta h2 {
    font-size: 98px;
  }

  .project-info h2 {
    font-size: 108px;
  }

  .tiles,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .nav {
    padding: 0 22px;
  }

  .nav-menu {
    gap: 16px;
  }

  .device-content,
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 64px;
  }

  .project-info {
    text-align: center;
  }

  .project-info p:last-child {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 92px;
  }

  .hero h1,
  .section-title,
  .cta h2 {
    font-size: 72px;
    line-height: 0.94;
  }

  .hero-text,
  .section-copy {
    font-size: 23px;
  }

  .project-info h2 {
    font-size: 74px;
  }

  .metric strong {
    font-size: 64px;
  }
}

@media (max-width: 640px) {
  .nav-menu a:nth-child(1),
  .nav-menu a:nth-child(2),
  .nav-menu a:nth-child(3) {
    display: none;
  }

  .eyebrow,
  .section-label {
    font-size: 20px;
  }

  .device {
    min-height: auto;
    border-radius: 30px;
  }

  .device-content {
    min-height: auto;
    padding: 20px;
    border-radius: 22px;
  }

  .metric {
    min-height: 210px;
    padding: 22px;
  }

  .grid-preview span {
    min-height: 108px;
    border-radius: 18px;
  }

  .tiles,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 330px;
  }

  .project-section {
    padding: 92px 16px 112px;
  }

  .project-card {
    min-height: auto;
    padding: 34px 22px;
    gap: 34px;
    border-radius: 32px;
  }

  .opium-logo {
    min-height: 300px;
  }

  svg.opium-mark {
    width: 150px;
  }

  .opium-word {
    font-size: 52px;
  }

  .showcase {
    min-height: 620px;
    padding: 110px 20px;
  }

  .process,
  .project-section,
  .cta {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 430px) {
  .hero h1,
  .section-title,
  .cta h2 {
    font-size: 54px;
  }

  .project-info h2 {
    font-size: 56px;
  }

  .tile h3 {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal,
  .hero h1 .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
