.av-page {
  --av-bg: #07070a;
  --av-surface: #101014;
  --av-line: rgba(255,255,255,.12);
  --av-muted: #aaa7b2;
  --av-purple: #cb99ff;
  --av-mint: #78e4bb;
}

.av-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.av-hero {
  position: relative;
  min-height: min(880px, calc(100svh - 28px)) !important;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 108px 0 36px !important;
  border: 0 !important;
  background: #050507;
}

.av-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(4,4,7,.97) 0%, rgba(4,4,7,.88) 38%, rgba(4,4,7,.3) 70%, rgba(4,4,7,.56) 100%),
    linear-gradient(0deg, #07070a 0%, transparent 42%);
}

.av-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .15;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, #000, transparent 72%);
}

.av-video-placeholder {
  position: absolute;
  z-index: 2;
  top: 112px;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 56px;
  width: min(42vw, 500px);
  overflow: hidden;
  border: 1px solid rgba(203,153,255,.28);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    #0f0f14;
  background-size: 38px 38px;
  box-shadow: 0 32px 90px rgba(0,0,0,.36);
}

.av-video-placeholder::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 70% 26%, rgba(203,153,255,.17), transparent 42%);
}

.av-video-placeholder-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
}

.av-video-placeholder i { color: var(--av-purple); font-size: 2rem; }
.av-video-placeholder span { color: #f8f6f2; font-size: 1rem; font-weight: 700; }
.av-video-placeholder small { color: #8f8b96; font-size: .72rem; text-transform: uppercase; }

.av-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.av-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--av-purple);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.av-kicker::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
}

.av-hero h1 {
  max-width: 790px !important;
  margin: 0 !important;
  color: #f8f6f2;
  font-size: 4.2rem !important;
  line-height: .96 !important;
  text-align: left;
}

.av-hero h1 em {
  color: var(--av-purple);
  font-style: normal;
}

.av-hero-copy {
  max-width: 680px !important;
  margin: 20px 0 0 !important;
  color: #d0ccd5;
  font-size: 1.05rem;
  line-height: 1.72;
  text-align: left;
}

.av-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.av-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--av-purple);
  color: #0b080f;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.av-button:hover {
  transform: translateY(-2px);
  background: #d8b2ff;
  box-shadow: 0 14px 42px rgba(203,153,255,.22);
}

.av-button.secondary {
  border-color: rgba(255,255,255,.2);
  background: rgba(8,8,11,.62);
  color: #fff;
  backdrop-filter: blur(10px);
}

.av-button.secondary:hover {
  background: rgba(255,255,255,.1);
  box-shadow: none;
}

.av-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 0;
  padding: 0;
  color: #a9a5af;
  font-size: .78rem;
  list-style: none;
}

.av-hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.av-hero-notes i { color: var(--av-mint); }

.av-proof {
  padding: 34px 0;
  border-block: 1px solid var(--av-line);
  background: #0a0a0e;
}

.av-proof-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  align-items: center;
}

.av-proof-title {
  padding-right: 28px;
  color: #f8f6f2;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
}

.av-proof-item {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-inline: 24px;
  border-left: 1px solid var(--av-line);
  color: #c3bfc8;
  font-size: .82rem;
  line-height: 1.45;
}

.av-proof-item i {
  color: var(--av-purple);
  font-size: 1.1rem;
}

.av-section {
  position: relative;
  overflow: hidden;
  padding: 112px 0;
  border-top: 1px solid var(--av-line);
}

.av-section.alt { background: #0a0a0e; }

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

.av-section-head h2 {
  margin: 12px 0 16px;
  color: #f8f6f2;
  font-size: 4rem;
  line-height: 1.04;
}

.av-section-head p {
  max-width: 700px;
  margin: 0;
  color: var(--av-muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.av-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--av-line);
  border-left: 1px solid var(--av-line);
}

.av-service {
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid var(--av-line);
  border-bottom: 1px solid var(--av-line);
  background: rgba(255,255,255,.012);
  transition: background .25s ease;
}

.av-service:hover { background: rgba(203,153,255,.045); }

.av-service-number {
  display: block;
  margin-bottom: 48px;
  color: var(--av-purple);
  font-size: .72rem;
  font-weight: 800;
}

.av-service i {
  display: block;
  margin-bottom: 18px;
  color: #f8f6f2;
  font-size: 1.55rem;
}

.av-service h3 {
  margin: 0 0 10px;
  color: #f8f6f2;
  font-size: 1.16rem;
}

.av-service p {
  margin: 0;
  color: var(--av-muted);
  font-size: .88rem;
  line-height: 1.65;
}

.av-statement {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 70px;
}

.av-statement-copy h2 {
  margin: 12px 0 20px;
  color: #f8f6f2;
  font-size: 4rem;
  line-height: 1.02;
}

.av-statement-copy > p {
  margin: 0;
  color: var(--av-muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.av-output-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--av-line);
  list-style: none;
}

.av-output-list li {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--av-line);
  color: #d1cdd6;
  font-size: .84rem;
}

.av-output-list i { color: var(--av-mint); }

.av-brand-panel {
  position: relative;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--av-line);
  border-radius: 8px;
  background: #101014;
}


.av-brand-panel > div { position: relative; z-index: 1; }
.av-brand-panel span { display: block; margin-bottom: 10px; color: var(--av-purple); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.av-brand-panel strong { display: block; color: #f8f6f2; font-size: 2rem; line-height: 1.1; }
.av-brand-panel p { margin: 16px 0 0; color: var(--av-muted); font-size: .88rem; line-height: 1.65; }

.av-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--av-line);
  border-left: 1px solid var(--av-line);
}

.av-process-step {
  min-height: 290px;
  padding: 28px;
  border-right: 1px solid var(--av-line);
  border-bottom: 1px solid var(--av-line);
}

.av-process-index {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 56px;
  border: 1px solid rgba(203,153,255,.42);
  border-radius: 50%;
  color: var(--av-purple);
  font-size: .72rem;
  font-weight: 800;
}

.av-process-step h3 {
  margin: 0 0 12px;
  color: #f8f6f2;
  font-size: 1.08rem;
}

.av-process-step p {
  margin: 0;
  color: var(--av-muted);
  font-size: .86rem;
  line-height: 1.65;
}

.av-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--av-line);
  background: var(--av-line);
}

.av-brief-column {
  padding: 42px;
  background: var(--av-bg);
}

.av-brief-column h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: #f8f6f2;
  font-size: 1.35rem;
}

.av-brief-column h3 i { color: var(--av-purple); }

.av-brief-column ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.av-brief-column li {
  display: flex;
  gap: 10px;
  color: #c1bdc7;
  font-size: .9rem;
  line-height: 1.55;
}

.av-brief-column li i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--av-mint);
}

.av-final {
  position: relative;
  overflow: hidden;
  padding: 118px 0;
  border-top: 1px solid var(--av-line);
  background: #0a0a0e;
}


.av-final-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.av-final h2 {
  margin: 12px 0 18px;
  color: #f8f6f2;
  font-size: 4.2rem;
  line-height: 1.02;
}

.av-final p {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--av-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 1023px) {
  .av-hero h1 { font-size: 4.5rem !important; }
  .av-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .av-statement { grid-template-columns: 1fr 360px; gap: 42px; }
  .av-statement-copy h2,
  .av-section-head h2,
  .av-final h2 { font-size: 3.25rem; }
  .av-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .av-proof-inner { grid-template-columns: 1fr 1fr; }
  .av-proof-title,
  .av-proof-item { min-height: 64px; border-bottom: 1px solid var(--av-line); }
}

@media (max-width: 767px) {
  .av-shell { width: min(100% - 28px, 1180px); }

  .av-hero {
    min-height: 820px !important;
    padding: 128px 0 58px !important;
  }

  .av-hero::before {
    background:
      linear-gradient(0deg, #07070a 0%, rgba(4,4,7,.72) 45%, rgba(4,4,7,.5) 100%),
      linear-gradient(90deg, rgba(4,4,7,.78), rgba(4,4,7,.28));
  }

  .av-hero h1 { font-size: 3.1rem !important; }
  .av-hero-copy { font-size: 1rem; }
  .av-hero-actions { display: grid; }
  .av-button { width: 100%; }
  .av-hero-notes { display: grid; gap: 8px; }

  .av-proof-inner { grid-template-columns: 1fr; }
  .av-proof-title,
  .av-proof-item {
    min-height: 54px;
    padding: 14px 0;
    border-left: 0;
  }

  .av-section { padding: 82px 0; }
  .av-section-head { margin-bottom: 36px; }
  .av-section-head h2,
  .av-statement-copy h2,
  .av-final h2 { font-size: 2.65rem; }

  .av-service-grid,
  .av-process,
  .av-brief { grid-template-columns: 1fr; }

  .av-service {
    min-height: 230px;
    padding: 26px;
  }

  .av-service-number { margin-bottom: 34px; }

  .av-statement { grid-template-columns: 1fr; gap: 42px; }
  .av-video-placeholder {
    position: relative;
    inset: auto;
    width: min(100% - 28px, 560px);
    min-height: 300px;
    margin: 112px auto 0;
  }

  .av-hero { display: block; min-height: auto !important; padding-bottom: 54px !important; }
  .av-hero .av-shell { margin-top: 36px; }
  .av-brand-panel { min-height: 390px; }
  .av-output-list { grid-template-columns: 1fr; }

  .av-process-step {
    min-height: 235px;
    padding: 26px;
  }

  .av-process-index { margin-bottom: 38px; }

  .av-brief-column { padding: 30px 24px; }
  .av-final { padding: 88px 0; }
}



@media (min-width: 768px) {
  .av-hero { align-items: center; }
  .av-hero .av-shell { position: relative; z-index: 3; }
  .av-hero-content { max-width: min(54vw, 650px); }
}


/* Explicit light/dark cadence based on the CRM landing page. */
body.brand-experience .av-page > .av-section:not(.alt) {
  background: #f1efeb !important;
  color: #171419;
}

body.brand-experience .av-page > .av-section:not(.alt) .av-section-head h2,
body.brand-experience .av-page > .av-section:not(.alt) .av-service h3,
body.brand-experience .av-page > .av-section:not(.alt) .av-process-step h3 { color: #171419; }
body.brand-experience .av-page > .av-section:not(.alt) .av-section-head p,
body.brand-experience .av-page > .av-section:not(.alt) .av-service p,
body.brand-experience .av-page > .av-section:not(.alt) .av-process-step p { color: #68636d; }
body.brand-experience .av-page > .av-section:not(.alt) .av-service,
body.brand-experience .av-page > .av-section:not(.alt) .av-process-step {
  border-color: rgba(23,20,25,.14);
  background: rgba(255,255,255,.54) !important;
}
body.brand-experience .av-page > .av-section:not(.alt) .av-service:hover,
body.brand-experience .av-page > .av-section:not(.alt) .av-process-step:hover {
  border-color: rgba(121,67,183,.45) !important;
  background: #fff !important;
}
body.brand-experience .av-page > .av-section:not(.alt) .av-service-number,
body.brand-experience .av-page > .av-section:not(.alt) .av-process-index { color: #7b7580; }

body.brand-experience .av-page > .av-section.alt { background: #09090d !important; color: #f8f6f2; }

body.brand-experience .av-page > .av-final {
  background: #f1efeb !important;
  color: #171419;
}
body.brand-experience .av-page > .av-final h2 { color: #171419; }
body.brand-experience .av-page > .av-final p { color: #68636d; }

/* This slot will receive the final 16:9 showreel. */
body.brand-experience .av-page > .av-hero > .av-video-placeholder {
  position: absolute;
  z-index: 2;
}

@media (max-width: 767px) {
  body.brand-experience .av-page > .av-hero > .av-video-placeholder {
    position: relative;
    z-index: 2;
  }
}


/* The future showreel uses a stable landscape slot. */
@media (min-width: 768px) {
  body.brand-experience .av-page > .av-hero > .av-video-placeholder {
    top: 50%;
    bottom: auto;
    aspect-ratio: 16 / 10;
    transform: translateY(-50%);
  }
}

@media (max-width: 767px) {
  body.brand-experience .av-page > .av-hero {
    display: flex;
    flex-direction: column;
    min-height: auto !important;
    padding: 118px 0 58px !important;
  }
  body.brand-experience .av-page > .av-hero > .av-shell {
    order: 1;
    margin-top: 0;
  }
  body.brand-experience .av-page > .av-hero > .av-video-placeholder {
    order: 2;
    width: min(100% - 28px, 560px);
    min-height: 0;
    aspect-ratio: 16 / 10;
    margin: 38px auto 0;
  }
}


.av-brand-panel { justify-content: flex-end; }


/* Accessible accents and borders on the editorial light sections. */
body.brand-experience .av-page > .av-section:not(.alt) .av-kicker,
body.brand-experience .av-page > .av-final .av-kicker {
  color: #6f35b5;
}

body.brand-experience .av-page > .av-section:not(.alt) .av-service-grid,
body.brand-experience .av-page > .av-section:not(.alt) .av-process {
  border-color: rgba(23, 20, 25, .14);
}

body.brand-experience .av-page > .av-section:not(.alt) .av-service i {
  color: #211d24;
}

body.brand-experience .av-page > .av-section:not(.alt) .av-service-number,
body.brand-experience .av-page > .av-section:not(.alt) .av-process-index {
  border-color: rgba(111, 53, 181, .42);
  color: #625b67;
}
