:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --grey: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-bright: #2997ff;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
b { font-weight: 600; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 48px;
  background: rgba(22, 22, 23, 0.8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #e8e8ed;
}
.nav-inner { max-width: 1080px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.brand svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 12px; color: rgba(232, 232, 237, 0.8); transition: color 0.2s; letter-spacing: -0.01em; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-pill { background: var(--blue); color: #fff; padding: 4px 12px; border-radius: 980px; }
.nav-links .nav-pill:hover { background: #0077ed; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; font: inherit; font-size: 17px; font-weight: 400;
  padding: 12px 24px; border: 0; border-radius: 980px; cursor: pointer;
  transition: background 0.2s, transform 0.3s var(--ease-out);
}
.btn:hover { background: #0077ed; }
.btn:active { transform: scale(0.97); }
.btn-full { width: 100%; padding: 15px 24px; }
.link { color: var(--blue); font-size: 17px; display: inline-flex; gap: 5px; align-items: center; }
.dark .link, .hero .link { color: var(--blue-bright); }
.link:hover { text-decoration: underline; }
.link > span { transition: transform 0.2s; }
.link:hover > span { transform: translateX(3px); }
.x-logo { width: 15px; height: 15px; }

.grad {
  background: linear-gradient(90deg, #2997ff 0%, #7cc4ff 50%, #2997ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }
.grey .grad, #about .grad { background-image: linear-gradient(90deg, #0058b9 0%, #0071e3 50%, #0058b9 100%); }

/* ---------- Hero ---------- */
.hero { background: #000; color: #f5f5f7; text-align: center; padding: 150px 0 110px; overflow: hidden; }
.hero-copy { padding: 0 22px; }
.hero-kicker { font-size: clamp(15px, 1.6vw, 19px); font-weight: 600; color: #86868b; margin-bottom: 14px; }
.hero h1 { font-size: clamp(48px, 9vw, 104px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.hero-sub { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.3; color: #a1a1a6; max-width: 640px; margin: 24px auto 0; font-weight: 500; letter-spacing: -0.02em; }
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }

/* Thumbnail marquee */
.marquee {
  margin-top: 84px; display: grid; gap: 16px;
  transform: perspective(1400px) rotateX(18deg) scale(1.04);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-row { display: flex; gap: 16px; width: max-content; animation: scroll 60s linear infinite; }
.marquee-row.reverse { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row img {
  width: clamp(220px, 24vw, 340px); aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 14px; background: #1d1d1f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 90px auto 0; padding: 0 22px; }
.stats div { padding: 8px 0; }
.stats dt { font-size: 15px; color: #86868b; font-weight: 500; order: 2; }
.stats dd {
  margin: 0 0 4px; font-size: clamp(44px, 6.4vw, 80px); font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(180deg, #fff 30%, #8fc6ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stats div { display: flex; flex-direction: column-reverse; }
.stats-note { font-size: 12px; color: #6e6e73; margin-top: 28px; padding: 0 22px; }

/* ---------- Sections ---------- */
.section { padding: 140px 0; }
.grey { background: var(--grey); }
.dark { background: #000; color: #f5f5f7; }
.head { margin-bottom: 64px; }
.section h2 { font-size: clamp(40px, 6vw, 64px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 700; }
.head p { font-size: clamp(19px, 2vw, 24px); color: var(--muted); margin-top: 16px; font-weight: 500; letter-spacing: -0.02em; }
.dark .head p { color: #86868b; }
.kicker { font-size: 17px; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.body-lg { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.45; color: var(--muted); margin-top: 20px; letter-spacing: -0.015em; }
.body-lg b { color: var(--ink); }

/* ---------- Work ---------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.channel {
  display: block; background: var(--grey); border-radius: 28px; overflow: hidden;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.channel:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); }
.thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #e8e8ed; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.channel:hover .thumb img { transform: scale(1.04); }
.channel-body { padding: 22px 26px 26px; }
.channel-top { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; background: #ddd; }
.channel-top > div { flex: 1; min-width: 0; }
.channel h3 { font-size: 22px; letter-spacing: -0.03em; font-weight: 700; }
.channel-top p { font-size: 14px; color: var(--muted); margin-top: 1px; }
.tag { flex: none; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 980px; background: #fff; color: var(--ink); }
.tag-blue { background: var(--blue); color: #fff; }
.channel-stats { display: flex; gap: 22px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.channel-stats b { color: var(--ink); font-size: 19px; letter-spacing: -0.02em; }

/* ---------- Statement ---------- */
.statement { padding: 60px 22px 160px; }
.scroll-text {
  max-width: 980px; margin: 0 auto;
  font-size: clamp(30px, 5vw, 60px); line-height: 1.12; font-weight: 700; letter-spacing: -0.035em;
}
.scroll-text .w { color: #d2d2d7; transition: color 0.35s var(--ease); }
.scroll-text .w.on { color: var(--ink); }

/* ---------- Results ---------- */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot { background: #111113; border-radius: 24px; padding: 14px 14px 0; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.shot-wide { grid-column: 1 / -1; }
.shot img { width: 100%; height: auto; border-radius: 12px; }
.shot figcaption { padding: 18px 8px 20px; font-size: 17px; color: #a1a1a6; letter-spacing: -0.015em; }
.shot figcaption b { color: #fff; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.founder-photo { border-radius: 32px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.45); }
.founder-photo img { width: 100%; height: auto; }
.founder h2 { font-size: clamp(44px, 6vw, 72px); }
.founder-links { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden;
  background: #fff; border-radius: 28px; padding: 44px 40px 48px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.tile:hover { transform: scale(1.015); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.2); }
.tile-wide { grid-column: span 2; }
.tile .icon { width: 40px; height: 40px; color: var(--blue); margin-bottom: auto; }
.tile h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin-top: 40px; }
.tile p { font-size: 17px; color: var(--muted); margin-top: 12px; max-width: 46ch; }
.tile-dark { background: #000; color: #f5f5f7; }
.tile-dark .icon { color: var(--blue-bright); }
.tile-dark p { color: #a1a1a6; }
.tile-dark::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.45), transparent 65%);
}
.tile-blue { background: linear-gradient(135deg, #0071e3 0%, #2997ff 55%, #6cb8ff 100%); color: #fff; }
.tile-blue .icon { color: #fff; }
.tile-blue p { color: rgba(255, 255, 255, 0.88); }
.tile > * { position: relative; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: #161617; border-radius: 24px; padding: 36px 28px 40px; }
.step-n {
  display: block; font-size: 56px; font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(180deg, #2997ff, #0b3f80); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-size: 24px; letter-spacing: -0.03em; margin-top: 28px; }
.steps p { color: #a1a1a6; font-size: 16px; margin-top: 10px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-direct { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.contact-direct li { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.contact-direct span { color: var(--muted); }
.contact-direct a { color: var(--blue); font-weight: 500; }
.contact-direct a:hover { text-decoration: underline; }
.form { background: #fff; border-radius: 28px; padding: 36px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.25); }
.field + .field { margin-top: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--grey); border: 1px solid transparent; border-radius: 12px; padding: 13px 16px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); }
.form .btn { margin-top: 26px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { background: var(--grey); padding: 28px 0 40px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer-brand { font-size: 12px; font-weight: 600; color: var(--ink); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: #424245; }
.footer-links a:hover { text-decoration: underline; }
.legal { font-size: 12px; color: var(--muted); margin-top: 18px; letter-spacing: -0.01em; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .grad, .marquee-row { animation: none; }
  .scroll-text .w { color: var(--ink); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; gap: 48px; }
  .founder-photo { max-width: 460px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 734px) {
  body { font-size: 16px; }
  .wrap, .nav-inner { padding: 0 16px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 40px; height: 40px; padding: 10px; border: 0; background: none; cursor: pointer; margin-right: -10px;
  }
  .nav-toggle span { display: block; height: 1.5px; background: #e8e8ed; transition: transform 0.3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 48px; left: 0; right: 0; height: calc(100vh - 48px); height: calc(100dvh - 48px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #000; padding: 16px 32px;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 28px; font-weight: 600; color: #e8e8ed; padding: 10px 0; letter-spacing: -0.03em; }
  .nav-links .nav-pill { background: none; color: var(--blue-bright); padding: 10px 0; border-radius: 0; }
  .hero { padding: 116px 0 80px; }
  .hero-copy { padding: 0 16px; }
  .marquee { margin-top: 56px; gap: 10px; }
  .marquee-row { gap: 10px; }
  .marquee-row img { width: 200px; border-radius: 10px; }
  .stats { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .section { padding: 96px 0; }
  .head { margin-bottom: 40px; }
  .work { grid-template-columns: 1fr; gap: 16px; }
  .channel { border-radius: 22px; }
  .channel-body { padding: 18px 20px 22px; }
  .statement { padding: 40px 16px 110px; }
  .results { grid-template-columns: 1fr; gap: 14px; }
  .shot { border-radius: 20px; padding: 10px 10px 0; }
  .founder-photo { border-radius: 24px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .tile-wide { grid-column: auto; }
  .tile { min-height: 260px; padding: 32px 26px 36px; border-radius: 24px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .form { padding: 24px; border-radius: 22px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
