/* ============================================================
   AH.GROUP — styles
   Palette: navy #070048 · orange #FBAC43 · lavender #DBE2FF
   ============================================================ */
:root {
  --navy: #070048;
  --navy-2: #0d0a52;
  --orange: #FBAC43;
  --orange-d: #f39d2a;
  --lav: #DBE2FF;
  --lav-2: #e7ebff;
  --ink: #0a0a3c;
  --paper: #F8F9FB;
  --muted: #5b5f78;
  --line: #e5e8f2;
  --r: 22px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden
}

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Nunito", sans-serif
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none
}

img {
  max-width: 100%;
  display: block
}

section {
  position: relative;
  max-width: 100%
}

/* ---------- Placeholder system ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(7, 0, 72, .04) 0 12px, rgba(7, 0, 72, .07) 12px 24px);
  border: 2px dashed rgba(7, 0, 72, .28);
  border-radius: 14px;
  color: rgba(7, 0, 72, .55);
  overflow: hidden;
}

.ph::after {
  content: attr(data-label);
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-align: center;
  line-height: 1.35;
  padding: 6px 8px;
}

.ph::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(7, 0, 72, .18);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm1 2v7.6l3.8-3.2 3 2.5 3.4-3 3.8 3.3V7Zm4 3a1.6 1.6 0 1 0 0-3.2A1.6 1.6 0 0 0 9 10Z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm1 2v7.6l3.8-3.2 3 2.5 3.4-3 3.8 3.3V7Zm4 3a1.6 1.6 0 1 0 0-3.2A1.6 1.6 0 0 0 9 10Z'/></svg>") center/contain no-repeat;
}

.ph--octo,
.ph--octo-sign {
  border-color: rgba(251, 172, 67, .6);
  color: var(--orange-d);
  background: repeating-linear-gradient(45deg, rgba(251, 172, 67, .08) 0 12px, rgba(251, 172, 67, .16) 12px 24px);
}

.ph--octo::before,
.ph--octo-sign::before {
  background: rgba(251, 172, 67, .55)
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 13px 26px;
  border-radius: 12px;
  cursor: pointer;
  border: 0;
  color: #fff;
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
}

.btn--orange {
  background: var(--orange)
}

.btn--orange:hover {
  background: var(--orange-d);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(251, 172, 67, .42)
}

.btn--navy {
  background: var(--navy)
}

.btn--navy:hover {
  background: #120c66;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(7, 0, 72, .35)
}

.btn--lg {
  padding: 16px 40px;
  font-size: 15px;
  border-radius: 6px
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 249, 251, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}

.nav.scrolled {
  box-shadow: 0 6px 24px rgba(7, 0, 72, .08)
}

.nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px
}

.brand__logo {
  width: 110px;
  height: 48px;
  border-radius: 10px
}

.ph--logo {
  background: repeating-linear-gradient(45deg, rgba(7, 0, 72, .05) 0 10px, rgba(7, 0, 72, .09) 10px 20px)
}

.brand__name {
  font-family: "Montserrat";
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: .01em
}

.nav__links {
  margin-left: auto;
  display: flex;
  gap: 34px
}

.nav__links a {
  font-family: "Montserrat";
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .03em;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
  transition: width .28s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--orange-d)
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  width: 100%
}

.nav__cta {
  padding: 12px 32px
}

.nav__lang {
  font-family: "Montserrat";
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 6px 14px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.nav__lang:hover {
  background: var(--navy);
  color: #fff;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px
}

.nav__burger span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: .3s
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 40px 20px 70px;
  text-align: center;
  background: var(--paper);
  overflow: hidden
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: .5;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='90' viewBox='0 0 80 90'><g fill='none' stroke='%23dfe3f2' stroke-width='3'><path d='M16 8 L30 34 L2 34 Z'/><path d='M50 46 L64 72 L36 72 Z'/></g></svg>");
}

.hero__stage {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 640px;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ── Single hero board (combined octopus + sign image) ── */
.hero-board {
  position: relative;
  top: -30px;
  width: 82%;
  max-width: 1000px;
  flex-shrink: 0;
  z-index: 3;
  transform-origin: top center;
  animation: hang 5.5s ease-in-out infinite;
}

.hero-board__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-board .ph--sign {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 24px;
  border-color: rgba(7, 0, 72, .22)
}

/* octopus shared — used in other sections */
.octo {
  position: absolute;
  z-index: 4
}

.octo__img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.ph--octo {
  width: 100%;
  height: 100%;
  border-radius: 26px
}

@keyframes sway {
  0%, 100% { transform: translateX(-50%) rotate(-1.6deg) }
  50%       { transform: translateX(-50%) rotate(1.6deg) }
}

@keyframes hang {
  0%, 100% { transform: rotate(-1.6deg) }
  50%       { transform: rotate(1.6deg) }
}

.float {
  animation: float 6s ease-in-out infinite
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-16px)
  }
}

.hero__copy {
  position: relative;
  z-index: 5;
  margin-top: 6px
}

.display {
  font-weight: 900;
  font-size: clamp(44px, 7vw, 92px);
  color: var(--navy);
  letter-spacing: -.01em;
  line-height: 1
}

.hero__sub {
  font-size: clamp(18px, 2.4vw, 27px);
  color: var(--navy);
  opacity: .9;
  margin: 14px 0 30px;
  font-weight: 600
}

/* ============================================================
   INTEGRATED AGENCIES
   ============================================================ */
.agencies {
  padding: 30px 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: visible;
  z-index: 6
}

.rule-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 20px 0 60px
}

.rule-title span {
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
  white-space: nowrap
}

.rule-title::before,
.rule-title::after {
  content: "";
  height: 2px;
  background: var(--navy);
  flex: 1;
  max-width: 220px
}

.agencies__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1000px;
  margin: 0 auto
}

.agcard {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 24px 50px -22px rgba(7, 0, 72, .18);
  transition: transform .35s ease, box-shadow .35s ease;
}

.agcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 60px -22px rgba(7, 0, 72, .28)
}

.agcard__logo {
  background: var(--lav);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 22px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agcard__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ph--wide {
  width: 100%;
  height: 130px
}

.agcard__desc {
  font-family: "Montserrat";
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--navy);
  line-height: 1.6
}

.octo--peek {
  position: relative;
  left: 0;
  margin: -10px auto -180px;
  width: 460px;
  height: 555px;
  z-index: 10;
  animation: none
}

.octo--peek .ph--octo {
  border-radius: 40px 40px 0 0
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--navy);
  color: #eef;
  padding: 120px 20px 0;
  overflow: visible;
  position: relative;
  z-index: 5
}

.about__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding-bottom: 120px
}

.about__media {
  position: relative;
  padding: 0 0 46px 0
}

.about__frame {
  position: absolute;
  left: 60px;
  top: 60px;
  right: -30px;
  bottom: 0;
  border: 3px solid var(--orange);
  border-radius: 18px;
  z-index: 0
}

.ph--about {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1/.92;
  border-radius: 18px;
  border-color: rgba(255, 255, 255, .35);
  color: rgba(255, 255, 255, .7);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 12px, rgba(255, 255, 255, .1) 12px 24px)
}

.about__title {
  color: var(--orange);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 20px
}

.about__text p {
  font-size: 17px;
  line-height: 1.75;
  color: #dcd7f2;
  margin: 0 0 18px;
  max-width: 60ch
}

.octo--about {
  right: 2%;
  bottom: -160px;
  width: 420px;
  height: 440px;
  position: absolute;
  z-index: 6
}

.octo--about .ph--octo {
  border-radius: 40px
}

/* ============================================================
   CLIENTS
   ============================================================ */
.clients {
  background: var(--paper);
  padding: 80px 0 90px;
  text-align: center;
  overflow: hidden
}

.uline-title {
  display: inline-block;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
  padding-bottom: 10px;
  position: relative;
  margin: 0 auto
}

.uline-title span {
  position: relative
}

.uline-title span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), var(--navy))
}

.clients__sub {
  max-width: 660px;
  margin: 34px auto 50px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  padding: 0 20px
}

.marquee {
  overflow: hidden;
  padding: 14px 0;
  direction: ltr;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent)
}

.marquee__track {
  display: flex;
  gap: 34px;
  width: max-content;
  padding: 0 17px;
  direction: ltr
}

.marquee__track--l {
  animation: scrollL 34s linear infinite
}

.marquee__track--r {
  animation: scrollR 34s linear infinite
}

.ph--client {
  flex: 0 0 auto;
  width: 200px;
  height: 120px;
  background: var(--lav);
  border-color: rgba(7, 0, 72, .18);
  color: rgba(7, 0, 72, .4)
}

.client-logo {
  flex: 0 0 auto;
  width: 200px;
  height: 120px;
  object-fit: contain;
  padding: 16px 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(7, 0, 72, .06)
}

@keyframes scrollL {
  to {
    transform: translateX(-50%)
  }
}

@keyframes scrollR {
  from {
    transform: translateX(-50%)
  }

  to {
    transform: translateX(0)
  }
}

/* ============================================================
   SHOWCASE SECTIONS
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1. BASE — 1st showcase = Recovery (lavender)
      background & overflow set here so they work even when
      the HTML has only class="showcase" (old server template).
   ───────────────────────────────────────────────────────────── */
.showcase {
  position: relative;
  padding: 80px 20px 100px;
  background: #c8d4ff;   /* periwinkle lavender */
  overflow: visible;     /* octopus bleeds into next section */
}

.showcase__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ─────────────────────────────────────────────────────────────
   2. EXPERTS — 2nd showcase (navy dark)
      Selector A: .showcase + .showcase  → works with old HTML
                  (just class="showcase", no modifier classes)
      Selector B: .showcase--odd / .showcase--experts
                  → works with updated HTML (modifier classes)
   ───────────────────────────────────────────────────────────── */
.showcase + .showcase,
.showcase--odd,
.showcase--experts {
  background: #070048;
  color: #e8eaff;
  padding-top: 75px;    /* clears the octopus bleeding in from above */
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────
   2a. Recovery modifier classes (new HTML) — same as base,
       but explicit so specificity never causes a regression
   ───────────────────────────────────────────────────────────── */
.showcase--even,
.showcase--recovery {
  background: #c8d4ff;
  overflow: visible;
}

/* ─────────────────────────────────────────────────────────────
   4. LOGO
   ───────────────────────────────────────────────────────────── */
.showcase__logo {
  display: block;
  width: auto;
  max-width: 220px;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  margin-bottom: 24px;
}

.showcase__logo--exp {
  max-width: 160px;
  max-height: 160px;
}

/* ─────────────────────────────────────────────────────────────
   5. HEADING + UNDERLINE BAR  (.showcase__heading.uline-sm)
   ───────────────────────────────────────────────────────────── */
.showcase__heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 24px);
  color: #070048;
  position: relative;
  margin-bottom: 30px;
}

/* uline-sm: padding room for the ::after bar */
.uline-sm {
  padding-bottom: 16px;
}

.uline-sm::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 110px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #FBAC43, #070048);
}

/* Dark section overrides */
.showcase + .showcase .showcase__heading,
.showcase--odd .showcase__heading,
.showcase--experts .showcase__heading {
  color: #ffffff;
}

.showcase + .showcase .uline-sm::after,
.showcase--odd .uline-sm::after,
.showcase--experts .uline-sm::after {
  background: linear-gradient(90deg, #FBAC43, #ffffff);
}

/* ─────────────────────────────────────────────────────────────
   6. TICK / SERVICES LIST
   ───────────────────────────────────────────────────────────── */
.tick {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tick li {
  position: relative;
  padding-left: 26px;
  margin: 14px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: #070048;
}

.tick li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #070048;
}

/* Light variant — used inside dark (navy) section */
.tick--light li {
  color: #dde3ff;
}

.tick--light li::before {
  background: #FBAC43;
}

/* ─────────────────────────────────────────────────────────────
   7. LAYOUT — odd section puts content on the right
   ───────────────────────────────────────────────────────────── */
.showcase__left--right {
  order: 2;
}

/* ─────────────────────────────────────────────────────────────
   8. TABS  (Videos / Images / Websites)
   ───────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 32px;
  border-bottom: 2px solid rgba(7, 0, 72, 0.15);
  margin-bottom: 32px;
}

/* Dark section tab border */
.showcase + .showcase .tabs,
.showcase--odd .tabs,
.showcase--experts .tabs {
  border-color: rgba(255, 255, 255, 0.2);
}

.tabs__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #070048;
  position: relative;
  opacity: 0.5;
  transition: opacity 0.2s;
}

/* Dark section tab text */
.showcase + .showcase .tabs__btn,
.showcase--odd .tabs__btn,
.showcase--experts .tabs__btn {
  color: #ffffff;
}

/* Active indicator bar */
.tabs__btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: #FBAC43;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.tabs__btn.is-active {
  opacity: 1;
}

.tabs__btn.is-active::after {
  transform: scaleX(1);
}

/* ─────────────────────────────────────────────────────────────
   9. PDF CARDS (Visual Identity)
   ───────────────────────────────────────────────────────────── */
.pdf-shelf {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 20px;
  min-height: 420px;
  justify-content: center;
}

/* Single document card */
.pdf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

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

.pdf-card__page {
  position: relative;
  width: 230px;
  height: 306px;
  background: #fff;
  border-radius: 3px 22px 3px 3px;
  box-shadow:
    0 2px 6px rgba(7, 0, 72, .08),
    0 12px 36px rgba(7, 0, 72, .16);
  overflow: hidden;
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform .28s ease, box-shadow .28s ease;
}

.pdf-card:hover .pdf-card__page {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 4px 12px rgba(7, 0, 72, .1),
    0 24px 60px rgba(7, 0, 72, .26);
}

/* Folded corner */
.pdf-card__fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 38px 38px 0;
  border-color: transparent var(--lav-2) transparent transparent;
  z-index: 1;
}

.pdf-card__fold::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -38px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 38px 38px 0 0;
  border-color: rgba(7, 0, 72, .07) transparent transparent transparent;
}

/* Fake text lines */
.pdf-card__lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  flex: 1;
}

.pdf-card__lines span {
  height: 7px;
  background: var(--lav);
  border-radius: 4px;
}

.pdf-card__lines span:nth-child(2)  { width: 88%; }
.pdf-card__lines span:nth-child(3)  { width: 75%; }
.pdf-card__lines span:nth-child(5)  { width: 92%; }
.pdf-card__lines span:nth-child(6)  { width: 80%; }
.pdf-card__lines span:nth-child(8)  { width: 65%; }
.pdf-card__line--s                  { width: 45% !important; }

/* PDF badge */
.pdf-card__badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #dc2626;
  color: #fff;
  font-family: "Montserrat";
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .12em;
  padding: 3px 9px;
  border-radius: 5px;
  z-index: 1;
}

/* Hover overlay */
.pdf-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 0, 72, .68);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-family: "Montserrat";
  font-weight: 700;
  font-size: 13px;
  opacity: 0;
  transition: opacity .25s ease;
  border-radius: inherit;
}

.pdf-card:hover .pdf-card__overlay {
  opacity: 1;
}

.pdf-card__title {
  font-family: "Montserrat";
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  text-align: center;
  max-width: 230px;
  margin: 0;
  line-height: 1.4;
}

/* Navigation */
.pdf-shelf__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.pdf-shelf__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.pdf-shelf__btn:hover {
  background: var(--navy);
  color: #fff;
}

.pdf-shelf__counter {
  font-family: "Montserrat";
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  min-width: 50px;
  text-align: center;
}

/* Empty state */
.pdf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--muted);
  font-family: "Montserrat";
  font-size: 14px;
  width: 100%;
}

/* Dark showcase (Experts) overrides */
.showcase--odd .pdf-card__page,
.showcase + .showcase .pdf-card__page {
  background: #1a1660;
}

.showcase--odd .pdf-card__lines span,
.showcase + .showcase .pdf-card__lines span {
  background: rgba(232, 234, 255, .2);
}

.showcase--odd .pdf-card__fold,
.showcase + .showcase .pdf-card__fold {
  border-right-color: #2d29a0;
}

.showcase--odd .pdf-card__title,
.showcase + .showcase .pdf-card__title { color: #e8eaff; }

.showcase--odd .pdf-shelf__btn,
.showcase + .showcase .pdf-shelf__btn { border-color: #e8eaff; color: #e8eaff; }

.showcase--odd .pdf-shelf__btn:hover,
.showcase + .showcase .pdf-shelf__btn:hover { background: #e8eaff; color: var(--navy); }

.showcase--odd .pdf-shelf__counter,
.showcase + .showcase .pdf-shelf__counter { color: #e8eaff; }

/* ── 9. PHONE MOCKUP CLUSTER
   ───────────────────────────────────────────────────────────── */
.phones {
  position: relative;
  height: 420px;          /* fixed height so the grid cell is tall enough */
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  position: absolute;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s ease;
}

/* Placeholder pattern when no image is set */
.phone .ph--phone {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: repeating-linear-gradient(
    45deg,
    rgba(200, 210, 255, 0.65) 0 12px,
    rgba(200, 210, 255, 0.92) 12px 24px
  );
  border-color: rgba(7, 0, 72, 0.25);
  color: rgba(7, 0, 72, 0.45);
}

.phone-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .35s ease;
}

.phone-site {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f0f3ff;
  color: var(--navy);
}

.phone-site__domain {
  font-size: .6rem;
  font-weight: 600;
  opacity: .55;
  word-break: break-all;
  padding: 0 10px;
  text-align: center;
}

.phone[data-lightbox-src],
.phone[data-href] {
  cursor: pointer;
}

.phone[data-lightbox-src]:hover {
  box-shadow: 0 24px 56px -10px rgba(0, 0, 0, 0.52);
}

/* ── Phone positions (a=far-left … e=far-right, c=center) ── */

/* Center — largest, front */
.phone--c {
  width: 195px;
  height: 350px;
  z-index: 5;
}

/* Inner left */
.phone--b {
  width: 155px;
  height: 280px;
  left: 10%;
  top: 38px;
  z-index: 4;
  transform: rotate(-6deg);
}

/* Inner right */
.phone--d {
  width: 155px;
  height: 280px;
  right: 10%;
  top: 38px;
  z-index: 4;
  transform: rotate(6deg);
}

/* Outer left */
.phone--a {
  width: 120px;
  height: 215px;
  left: -1%;
  top: 88px;
  z-index: 3;
  transform: rotate(-11deg);
}

/* Outer right */
.phone--e {
  width: 120px;
  height: 215px;
  right: -1%;
  top: 88px;
  z-index: 3;
  transform: rotate(11deg);
}

/* Hover: inner phones lift slightly */
.phones:hover .phone--b { transform: rotate(-9deg) translateY(-10px); }
.phones:hover .phone--d { transform: rotate(9deg)  translateY(-10px); }

/* Play button overlay on center phone */
.play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background:
    rgba(255, 255, 255, 0.3)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 7v10l8-5z'/></svg>")
    center / 26px no-repeat;
  backdrop-filter: blur(3px);
  z-index: 9;
}

/* ─────────────────────────────────────────────────────────────
   10. OCTOPUS — bleeds from Recovery section downward into Experts
   Parent (.showcase--recovery) has overflow:visible & position:relative
   ───────────────────────────────────────────────────────────── */
.octo--recovery {
  position: absolute;
  bottom: -120px;         /* how far the mascot bleeds below Recovery */
  left: 2%;
  width: 260px;
  height: 310px;
  z-index: 10;
}

.octo--recovery img,
.octo--recovery .ph--octo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 40px;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--paper);
  position: relative;
  overflow: visible;
  z-index: 10;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 80px 20px 60px;
}

.cta__copy {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 36px;
  padding-left: 42%;   /* clear the octopus on the left */
}

.cta__lead {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--navy);
  max-width: 460px;
  line-height: 1.45;
}

.octo--cta {
  position: absolute;
  left: 2%;
  bottom: 0;
  width: 500px;
  height: 460px;
  z-index: 20;
}

.octo--cta img,
.octo--cta .ph--octo-sign {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 30px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: #eef;
  padding: 70px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 100%
}

.footer__col h4 {
  font-family: "Montserrat";
  color: var(--orange);
  font-size: 20px;
  letter-spacing: .05em;
  margin-bottom: 24px
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px
}

.footer__brand .ph--logo {
  width: 110px;
  height: 48px;
  background: #fff;
  border-color: rgba(7, 0, 72, .15)
}

.footer__name {
  font-family: "Montserrat";
  font-weight: 800;
  font-size: 24px;
  color: var(--orange)
}

.footer__row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  margin: 16px 0;
  color: #eef
}

.ico {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--navy-2);
  display: grid;
  place-items: center;
  color: #fff
}

.ico svg {
  width: 18px;
  height: 18px
}

.social {
  display: flex;
  gap: 18px
}

.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  color: #fff;
  transition: .25s
}

.social a svg {
  width: 18px;
  height: 18px
}

.social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
  transform: translateY(-4px)
}

/* ============================================================
   PHONE FLOAT ANIMATIONS (staggered)
   ============================================================ */
.phone--a { animation: float 6.0s 0.0s ease-in-out infinite; }
.phone--b { animation: float 5.5s 0.4s ease-in-out infinite; }
.phone--c { animation: float 6.5s 0.8s ease-in-out infinite; }
.phone--d { animation: float 5.5s 0.2s ease-in-out infinite; }
.phone--e { animation: float 6.0s 0.6s ease-in-out infinite; }

/* ============================================================
   RTL SUPPORT
   ============================================================ */
[dir="rtl"] .tick li {
  padding-left: 0;
  padding-right: 26px;
  text-align: right;
}

[dir="rtl"] .tick li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .uline-sm::after {
  left: auto;
  right: 0;
}

/* CTA: keep same layout in Arabic — octopus stays left, text stays right */
[dir="rtl"] .cta__copy {
  text-align: right;
}

/* Marquee: physical mask so fade direction never changes with RTL */
[dir="rtl"] .marquee {
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 0, 72, .88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10001;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, .32);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10001;
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, .32);
}

[dir="rtl"] .lightbox__close { right: auto; left: 22px; }
[dir="rtl"] .lightbox__prev  { left: auto;  right: 20px; }
[dir="rtl"] .lightbox__next  { right: auto; left: 20px; }

.lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-family: "Montserrat";
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  pointer-events: none;
}

.lightbox__body {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
}

.lightbox__media {
  max-width: 88vw;
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  object-fit: contain;
}

.lightbox__frame {
  width: 88vw;
  height: 80vh;
  border: none;
  border-radius: 14px;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0s)
}

.reveal.in {
  opacity: 1;
  transform: none
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:900px) {

  body {
    position: relative;
    overflow-x: clip
  }

  .hero,
  .agencies,
  .about,
  .clients,
  .showcase,
  .showcase--even,
  .showcase--recovery,
  .cta,
  .footer {
    width: 100%;
    max-width: 100%;
    overflow-x: clip
  }

  /* ── Mobile nav: inline expanding panel ── */
  .nav__inner {
    flex-wrap: wrap;
    padding: 0 20px;
    gap: 0
  }

  .brand {
    flex: 1;
    padding: 14px 0
  }

  .nav__burger {
    display: flex;
    align-self: center;
    margin-left: 12px
  }

  /* Links: collapsed by default */
  .nav__links {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    position: static;
    background: transparent;
    box-shadow: none;
    transform: none;
    z-index: auto
  }

  .nav__links a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px
  }

  .nav__links a:last-child {
    border-bottom: none
  }

  /* Lang switcher: sits next to burger on mobile */
  .nav__lang {
    order: 2;
    align-self: center;
    padding: 5px 10px;
    font-size: 12px;
  }

  /* CTA: collapsed by default */
  .nav__cta {
    order: 4;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s ease, padding .35s ease, opacity .3s ease;
    position: static;
    transform: none;
    z-index: auto;
    margin: 0
  }

  /* ── Open state ── */
  .nav.open .nav__links {
    max-height: 600px;
    padding: 8px 0 12px;
    border-top: 2px solid var(--orange)
  }

  .nav.open .nav__cta {
    max-height: 80px;
    padding: 12px 32px;
    margin: 12px auto 20px;
    opacity: 1
  }

  .nav.open .nav__burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg)
  }

  .nav.open .nav__burger span:nth-child(2) {
    opacity: 0
  }

  .nav.open .nav__burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg)
  }

  .hero__stage {
    height: 480px
  }

  .hero-board {
    width: 92%;
    top: -20px
  }

  .agencies__grid {
    grid-template-columns: 1fr;
    gap: 34px;
    max-width: 520px
  }

  .about__inner,
  .showcase__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    min-width: 0
  }

  .about__media,
  .about__text,
  .showcase__left,
  .showcase__right,
  .cta__copy,
  .footer__col {
    min-width: 0;
    max-width: 100%
  }

  .rule-title {
    gap: 14px;
    max-width: 100%
  }

  .rule-title span {
    white-space: normal;
    max-width: calc(100vw - 96px);
    line-height: 1.18
  }

  .about__frame {
    display: none
  }

  .octo--about,
  .octo--recovery {
    position: relative;
    margin: 20px auto 0;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none
  }

  /* Remove the extra top-padding reserved for the bleeding octopus */
  .showcase--odd,
  .showcase--experts {
    padding-top: 80px
  }

  .showcase__left--right {
    order: 0
  }

  .tabs {
    gap: 22px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none
  }

  .tabs::-webkit-scrollbar {
    display: none
  }

  .tabs__btn {
    flex: 0 0 auto;
    white-space: nowrap
  }

  .phones {
    height: auto;
    min-height: 360px;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 22px 18px 34px;
    margin: 0;
    max-width: 100%;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none
  }

  .phones::-webkit-scrollbar {
    display: none
  }

  .phone,
  .phone--a,
  .phone--b,
  .phone--c,
  .phone--d,
  .phone--e {
    position: relative;
    inset: auto;
    flex: 0 0 180px;
    width: 180px;
    height: 322px;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    animation: none;
    scroll-snap-align: center
  }

  .phones:hover .phone--b,
  .phones:hover .phone--d {
    transform: none
  }

  .cta {
    flex-direction: column;
    min-height: auto;
    padding: 40px 20px
  }

  .cta__copy {
    align-items: center;
    text-align: center;
    padding-left: 0
  }

  .octo--cta {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 0 auto 24px;
    width: 260px;
    height: 240px
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: left;
    overflow-wrap: anywhere
  }
}

@media (max-width:520px) {

  .rule-title::before,
  .rule-title::after {
    max-width: 30px
  }

  .hero__stage {
    height: 440px
  }

  .hero__stage {
    height: 380px
  }

  .hero-board {
    width: 98%;
    top: -10px
  }

  .ph--client {
    width: 150px;
    height: 96px
  }

  .phones {
    min-height: 326px;
    gap: 14px;
    padding-inline: 16px;
    margin-inline: 0
  }

  .phone,
  .phone--a,
  .phone--b,
  .phone--c,
  .phone--d,
  .phone--e {
    flex-basis: 162px;
    width: 162px;
    height: 290px
  }
}

/* reduced motion */
@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important
  }

  .reveal {
    opacity: 1;
    transform: none
  }

  .marquee__track {
    transform: none
  }
}
