:root {
  --bg: #f6f1e8;
  --cream: #fffaf1;
  --dark: #101010;
  --muted: #6f6a60;
  --line: rgba(16, 16, 16, 0.12);
  --white: #ffffff;
  --orange: #ff5f2e;
  --yellow: #f7c948;
  --soft-orange: #ffe1d2;
  --card: rgba(255, 255, 255, 0.78);
  --radius: 30px;
  --shadow: 0 28px 80px rgba(16, 16, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 95, 46, 0.18), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(247, 201, 72, 0.22), transparent 36%),
    linear-gradient(180deg, #f8f3ea 0%, #f6f1e8 38%, #f4efe6 100%);
  font-family: Inter, Arial, system-ui, sans-serif;
}

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

img,
video {
  max-width: 100%;
}

video {
  background: #181818;
}

.container {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  height: 78px;
  padding: 0 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  background: rgba(246, 241, 232, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
}

.header-v5 {
  margin: 14px auto 0;
  width: min(1360px, calc(100% - 28px));
  border-radius: 999px;
  border: 1px solid rgba(16, 16, 16, 0.1);
  box-shadow: 0 16px 50px rgba(16, 16, 16, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 95, 46, 0.12);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--dark);
  color: white;
  font-weight: 850;
  box-shadow: 0 18px 44px rgba(16, 16, 16, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(16, 16, 16, 0.22);
}

.btn.small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 13px;
  white-space: nowrap;
}

.link {
  font-weight: 850;
  border-bottom: 2px solid currentColor;
}

.tag {
  margin: 0 0 22px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.075em;
  line-height: 0.94;
  font-weight: 950;
}

h1 {
  font-size: clamp(44px, 5vw, 76px);
}

h2 {
  font-size: clamp(42px, 4.8vw, 74px);
}

h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.lead,
.section-head p,
.section-text {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero {
  padding: 92px 0 100px;
}

.hero-v5 {
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.28fr;
  gap: 76px;
  align-items: center;
}

.actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-video {
  padding: 14px;
  background: var(--dark);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.hero-video.big {
  transform: rotate(1deg) scale(1.04);
}

.hero-video-v5 {
  align-self: center;
}

.hero-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
}

.hero-video p {
  margin: 14px 10px 6px;
  color: white;
  font-weight: 850;
}

.section {
  padding: 112px 0;
  border-top: none;
  background: transparent;
}

.section.dark {
  background: linear-gradient(180deg, rgba(17,17,17,0.96), rgba(17,17,17,0.92));
  color: white;
}

.section-head {
  max-width: 820px;
  margin-bottom: 52px;
}

.section.dark .section-head p,
.section.dark p {
  color: rgba(255,255,255,0.68);
}

.section.dark .tag {
  color: var(--yellow);
}

.section-cta {
  margin-top: 36px;
}

.grid-2,
.grid-3,
.portfolio-grid {
  display: grid;
  gap: 22px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 22px 70px rgba(16, 16, 16, 0.06);
}

.card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.line-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 95, 46, 0.08);
  color: var(--orange);
}

.line-icon svg {
  width: 34px;
  height: 34px;
}

.line-icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.project-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 90px rgba(16, 16, 16, 0.14);
}

.project-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-card[data-category="ugc"] {
  display: flex;
  flex-direction: column;
  max-width: 340px;
  justify-self: center;
}

.project-card[data-category="ugc"] video {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #111;
}

.project-card-content {
  padding: 22px;
}

.project-card span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-top: 10px;
}

.process-bubble {
  position: absolute;
  z-index: 2;
  width: 218px;
  height: 218px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 50%;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
  box-shadow:
    0 0 0 20px var(--bg),
    0 24px 74px rgba(16, 16, 16, 0.1);
  transform: rotate(var(--bubble-rot, 0deg));
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    background 0.4s ease;
  cursor: default;
}

.process-bubble.visible {
  opacity: 1;
}

.process-bubble:hover {
  transform: rotate(0deg) scale(1.06) translateY(-12px);
  box-shadow:
    0 0 0 20px var(--bg),
    0 36px 90px rgba(255, 95, 46, 0.2),
    0 0 0 2px rgba(255, 95, 46, 0.12);
  background: var(--bg);
}

.process-bubble::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(16, 16, 16, 0.16);
  border-radius: 50%;
  pointer-events: none;
  transition: border-color 0.4s ease, border-width 0.4s ease;
}

.process-bubble:hover::after {
  border-color: rgba(255, 95, 46, 0.5);
  border-style: solid;
  border-width: 1.5px;
}

.process-bubble-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.process-bubble-top span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: white;
  font-size: 11px;
  font-weight: 950;
  transition: background 0.3s ease;
}

.process-bubble:hover .process-bubble-top span {
  background: var(--orange);
}

.process-bubble-top svg {
  width: 35px;
  height: 35px;
  color: var(--orange);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-bubble:hover .process-bubble-top svg {
  transform: scale(1.18);
}

.process-bubble-top svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-bubble h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1;
  transition: color 0.3s ease;
}

.process-bubble:hover h3 {
  color: var(--orange);
}

.bubble-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.bubble-keys span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 1;
  transition: color 0.3s ease;
}

.process-bubble:hover .bubble-keys span {
  color: var(--orange);
}

@keyframes dashFlow {
  to { stroke-dashoffset: -28; }
}

.section.dark .card {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.14);
}

.section.dark .card p {
  color: rgba(255,255,255,0.68);
}

.section.dark .line-icon {
  background: rgba(255,255,255,0.08);
  color: var(--yellow);
}

.faq {
  max-width: 900px;
}

details {
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding: 28px 0;
}

.section.dark details {
  border-bottom-color: rgba(255,255,255,0.15);
}

summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(-135deg);
}

.section.dark details p {
  color: rgba(255,255,255,0.68);
}

.final {
  padding: 120px 0;
  text-align: center;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 95, 46, 0.18), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(247, 201, 72, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 95, 46, 0.96), rgba(229, 78, 36, 0.96));
  color: #130805;
}

.final h2 {
  font-size: clamp(44px, 5.2vw, 82px);
}

.final p {
  max-width: 660px;
  margin: 24px auto 34px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(19, 8, 5, 0.72);
}

.final .btn {
  background: #130805;
}

.footer {
  padding: 34px 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hidden {
  display: none;
}

.project-card.hidden {
  display: none !important;
}

body.avatar-media-focus-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 20, 0.78);
  backdrop-filter: blur(6px);
  z-index: 9998;
}

video.site-media-focused,
audio.site-media-focused {
  position: fixed !important;
  inset: 0;
  margin: auto;
  z-index: 9999;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 56px);
  border-radius: 24px;
  box-shadow: 0 38px 120px rgba(16, 16, 16, 0.34);
  background: #111;
}

video.site-media-focused {
  width: min(960px, calc(100vw - 56px), calc((100vh - 56px) * 1.777));
  height: auto;
  object-fit: contain;
}

video.site-media-focused.site-media-focused-vertical {
  width: min(420px, calc((100vh - 56px) * 0.5625), calc(100vw - 56px));
}

video.site-media-focused.site-media-focused-portrait {
  width: min(420px, calc((100vh - 56px) * 0.8), calc(100vw - 56px));
}

video.site-media-focused.site-media-focused-portrait-tall {
  width: min(460px, calc((100vh - 56px) * 0.75), calc(100vw - 56px));
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

video.site-media-focused.site-media-focused-horizontal {
  width: min(960px, calc(100vw - 56px), calc((100vh - 56px) * 1.777));
}

audio.site-media-focused {
  width: min(460px, calc(100vw - 56px));
}

@media (max-width: 1100px) {
  .header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-video.big {
    transform: none;
  }

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

@media (max-width: 680px) {
  .header {
    margin-top: 0;
    width: 100%;
    border-radius: 0;
    padding: 0 18px;
  }

  .header .btn {
    display: none;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .hero,
  .section,
  .final {
    padding: 72px 0;
  }

  .hero-v5 {
    min-height: auto;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 40px;
  }

  .grid-2,
  .grid-3,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    flex-direction: column;
  }
}
