/* Richmond — design changes on top of the live site (loaded after refinements.css). */

/* 1. No Back button in the header (desktop and mobile). The logo keeps its place. */
.rx-head .rx-back { display: none !important; }

/* 2. Leadership and team posters: no small Richmond mark in the top-right corner. */
.ldr-f-top .mk { display: none !important; }

/* 3. Long names fit inside the poster (updates.js scales a name down only when it would overflow). */
.ldr-f-txt { min-width: 0; }
.ldr-f-nm { max-width: 100%; }

/* 4. Message from our founder. */
.pg-ceo .ldr-f-top { visibility: hidden; }                  /* no "01" on the founder's portrait */

.pg-ceo {
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 40px clamp(64px, 8vw, 120px);
}
.pg-ceo-t { position: relative; max-width: 640px; padding-top: 6px; }

.pg-ceo-t .pg-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 30px;
  letter-spacing: .2em;
}
.pg-ceo-t .pg-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold-500);
}

/* the quote mark hangs in the margin beside the first line instead of taking a row of its own */
.pg-ceo blockquote { position: relative; }
.pg-ceo blockquote p:first-child::before {
  content: "\201C";
  position: absolute;
  top: -.06em;
  left: -.62em;
  display: block;
  height: auto;
  margin: 0;
  font: 300 96px/1 var(--display);
  color: var(--gold-500);
  opacity: .55;
  pointer-events: none;
}

.pg-ceo blockquote p {
  position: relative;
  margin: 0 0 16px;
  font: 400 16px/1.75 var(--sans);
  color: var(--ink-muted, #4c5a54);
  text-wrap: pretty;
}
.pg-ceo blockquote p:first-child {
  margin-bottom: 22px;
  font: 300 clamp(21px, 1.75vw, 25px)/1.5 var(--display);
  letter-spacing: -.005em;
  color: var(--green-900);
}
.pg-ceo blockquote p:last-child { margin-bottom: 0; }

.pg-ceo .pg-sign {
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 3px;
  align-items: center;
  margin: 34px 0 0;
  padding-top: 0;
  border-top: 0;
}
.pg-ceo .pg-sign::before {
  content: "";
  grid-row: 1 / span 2;
  width: 36px;
  height: 1px;
  background: var(--gold-500);
}
.pg-ceo .pg-sign a,
.pg-ceo .pg-sign span { grid-column: 2; }
.pg-ceo .pg-sign b { font-size: 15px; letter-spacing: .01em; }
.pg-ceo .pg-sign span { font-size: 13px; letter-spacing: .02em; }

@media (max-width: 1100px) {
  .pg-ceo { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px 72px; }
}
@media (max-width: 900px) {
  .pg-ceo { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pg-ceo > .ldr-f { max-width: 340px; }
  .pg-ceo-t .pg-eyebrow { margin-bottom: 18px; }
  .pg-ceo blockquote p:first-child::before { position: static; height: .42em; margin-bottom: 10px; font-size: 72px; }
}

/* 5. Careers — a word from our founder: no "01" on the portrait, calmer balance between photo and message. */
.cr-founder .ldr-f-top { visibility: hidden; }
.cr-founder-in {
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 48px clamp(64px, 8vw, 120px);
}
.cr-founder-ph { justify-self: stretch; width: 100%; }
.cr-founder-t { max-width: 640px; }
.cr-founder-t .pg-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  letter-spacing: .2em;
}
.cr-founder-t .pg-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold-500); }
.cr-q { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.16; text-wrap: pretty; }
.cr-q em { display: block; margin-top: .06em; }
@media (min-width: 901px) { .cr-q em { white-space: nowrap; } }
.cr-q-sub { margin-top: 24px; max-width: 52ch; font-size: 16px; line-height: 1.75; }
.cr-sign { margin-top: 32px; gap: 4px 16px; }
.cr-sign .ln { width: 36px; }
.cr-more { margin-top: 26px; }
@media (max-width: 1100px) {
  .cr-founder-in { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 48px 72px; }
}
@media (max-width: 900px) {
  .cr-founder-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cr-founder-ph { justify-self: start; width: min(100%, 340px); }
}

/* 6. Team page — Commercial desk (offices and shops), shown as the same poster card until advisors join. */
.rpu-commercial { margin-top: 0; }
.rpu-commercial[hidden] { display: none; }
.rpu-soon .ldr-f-ph.rpu-soon-ph {
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(201, 169, 106, .14), rgba(7, 33, 26, 0) 60%),
    url("guilloche-soft.svg") 50% 38% / 150% no-repeat,
    var(--green-900);
}
.rpu-soon .ldr-f-rl em { font-style: normal; }

/* 7. Hero videos (set in /hero-admin): the film covers the hero picture, the text stays readable on top. */
.rpu-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
}
.rpu-video-on .rpu-hero-video { opacity: 1; }
.rx-band .rpu-hero-video { z-index: 0; }
.rx-band .veil, .rx-band .rx-band-copy { z-index: 1; }
.rx-band .rx-band-copy { position: relative; }
.ldr-open .rpu-hero-video { z-index: 0; }
.ldr-open.rpu-has-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(7, 33, 26, .78), rgba(7, 33, 26, .5) 50%, rgba(7, 33, 26, .86));
  pointer-events: none;
}
.ldr-open > .rx-wrap { position: relative; z-index: 1; }
.cr-hero-ph .rpu-hero-video { position: absolute; inset: 0; }
.rpu-video-on .cr-hero-ph img { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .rpu-hero-video { display: none; }
}

/* 8. Commercial listings page: Offices and Shops sections. */
.rpu-com-on #ls-type { display: none; }
.rpu-com-on label.fx-sel:has(#ls-type) { display: none; }
.rpu-com-on .rpu-com-empty { display: none !important; }
.rpu-com[hidden] { display: none; }
.rpu-com {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  margin: 8px 0 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline, #E4DCCB);
}
.rpu-com-k {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  font: 600 11px var(--ui);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.rpu-com-k::before { content: ""; width: 36px; height: 1px; background: var(--gold-500); }
.rpu-com h2 { margin: 0; font: 300 clamp(32px, 3.4vw, 48px)/1.05 var(--display); letter-spacing: -.02em; color: var(--green-900); }
.rpu-com-sub { margin: 12px 0 0; max-width: 52ch; font: 400 15.5px/1.65 var(--sans); color: var(--ink-muted); }
.rpu-com-tabs button span { margin-left: 4px; color: var(--gold-600); font-variant-numeric: tabular-nums; }
.rpu-com-tabs button[aria-selected="true"] span { color: var(--gold-300); }
.rpu-com-tabs button span:empty { display: none; }

.fx-cards .fx-card.v2.rpu-soon-card .fx-ph {
  min-height: 420px;
  background:
    radial-gradient(110% 70% at 50% 28%, rgba(201, 169, 106, .16), rgba(7, 33, 26, 0) 62%),
    url("guilloche-soft.svg") 50% 34% / 160% no-repeat,
    var(--green-900);
}
.fx-card.v2.rpu-soon-card .fx-pill { letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
@media (max-width: 760px) {
  .rpu-com { align-items: flex-start; margin-bottom: 24px; padding-bottom: 22px; }
}
.rpu-com-none #ls-count { visibility: hidden; }

/* 9. Home — Four pillars: an editorial list beside one large photo (no arch windows).
      The layout applies from the first paint, not only once updates.js has run, so the old arch windows never
      show first; updates.js then adds the large photo into the frame kept for it below. */
.hx-pillars .hx-pil { border: 0; }
.hx-pillars .hx-pillar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas: "no cat go" "no tag go" "no meta go";
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 4px;
  min-height: 0;
  padding: 26px 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--green-900);
}
.hx-pillars .hx-pillar:first-of-type { border-top: 1px solid var(--hairline); }
.hx-pillars .hx-pillar .bg, .hx-pillars .hx-pillar::before, .hx-pillars .hx-pa { display: none; }
.hx-pillars .hx-pillar .top, .hx-pillars .hx-pillar .bot { display: contents; }
.hx-pillars .hx-pillar .top b { grid-area: cat; margin-bottom: 4px; font: 600 10.5px/1.5 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }
.hx-pillars .hx-pillar .no { grid-area: no; align-self: start; padding: 0; font: 600 10.5px/1.5 var(--ui); letter-spacing: .14em; color: var(--gold-600); }
.hx-pillars .hx-pillar .tag { grid-area: tag; font-size: clamp(28px, 2.6vw, 40px); transition: color .4s; }
.hx-pillars .hx-pillar .meta { grid-area: meta; color: var(--ink-muted); }
.hx-pillars .hx-pillar .go {
  grid-area: go;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px; margin: 0; padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  gap: 0 !important;                 /* the hidden "View collection" text must not push the arrow off-centre */
  font-size: 0 !important; letter-spacing: 0; line-height: 0; color: transparent; overflow: hidden;
  transition: background .4s, border-color .4s;
}
.hx-pillars .hx-pillar:hover .go { gap: 0 !important; }
.hx-pillars .hx-pillar .go svg { flex: none; width: 18px; height: 18px; color: var(--green-900); transition: color .4s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.hx-pillars .hx-pillar:hover, .hx-pillars .hx-pillar:focus-visible { color: var(--green-900); }
.hx-pillars .hx-pillar:hover .meta, .hx-pillars .hx-pillar:focus-visible .meta { color: var(--ink-muted); }
.hx-pillars .hx-pillar:hover .no, .hx-pillars .hx-pillar:focus-visible .no { color: var(--gold-600); }
.hx-pillars .hx-pillar.rpu-on .tag { color: var(--gold-600); }
.hx-pillars .hx-pillar.rpu-on .go { background: var(--green-900); border-color: var(--green-900); }
.hx-pillars .hx-pillar.rpu-on .go svg { color: var(--ivory-50); }
.hx-pillars .hx-pillar:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 4px; }

.hx-pillars .hx-pillar { position: relative; }
.rpu-pil-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.hx-pillars .hx-pillar.rpu-on .rpu-pil-bar { transform: scaleX(1); transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.rpu-playing .hx-pillar.rpu-on .rpu-pil-bar { transform: scaleX(0); transition: none; animation: rpu-pil-run var(--rpu-pil-step, 6s) linear forwards; }
@keyframes rpu-pil-run { to { transform: scaleX(1); } }

.rpu-pil-stage {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: var(--green-900);
  box-shadow: 0 30px 60px -40px rgba(7, 33, 26, .7);
  color: var(--ivory-50);
}
.rpu-pil-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s ease; }
.rpu-pil-stage img.on { opacity: 1; animation: rpu-pil-drift 9s ease-out forwards; }
@keyframes rpu-pil-drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.rpu-pil-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 33, 26, .18) 0%, rgba(7, 33, 26, 0) 30%, rgba(7, 33, 26, 0) 50%, rgba(7, 33, 26, .82) 100%); pointer-events: none; }
.rpu-pil-ov {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "cat cta" "meta cta";
  align-items: end;
  column-gap: 20px;
  row-gap: 6px;
  padding: 28px 30px;
}
.rpu-pil-cat { grid-area: cat; font: 600 12px var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300); }
.rpu-pil-meta { grid-area: meta; font: 300 clamp(20px, 1.7vw, 26px)/1.25 var(--display); letter-spacing: -.01em; }
.rpu-pil-cta {
  grid-area: cta;
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px;
  border: 1px solid rgba(251, 248, 242, .5);
  border-radius: 999px;
  font: 600 11.5px var(--ui); letter-spacing: .14em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  background: rgba(7, 33, 26, .25);
  transition: background .35s, border-color .35s, gap .35s cubic-bezier(.16, 1, .3, 1);
}
.rpu-pil-stage:hover .rpu-pil-cta { background: var(--ivory-50); border-color: var(--ivory-50); color: var(--green-900); gap: 14px; }
.rpu-pil-ov.in .rpu-pil-cat, .rpu-pil-ov.in .rpu-pil-meta { animation: rpu-pil-rise .7s cubic-bezier(.16, 1, .3, 1) both; }
.rpu-pil-ov.in .rpu-pil-meta { animation-delay: .06s; }
@keyframes rpu-pil-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* desktop: list on the left, photo on the right */
@media (min-width: 1001px) {
  .hx-pillars .hx-pil {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-rows: repeat(4, auto);
    column-gap: clamp(48px, 6vw, 96px);
  }
  .hx-pillars .hx-pillar { grid-column: 1; }
  .rpu-pil-stage { grid-column: 2; grid-row: 1 / span 4; align-self: stretch; min-height: 480px; }
  /* until the large photo is built, its frame holds the place, so nothing moves when it arrives */
  .hx-pillars .hx-pil:not(:has(.rpu-pil-stage))::after {
    content: ""; grid-column: 2; grid-row: 1 / span 4; align-self: stretch; min-height: 480px;
    border-radius: 4px; background: var(--green-900); box-shadow: 0 30px 60px -40px rgba(7, 33, 26, .7);
  }
}
/* tablet and phone: the photo on top, the list under it */
@media (max-width: 1000px) {
  .hx-pillars .hx-pil { display: flex; flex-direction: column; }
  .rpu-pil-stage { order: -1; aspect-ratio: 16 / 10; margin-bottom: 8px; }
  .hx-pillars .hx-pil:not(:has(.rpu-pil-stage))::before {
    content: ""; order: -1; aspect-ratio: 16 / 10; margin-bottom: 8px; border-radius: 4px; background: var(--green-900);
  }
}
@media (max-width: 760px) {
  .hx-pillars .hx-pillar { grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 12px; padding: 20px 0; }
  .hx-pillars .hx-pillar .tag { font-size: 26px; }
  .hx-pillars .hx-pillar .go { width: 40px; height: 40px; }
  .hx-pillars .hx-pillar .go svg { width: 16px; height: 16px; }
  .rpu-pil-stage { aspect-ratio: 4 / 3; }
  .hx-pillars .hx-pil:not(:has(.rpu-pil-stage))::before { aspect-ratio: 4 / 3; }
  .rpu-pil-ov { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cat" "meta"; padding: 18px 18px 16px; }
  .rpu-pil-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rpu-pil-stage img, .rpu-pil-stage img.on, .hx-pillars .hx-pillar .tag, .rpu-pil-ov.in * { transition: none; transform: none; animation: none; }
}

/* 16. Advisor profile: no previous / next buttons in the top-right corner. */
.ldr-pn { display: none !important; }

/* 17. Advisor profile (Leadership and Team): the green background carries the Richmond mark pattern. */
.ldr-solo { background: var(--green-900) url("rx-mark-pattern.svg") 0 0 / 84px 112px repeat; }
.ldr-solo .ldr { background: transparent; }

/* 18. Leadership and team posters: no 01 / 02 / 03 number in the top-left corner (the desk label on Team stays),
       and four posters per row on desktop instead of five. */
.ldr-f:not(.adv) .ldr-f-top > span:first-child { display: none; }
@media (min-width: 900px) {
  .ldr-posters { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}

/* 20. About: Turkish Business Council UAE moves from "Awards and recognition" to its own Partnership block (updates.js). */
.rx-awards.rpu-awards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rpu-pship { scroll-margin-top: calc(var(--rx-top, 80px) + 24px); margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--hairline); }

.rpu-pship-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.rpu-pship-ph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--ivory-100); }
.rpu-pship-ph .ph { position: absolute; inset: 0; display: block; }
.rpu-pship-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.rpu-pship-ph:hover img { transform: scale(1.04); }
.rpu-pship-ph .rx-playbtn { left: 16px; top: auto; bottom: 16px; width: 48px; height: 48px; margin: 0; }
.rpu-pship-ph .rx-playbtn svg { width: 16px; height: 16px; }
.rpu-pship-ph:hover .rx-playbtn { transform: scale(1.06); }
.rpu-pship-h { margin: 0 0 18px; font: 500 clamp(22px, 2vw, 28px)/1.25 var(--ui); letter-spacing: -.01em; color: var(--green-900); }
.rpu-pship-txt { margin: 0; max-width: 52ch; font: 400 16px/1.75 var(--sans); color: var(--ink-muted); }
.rpu-pship-since { margin: 22px 0 0; font: 500 13px var(--ui); letter-spacing: .02em; color: var(--green-900); }
.rpu-pship-links { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.rpu-pship-links .rp-link { margin-top: 26px; }
@media (max-width: 899px) {
  .rx-awards.rpu-awards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-awards.rpu-awards-3 > :last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
  .rpu-pship-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (prefers-reduced-motion: reduce) { .rpu-pship-ph img { transition: none; } }
