/* Think Build Creation - effects and sections carried over from the original thinkbuildcreation.com.
   Sections 1 and 2 are copied from the old site's css/styles.css; only the heading selector changed
   (h1 -> .agency-title, because the homepage already has its h1). */

/* =====================================================================
   1. Original video hero: glow rings, fade-up text, underline draw, pulse
   ===================================================================== */
  .agency-hero, .agency-hero *, .agency-hero *::before, .agency-hero *::after {
    box-sizing: border-box;
  }
 
  .agency-hero {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(60px, 10vw, 120px) clamp(24px, 6vw, 80px);
    background: #1B2030;
  }
 
  /* Background video */
  .agency-hero .bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
 
  .agency-hero .bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27,32,48,0.35) 0%, rgba(27,32,48,0.45) 50%, rgba(27,32,48,0.6) 100%);
    z-index: 1;
  }
 
  .agency-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
    z-index: 1;
  }
 
  .agency-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #6EE7B7 50%, transparent 100%);
    opacity: 0.5;
    z-index: 1;
  }
 
  .agency-hero .glow-top {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at 50% 0%, rgba(110,231,183,0.10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
  }
 
  .agency-hero .glow-bl {
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 600px;
    height: 500px;
    background: radial-gradient(ellipse at 0% 100%, rgba(99,102,241,0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
  }
 
  .agency-hero .glow-br {
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse at 100% 100%, rgba(110,231,183,0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
  }
 
  .agency-hero .ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.035);
    pointer-events: none;
    z-index: 1;
  }
 
  .agency-hero .r1 {
    width: 520px;
    height: 520px;
    bottom: -280px;
    right: -180px;
  }
 
  .agency-hero .r2 {
    width: 320px;
    height: 320px;
    bottom: -160px;
    right: -80px;
  }
 
  .agency-hero .content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    width: 100%;
  }
 
  .agency-hero .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(110,231,183,0.07);
    border: 1px solid rgba(110,231,183,0.2);
    border-radius: 100px;
    padding: 6px 16px 6px 10px;
    margin-bottom: clamp(24px, 4vw, 40px);
    opacity: 0;
    transform: translateY(14px);
  }
 
  .agency-hero .pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6EE7B7;
    position: relative;
    flex-shrink: 0;
  }
 
  .agency-hero .pill-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(110,231,183,0.2);
  }
 
  .agency-hero .pill span {
    font-size: 12px;
    font-weight: 600;
    color: #6EE7B7;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
 
  .agency-hero .agency-title {
    font-size: clamp(36px, 7vw, 84px);
    font-weight: 800;
    color: #EEF2FF;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: clamp(18px, 2.5vw, 28px);
    opacity: 0;
    transform: translateY(30px);
  }
 
  .agency-hero .line-accent {
    display: block;
 
    font-style: italic;
    position: relative;
    width: fit-content;
    margin: 0 auto;
  }
 
  .agency-hero .line-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #ffffff, rgba(110,231,183,0.15));
    transform: scaleX(0);
    transform-origin: left;
  }
 
  .agency-hero p.sub {
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 400;
    color: rgba(255,255,255,0.72);
    max-width: 560px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    margin-bottom: clamp(32px, 5vw, 48px);
    opacity: 0;
    transform: translateY(30px);
  }
 
  .agency-hero .ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 520px;
    opacity: 0;
    transform: translateY(30px);
  }
 
  .agency-hero .btn-primary {
    flex: 1;
    min-width: 200px;
    background: white;
    color: #041a0e;
    border: none;
    border-radius: 14px;
    padding: clamp(14px, 2vw, 17px) clamp(24px, 3vw, 36px);
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -0.01em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
  }
 
  .agency-hero .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 55%);
    pointer-events: none;
  }
 
  .agency-hero .btn-primary:hover {
    background: #4fd9a5;
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(110,231,183,0.28), 0 4px 14px rgba(110,231,183,0.18);
  }
 
  .agency-hero .btn-primary:active {
    transform: scale(0.97);
  }
 
  .agency-hero .btn-ghost {
    flex: 1;
    min-width: 160px;
    background: #1d4ed8;
    color:white;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    padding: clamp(14px, 2vw, 17px) clamp(24px, 3vw, 36px);
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    white-space: nowrap;
  }
 
  .agency-hero .btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    transform: translateY(-3px);
  }
 
  .agency-hero .btn-ghost:active {
    transform: scale(0.97);
  }
 
  .agency-hero .arrow {
    display: inline-block;
    opacity: 0.6;
    transition: transform 0.2s, opacity 0.2s;
  }
 
  .agency-hero .btn-ghost:hover .arrow {
    transform: translateX(5px);
    opacity: 1;
  }
 
  @keyframes agencyFadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
 
  @keyframes agencyDrawLine {
    to { transform: scaleX(1); }
  }
 
  @keyframes agencyPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(0.7); }
  }
 
  .agency-hero .pill.go { animation: agencyFadeUp 0.6s cubic-bezier(.22,1,.36,1) 0.1s forwards; }
  .agency-hero .agency-title.go { animation: agencyFadeUp 0.85s cubic-bezier(.22,1,.36,1) 0.28s forwards; }
  .agency-hero .line-accent.go::after { animation: agencyDrawLine 0.75s cubic-bezier(.22,1,.36,1) 1.0s forwards; }
  .agency-hero p.sub.go { animation: agencyFadeUp 0.8s cubic-bezier(.22,1,.36,1) 0.48s forwards; }
  .agency-hero .ctas.go { animation: agencyFadeUp 0.75s cubic-bezier(.22,1,.36,1) 0.66s forwards; }
  .agency-hero .pill-dot.go { animation: agencyPulse 2.6s ease-in-out 2s infinite; }
 
  @media (max-width: 1024px) {
    .agency-hero .r1, .agency-hero .r2 { opacity: 0.6; }
    .agency-hero .agency-title { font-size: clamp(34px, 6vw, 64px); }
  }
 
  @media (max-width: 768px) {
    .agency-hero { padding: 60px 32px; }
    .agency-hero .agency-title { font-size: clamp(30px, 6vw, 48px); letter-spacing: -0.025em; }
    .agency-hero p.sub { font-size: clamp(14px, 3vw, 17px); max-width: 100%; }
    .agency-hero .r1, .agency-hero .r2 { display: none; }
    .agency-hero .ctas { max-width: 100%; }
  }
 
  @media (max-width: 520px) {
    .agency-hero { padding: 48px 20px; }
    .agency-hero .agency-title { font-size: clamp(26px, 8vw, 38px); letter-spacing: -0.02em; }
    .agency-hero p.sub { font-size: 14px; line-height: 1.6; }
    .agency-hero .ctas { flex-direction: column; }
    .agency-hero .btn-primary, .agency-hero .btn-ghost { width: 100%; flex: none; min-width: unset; }
    .agency-hero .pill span { font-size: 10px; }
  }
 
  @media (max-width: 360px) {
    .agency-hero .agency-title { font-size: 24px; }
    .agency-hero::before { background-size: 40px 40px; }
  }

/* =====================================================================
   2. Original client logo marquee
   ===================================================================== */
/* Trusted Brands Marquee */
.trusted-marquee-section {
  background-color: #131722;
  padding: 76px 0 70px;
  overflow: hidden;
}

.trusted-marquee-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.trusted-marquee-heading {
  color: #f8fafc;
  margin-bottom: 34px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.trusted-logo-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #1b2030;
  border-left: 1px solid rgba(45, 98, 255, .35);
  border-right: 1px solid rgba(45, 98, 255, .35);
  border-top: 1px solid rgba(45, 98, 255, .12);
  border-bottom: 1px solid rgba(45, 98, 255, .12);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.trusted-logo-track {
  display: flex;
  width: max-content;
  animation: trustedLogoScroll 34s linear infinite;
}

.trusted-logo-marquee:hover .trusted-logo-track {
  animation-play-state: paused;
}

.trusted-logo-item {
  flex: 0 0 220px;
  height: 104px;
  border-right: 1px solid rgba(45, 98, 255, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
}

.trusted-logo-item img {
  display: block;
  max-width: 176px;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes trustedLogoScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media screen and (max-width: 767px) {
  .trusted-marquee-section { padding: 54px 0 52px; }
  .trusted-marquee-heading { max-width: 320px; margin-left: auto; margin-right: auto; margin-bottom: 24px; padding: 0 18px; letter-spacing: .16em; font-size: 13px; }
  .trusted-logo-item { flex-basis: 172px; height: 82px; padding: 10px 20px; }
  .trusted-logo-item img { max-width: 138px; max-height: 60px; }
}

/* =====================================================================
   3. Sections rebuilt from the original site, in the new design
   ===================================================================== */

/* the old hero heading is an h2 here, so give it display type */
.agency-hero .agency-title { font-family: var(--display); margin: 0; }
.agency-hero .ctas a { text-decoration: none; }

/* missing logo file -> show the brand name instead of a broken image */
.trusted-logo-item .logo-name { color: #cfd5e3; font: 600 1.05rem/1.2 var(--display); letter-spacing: .02em; }

/* reels carousel (port of the original swiper + "play only what is visible") */
.reels-head, .cases-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.reels-nav { display: flex; gap: 10px; }
.reels-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 1.1rem; cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease); }
.section--dark .reels-btn:hover { background: var(--white); color: var(--black); }
.section--light .reels-btn:hover, .section--mist .reels-btn:hover { background: var(--black); color: var(--white); }
.reels-btn:active { transform: scale(.94); }
.reels-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 32px var(--gut) 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.reels-track::-webkit-scrollbar { display: none; }
.reel { flex: 0 0 auto; width: clamp(200px, 22vw, 280px); aspect-ratio: 9 / 16; margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: #111 linear-gradient(160deg, #1b1f2a, #0a0b0f); scroll-snap-align: start; transform: translateZ(0); }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.reel figcaption { position: absolute; left: 14px; bottom: 12px; font-size: var(--t-sm); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.reel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }

/* UGC trio */
.ugc-head { text-align: center; display: grid; justify-items: center; }
.ugc-head .section-lead { max-width: 690px; margin-inline: auto; }
.ugc-pre { font-size: var(--t-sm); letter-spacing: .18em; text-transform: uppercase; color: var(--fog); margin: 0 0 18px; }
.ugc-accent { color: var(--accent, #ff4d2e); font-style: italic; }
.ugc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin-top: 44px; }
.ugc-item { aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #111; }
.ugc-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .ugc-grid { grid-template-columns: 1fr; max-width: 300px; } }

/* client success stories slider */
.cases-viewport { overflow: hidden; margin-top: 36px; }
.cases-track { display: flex; transition: transform .6s var(--ease); }
.case { flex: 0 0 100%; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.case-body { display: grid; gap: 22px; align-content: start; }
.case blockquote { margin: 0; font-size: var(--t-md); line-height: 1.5; color: #e9ebee; }
.case-who { display: grid; gap: 2px; margin: 0; font-size: var(--t-sm); color: var(--fog); }
.case-who strong { color: var(--white); font-weight: 600; }
.case-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.case-stats div { border: 1px solid var(--line-d); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column-reverse; gap: 4px; }
.case-stats dd { margin: 0; font: 700 clamp(1.6rem, 3vw, 2.3rem)/1 var(--display); font-variation-settings: "wdth" 112; color: var(--white); }
.case-stats dt { font-size: var(--t-sm); color: var(--fog); }
.case-media { border-radius: 18px; overflow: hidden; background: #111; min-height: 280px; }
.case-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cases-dots { display: flex; gap: 8px; margin-top: 24px; }
.cases-dots button { width: 28px; height: 4px; border-radius: 2px; border: 0; background: var(--line-d); cursor: pointer; padding: 0; transition: background .3s, width .3s; }
.cases-dots button[aria-selected="true"] { background: var(--accent, #fff); width: 48px; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case-media { min-height: 220px; order: -1; } }

@media (prefers-reduced-motion: reduce) {
  .trusted-logo-track { animation: none; }
  .cases-track { transition: none; }
  .agency-hero .pill, .agency-hero .agency-title, .agency-hero p.sub, .agency-hero .ctas { opacity: 1 !important; transform: none !important; animation: none !important; }
  .agency-hero .line-accent::after { transform: scaleX(1) !important; animation: none !important; }
}

/* without JavaScript the old hero's text never gets its "go" class, so show it as-is */
html:not(.js) .agency-hero .pill, html:not(.js) .agency-hero .agency-title, html:not(.js) .agency-hero p.sub, html:not(.js) .agency-hero .ctas { opacity: 1; transform: none; }
html:not(.js) .agency-hero .line-accent::after { transform: scaleX(1); }
