/* Lynell Agency: ad landing page hero. Loads after styles.css and lp.css.
   Same scene as the homepage (LA golden-hour photo, sun beam, studio display with the film),
   built mobile-first: copy, then the film, then the form. Everything is visible without JS. */

body.lp-ad { background: var(--paper); overflow-x: clip; }
body.lp-ad .lp-header { position: absolute; inset: 0 0 auto 0; background: transparent; box-shadow: none; z-index: 20; }
body.lp-ad .wordmark, body.lp-ad .wordmark-name { color: #fff; }
body.lp-ad .wordmark-sub { color: rgba(255, 255, 255, 0.8); }
body.lp-ad .wordmark-mark { border-color: #fff; }
body.lp-ad .lp-header .btn-primary { background: #fff; color: var(--ink); }

.ah { position: relative; isolation: isolate; padding: clamp(92px, 12vw, 132px) 0 clamp(40px, 6vw, 72px); color: #fff; overflow: clip; }
.ah-bg { position: absolute; inset: 0; z-index: -1; background: #2a1a0e; overflow: hidden; }
.ah-photo {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 38% 50%;
  filter: sepia(0.7) saturate(1.3) hue-rotate(-6deg) brightness(0.9) contrast(1.05);
  transform-origin: 40% 40%; animation: ah-drift 28s ease-in-out infinite alternate;
}
.ah-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(34, 19, 8, 0.66) 0%, rgba(34, 19, 8, 0.42) 46%, rgba(20, 12, 6, 0.16) 70%, rgba(20, 12, 6, 0.42) 90%, var(--paper) 100%);
}
.ah-beam {
  position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none;
  background: linear-gradient(112deg, transparent 52%, rgba(255, 176, 96, 0.2) 66%, transparent 80%);
  animation: ah-beam 16s ease-in-out infinite alternate;
}
@keyframes ah-drift { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@keyframes ah-beam { from { transform: translateX(-4%); opacity: 0.75; } to { transform: translateX(5%); opacity: 1; } }

.ah-grid {
  display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "stage" "form";
}
.ah-copy { grid-area: copy; max-width: 40em; }
.ah-stage { grid-area: stage; }
.ah-form { grid-area: form; }

.ah-eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: 0.95rem; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.94);
}
.ah-eyebrow::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ff9a5c; }

.ah h1 {
  margin: 0; max-width: 14em; color: #fff;
  font-family: var(--font-display, "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif);
  font-size: clamp(2.45rem, 11vw, 3.3rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.04em;
  text-shadow: 0 2px 36px rgba(34, 16, 4, 0.4);
}
.ah h1 em { color: #ffc79a; font-style: normal; font-family: inherit; font-weight: inherit; letter-spacing: inherit; }
.ah-lede {
  max-width: 34em; margin: 20px 0 0; font-size: 1.0625rem; font-weight: 400; line-height: 1.55;
  color: rgba(255, 255, 255, 0.95); text-shadow: 0 1px 22px rgba(34, 16, 4, 0.5);
}
.ah-cta { margin-top: 24px; }
.ah .btn-primary { background: #fff; color: var(--ink); }
.ah .btn-primary:hover { background: var(--paper); }
.ah :focus-visible { outline-color: #fff; }
.ah-points { list-style: none; display: grid; gap: 8px; margin: 22px 0 0; padding: 0; color: rgba(255, 255, 255, 0.96); }
.ah-points li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; text-shadow: 0 1px 16px rgba(34, 16, 4, 0.5); }
.ah-points li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #ff9a5c; transform: translateY(-1px); }

/* Entrance: copy rises in, one after another (skipped for reduced motion) */
.ah-copy > * { animation: ah-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ah-copy > :nth-child(2) { animation-delay: 0.08s; }
.ah-copy > :nth-child(3) { animation-delay: 0.16s; }
.ah-copy > :nth-child(4) { animation-delay: 0.24s; }
.ah-copy > :nth-child(5) { animation-delay: 0.32s; }
.ah-stage { animation: ah-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }
@keyframes ah-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* The form card sits on the scene */
.ah-form { box-shadow: 0 30px 60px -30px rgba(20, 8, 0, 0.6); }

/* ---------- Studio display with the film (click to play, nothing downloads until pressed) ---------- */
.hd { position: relative; margin: 0; }
.hd-device { position: relative; width: min(100%, 980px); margin: 0 auto; container-type: inline-size; }
.hd-bezel {
  position: relative; padding: 1.4cqw; background: #050505; border-radius: 1.6cqw;
  border: max(2px, 0.35cqw) solid #c9c6c0;
  box-shadow: 0 0 0 1px #8d8a85, 0 4cqw 6cqw -2.4cqw rgba(20, 8, 0, 0.7), 0 0 9cqw -2cqw rgba(255, 150, 70, 0.35);
  z-index: 2;
}
.hd-bezel::after { content: ""; position: absolute; inset: 0; border-radius: 1.2cqw; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 30%); z-index: 4; }
.hd-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: 0.5cqw; cursor: pointer; }
.hd-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.hd-neck { position: relative; width: 17cqw; height: 8cqw; margin: -0.2cqw auto 0; background: linear-gradient(90deg, #6f6e6c, #bdbcba 45%, #858482); z-index: 1; }
.hd-foot {
  position: relative; width: 30cqw; height: 1.4cqw; min-height: 4px; margin: 0 auto;
  background: linear-gradient(180deg, #cfcecc, #7d7c7a); border-radius: 0.4cqw 0.4cqw 1.4cqw 1.4cqw;
  box-shadow: 0 1.8cqw 2.2cqw -0.6cqw rgba(10, 4, 0, 0.7);
}
.hd-play {
  position: absolute; inset: 0; margin: auto; z-index: 3;
  width: clamp(56px, 11.5cqw, 116px); height: clamp(56px, 11.5cqw, 116px); border-radius: 50%;
  border: 0; padding: 0; background: #fff; color: var(--ink, #14110f); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hd-play:hover { transform: scale(1.06); }
.hd-play svg { width: 40%; height: 40%; margin-left: 6%; }
.hd-play[hidden] { display: none; }
.hd-play:focus-visible { outline: 3px solid #e04a1d; outline-offset: 4px; }
.hd-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.22); z-index: 3; pointer-events: none; }
.hd-progress span { display: block; height: 100%; width: 0; background: #e04a1d; }

/* ---------- Desktop: copy and film on the left, form on the right ---------- */
@media (min-width: 961px) {
  .ah { padding-top: clamp(112px, 11vw, 150px); }
  .ah-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); grid-template-areas: "copy form" "stage form"; gap: 40px clamp(40px, 5vw, 84px); align-items: start; }
  .ah h1 { font-size: clamp(2.9rem, 4.6vw, 4.7rem); font-weight: 300; line-height: 0.98; letter-spacing: -0.05em; }
  .ah-lede { font-size: clamp(1.1rem, 1.35vw, 1.3rem); font-weight: 300; }
  .ah-form { margin-top: 6px; position: sticky; top: 24px; }
}
@media (max-width: 720px) {
  body.lp-ad .lp-header .btn { padding-inline: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-photo, .ah-beam, .ah-copy > *, .ah-stage { animation: none; }
  .hd-play { transition: none; }
  .hd-play:hover { transform: none; }
}

/* ---------- "Our team has worked with": a slow horizontal scroll, full-colour logos ---------- */
.lp-brands { background: var(--paper); border-bottom: 1px solid var(--rule); padding-block: clamp(26px, 4vw, 40px); }
.lp-brands-title { margin: 0 0 clamp(18px, 2.6vw, 26px); text-align: center; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-muted); }
.lp-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.lp-brand-track {
  --gap: clamp(48px, 7vw, 96px);
  display: flex; align-items: center; gap: var(--gap); width: max-content; margin: 0; padding: 0 var(--gap) 0 0; list-style: none;
  animation: lp-scroll 40s linear infinite;
}
.lp-brand-track li { flex: none; display: flex; align-items: center; }
.lp-marquee:hover .lp-brand-track { animation-play-state: paused; }
@keyframes lp-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .lp-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .lp-brand-track { animation: none; }
}

/* ---------- Motion support ---------- */
.ah-pz { position: absolute; left: 0; top: -5%; width: 100%; height: 110%; will-change: transform; }
.ah-pz .ah-photo { top: 0; height: 100%; }
/* word masks for the heading reveals */
.lp-ad main h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lp-ad main h2 .w > span { display: inline-block; }

/* Floating "free website review" button on desktop: shown once the hero form has scrolled away (phones keep the bottom bar) */
@media (min-width: 721px) {
  .lp-sticky { display: block; position: fixed; right: 24px; bottom: 24px; inset-inline-start: auto; z-index: 120; padding: 0; background: none; box-shadow: none; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease; }
  .lp-sticky .btn { box-shadow: 0 14px 34px -12px rgba(20, 8, 0, 0.55); }
  .lp-sticky.is-away { transform: translateY(24px); opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .ah-pz { will-change: auto; } .lp-sticky { transition: none; } }

body.lp-ad .lp-header .header-call { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
