:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f4;
  --fg: #111113;
  --fg-dim: #6b6b70;
  --accent: #2b2b2e;
  --border: #e6e6e8;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 5vw;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 30px;
  width: auto;
  display: block;
}

.site-header nav { display: flex; gap: 28px; }

.site-header nav a {
  font-size: 14px;
  color: var(--fg-dim);
  transition: color 0.2s ease;
}

.site-header nav a:hover { color: var(--fg); }

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 0 5vw;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 20s infinite;
}

.hero-bg img:nth-child(1) { animation-delay: 0s; }
.hero-bg img:nth-child(2) { animation-delay: -5s; }
.hero-bg img:nth-child(3) { animation-delay: -10s; }
.hero-bg img:nth-child(4) { animation-delay: -15s; }

@keyframes heroFade {
  0% { opacity: 0; }
  3% { opacity: 1; }
  22% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,8,9,0.82) 0%, rgba(8,8,9,0.78) 40%, rgba(8,8,9,0.4) 75%, rgba(8,8,9,0.25) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; opacity: 0; }
  .hero-bg img:first-child { opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  color: var(--fg-dim);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero .eyebrow { color: rgba(255, 255, 255, 0.75); }

.hero h1 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #fff;
}

.hero-sub {
  color: var(--fg-dim);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero .hero-sub { color: rgba(255, 255, 255, 0.85); }

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover { transform: translateY(-2px); opacity: 0.9; }

.hero .btn { background: #fff; color: #111113; }

.clients {
  padding: 36px 5vw;
  border-bottom: 1px solid var(--border);
}

.clients-label {
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 18px;
}

.clients-recent {
  text-align: center;
  font-size: 13px;
  color: var(--fg-dim);
  max-width: var(--max);
  margin: 20px auto 0;
}

.marquee {
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-list {
  list-style: none;
  display: flex;
  width: max-content;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  animation-play-state: paused;
}

.marquee.in-view .clients-list {
  animation-play-state: running;
}

.clients-list li {
  display: flex;
  align-items: center;
  height: 46px;
}

.clients-list img {
  height: 30px;
  width: auto;
  display: block;
}

.clients-list img.mono {
  filter: brightness(0) invert(40%);
  opacity: 0.9;
}

.clients-list img.badge {
  height: 42px;
  border-radius: 8px;
}

.clients-list img.logo-teeling {
  height: 46px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-list {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
  .clients-list li[aria-hidden="true"] { display: none; }
}

.reel {
  padding: 90px 5vw;
  border-bottom: 1px solid var(--border);
}

.reel-wrap {
  max-width: var(--max);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border-radius: 12px;
  overflow: hidden;
}

.reel-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.reel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
}

.reel-placeholder p {
  color: var(--fg-dim);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reel-caption {
  text-align: center;
  color: var(--fg-dim);
  font-size: 13px;
  margin-top: 16px;
}

.section-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 32px;
}

.page-hero {
  padding: 150px 5vw 30px;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 720px;
}

.work {
  padding: 90px 5vw;
  border-bottom: 1px solid var(--border);
}

.grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.card { display: block; }

.thumb {
  aspect-ratio: 16 / 10;
  background-color: var(--bg-alt);
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card:hover .thumb {
  transform: translateY(-4px);
  border-color: #cfcfd2;
}

.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(135deg, #f2f2f0, #e9e9e7);
}

.thumb-placeholder span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
}

.card-meta { padding: 14px 2px 0; }

.card-meta h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }

.card-meta p { font-size: 13px; color: var(--fg-dim); }

.about {
  padding: 20px 5vw 90px;
}

.about-inner { max-width: var(--max); margin: 0 auto; }

.about p {
  font-size: 20px;
  max-width: 680px;
  color: var(--fg-dim);
  margin-bottom: 32px;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.tools li {
  font-size: 13px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-dim);
}

.about-cta {
  margin-top: 36px;
  font-size: 18px;
  color: var(--fg-dim);
}

.about-cta a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact {
  padding: 20px 5vw 110px;
  text-align: center;
}

.contact p { color: var(--fg-dim); margin-bottom: 28px; }

.contact .btn { margin-bottom: 40px; }

.socials { display: flex; justify-content: center; gap: 24px; }

.socials a { color: var(--fg-dim); font-size: 14px; }

.socials a:hover { color: var(--fg); }

.site-footer {
  padding: 28px 5vw;
  text-align: center;
  color: var(--fg-dim);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

@media (max-width: 560px) {
  .site-header nav { gap: 18px; }
}
