:root {
  --bg: #f7f7f4;
  --text: #111;
  --muted: #6f6f68;
  --line: rgba(0,0,0,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  padding: 42px clamp(18px, 3vw, 46px) 26px;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 520px);
  gap: 24px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 92px);
  line-height: .88;
  letter-spacing: -0.07em;
  font-weight: 620;
}

.intro {
  margin: 0;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.35;
  color: #222;
  max-width: 520px;
}

.masonry {
  column-count: 4;
  column-gap: 12px;
  padding: 0 clamp(10px, 1.6vw, 24px) 42px;
}

.tile {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  background: #e9e9e5;
  break-inside: avoid;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp .55s ease forwards;
}

.tile video {
  display: block;
  width: 100%;
  height: auto;
  background: #ddd;
  transition: transform .45s ease, filter .45s ease;
}

.tile:hover video {
  transform: scale(1.018);
  filter: brightness(.94);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.22);
  pointer-events: none;
}

.why-ai {
  margin: 18px clamp(18px, 3vw, 46px) 58px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 860px;
}

.why-ai h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: -0.04em;
  font-weight: 560;
}

.why-ai p {
  margin: 0;
  color: #242424;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
}

footer {
  border-top: 1px solid var(--line);
  padding: 18px clamp(18px, 3vw, 46px) 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
footer a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8,8,8,.88);
  z-index: 50;
}
.lightbox.open { display: flex; }
.lightbox video {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  background: #000;
}
.close {
  position: fixed;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  opacity: .9;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) { .masonry { column-count: 3; } }
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr; padding-top: 28px; }
  .masonry { column-count: 2; column-gap: 8px; padding-inline: 8px; }
  .tile { margin-bottom: 8px; }
}
@media (max-width: 420px) { .masonry { column-count: 1; } }
