/* Al Afandi — living institution layer.
   Loaded after each page's inline styles. Tokens, layout, and motion only.
   Copy, metadata, and structured data stay in the HTML. */

@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: af-vt-out .22s ease both;
}
::view-transition-new(root) {
  animation: af-vt-in .4s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes af-vt-out {
  to { opacity: 0; transform: translate3d(0, -10px, 0); }
}
@keyframes af-vt-in {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
}

html.af-live {
  --navy: #10243A;
  --navy-2: #1A334C;
  --navy-ink: #0C1C2C;
  --gold: #C6A66B;
  --gold-soft: #E6D3A4;
  --gold-deep: #7A6240;
  --ink: #10243A;
  --muted: #5C6574;
  --muted-2: #6E7585;
  --bg: #F5F3EE;
  --bg-soft: #EBE6DC;
  --bg-navy-soft: #F3EFE6;
  --line: #E4DDD0;
  --line-2: #D4CBBA;
  --container: 1140px;
  --af-ease: cubic-bezier(.22, .61, .36, 1);
  --af-start: -1;
  background: var(--bg);
  scroll-behavior: smooth;
}
html[dir="rtl"].af-live { --af-start: 1; }

html.af-live,
html.af-live body { background: var(--bg); overflow-x: clip; }
html.af-live body { color: var(--ink); }

/* ---------- Nav ---------- */
html.af-live .nav { height: auto; min-height: 68px; padding-block: 8px; }
html.af-live header {
  background: rgba(245, 243, 238, .78);
  border-bottom: 1px solid rgba(16, 36, 58, .08);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  transition: box-shadow .35s var(--af-ease), background .35s var(--af-ease);
}
html.af-live header.af-scrolled {
  background: rgba(245, 243, 238, .92);
  box-shadow: 0 14px 36px -28px rgba(16, 36, 58, .65);
}
html.af-live .menu > a:not(.btn),
html.af-live .has-drop > a {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: 0 1.5px;
  transition: background-size .35s var(--af-ease), color .2s var(--af-ease);
}
html[dir="ltr"].af-live .menu > a:not(.btn),
html[dir="ltr"].af-live .has-drop > a { background-position: 0 100%; }
html.af-live .menu > a:not(.btn):hover,
html.af-live .has-drop > a:hover { background-size: 100% 1.5px; color: var(--navy); }

html[dir="ltr"].af-live .drop { right: auto; left: 0; }

html.af-live .has-drop .drop {
  display: flex;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 8px, 0);
  pointer-events: none;
  transition: opacity .22s var(--af-ease), transform .22s var(--af-ease), visibility .22s;
}
html.af-live .has-drop:hover .drop,
html.af-live .has-drop:focus-within .drop,
html.af-live .has-drop.open > .drop {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

html.af-live .burger span {
  transform-origin: center;
  transition: transform .28s var(--af-ease), opacity .2s linear;
}
html.af-live .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html.af-live .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
html.af-live .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Type & buttons ---------- */
html.af-live .head h2,
html.af-live .subhero h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.22;
  font-weight: 700;
}
html.af-live .btn { transition: transform .35s var(--af-ease), box-shadow .35s var(--af-ease), background .35s var(--af-ease), color .35s var(--af-ease), border-color .35s var(--af-ease); }
html.af-live .btn-gold {
  background: #C6A66B;
  color: #10243A;
  box-shadow: inset 0 0 0 1px rgba(16, 36, 58, .12);
}
html.af-live .btn-gold:hover {
  background: #E6D3A4;
  color: #10243A;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -16px rgba(16, 36, 58, .45);
}
html.af-live .btn-line:hover { transform: translateY(-2px); }
html.af-live :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
html.af-live .hero,
html.af-live .subhero {
  background:
    radial-gradient(ellipse 58% 80% at 100% -10%, rgba(198, 166, 107, .38), transparent 56%),
    radial-gradient(ellipse 42% 55% at 0% 110%, rgba(198, 166, 107, .16), transparent 62%),
    #10243A;
}
html.af-live .hero {
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
}
html.af-live .hero-inner,
html.af-live .subhero-in { max-width: min(980px, calc(100% - 8px)); }
html.af-live .hero h1 {
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.16;
  font-weight: 700;
  max-width: 14em;
  text-wrap: balance;
}
html[lang="en"].af-live .hero h1 {
  font-size: clamp(42px, 5.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 11em;
}
html.af-live .hero p,
html.af-live .subhero p { font-size: 18px; max-width: 38em; }
html.af-live .hero .eyebrow,
html.af-live .subhero .eyebrow,
html.af-live .cta .eyebrow { color: var(--gold-soft); }
html.af-live .crumb { color: #D5DCE8; }
html.af-live .crumb a:hover { color: var(--gold-soft); }

html.af-live .hero::after,
html.af-live .subhero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(52vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  inset-inline-end: -12%;
  top: -22%;
  background: radial-gradient(circle, rgba(198, 166, 107, .42), transparent 68%);
  pointer-events: none;
}
html.af-live .hero-inner,
html.af-live .subhero-in,
html.af-live .hero .glyph { z-index: 1; }

/* Headline stays visible for LCP. Supporting lines enter with the stylesheet, not after JS. */
@media (prefers-reduced-motion: no-preference) {
  html.af-live:not(.af-still) .hero .eyebrow,
  html.af-live:not(.af-still) .hero p,
  html.af-live:not(.af-still) .hero-actions,
  html.af-live:not(.af-still) .subhero .eyebrow,
  html.af-live:not(.af-still) .subhero .crumb,
  html.af-live:not(.af-still) .subhero p,
  html.af-live:not(.af-still) .subhero .btn {
    animation: af-rise .85s var(--af-ease) both;
  }
  html.af-live:not(.af-still) .hero p,
  html.af-live:not(.af-still) .subhero p { animation-delay: .1s; }
  html.af-live:not(.af-still) .hero-actions,
  html.af-live:not(.af-still) .subhero .btn { animation-delay: .2s; }
  html.af-live:not(.af-still) .hero::after,
  html.af-live:not(.af-still) .subhero::after { animation: af-orb 18s ease-in-out infinite; }
  html.af-live:not(.af-still) .hero .glyph { animation: af-glyph 20s ease-in-out infinite; }
  html.af-live:not(.af-still) .cta-mark { animation: af-mark 14s ease-in-out infinite; }
}
@keyframes af-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes af-orb {
  50% { transform: translate3d(calc(var(--af-start) * -26px), 22px, 0) scale(1.07); }
}
@keyframes af-glyph {
  0%, 100% { transform: translate3d(0, -50%, 0); }
  50% { transform: translate3d(calc(var(--af-start) * -14px), calc(-50% - 16px), 0); }
}
@keyframes af-mark {
  50% { transform: translate3d(0, -12px, 0) rotate(-4deg); }
}

/* ---------- Marquee (homepage, decorative duplicate of service names) ---------- */
html.af-live .af-marquee {
  overflow: clip;
  max-width: 100%;
  background: #10243A;
  color: var(--gold-soft);
  border-block: 1px solid rgba(198, 166, 107, .35);
  padding: 13px 0;
  user-select: none;
}
html.af-live .af-marquee-track {
  display: flex;
  width: max-content;
}
html.af-live .af-set { display: flex; align-items: center; }
html.af-live .af-marquee span {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  padding-inline: 1.35rem;
}
html.af-live .af-marquee span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 1.35rem;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

/* ---------- Sections ---------- */
html.af-live .section { padding: 72px 0; }
html.af-live .vm { background: var(--navy); }
html.af-live .divider { width: 56px; height: 3px; }

html.af-live .card,
html.af-live .sector,
html.af-live .step,
html.af-live .fi {
  position: relative;
  background: #fff;
  transition: transform .45s var(--af-ease), box-shadow .45s var(--af-ease), border-color .45s var(--af-ease);
}
html.af-live .card::after,
html.af-live .fi::after,
html.af-live .sector::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset-inline: 20px;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  pointer-events: none;
}
html[dir="rtl"].af-live .card::after,
html[dir="rtl"].af-live .fi::after,
html[dir="rtl"].af-live .sector::after { transform-origin: right center; }
html[dir="ltr"].af-live .card::after,
html[dir="ltr"].af-live .fi::after,
html[dir="ltr"].af-live .sector::after { transform-origin: left center; }
html.af-live .card:hover,
html.af-live .fi:hover,
html.af-live .sector:hover,
html.af-live .step:hover {
  border-color: transparent;
  box-shadow: 0 22px 44px -28px rgba(16, 36, 58, .55), 0 0 0 1px rgba(198, 166, 107, .35);
}
html.af-live .card:hover::after,
html.af-live .fi:hover::after,
html.af-live .sector:hover::after { transform: scaleX(1); }
html.af-live .card .more { transition: gap .25s var(--af-ease), color .25s; }
html.af-live .navy .card { background: rgba(255, 255, 255, .05); }
html.af-live .navy .card:hover { background: rgba(255, 255, 255, .09); }
html.af-live .navy .card p,
html.af-live .hero p,
html.af-live .subhero p,
html.af-live .cta p { color: #D5DCE8; }

/* Bento — seven service lines */
@media (min-width: 980px) {
  html.af-live #services .g3 {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  html.af-live #services .g3 > .card { grid-column: span 2; }
  html.af-live #services .g3 > .card:nth-child(1) {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 320px;
    padding: 34px 32px;
    display: flex;
    flex-direction: column;
    background: #10243A;
    border-color: transparent;
    color: #F5F3EE;
  }
  html.af-live #services .g3 > .card:nth-child(1) h3 {
    color: #fff;
    font-size: clamp(26px, 2.6vw, 36px);
  }
  html.af-live #services .g3 > .card:nth-child(1) p { color: #D9D3C7; font-size: 16.5px; }
  html.af-live #services .g3 > .card:nth-child(1) .more { color: var(--gold-soft); margin-top: auto; padding-top: 20px; }
  html.af-live #services .g3 > .card:nth-child(1) .ico { background: rgba(198, 166, 107, .16); }
  html.af-live #services .g3 > .card:nth-child(1) .ico svg { stroke: var(--gold-soft); }
  html.af-live #services .g3 > .card:nth-child(7) { grid-column: span 6; }

  html.af-live #why .g3 { grid-template-columns: repeat(4, 1fr); }
  html.af-live #why .g3 > .card:nth-child(1),
  html.af-live #why .g3 > .card:nth-child(2),
  html.af-live #why .g3 > .card:nth-child(7),
  html.af-live #why .g3 > .card:nth-child(8) { grid-column: span 2; }
}

/* Horizontal rails */
html.af-live #digital .g4-d,
html.af-live #sectors .sectors {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
html.af-live #digital .g4-d > .card,
html.af-live #sectors .sector {
  flex: 0 0 min(300px, 82vw);
  scroll-snap-align: start;
}

/* Sticky story on wide screens, filmstrip on small ones */
@media (min-width: 880px) {
  html.af-live #how .steps {
    display: block;
    max-width: 760px;
    margin-inline: auto;
  }
  html.af-live #how .step {
    position: sticky;
    margin-bottom: 22vh;
    min-height: 0;
  }
  html.af-live #how .step:nth-child(1) { top: 88px; }
  html.af-live #how .step:nth-child(2) { top: 108px; }
  html.af-live #how .step:nth-child(3) { top: 128px; }
}
@media (max-width: 879px) {
  html.af-live #how .steps {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
  }
  html.af-live #how .step {
    flex: 0 0 86%;
    scroll-snap-align: start;
    position: relative;
    top: auto;
    min-height: 0;
  }
}

/* ---------- CTA & footer ---------- */
html.af-live .cta {
  background:
    radial-gradient(ellipse 50% 90% at 100% 0%, rgba(198, 166, 107, .28), transparent 60%),
    #10243A;
  border-radius: 28px;
}
html.af-live footer {
  background:
    radial-gradient(ellipse 42% 80% at 100% 0%, rgba(198, 166, 107, .18), transparent 62%),
    var(--navy-ink);
  border-top: 3px solid var(--gold);
}
html.af-live .foot a {
  background-image: linear-gradient(var(--gold-soft), var(--gold-soft));
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: 0 1px;
  transition: background-size .3s var(--af-ease), color .2s;
}
html[dir="ltr"].af-live .foot a { background-position: 0 100%; }
html.af-live .foot a:hover { color: var(--gold-soft); background-size: 100% 1px; }
html.af-live .wa { transition: transform .35s var(--af-ease), box-shadow .35s var(--af-ease); }
html.af-live .wa:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 30px -18px rgba(198, 166, 107, .9);
}

html.af-live .field input:focus,
html.af-live .field select:focus,
html.af-live .field textarea:focus {
  box-shadow: 0 0 0 3px rgba(198, 166, 107, .28);
}

/* ---------- Scroll reveals: transform + opacity only. Hero h1 is never included. ---------- */
html.af-live .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .7s var(--af-ease), transform .7s var(--af-ease);
  transition-delay: var(--af-d, 0ms);
}
html.af-live .reveal.af-from-start:not(.in) {
  transform: translate3d(calc(var(--af-start) * 28px), 18px, 0);
}
html.af-live .reveal.af-from-end:not(.in) {
  transform: translate3d(calc(var(--af-start) * -28px), 18px, 0);
}
html.af-live .reveal.in { opacity: 1; transform: none; }
html.af-live .card:hover,
html.af-live .fi:hover,
html.af-live .sector:hover,
html.af-live .step:hover { transform: translateY(-6px); }
html.af-live #how .step:hover { transform: none; }

@media (min-width: 1181px) {
  html.af-live .menu { gap: 16px; flex-wrap: nowrap; }
  html.af-live .menu > a,
  html.af-live .has-drop > a,
  html.af-live .nav-right .btn,
  html.af-live .brand .wm,
  html.af-live .brand .wm b,
  html.af-live .brand .wm small { white-space: nowrap; }
}
@media (max-width: 1180px) {
  html.af-live .burger { display: flex; }
  html.af-live .nav-right .btn { display: none; }
  html.af-live .menu {
    display: flex;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 22px 18px;
    max-height: calc(100dvh - 72px);
    overflow: auto;
    z-index: 80;
    background: #F5F3EE;
    box-shadow: 0 24px 40px -28px rgba(16, 36, 58, .45);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -10px, 0);
    pointer-events: none;
    transition: opacity .28s var(--af-ease), transform .28s var(--af-ease), visibility .28s;
  }
  html.af-live .menu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  html.af-live .menu > a:not(.btn),
  html.af-live .has-drop > a { padding-block: 12px; border-bottom: 1px solid var(--line); }
  html.af-live .drop-toggle { display: grid; }
  html.af-live .has-drop { display: flex; flex-wrap: wrap; align-items: center; position: static; }
  html.af-live .has-drop > a { flex: 1; }
  html.af-live .has-drop > a::after { display: none; }
  html.af-live .has-drop .drop {
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    position: static;
    pointer-events: auto;
    transition: none;
    box-shadow: none;
    border: 0;
    min-width: 0;
    width: 100%;
    padding: 0 0 8px;
    background: transparent;
  }
  html.af-live .has-drop.open > .drop { display: flex; }
}
@media (max-width: 979px) {
  html.af-live #services .g3,
  html.af-live #why .g3 { grid-template-columns: 1fr; }
  html.af-live #services .g3 > .card,
  html.af-live #services .g3 > .card:nth-child(1),
  html.af-live #services .g3 > .card:nth-child(7),
  html.af-live #why .g3 > .card {
    grid-column: auto;
    grid-row: auto;
  }
  html.af-live #services .g3 > .card:nth-child(1) { min-height: 0; display: block; }
}
@media (max-width: 760px) {
  html.af-live .hero { min-height: 0; padding-bottom: 12px; }
  html.af-live .section { padding: 54px 0; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html.af-live { scroll-behavior: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
  html.af-live .reveal,
  html.af-still .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html.af-live .af-marquee-track { animation: none !important; }
  html.af-live .af-set + .af-set { display: none; }
  html.af-live .af-marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }
}
html.af-still .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
html.af-still { scroll-behavior: auto; }
html.af-still .af-marquee-track,
html.af-still .hero::after,
html.af-still .hero .glyph,
html.af-still .cta-mark { animation: none !important; }
html.af-still .af-set + .af-set { display: none; }
html.af-still .af-marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }

@media (prefers-reduced-motion: no-preference) {
  html.af-live:not(.af-still) .af-marquee-track {
    animation: af-marquee 46s linear infinite;
  }
  html.af-live:not(.af-still) .af-marquee:hover .af-marquee-track { animation-play-state: paused; }
}
@keyframes af-marquee {
  to { transform: translate3d(calc(var(--af-start) * 50%), 0, 0); }
}

@media print {
  html.af-live .reveal { opacity: 1 !important; transform: none !important; }
  html.af-live .af-marquee { display: none !important; }
  html.af-live .hero,
  html.af-live .subhero,
  html.af-live .phero { min-height: 0; background: #fff; }
  html.af-live .hero-collage,
  html.af-live .subhero-photo,
  html.af-live .phero-photo,
  html.af-live .subhero-shade,
  html.af-live .phero-shade,
  html.af-live .card-photo,
  html.af-live .rail-photo,
  html.af-live .sector-photo { display: none !important; }
  html.af-live #services .card h3,
  html.af-live #services .card .more { color: #10243A !important; }
  html.af-live #services .card p { color: #5C6574 !important; }
}

/* ---------- Photography ---------- */
html.af-live .hero { align-items: stretch; gap: 8px; }
html.af-live .hero-inner { order: 1; display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; margin: 0; }
html.af-live .hero-collage { order: 2; }
html.af-live .hero:has(.hero-collage) .glyph { display: none; }
html.af-live .hero-collage {
  position: relative;
  z-index: 1;
  width: min(480px, 40vw);
  margin-block: 32px 64px;
  margin-inline-end: 26px;
  display: grid;
  grid-template-columns: 1.45fr .8fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 460px;
}
html.af-live .hero-shot { position: relative; overflow: hidden; border-radius: 18px; min-height: 0; }
html.af-live .hero-shot-main { grid-row: span 2; }
html.af-live .hero-shot img { width: 100%; height: 100%; object-fit: cover; }
html.af-live .hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(198, 166, 107, .6);
  border-radius: inherit;
  pointer-events: none;
}
html.af-live .af-figures { padding: 36px 0 8px; }
html.af-live .af-figures-row { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
html.af-live .af-figure { text-align: center; min-width: 200px; }
html.af-live .af-figure b {
  display: block;
  font-size: clamp(44px, 6vw, 72px);
  line-height: .9;
  color: var(--navy);
  font-weight: 700;
}
html.af-live .af-figure i {
  display: block;
  width: 36px;
  height: 3px;
  margin: 12px auto 8px;
  background: var(--gold);
  border-radius: 3px;
}
html.af-live .af-figure span { color: var(--muted); font-size: 15px; }

html.af-live .subhero,
html.af-live .phero { position: relative; overflow: hidden; min-height: 360px; }
html.af-live .subhero-photo,
html.af-live .phero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 0;
}
html.af-live .subhero-shade,
html.af-live .phero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
html[dir="rtl"].af-live .subhero-shade,
html[dir="rtl"].af-live .phero-shade {
  background: linear-gradient(270deg, rgba(16, 36, 58, .92) 0%, rgba(16, 36, 58, .78) 42%, rgba(16, 36, 58, .5) 100%);
}
html[dir="ltr"].af-live .subhero-shade,
html[dir="ltr"].af-live .phero-shade {
  background: linear-gradient(90deg, rgba(16, 36, 58, .92) 0%, rgba(16, 36, 58, .78) 42%, rgba(16, 36, 58, .5) 100%);
}
html.af-live .subhero::before,
html.af-live .phero::before { z-index: 1; opacity: .45; }
html.af-live .subhero-in,
html.af-live .phero-in,
html.af-live .subhero .glyph,
html.af-live .phero .glyph { position: relative; z-index: 2; }
html.af-live .subhero:has(.subhero-photo) .glyph,
html.af-live .phero:has(.phero-photo) .glyph { display: none; }

html.af-live #services .card { overflow: hidden; color: #F5F3EE; }
html.af-live #services .card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 0;
}
html.af-live #services .card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 36, 58, .42) 0%, rgba(16, 36, 58, .78) 36%, rgba(16, 36, 58, .94) 62%, #10243A 100%);
  pointer-events: none;
}
html.af-live #services .card > :not(.card-photo) { position: relative; z-index: 2; }
html.af-live #services .card h3,
html.af-live #services .card .more { color: #fff; }
html.af-live #services .card h3 span { color: #E6D3A4 !important; }
html.af-live #services .card p { color: #E7E1D6; }
html.af-live #services .card .more { color: #E6D3A4; }
html.af-live #services .card .ico { background: rgba(198, 166, 107, .16); }
html.af-live #services .card .ico svg { stroke: #E6D3A4; }
html.af-live #services .card::after { z-index: 3; }

html.af-live #digital .rail-photo {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid #C6A66B;
}
html.af-live .sector-photo {
  width: 86px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
  outline: 1px solid rgba(198, 166, 107, .8);
  outline-offset: -1px;
}

/* Homepage stays a few screens: sideways rails instead of stacked grids. */
html.af-live body:has(#why) .section { padding: 36px 0; }
html.af-live body:has(#why) .af-figures { padding: 16px 0 0; }
html.af-live body:has(#why) #why .g3,
html.af-live body:has(#why) #services .g3 {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  gap: 16px;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
html.af-live body:has(#why) #why .g3 > .card,
html.af-live body:has(#why) #services .g3 > .card,
html.af-live body:has(#why) #services .g3 > .card:nth-child(1),
html.af-live body:has(#why) #services .g3 > .card:nth-child(7) {
  flex: 0 0 min(320px, 82vw);
  scroll-snap-align: start;
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  display: block;
}
html.af-live body:has(#why) #services .g3 > .card { min-height: 280px; }
html.af-live body:has(#why) #services .g3 > .card:nth-child(1) h3 { font-size: 22px; }
@media (min-width: 880px) {
  html.af-live body:has(#why) #how .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 16px;
  }
  html.af-live body:has(#why) #how .step {
    position: relative;
    top: auto;
    margin-bottom: 0;
    min-height: 0;
  }
}
html.af-live .af-jump { padding: 28px 0; }
html.af-live .af-jump-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
html.af-live .af-jump h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 0; }
html.af-live .af-moreline { margin-top: 16px; text-align: center; }
html.af-live .work-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
html.af-live .work-card,
html.af-live .work-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
html.af-live .work-card {
  flex: 0 0 min(250px, 78vw);
  scroll-snap-align: start;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  transition: transform .35s var(--af-ease), box-shadow .35s var(--af-ease);
}
html.af-live a.work-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -22px rgba(16, 36, 58, .45); }
html.af-live .work-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--navy); font-weight: 700; }
html.af-live .work-name img,
html.af-live .work-name svg { width: 40px; height: 40px; border-radius: 10px; flex: none; }
html.af-live .work-card p,
html.af-live .work-row p { color: var(--muted); font-size: 14.5px; font-weight: 400; line-height: 1.65; }
html.af-live .work-state {
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin: 0;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--bg);
  border: 1px solid var(--gold);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
html.af-live .work-list { display: flex; flex-direction: column; gap: 18px; }
html.af-live .work-row { padding: 22px 24px; }
html.af-live .work-row h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0; }
html.af-live .work-row ul { margin: 12px 0 0; padding-inline-start: 1.2em; color: var(--muted); }
html.af-live .work-row li { margin: 7px 0; }
html.af-live .work-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
html.af-live .af-example {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(198, 166, 107, .55);
  border-radius: 14px;
  background: #fff;
}
html.af-live .af-example .work-actions { margin-top: 0; }
html.af-live .af-example p { margin: 2px 0 0; }
html.af-live .navy .af-example { background: rgba(255, 255, 255, .06); }
html.af-live .navy .af-example .work-name,
html.af-live .navy .af-example b { color: #fff; }
html.af-live .navy .af-example p { color: #E7E1D6; }
html.af-live body > .af-example { width: min(var(--container), calc(100% - 52px)); margin-inline: auto; margin-block: 18px; }
html.af-live .af-switcher-bar {
  position: sticky;
  top: 68px;
  z-index: 40;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  background: rgba(245, 243, 238, .94);
  backdrop-filter: blur(12px);
}
html.af-live .af-tab {
  flex: none;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
}
html.af-live .af-tab[aria-selected="true"] {
  background: #10243A;
  color: #F5F3EE;
  border-color: #C6A66B;
}
html.af-live .af-switcher > section[hidden] { display: none !important; }
html.af-live .qa summary { list-style: none; }
html.af-live .qa summary::-webkit-details-marker { display: none; }
html.af-live .qa:not([open]) > :not(summary) { display: none; }
html.af-live .qa[open] { border-color: rgba(198, 166, 107, .7); }

/* The contact page already sends via WhatsApp. The floating button covers the form fields. */
html.af-live body.contact-page .wa { display: none; }

/* Floating WhatsApp: small, in the end corner, and clear of the text column. */
html.af-live .wa {
  width: 40px;
  height: 40px;
  bottom: 12px;
  left: auto;
  right: auto;
  inset-inline-start: auto;
  inset-inline-end: 10px;
  background: #10243A;
  border: 1px solid #C6A66B;
  box-shadow: 0 10px 22px -14px rgba(16, 36, 58, .55);
}
html.af-live .wa svg {
  width: 18px;
  height: 18px;
  fill: #E6D3A4;
}
html.af-live body { padding-bottom: 68px; }
@media (max-width: 900px) {
  html.af-live body:not(.contact-page) .wrap { padding-inline-end: 64px; }
  html.af-live header .wrap { padding-inline-end: 26px; }
}

/* Founder page: one portrait header, then aligned bands. Other pages stay as they are. */
html.af-live body.founder-page .subhero {
  min-height: 0;
  padding: 36px 0 48px;
}
html.af-live body.founder-page .subhero::after { display: none; }
html.af-live body.founder-page .subhero h1 {
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.25;
  max-width: 14em;
  text-wrap: balance;
  margin-bottom: 12px;
}
html.af-live body.founder-page .founder-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 28px 48px;
  align-items: center;
}
html.af-live body.founder-page .founder-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: #1A334C;
  border: 1px solid rgba(198, 166, 107, .9);
  box-shadow: 0 0 0 7px rgba(198, 166, 107, .16);
}
html.af-live body.founder-page .founder-portrait img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 0;
}
html.af-live body.founder-page .founder-id p { margin-bottom: 22px; }
html.af-live body.founder-page .head h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35;
  margin-bottom: 10px;
}
html.af-live body.founder-page .head { margin-bottom: 18px; max-width: none; }
html.af-live body.founder-page .founder-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .82fr);
  gap: 28px 36px;
  align-items: start;
}
html.af-live body.founder-page .founder-copy { max-width: none; }
html.af-live body.founder-page .founder-side .chk { grid-template-columns: 1fr; }
html.af-live body.founder-page .founder-road .chk { grid-template-columns: 1fr; }
html.af-live body.founder-page .founder-road .chk li:last-child:nth-child(odd) { grid-column: auto; }
html.af-live body.founder-page .founder-copy p,
html.af-live body.founder-page .founder-pair p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
  margin: 0 0 14px;
}
html.af-live body.founder-page .founder-copy p:last-child,
html.af-live body.founder-page .founder-pair p:last-child { margin-bottom: 0; }
html.af-live body.founder-page .chk {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
html.af-live body.founder-page .chk li:last-child:nth-child(odd) { grid-column: 1 / -1; }
html.af-live body.founder-page .founder-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
html.af-live body.founder-page .founder-pair article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
}
html.af-live body.founder-page .founder-pair .head { margin-bottom: 8px; }
html.af-live body.founder-page .chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}
html.af-live body.founder-page .chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  text-align: center;
  line-height: 1.45;
}
html.af-live body.founder-page .quote { padding: 32px 30px; }
html.af-live body.founder-page .quote p { font-size: clamp(17px, 1.5vw, 20px); max-width: 68ch; }
@media (max-width: 800px) {
  html.af-live body.founder-page .founder-hero,
  html.af-live body.founder-page .founder-split {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: start;
  }
  html.af-live body.founder-page .founder-hero {
    justify-items: center;
    text-align: center;
  }
  html.af-live body.founder-page .founder-portrait { width: min(240px, 72vw); }
  html.af-live body.founder-page .founder-id p { margin-inline: auto; }
  html.af-live body.founder-page .founder-pair,
  html.af-live body.founder-page .chk { grid-template-columns: 1fr; }
  html.af-live body.founder-page .chips { grid-template-columns: 1fr 1fr; }
  html.af-live body.founder-page .chk li:last-child:nth-child(odd) { grid-column: auto; }
  html.af-live body.founder-page .subhero { padding: 28px 0 36px; }
}

@media (max-width: 800px) {
  html.af-live .hero { flex-direction: column; }
  html.af-live .hero-collage {
    width: auto;
    min-height: 0;
    margin: 4px 22px 26px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  html.af-live .hero-shot:not(.hero-shot-main) { display: none; }
  html.af-live .hero-shot-main { aspect-ratio: 16 / 10; min-height: 190px; }
  html.af-live .hero-shot-main img { height: 100%; }
  html.af-live .af-figures-row { gap: 28px; }
  html.af-live .af-jump-row { flex-direction: column; align-items: flex-start; }
}
