:root {
  --ink: #1b1726;
  --muted: #5d5870;
  --paper: #fbfaff;
  --card: #ffffff;
  --line: #e7e3f3;
  --night: #120f1c;
  --violet: #7c5cff;
  --pink: #e14fd8;
  --accent: #6a46f5;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eeeaf9;
    --muted: #aaa3c2;
    --paper: #120f1c;
    --card: #1b1729;
    --line: #2c2640;
    --accent: #a993ff;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.75em 1.3em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgb(124 92 255 / 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgb(124 92 255 / 0.4); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

/* Hero: dark, with slowly drifting light behind the title. */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: #fff;
  padding-top: env(safe-area-inset-top);
}
.glow, .glow::before, .glow::after {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}
.glow { inset: -20% -10% auto auto; width: 70vmax; height: 70vmax; background: radial-gradient(circle, rgb(124 92 255 / 0.55), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.glow::before { content: ""; left: -60%; top: 30%; width: 60vmax; height: 60vmax; background: radial-gradient(circle, rgb(225 79 216 / 0.45), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.glow::after { content: ""; left: -10%; top: 70%; width: 40vmax; height: 40vmax; background: radial-gradient(circle, rgb(70 160 255 / 0.3), transparent 65%); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-8%, 6%) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .glow, .glow::before, .glow::after { animation: none; }
}

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 7px; }
.bar-link { color: #d9d2ff; text-decoration: none; font-weight: 500; }
.bar-link:hover { color: #fff; }

.hero-body { padding-block: clamp(56px, 12vw, 128px) clamp(64px, 12vw, 140px); }
.hero h1 {
  font-size: clamp(2.8rem, 10vw, 5.2rem);
  font-weight: 800;
  background: linear-gradient(120deg, #fff 30%, #e9b6ff 70%, #ff9ff0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { font-size: clamp(1.25rem, 3.6vw, 1.7rem); font-weight: 600; margin: 0.6em 0 0.4em; max-width: 26ch; }
.hero-lead { color: #cfc8e8; max-width: 44ch; margin: 0 0 2em; }

/* On wide screens, the three sites fanned out beside the title. Hidden
   lazy images aren't fetched, so phones don't load them. */
.fan { display: none; }
@media (min-width: 900px) {
  .hero-body { position: relative; }
  .hero-body > :not(.fan) { max-width: calc(100% - 480px); }
  .hero h1 { font-size: min(5.2rem, 6vw); }
  .fan {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    width: 440px;
    height: 420px;
    transform: translateY(-50%);
  }
  .fan img {
    position: absolute;
    top: 0;
    left: 50%;
    width: 200px;
    height: auto;
    border: 7px solid #0d0b14;
    border-radius: 28px;
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.1);
  }
  .fan img:nth-child(1) { transform: translateX(-112%) translateY(30px) rotate(-8deg); }
  .fan img:nth-child(2) { transform: translateX(-50%); z-index: 1; }
  .fan img:nth-child(3) { transform: translateX(12%) translateY(30px) rotate(8deg); }
}

/* Our websites */
.section-title { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.section-lead { color: var(--muted); margin: 0.4em 0 0; }
.work { padding-block: clamp(56px, 9vw, 104px); }
.site {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: clamp(40px, 7vw, 80px);
}
.kicker { margin: 0 0 0.3em; color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site h3 { font-size: clamp(1.6rem, 4.2vw, 2.2rem); margin-bottom: 0.5em; }
.site p { margin: 0 0 1em; }
.points { margin: 0 0 1.6em; padding: 0; list-style: none; }
.points li { position: relative; padding-left: 1.6em; margin-bottom: 0.4em; color: var(--muted); }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

/* A phone frame around each video. */
.phone {
  margin: 0 auto;
  width: min(300px, 78vw);
  aspect-ratio: 540 / 960;
  padding: 10px;
  border-radius: 40px;
  background: #0d0b14;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, 0 30px 60px -20px rgb(45 25 110 / 0.45), 0 12px 24px -12px rgb(0 0 0 / 0.35);
  box-sizing: content-box;
}
.phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  background: #222;
}

@media (min-width: 760px) {
  .site { grid-template-columns: 320px 1fr; gap: clamp(40px, 6vw, 88px); }
  .site:nth-of-type(even) { grid-template-columns: 1fr 320px; }
  .site:nth-of-type(even) .phone { order: 2; }
  .phone { width: 300px; }
}

/* Mission */
.mission {
  background: linear-gradient(135deg, #2a1d63, #5a2a8a 55%, #8a2f86);
  color: #fff;
  padding-block: clamp(56px, 9vw, 96px);
  text-align: center;
}
.mission-text { font-size: clamp(1.35rem, 3.8vw, 2rem); font-weight: 600; max-width: 30ch; margin: 0.6em auto 0; line-height: 1.35; }

/* Earlier work */
.earlier {
  display: grid;
  gap: 24px;
  align-items: center;
  padding-block: clamp(56px, 9vw, 96px);
}
.earlier img { width: 160px; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.earlier h2 { font-size: clamp(1.4rem, 3.6vw, 1.8rem); margin-bottom: 0.4em; }
.earlier p { margin: 0 0 0.8em; color: var(--muted); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
@media (min-width: 600px) {
  .earlier { grid-template-columns: 160px 1fr; gap: 40px; }
}

.footer {
  border-top: 1px solid var(--line);
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.95rem;
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
