/* Shared Mémoire masthead and supplied wordmarks. */
body { --memoire-accent: #ff4b23; --orange: var(--memoire-accent); --raccent: var(--memoire-accent); }
body header:is(.site-header,.r-header) {
  background: #090909 !important; color: #f8f3f1 !important; border-bottom-color: #333 !important;
}
body header:is(.site-header,.r-header) nav a { color: inherit; }
body header:is(.site-header,.r-header) nav a:is(:hover,:focus-visible) { color: var(--memoire-accent) !important; }
body header:is(.site-header,.r-header) :is(.btn,.r-button) {
  background: var(--memoire-accent) !important; color: #090909 !important; border-color: var(--memoire-accent);
}
:is(.site-header,.r-header,footer) :is(.wordmark,.r-wordmark) {
  display: inline-flex; align-items: center; flex: 0 0 auto; line-height: 0; vertical-align: middle;
}
:is(.site-header,.r-header,footer) :is(.wordmark,.r-wordmark)::before { content: none !important; }
.memoire-brand-logo { display: block; width: 132px; max-width: 100%; height: auto; }
footer .memoire-brand-logo { width: clamp(170px,20vw,278px); }
.home-scroll-page .memory-scenes,
.home-scroll-page .memory-scenes button,
.home-scroll-page .memory-skip,
.home-scroll-page .home-introduction .btn { border-radius: 999px !important; }
.home-scroll-page .memory-scenes button:not([aria-pressed=true]) { color: #4b4b4b; }
.home-scroll-page .memory-skip { padding: 7px 12px; background: #fff; color: #171717; border: 1px solid #aaa; }
.home-scroll-page .memory-skip span { margin-left: 5px; }
.work-page .r-work-grid .archive-image-link .r-picture {
  display: grid; place-items: center; width: 100%; height: auto !important;
  aspect-ratio: 1 !important; overflow: hidden; background: #f1efed !important;
}
.work-page .r-work-grid .archive-image-link .r-picture img {
  width: 100%; height: 100% !important; min-height: 0; max-height: none;
  object-fit: cover !important; object-position: center !important;
}
.work-page .r-work-grid .archive-image-link:hover img { transform: none; }
.work-page main .r-button.orange,.work-page .client-archive-actions .r-button {
  background: #101010; color: #fff; border: 1px solid var(--memoire-accent);
}
.work-page main .r-button.orange span { color: var(--memoire-accent); }
.work-page main .r-button.orange:is(:hover,:focus-visible),
.work-page .client-archive-actions .r-button:is(:hover,:focus-visible) {
  background: #232323; color: var(--memoire-accent);
}
img:is([src$="rich-aromas-cover.webp"],[src$="turn-it-live-wedding.webp"],[src$="adisa-campaign.webp"]) {
  object-fit: contain !important; object-position: center !important;
}
.x-case-hero figure img:is([src$="rich-aromas-cover.webp"],[src$="turn-it-live-wedding.webp"]),
.r-case-hero .r-picture img:is([src$="rich-aromas-cover.webp"],[src$="turn-it-live-wedding.webp"]) {
  max-height: 80svh; width: 100%;
}
.r-team-card .atul-portrait .r-picture { overflow: hidden; }
.r-team-card .atul-portrait[data-team-colour] .r-picture img {
  object-fit: cover; object-position: 54% 42% !important;
  transform: scale(1.9); transform-origin: 60% 49%;
  filter: grayscale(1) contrast(1.045) !important;
}
.r-team-card .atul-portrait[data-team-colour]:is(:hover,:focus-visible,[aria-pressed=true]) .r-picture img {
  filter: saturate(.85) contrast(1.045) !important;
}
.completed-projects { display: inline-grid; gap: .45rem; margin-top: 1.6rem; color: inherit; text-decoration: none; }
.completed-projects strong { font: 400 clamp(44px,5vw,76px)/1 var(--rserif,serif); }
.completed-projects span { font: 600 11px/1.5 var(--sans,sans-serif); letter-spacing: .06em; }
.completed-projects:hover span { text-decoration: underline; }
.home-scroll-page :is(.home-introduction,.work-section,.process-section) :is(.eyebrow,.text-link),
.r-quadrivium .r-practice .r-label { color: var(--memoire-accent); }
.home-scroll-page .portfolio-reel-controls button { border-color: #666; }
.home-scroll-page .playground-discovery { background: #222; }
@media (max-width:767px) {
  header .memoire-brand-logo { width: 110px; }
  .home-scroll-page .memory-skip { padding: 4px 6px; }
}
/* Orange is the single accent on ink surfaces. Photography keeps its own palette. */
body :is(.playground-discovery,.x-process,.r-pricing,.r-entrust,.r-quadrivium) { --raccent: #ff4b23; }
body .playground-discovery .x-button { background: var(--memoire-accent); color: #090909; }
body .x-process :is(.x-kicker,h2 i),
body .r-quadrivium .r-practice .r-label { color: var(--memoire-accent); }
body .portfolio-reel-foot .micro { color: #b7b7b7; }
body header:is(.site-header,.r-header) nav a.x-nav-play { color: #f8f3f1 !important; }
body header:is(.site-header,.r-header) nav a.x-nav-play:is(:hover,:focus-visible) { color: var(--memoire-accent) !important; }
.r-pricing .r-price-card { background: #222; border-color: #484848; min-height: 0; }
.r-pricing .r-price-card.featured { border-color: var(--memoire-accent); }
.r-pricing .r-price-ribbon { background: var(--memoire-accent); color: #090909; }
.r-pricing .r-price-card ul { border-color: #555; }
.r-pricing .r-price-card :is(p,li) { color: #ccc; }

/* The heading itself paints the overlay above moving artwork. */
.home-scroll-page .memory-banner .memory-heading {
  width: 90%; max-width: 90%; left: 50%; right: auto; translate: -50% 0;
  padding: 18px 22px; z-index: 20; isolation: isolate;
  background: transparent !important;
}
.home-scroll-page .memory-banner .memory-heading::before { content: none !important; }
/* Frames follow the artwork's natural proportions, so every edge stays visible. */
.work-page .r-work-grid .archive-image-link .r-picture {
  display: block; width: 100%; height: auto !important; aspect-ratio: auto !important;
  padding: 0; background: transparent !important;
}
.work-page .r-work-grid .archive-image-link .r-picture img {
  display: block; width: 100%; height: auto !important; max-height: none !important;
  aspect-ratio: auto !important; object-fit: contain !important; object-position: center !important;
}
.home-scroll-page #selected-work .project-card .media,
.home-scroll-page #selected-work .project-card .media picture {
  display: block; width: 100%; height: auto !important; aspect-ratio: auto !important;
  min-height: 0 !important; max-height: none !important; background: transparent !important;
}
.home-scroll-page #selected-work .project-card .media img {
  display: block; width: 100%; height: auto !important; min-height: 0 !important;
  max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important;
  transform: none !important;
}
.home-scroll-page .portfolio-slide button { padding: 0; height: auto; aspect-ratio: auto; }
.home-scroll-page .portfolio-slide button img {
  display: block; width: 100%; height: auto; object-fit: contain !important; transform: none !important;
}
@media(max-width:767px) {
  .home-scroll-page .memory-banner .memory-heading { width:88%; max-width:88%; padding:14px 10px; }
}

/* Line fragments give the white backing the same stepped outline as the title. */
.home-scroll-page .memory-heading-highlight {
  display: inline; background: rgba(255,255,255,.40);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: .015em .10em;
}
/* All case-study hero frames take their height directly from the complete artwork. */
.exp-page .x-case-hero figure {
  padding: 0 !important; background: transparent !important;
  height: auto !important; min-height: 0 !important; max-height: none !important;
  aspect-ratio: auto !important;
}
.exp-page .x-case-hero figure img,
.r-case-cover .r-picture img,
.r-case-hero .r-picture img {
  display: block; width: 100% !important; height: auto !important;
  max-width: none !important; max-height: none !important; min-height: 0 !important;
  aspect-ratio: auto !important; object-fit: contain !important; transform: none !important;
}
.r-case-cover, .r-case-cover .r-picture, .r-case-cover picture,
.r-case-hero .r-picture, .r-case-hero picture {
  display: block; width: 100%; height: auto !important; min-height: 0 !important;
  max-height: none !important; aspect-ratio: auto !important;
  padding: 0 !important; background: transparent !important;
}
