/* Afrouz site styles — single source for authored presentation.
 * Global tokens and link states apply site-wide. Components opt into only
 * source-approved exceptions. Elementor core/vendor CSS remains framework-owned.
 */

/* 1. Locally hosted Space Grotesk */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(design/space-grotesk-0.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(design/space-grotesk-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(design/space-grotesk-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(design/space-grotesk-0.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(design/space-grotesk-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(design/space-grotesk-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(design/space-grotesk-0.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(design/space-grotesk-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(design/space-grotesk-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Site defaults and reusable components */
:root {
  --afr-paper: #f5f5f5;
  --afr-ink: #18161b;
  --afr-header: 90px;
  --afr-brand-size: 28px;
  --afr-gutter: 20px;
  --afr-margin: 30px;
}

html {
  background: var(--afr-ink);
  scroll-padding-top: calc(var(--afr-header) + 20px);
}

body {
  background: var(--afr-paper);
  color: var(--afr-ink);
  font-family: 'Space Grotesk',sans-serif;
  margin: 0;
  padding-top: var(--afr-header);
}

body,
button,
input,
select,
textarea {
  font-family: 'Space Grotesk',sans-serif;
}

/* Hover states are immediate, including vendor-styled labels and icons. */
body :is(a, button, .elementor-button),
body :is(a, button, .elementor-button) *,
body :is(a, button, .elementor-button)::before,
body :is(a, button, .elementor-button)::after,
body :is(a, button, .elementor-button) *::before,
body :is(a, button, .elementor-button) *::after,
.afr-project-categories li {
  transition: none !important;
}

body a,
body a:visited {
  color: inherit;
  text-decoration: none;
}

body a:hover,
body a:focus,
body a:active {
  color: inherit;
  text-decoration: none;
}

.elementor .e-con {
  padding: 0;
  gap: 0;
  flex-direction: column;
}

body a:focus-visible,
body button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Shared header and navigation */
.afr-header.e-con {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 90px;
  min-height: 90px;
  padding: 5px 25px;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--afr-paper);
}

.admin-bar .afr-header.e-con {
  top: 32px;
}

.afr-header .elementor-widget-shortcode {
  width: auto;
  max-width: 100%;
}

.afr-brand {
  font: 400 var(--afr-brand-size)/1 'Space Grotesk',sans-serif;
  letter-spacing: -1.12px;
  white-space: nowrap;
  display: block;
}

.afr-brand strong {
  font-weight: 700;
}

.afr-header .afr-brand {
  margin-left: 6px;
}

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

.afr-navigation button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 10px;
  font: inherit;
  cursor: pointer;
}

.afr-menu {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 28px;
  line-height: 52px;
}

.afr-menu>li>a,
.afr-menu>li>span {
  display: block;
  padding: 10px;
  white-space: nowrap;
}

.afr-menu>li:last-child>a,
.afr-menu>li:last-child>span {
  padding-right: 0;
}

.afr-journal-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 52px!important;
}

/* Requested state indicator; colour/hover changes elsewhere stay immediate. */
.afr-journal-toggle img {
  transform: rotate(180deg);
  transform-origin: center;
  transition: transform 140ms cubic-bezier(.2,.8,.2,1) !important;
  width: 18px;
  height: 18px;
}

.afr-journal-toggle[aria-expanded="true"] img {
  transform: rotate(0deg);
}

.afr-has-submenu {
  position: relative;
}

.afr-navigation .afr-submenu {
  position: absolute;
  top: 67px;
  left: -10px;
  min-width: 232px;
  background: var(--afr-paper);
  padding: 10px 0 0;
  display: none;
  z-index: 2;
}

.afr-has-submenu.is-open>.afr-submenu {
  display: block;
}

.afr-submenu a {
  display: block;
  padding: 0 20px;
  line-height: 52px;
}

.afr-submenu a:hover,
.afr-submenu a:focus-visible {
  background: var(--afr-ink);
  color: var(--afr-paper);
}

.afr-mobile-toggle,
.afr-mobile-dialog {
  display: none;
}

.afr-mobile-dialog[hidden] {
  display: none!important;
}

.afr-menu-open {
  overflow: hidden;
}

/* Reusable section layouts */
.afr-row.e-con {
  padding: 0 0 20px;
  gap: 20px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: nowrap;
  max-width: 100%;
  width: 100%;
}

.afr-row.e-con>.e-con {
  flex: 1 1 calc((100% - var(--afr-row-gap,20px))/2);
  min-width: 0;
  width: calc((100% - var(--afr-row-gap,20px))/2);
  box-sizing: border-box;
  padding: 0;
  gap: 0;
}

.afr-row .afr-media {
  width: 100%;
}

.afr-media img {
  display: block;
  width: 100%;
  height: auto;
}

.afr-wide {
  --afr-media-ratio: 1440 / 937.75;
}

.afr-wide-compact {
  --afr-media-ratio: 1440 / 931.193;
}

.afr-wide-tall {
  --afr-media-ratio: 1440 / 951.193;
}

.afr-wide .afr-media img {
  aspect-ratio: var(--afr-media-ratio);
  object-fit: cover;
}

.afr-pair .afr-media img {
  aspect-ratio: 710/880;
  object-fit: cover;
}

.afr-text-media.e-con {
  --afr-row-gap: 0px;
  gap: 0;
  padding: 0;
}

.afr-text-media.e-con>.afr-text-cell {
  padding: 50px;
  justify-content: center;
  gap: 30px;
}

.afr-text-media .afr-media img {
  height: 100%;
  min-height: 700px;
  aspect-ratio: 720/700;
  object-fit: cover;
}

.afr-text-media .afr-media,
.afr-text-media .elementor-widget-container {
  height: 100%;
}

.afr-copy {
  font: 400 20px/1.15 'Space Grotesk',sans-serif;
}

.afr-copy p {
  margin: 0 0 1.15em;
}

.afr-copy p:last-child {
  margin-bottom: 0;
}

.afr-copy strong {
  font-weight: 700;
}

.afr-title.elementor-widget .elementor-heading-title {
  font: 700 45px/1 'Space Grotesk',sans-serif;
  letter-spacing: -1.8px;
  color: var(--afr-ink);
  overflow-wrap: anywhere;
}

.afr-text-section.e-con,
.afr-row.e-con > .afr-text-section.e-con {
  padding: 50px;
  gap: 34px;
}

.afr-credits-row.e-con>.afr-text-cell {
  padding: 54px 50px;
  gap: 34px;
  flex: 0 0 58.333333%;
  width: 58.333333%;
}

.afr-credits-row.e-con>.afr-credit-cell {
  padding: 131px 30px 50px 58px;
  gap: 20px;
}

.afr-project-credits {
  font-size: 17px;
  line-height: 1.4;
  max-width: 406px;
}

.afr-project-credits p {
  margin: 0 0 1em;
}

.afr-project-credits dl {
  margin: 0;
}

.afr-project-credits dt {
  font-weight: 700;
}

.afr-project-credits dd {
  margin: 0 0 10px;
}

/* The outer location paints the same dark surface across fractional joins. */
.elementor-location-footer { background: var(--afr-ink); box-shadow: 0 -1px 0 var(--afr-ink); }

/* Shared footer */
.afr-footer.e-con {
  position: relative;
  min-height: 274px;
  padding: 71px 30px 47px;
  display: grid;
  grid-template-columns: calc(66.666667% - 37px) minmax(0,1fr);
  gap: 0;
  background: var(--afr-ink);
  color: var(--afr-paper);
  width: 100%;
}

.afr-footer .afr-footer-brand {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin-top: 60px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -1.12px;
}

.afr-footer .afr-footer-legal {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin-top: 32px;
  font-size: 15px;
  line-height: 1.2;
}

.afr-footer .afr-footer-contact.e-con {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 0;
  gap: 30px;
}

.afr-footer p {
  margin: 0;
}

.afr-footer .afr-contact-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
}

.afr-footer .afr-contact-details {
  font-size: 24px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.afr-footer .afr-social-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  font-size: 24px;
  line-height: 1.2;
  white-space: normal;
}

/* Stable available width while native soft wraps are temporarily masked. */
.afr-social-row > span {
  flex: 1;
  min-width: 0;
}

.afr-social-row img {
  margin-block-start: calc((1.2em - 16px) / 2);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.afr-footer .elementor-widget-text-editor {
  color: inherit;
}

/* Team, clients and domain rows */
.afr-list-section.e-con {
  padding: 50px;
  gap: 30px;
}

.afr-list-section .elementor-icon-list-items {
  margin: 0;
  padding: 0;
}

.afr-client-list .elementor-icon-list-item {
  font: 500 26px/1.35 'Space Grotesk', sans-serif;
  min-height: 35.1px;
  padding: 0;
}

.afr-team-list .elementor-icon-list-item {
  font: 500 32px/1.25 'Space Grotesk', sans-serif;
  padding: 0;
  min-height: 80px;
}

.afr-client-list.elementor-widget .elementor-icon-list-item > a,
.afr-team-list.elementor-widget .elementor-icon-list-item a,
.afr-client-list.elementor-widget .elementor-icon-list-text,
.afr-team-list.elementor-widget .elementor-icon-list-text {
  font: inherit;
}

.afr-client-list.elementor-widget .elementor-icon-list-text,
.afr-team-list.elementor-widget .elementor-icon-list-text {
  flex: 1;
  min-width: 0;
  padding: 0!important;
  color: inherit!important;
}

.afr-client-list a,
.afr-team-list a {
  display: flex!important;
  box-sizing: border-box;
  width: 100%;
  gap: 30px;
  color: var(--afr-ink);
  align-items: center;
  justify-content: space-between;
}

.afr-client-list a {
  min-height: inherit;
}

.afr-team-list a {
  min-height: 80px;
  padding: 19px 0;
  border-top: 1px solid var(--afr-ink);
}

/* Pointer hover waits for its native row cascade; keyboard focus remains immediate. */
.afr-client-list a:hover:not(:where([data-afr-reveal="pending"], [data-afr-reveal="running"], [data-afr-reveal="pending"] *, [data-afr-reveal="running"] *)),
.afr-team-list a:hover:not(:where([data-afr-reveal="pending"], [data-afr-reveal="running"], [data-afr-reveal="pending"] *, [data-afr-reveal="running"] *)),
.afr-client-list a:focus-visible,
.afr-team-list a:focus-visible {
  padding-left: 15px;
  padding-right: 15px;
  background: var(--afr-ink);
  color: var(--afr-paper);
}

/* Figma allocates 20px; its original SVG extends 1px up and right. */
.afr-client-list a::after,
.afr-team-list a::after {
  content: '';
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin-right: -1px;
  transform: translateY(-.5px);
  background: center/21px 21px no-repeat;
}

.afr-client-list a::after {
  display: none;
  background-image: url(design/arrow-client.svg);
}

.afr-client-list a:hover:not(:where([data-afr-reveal="pending"], [data-afr-reveal="running"], [data-afr-reveal="pending"] *, [data-afr-reveal="running"] *))::after,
.afr-client-list a:focus-visible::after {
  display: block;
}

.afr-team-list a::after {
  background-image: url(design/arrow-team-dark.svg);
}

.afr-team-list a:hover:not(:where([data-afr-reveal="pending"], [data-afr-reveal="running"], [data-afr-reveal="pending"] *, [data-afr-reveal="running"] *))::after,
.afr-team-list a:focus-visible::after {
  background-image: url(design/arrow-team-light.svg);
}

.afr-domain.e-con {
  padding: 20px 55px;
  gap: 30px;
}

.afr-domain-title.elementor-widget .elementor-heading-title {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0;
}

/* Partner logos */
.afr-logo-row.e-con {
  padding: 60px 55px;
  gap: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.afr-logo-row .elementor-widget-image {
  flex: 1 1 80px;
  width: auto;
  max-width: 115px;
}

.afr-logo-row img {
  max-width: 115px;
  max-height: 115px;
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Demonstration notice */
.afr-demo-note.e-con {
  padding: 35px 50px;
  gap: 12px;
  border-bottom: 1px solid #18161b;
}

.afr-demo-note .elementor-heading-title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
}

.afr-demo-note .afr-copy {
  font-size: 17px;
  line-height: 1.35;
  max-width: 900px;
}

.afr-hero-frame.e-con {
  min-height: calc(100svh - var(--afr-header));
}

/* Source-approved activity button states */
.afr-activity-button .elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 23px;
  padding: 10px 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--afr-ink);
  font: 700 24px/1 'Space Grotesk',sans-serif;
  text-transform: uppercase;
}

/* Keep component insets when the theme resets pointer-focus shadows. */
.afr-activity-button .elementor-button,
.afr-activity-button .elementor-button:focus {
  box-shadow: inset 0 0 0 1px var(--afr-ink);
}

.afr-activity-button .elementor-button::before {
  content: '';
  display: block;
  width: 20.208px;
  height: 20.215px;
  background: url(design/activity-arrow-dark.svg) center/contain no-repeat;
  transform: rotate(180deg);
}

.afr-activity-button .elementor-button:hover,
.afr-activity-button .elementor-button:focus-visible {
  background: var(--afr-ink);
  color: var(--afr-paper);
}

.afr-activity-button .elementor-button:hover::before,
.afr-activity-button .elementor-button:focus-visible::before {
  background-image: url(design/activity-arrow-light.svg);
}

.afr-domain.e-con::before {
  content: '';
  position: absolute;
  top: 0;
  left: 55px;
  right: 55px;
  border-top: 1px solid var(--afr-ink);
  width: auto;
  height: 0;
  bottom: auto;
}

.afr-footer .afr-social-row span {
  min-width: 0;
}

.afr-credits-row .afr-copy {
  line-height: 1.17;
}

/* Named slideshow module: dimensions come from reusable container classes. */
.afr-slideshow {
  position: relative;
  width: 100%;
  color: var(--afr-ink);
}
/* A JS-managed opening becomes visible only after its first decoded image(s). */
html.afr-slideshows-boot .afr-slideshow:not([data-afr-images]) .afr-slideshow-frames { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  html.afr-slideshows-boot .afr-slideshow:not([data-afr-images]) .afr-slideshow-frames { visibility: visible; }
}


.afr-slideshow-frames {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--afr-gutter);
}

.afr-slideshow--pair .afr-slideshow-frames {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.afr-slideshow-frame {
  position: relative;
  min-width: 0;
  aspect-ratio: 710 / 458;
  margin: 0;
  overflow: hidden;
  background: var(--afr-paper);
}

.afr-slideshow-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: none;
  transition: none;
}

.afr-slideshow-banner .afr-slideshow-frame {
  aspect-ratio: auto;
  height: calc(100svh - var(--afr-header));
}

.afr-slideshow-column .afr-slideshow-frame {
  aspect-ratio: 710 / 826;
}

.afr-slideshow .afr-slideshow-toggle,
.afr-slideshow .afr-slideshow-toggle:focus {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--afr-ink);
  border-radius: 0;
  background: var(--afr-paper);
  color: var(--afr-ink);
  font: 400 15px/1.2 'Space Grotesk', sans-serif;
  cursor: pointer;
}

.afr-slideshow .afr-slideshow-toggle:hover,
.afr-slideshow .afr-slideshow-toggle:focus-visible {
  background: var(--afr-ink);
  color: var(--afr-paper);
}

.afr-slideshow-toggle[hidden] {
  display: none;
}

.afr-slideshow-notice {
  margin: 20px;
  font-size: 17px;
}

.afr-slideshow-demo-heading.e-con {
  padding: 30px 50px;
  gap: 12px;
}

.afr-slideshow-demo-heading .elementor-widget-heading .elementor-heading-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.afr-slideshow.afr-slideshow--fallback .afr-slideshow-frames {
  grid-template-columns: minmax(0, 1fr);
}

.afr-slideshow--pair.afr-slideshow--fallback .afr-slideshow-frame:last-child {
  display: none;
}

.afr-slideshow--unavailable img {
  visibility: hidden;
}

/* Project detail: native sections and structured record metadata. */
.afr-project-intro.afr-credits-row.e-con {
  padding-bottom: 0;
}

.afr-project-intro .afr-copy {
  line-height: 1.17;
  min-height: 0;
}

.afr-project-intro .afr-copy p {
  margin-bottom: 1.17em;
}

.afr-project-intro .afr-copy p:last-child {
  margin-bottom: 0;
}

.afr-project-intro.afr-credits-row.e-con > .afr-credit-cell {
  padding-right: 33px;
  gap: 43px;
}

/* Match credits to the actual title height while retaining the approved columns. */
@media (min-width: 768px) {
  .afr-project-intro.afr-credits-row.e-con {
    display: grid;
    grid-template-columns: minmax(0, 58.333333%) minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 34px;
    padding: 54px 0;
  }
  .afr-project-intro.afr-credits-row.e-con > .afr-text-cell {
    display: contents;
  }
  .afr-project-intro.afr-credits-row.e-con > .afr-text-cell > .elementor-widget {
    grid-column: 1;
    width: auto;
    margin: 0 50px;
  }
  .afr-project-intro.afr-credits-row.e-con > .afr-text-cell > .elementor-widget:first-child {
    grid-row: 1;
  }
  .afr-project-intro.afr-credits-row.e-con > .afr-text-cell > .elementor-widget:last-child {
    grid-row: 2;
  }
  .afr-project-intro.afr-credits-row.e-con > .afr-credit-cell {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    width: auto;
    padding: 0 33px 0 58px;
  }
}

.afr-project-summary {
  max-width: 406.359px;
  min-height: 0;
  font: 400 15px/1.15 'Space Grotesk', sans-serif;
}

.afr-project-summary p {
  margin: 0;
}

.afr-project-summary .afr-project-award {
  display: grid;
  grid-template-columns: 20.8578px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 1.15em;
}

.afr-project-award img {
  display: block;
  max-width: none;
}

.afr-project-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
  font: 400 15px/1 'Space Grotesk', sans-serif;
  text-transform: lowercase;
}

.afr-project-categories li {
  padding: 0;
  overflow-wrap: anywhere;
}

.afr-project-category-tag {
  display: block;
  padding: 7px;
  border: 1px solid var(--afr-ink);
}

.afr-project-categories li:hover {
  background: var(--afr-ink);
  color: var(--afr-paper);
}

.afr-gallery-end.e-con {
  padding-bottom: 0;
}

.afr-related {
  padding: 50px 30px;
  background: var(--afr-ink);
  color: var(--afr-paper);
}

.afr-related h2 {
  font: 500 24px/1.2 'Space Grotesk', sans-serif;
  margin: 0 0 15px;
  color: inherit;
}

.afr-related .afr-related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 25px 10px;
  color: inherit;
  font: 400 26px/1 'Space Grotesk', sans-serif;
}

.afr-related .afr-related-link,
.afr-related .afr-related-link:focus {
  box-shadow: inset 0 -1px var(--afr-paper);
}

.afr-related-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.afr-related-arrow {
  flex: none;
}

.afr-related-preview {
  position: fixed;
  left: 0;
  top: 0;
  translate: 0px 0px;
  width: 308px;
  height: 208px;
  pointer-events: none;
  z-index: 1002;
}

.afr-related-preview[hidden] {
  display: none;
}

.afr-related-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Home: native editable paragraph over the shared slideshow. */
/* Hide only until native masks/character steps exist; space stays reserved. */
html.afr-motion-preparing .afr-home-introduction,
html.afr-motion-preparing .afr-home-page .afr-header .afr-brand { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  html.afr-motion-preparing .afr-home-introduction,
  html.afr-motion-preparing .afr-home-page .afr-header .afr-brand { visibility: visible; }
}

.afr-home.e-con {
  /* Intro geometry follows the same proportional reduction as the site name. */
  --afr-home-size: calc(var(--afr-brand-size) * 20 / 28);
  --afr-home-padding: calc(var(--afr-home-size) * .75);
  --afr-home-arrow-size: calc(var(--afr-home-size) * 2);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: calc(100svh - var(--afr-header));
  padding: 40px var(--afr-margin);
  isolation: isolate;
}

.admin-bar .afr-home.e-con {
  min-height: calc(100svh - var(--afr-header) - var(--wp-admin--admin-bar--height, 32px));
}

.afr-home .afr-home-slideshow,
.afr-home .afr-home-surface-widget {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.afr-home-slideshow .elementor-shortcode,
.afr-home-slideshow .afr-slideshow,
.afr-home-slideshow .afr-slideshow-frames,
.afr-home-slideshow .afr-slideshow-frame,
.afr-home-surface-widget .elementor-shortcode {
  height: 100%;
}

.afr-home-slideshow .afr-slideshow-frame {
  aspect-ratio: auto;
}

.afr-home-slideshow [data-afr-position="bottom"] .afr-slideshow-frame img {
  object-position: center bottom;
}

.afr-home-slideshow [data-afr-position="top"] .afr-slideshow-frame img {
  object-position: center top;
}

.afr-home-surface-widget {
  pointer-events: none;
}

.afr-home-surface {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.afr-home-slideshow .afr-slideshow-toggle {
  z-index: 4;
}

.afr-home .afr-home-introduction.e-con {
  position: relative;
  z-index: 2;
  width: min(calc(var(--afr-brand-size) * 640.583 / 28), 100%);
  pointer-events: none;
  padding: 0;
  gap: 0;
}

.afr-home-copy {
  --afr-reveal-padding: var(--afr-home-padding);
  font: 400 var(--afr-home-size)/1.15 'Space Grotesk', sans-serif;
  overflow-wrap: anywhere;
}

.afr-home-copy p {
  margin: 0;
}

.afr-home-copy a:any-link {
  display: block;
  position: relative;
  padding: 0 var(--afr-home-padding);
  color: var(--afr-paper);
  pointer-events: auto;
}

.afr-home-copy a:not(.afr-home-copy-ready) {
  background: var(--afr-ink);
  padding-block: var(--afr-home-padding);
}

/* Hold every existing reveal layout until its own initial masks are prepared.
   Parent opacity also prevents an explicitly visible child from escaping the hold. */
html.afr-motion-preparing :is(.afr-lab-introduction, .afr-project-intro, .afr-contact-details-column,
  .afr-studio-intro-copy, .afr-biography-copy, .afr-creations, .afr-domain, .afr-studio-columns,
  .afr-portrait, .afr-collective-gallery, .afr-lab-partners, .afr-lab-activity,
  .afr-project-card, .afr-project-filters, .afr-related, .afr-category-heading,
  .afr-category-button, .afr-reveal-block, .afr-footer),
html.afr-motion-preparing :is(.afr-reveal-type,.afr-reveal-lines) {
  visibility: hidden;
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  html.afr-motion-preparing :is(.afr-lab-introduction, .afr-project-intro, .afr-contact-details-column,
  .afr-studio-intro-copy, .afr-biography-copy, .afr-creations, .afr-domain, .afr-studio-columns,
  .afr-portrait, .afr-collective-gallery, .afr-lab-partners, .afr-lab-activity,
  .afr-project-card, .afr-project-filters, .afr-related, .afr-category-heading,
  .afr-category-button, .afr-reveal-block, .afr-footer),
  html.afr-motion-preparing :is(.afr-reveal-type,.afr-reveal-lines) {
    visibility: visible;
    opacity: 1;
  }
}

/* Single-copy text motion. Home alone opts into its decorative backing. */
.afr-line-cascade { position: relative; }
.afr-reveal-panels { --afr-reveal-padding: .75em; padding: var(--afr-reveal-padding); isolation: isolate; }
.afr-home-copy a.afr-home-copy-ready { padding-block: var(--afr-home-padding); }
.afr-line-panels { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--afr-ink); pointer-events: none; z-index: -1; }
.afr-line-motion-mask { display: block; overflow: hidden; white-space: pre; }
.afr-line-motion-text { display: block; white-space: pre; }
/* The final visible carrier owns native clamping and its generated ellipsis. */
.afr-line-cascade.afr-lines-clamped { display: block; -webkit-line-clamp: unset; }
.afr-line-cascade.afr-lines-clamped .afr-clamped-line-text {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;
  white-space: normal; overflow: hidden;
}
/* Inline fragments preserve the original links and explicit line breaks. */
.afr-inline-source { display: contents; }
.afr-inline-motion-mask { display: inline-block; vertical-align: baseline; overflow: visible; clip-path: inset(0); white-space: pre; }
.afr-inline-motion-text { display: block; white-space: pre; }
/* The native marker stays accessible; its decorative twin shares the first line. */
li.afr-list-lines-running::marker { color: transparent; }
.afr-line-marker-mask { margin-left: -1.25em; padding-left: 1.25em; }
.afr-line-marker-mask > .afr-line-motion-text,
.afr-line-marker-mask > .afr-inline-motion-text { position: relative; }
.afr-line-marker { display: list-item; list-style: inherit; position: absolute; top: 0; left: 0; width: 0; }

.afr-type-char { display: inline; }
.afr-text-pending { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .afr-text-pending { opacity: 1; } }

/* The intro text and its separate arrow link form one hover/focus group. */
.afr-home-introduction:has(a:is(:hover, :focus-visible)) .afr-home-copy a,
.afr-home-introduction:has(a:is(:hover, :focus-visible)) .afr-home-arrow {
  color: var(--afr-ink);
}

.afr-home-introduction:has(a:is(:hover, :focus-visible)) .afr-line-panels { fill: var(--afr-paper); }
.afr-home-introduction:has(a:is(:hover, :focus-visible)) .afr-home-copy a:not(.afr-home-copy-ready) { background: var(--afr-paper); }

.afr-home-introduction:has(a:is(:hover, :focus-visible)) .afr-home-arrow svg {
  color: var(--afr-paper);
}

.afr-home .afr-home-arrow-widget {
  position: absolute;
  top: 100%;
  left: 0;
  width: var(--afr-home-arrow-size);
}

.afr-home-arrow {
  display: block;
  width: var(--afr-home-arrow-size);
  height: var(--afr-home-arrow-size);
  overflow: hidden;
  pointer-events: auto;
}

.afr-home-arrow svg {
  color: var(--afr-ink);
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.afr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.afr-home-page .elementor-location-footer {
  display: none;
}

/* Shared displacement surfaces; native DOM is restored at rest. */
.afr-mesh-surface { position: relative; overflow: clip; }
.afr-block-displacement .afr-block-trial-canvas {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.afr-block-displacement.afr-block-displacement-active > :not(.afr-block-trial-canvas,.afr-slideshow-toggle) {
  opacity: 0;
}

.afr-block-displacement.afr-block-displacement-active .afr-block-trial-canvas {
  display: block;
}

.afr-block-trial-toggle {
  position: fixed;
  z-index: 1001;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border: 1px solid var(--afr-ink);
  background: var(--afr-paper);
  color: var(--afr-ink);
  font: 400 14px/1.2 'Space Grotesk', sans-serif;
  cursor: pointer;
}

.afr-block-trial-toggle[aria-pressed="true"] {
  background: var(--afr-ink);
  color: var(--afr-paper);
}

.afr-block-trial-toggle:disabled {
  opacity: .6;
  cursor: default;
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .afr-block-displacement.afr-block-displacement-active > :not(.afr-block-trial-canvas,.afr-slideshow-toggle) { opacity: 1; }
  .afr-block-displacement.afr-block-displacement-active .afr-block-trial-canvas { display: none; }
}

/* Studio page sections reuse native headings, text, lists and media. */
.afr-studio-intro.e-con {
  min-height: 900px;
}
.afr-studio-intro.e-con > .afr-studio-intro-copy {
  padding: 50px;
  justify-content: center;
  gap: 26px;
}
.afr-intro-lead {
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
}
.afr-studio-intro-copy .afr-copy {
  text-wrap: balance;
}
.afr-studio-intro-media > .elementor-widget,
.afr-intro-media > .elementor-widget-container {
  height: 100%;
  width: 100%;
}
.afr-intro-media .elementor-wrapper {
  width: 100%;
  height: 100%;
  aspect-ratio: 710 / 880;
}
.afr-intro-media video,
.afr-intro-media iframe,
.afr-intro-media .elementor-custom-embed-image-overlay {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.afr-creations.e-con {
  padding: 60px 55px 20px;
  gap: 20px;
}
.afr-creations .afr-domain.e-con {
  padding: 20px 0;
}
.afr-creations .afr-domain.e-con::before {
  left: 0;
  right: 0;
}
.afr-creations .afr-domain.e-con:last-child {
  border-bottom: 1px solid var(--afr-ink);
}
.afr-studio-columns.e-con {
  padding: 60px 0;
}
.afr-studio-columns.e-con > .afr-studio-column {
  padding: 0 20px 0 55px;
  gap: 30px;
  align-items: stretch;
}
.afr-studio-columns.e-con > .afr-studio-column + .afr-studio-column {
  padding: 0 55px 0 20px;
}
.afr-studio-columns-compact.e-con {
  padding-bottom: 20px;
}
.afr-studio-columns.e-con > .afr-studio-column.afr-heading-offset {
  padding-top: 75px;
}
.afr-team-list .elementor-icon-list-item:last-child a {
  min-height: 81px;
  border-bottom: 1px solid var(--afr-ink);
}
.afr-biography.e-con {
  padding: 60px 0;
  align-items: flex-start;
}
.afr-biography.e-con > .afr-biography-copy {
  padding: 0 50px;
  gap: 10px;
}
.afr-biography .afr-role {
  color: rgb(24 22 27 / 60%);
  margin-bottom: 13px;
}
.afr-portrait-cell.e-con {
  align-items: flex-start;
}
.afr-portrait.elementor-widget {
  width: min(337px, 100%);
  aspect-ratio: 337 / 389;
}
.afr-portrait .elementor-widget-container,
.afr-portrait a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.afr-portrait img {
  position: absolute;
  width: 202.27%;
  height: 131.42%;
  max-width: none;
  left: -40.25%;
  top: -31.42%;
}
.afr-portrait a::after {
  content: '';
  z-index: 4;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: url(design/portrait-corner.svg) center/contain no-repeat;
  pointer-events: none;
}
.afr-portrait a:hover::after,
.afr-portrait a:focus-visible::after {
  background-image: url(design/portrait-corner-hover.svg);
}
.afr-collective-gallery.e-con {
  padding: 60px 0 20px;
}
.afr-collective-slideshow,
.afr-collective-slideshow .elementor-shortcode {
  width: 100%;
}
.afr-collective-slideshow .afr-slideshow-frames {
  aspect-ratio: auto;
}
.afr-collective-slideshow .afr-slideshow-frame {
  aspect-ratio: 710 / 458;
}
.afr-awards.e-con {
  gap: 0;
}
.afr-award-row.e-con {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--afr-ink);
}
.afr-awards > .afr-award-row.e-con:last-child,
.afr-awards > .afr-reveal-frame:last-child > .afr-award-row.e-con {
  border-bottom: 1px solid var(--afr-ink);
}
.afr-award-row .afr-copy {
  font-size: 26px;
  line-height: 1.25;
}
.afr-award-row .afr-award-year {
  width: auto;
  flex: 0 0 auto;
  font-weight: 500;
}
.afr-award-row .afr-award-description {
  flex: 1;
  min-width: 0;
}
.afr-studio-engagement.e-con {
  padding-bottom: 80px;
}

/* Projects: source four-column grid and bottom category filters. */
.afr-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  padding-block: 20px;
}

.afr-project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 10px;
  padding-bottom: 20px;
}

.afr-project-card[hidden],
.afr-project-empty[hidden] {
  display: none;
}

.afr-project-card-media {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
}

.afr-project-card-media > img:not(.afr-project-card-arrow) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Whole-frame inset: no transformed image edges or independent thin border. */
:is(.afr-project-card-media,.afr-article-card-media)::after {
  content: ''; position: absolute; inset: 0; box-sizing: border-box; pointer-events: none;
}
:is(.afr-project-card,.afr-article-card):focus-visible :is(.afr-project-card-media,.afr-article-card-media)::after {
  box-shadow: inset 0 0 0 10px var(--afr-paper);
}
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  :is(.afr-project-card,.afr-article-card):hover :is(.afr-project-card-media,.afr-article-card-media)::after {
    box-shadow: inset 0 0 0 10px var(--afr-paper);
  }
  .afr-project-card:hover .afr-project-card-arrow,
  .afr-article-card:hover .afr-article-card-arrow { display: block; }
}

.afr-project-card-media .afr-project-card-arrow {
  position: absolute;
  z-index: 1;
  right: 9px;
  bottom: 10px;
  display: none;
  max-width: none;
}

.afr-project-card:focus-visible .afr-project-card-arrow {
  display: block;
}

.afr-project-card-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-inline: 20px;
}

.afr-project-card-copy h2 {
  margin: 0;
  font: 700 20px/1.15 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.afr-project-card-copy p {
  margin: 0;
  font: 400 15px/1.1 'Space Grotesk', sans-serif;
  color: rgb(24 22 27 / 60%);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.afr-project-filters {
  padding: 50px 30px;
  background: var(--afr-ink);
  color: var(--afr-paper);
}

.afr-project-filters h2 {
  margin: 0 0 15px;
  font: 500 24px/1.2 'Space Grotesk', sans-serif;
}

.afr-project-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.afr-project-filter-buttons button {
  min-height: 60px;
  max-width: 100%;
  border: 1px solid currentColor;
  border-radius: 0;
  padding: 12px 15px;
  font: 500 24px/1 'Space Grotesk', sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
  background: transparent;
  color: var(--afr-paper);
  cursor: pointer;
}

.afr-project-filters .afr-project-filter-buttons button:hover,
.afr-project-filters .afr-project-filter-buttons button:focus,
.afr-project-filters .afr-project-filter-buttons button[aria-pressed="true"] {
  background: var(--afr-paper);
  color: var(--afr-ink);
  border-color: var(--afr-paper);
}

.afr-project-empty {
  margin: 0;
  padding: 20px 30px;
}

.afr-lab-introduction.e-con {
  padding: 60px 0 20px;
  align-items: flex-start;
}
.afr-lab-introduction.e-con > .afr-lab-intro-lead {
  padding: 0 20px 0 50px;
  flex-basis: calc((100% - 20px)/2 - 2.5px);
  width: calc((100% - 20px)/2 - 2.5px);
  gap: 30px;
}
.afr-lab-introduction.e-con > .afr-lab-intro-activities {
  padding: 23px 55px 0 20px;
  flex-basis: calc((100% - 20px)/2 + 2.5px);
  width: calc((100% - 20px)/2 + 2.5px);
}
.afr-lab-introduction ul {
  padding-left: 30px;
  margin: 30px 0 0;
}
.afr-lab-introduction li { margin-bottom: 10px; }
.afr-lab-introduction li:last-child { margin-bottom: 0; }

/* Lab activities: native text, media and activity buttons. */
.afr-activity-floating-cta .afr-lab-copy p:first-child { margin-bottom: 25.3px; }
/* Shared text/media cells retain their minimum inset when copy grows. */
.afr-lab-activity.afr-text-media.e-con > .afr-text-cell {
  padding-block: 50px;
}
.afr-lab-partners .afr-sr-only {
  position: absolute;
}

.afr-lab-activity .afr-lab-copy p:first-child strong {
  font-size: 22px;
}
.afr-activity-button .elementor-button-content-wrapper {
  gap: 0;
}
.afr-activity-button .elementor-button-text {
  font: inherit;
  color: inherit;
}

/* Article and activity listings share native WordPress content. */
.afr-article-list-heading.e-con {
  min-height: 209px;
  padding: 60px 50px;
  justify-content: center;
}
.afr-article-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 40px 0;
  padding: 0 50px 70px;
}
.afr-article-card {
  display: flex;
  gap: 15px;
  align-items: stretch;
  min-width: 0;
}
.afr-article-card-media {
  position: relative;
  flex: 0 0 52.238806%;
  min-width: 0;
  min-height: 270px;
  aspect-ratio: 350/270;
  overflow: hidden;
}
.afr-article-card-media > img:first-child:not(.afr-article-card-arrow) {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.afr-article-card-arrow {
  display: none;
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 20px;
  height: 20px;
}
.afr-article-card:focus-visible .afr-article-card-arrow { display: block; }
.afr-article-card-copy {
  min-width: 0;
  flex: 1;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow-wrap: anywhere;
}
.afr-article-card h2 {
  margin: 0;
  font: 700 20px/1.15 'Space Grotesk',sans-serif;
  text-transform: uppercase;
}
.afr-article-card p {
  margin: 0;
  font: 400 15px/1.1 'Space Grotesk',sans-serif;
  color: rgba(24,22,27,.6);
}
.afr-article-card time {
  display: block;
  padding-top: 10px;
  font: 400 15px/1.15 'Space Grotesk',sans-serif;
}
.afr-article-heading.e-con {
  padding: 60px 16.666667% 0;
  gap: 20px;
}
.afr-article-meta {
  margin: 0;
  font: 400 15px/1.15 'Space Grotesk',sans-serif;
  color: rgba(24,22,27,.6);
}
.afr-article-text.e-con { padding: 60px 16.666667%; }
.afr-article-intro.e-con { padding-top: 50px; }
.afr-article-text .afr-copy p { margin-bottom: 0; white-space: pre-wrap; }
.afr-article-wide img {
  width: 100%;
  aspect-ratio: 1440/700;
  object-fit: cover;
  display: block;
}

/* Contact uses a half-column, independently edited slideshow. */
.afr-contact-row.e-con { padding: 0; }
.afr-contact-row.e-con > .afr-contact-details-column {
  max-height: 810px;
  padding: 0 20px 0 50px;
  gap: 30px;
  justify-content: center;
}
.afr-contact-copy.afr-copy { font-size: 22px; line-height: 1.15; }
.afr-contact-media.e-con { position: relative; aspect-ratio: 710/826; max-height: 810px; }
.afr-contact-slideshow.elementor-widget {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
}
.afr-contact-slideshow :is(.elementor-widget-container,.elementor-shortcode,.afr-slideshow,.afr-slideshow-frames,.afr-slideshow-frame) { height: 100%; }
.afr-contact-slideshow .afr-slideshow-frame { aspect-ratio: auto; }
.afr-contact-slideshow [data-afr-profile="contact"] .afr-slideshow-frame img {
  position: absolute;
  width: 202.816901%;
  height: 100%;
  max-width: none;
  left: 0;
  top: 0;
}
.afr-contact-slideshow [data-afr-crop="landscape-up"] .afr-slideshow-frame img {
  height: 106.416465%;
  top: -6.416465%;
}
.afr-contact-slideshow [data-afr-crop="portrait-right"] .afr-slideshow-frame img {
  width: 220%;
  height: 108.474576%;
  left: -106.17%;
}
.afr-contact-slideshow [data-afr-crop="landscape-offset"] .afr-slideshow-frame img {
  width: 207.988732%;
  left: -52.347042%;
}
.afr-contact-slideshow [data-afr-crop="portrait-up"] .afr-slideshow-frame img {
  width: 100%;
  height: 108.653511%;
  top: -8.653511%;
}
.afr-category-navigation.e-con {
  padding: 50px 30px;
  gap: 15px;
  background: var(--afr-ink);
  color: var(--afr-paper);
}
.afr-category-heading .elementor-heading-title {
  font: 500 24px/1.2 'Space Grotesk',sans-serif;
  color: inherit;
}
.afr-category-buttons.e-con { flex-flow: row wrap; gap: 10px; }
.afr-category-button.elementor-widget { width: auto; max-width: 100%; }
.afr-category-button .elementor-button {
  display: flex;
  align-items: center;
  min-height: 60px;
  border: 1px solid var(--afr-paper);
  border-radius: 0;
  padding: 10px 15px;
  background: transparent;
  color: var(--afr-paper);
  font: 500 24px/1 'Space Grotesk',sans-serif;
  text-align: left;
}
.afr-category-button .elementor-button:hover,
.afr-category-button .elementor-button:focus-visible {
  background: var(--afr-paper);
  color: var(--afr-ink);
}

/* 3. Responsive and accessibility rules */
@media (max-width: 1100px) {
  .afr-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :root {
    --afr-header: 64px;
    --afr-brand-size: 18px;
  }

  .afr-header.e-con {
    height: 64px;
    min-height: 64px;
    padding: 10px 20px;
    gap: 10px;
  }

  .afr-header .afr-brand {
    margin: 0;
    letter-spacing: -.72px;
  }

  .afr-menu {
    display: none;
  }

  .afr-mobile-toggle {
    display: flex!important;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 44px;
    padding: 0!important;
    font-size: 16px!important;
    font-weight: 500!important;
  }

  .afr-mobile-dialog:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--afr-paper);
    padding: 10px 20px 30px;
    overflow: auto;
    z-index: 1001;
  }

  .afr-mobile-close {
    display: block;
    width: 100%;
    height: 44px;
    text-align: right;
    padding: 0!important;
    font-size: 16px!important;
    font-weight: 500!important;
    margin-bottom: 8px;
  }

  .afr-mobile-dialog ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .afr-mobile-dialog li>a,
  .afr-mobile-dialog li>span {
    display: flex;
    align-items: center;
    min-height: 60px;
    font-size: 32px;
    font-weight: 500;
    text-decoration: none;
  }

  .afr-footer.e-con {
    grid-template-columns: 1.4fr 1fr;
  }

  .afr-footer .afr-social-row {
    font-size: 20px;
    white-space: normal;
  }

  .afr-footer .afr-contact-details {
    font-size: 20px;
  }

  .afr-footer .afr-footer-brand {
    font-size: 24px;
  }

}

@media (max-width: 782px) {
  .admin-bar .afr-header.e-con {
    top: 46px;
  }

  .admin-bar .afr-mobile-dialog:not([hidden]) {
    top: 46px;
  }

}

@media (min-width: 783px) {
  .admin-bar .afr-mobile-dialog:not([hidden]) {
    top: 32px;
  }

}

@media (max-width: 767px) {
  .afr-row.afr-studio-columns-compact.e-con {
    gap: 0;
  }
  .afr-studio-columns-compact > .afr-studio-column:first-child .afr-team-list .elementor-icon-list-item:last-child a,
  .afr-studio-columns-compact > .afr-studio-column:first-child .afr-award-row:last-child {
    border-bottom: 0;
  }

  .afr-studio-intro.e-con {
    min-height: 0;
  }
  .afr-studio-intro.e-con > .afr-studio-intro-copy {
    padding: 40px 20px;
  }
  .afr-intro-lead {
    font-size: 26px;
  }
  .afr-studio-intro-media .elementor-wrapper {
    aspect-ratio: 710 / 880;
  }
  .afr-creations.e-con {
    padding: 40px 20px 20px;
  }
  .afr-studio-columns.e-con {
    padding: 40px 0 20px;
  }
  .afr-studio-columns.e-con > .afr-studio-column,
  .afr-studio-columns.e-con > .afr-studio-column + .afr-studio-column {
    padding: 0 20px;
  }
  .afr-studio-columns.e-con > .afr-studio-column.afr-heading-offset {
    padding-top: 0;
  }
  .afr-biography.e-con {
    padding: 40px 0;
    gap: 30px;
  }
  .afr-biography.e-con > .afr-biography-copy {
    padding: 0 20px;
  }
  .afr-biography.e-con > .afr-portrait-cell {
    align-items: center;
    padding: 0 20px;
  }
  .afr-collective-gallery.e-con {
    padding: 20px 0;
  }
  .afr-award-row .afr-copy {
    font-size: 20px;
  }
  .afr-award-row.e-con {
    gap: 20px;
  }
  .afr-studio-engagement.e-con {
    padding-bottom: 40px;
  }

  .afr-project-intro.afr-credits-row.e-con > .afr-credit-cell {
    padding: 0 20px 32px;
    gap: 24px;
  }

  .afr-related {
    padding: 32px 20px;
  }

  .afr-related .afr-related-link {
    font-size: 22px;
    line-height: 1.15;
    padding: 20px 0;
  }

  .afr-related-preview {
    display: none;
  }

  .afr-slideshow--pair .afr-slideshow-frames {
    grid-template-columns: minmax(0, 1fr);
  }

  .afr-slideshow--pair .afr-slideshow-frame:last-child {
    display: none;
  }

  .afr-slideshow-demo-heading.e-con {
    padding: 24px 20px;
  }

  :root {
    --afr-margin: 20px;
  }

  .afr-row.e-con {
    flex-direction: column;
    gap: 20px;
  }

  .afr-row.e-con>.e-con {
    width: 100%;
    flex: 1 1 auto;
  }

  .afr-empty {
    display: none!important;
  }

  .afr-pair .afr-media img {
    aspect-ratio: 710/880;
  }

  .afr-text-media.e-con {
    gap: 0;
  }

  .afr-text-media.e-con>.afr-text-cell {
    padding: 32px 20px;
    gap: 24px;
  }

  .afr-text-media .afr-media img {
    min-height: 0;
    height: auto;
    aspect-ratio: 720/700;
  }

  .afr-text-section.e-con,
  .afr-row.e-con > .afr-text-section.e-con,
  .afr-list-section.e-con {
    padding: 32px 20px;
    gap: 24px;
  }

  .afr-title.elementor-widget .elementor-heading-title {
    font-size: 36px;
    line-height: 1.03;
    letter-spacing: -1.44px;
  }

  .afr-copy {
    font-size: 18px;
    line-height: 1.3;
  }

  .afr-credits-row.e-con>.afr-text-cell,
  .afr-credits-row.e-con>.afr-credit-cell {
    padding: 32px 20px;
    width: 100%;
    flex: auto;
    gap: 24px;
  }

  .afr-credits-row.e-con {
    gap: 0;
  }

  .afr-footer.e-con {
    display: flex;
    flex-direction: column;
    padding: 40px 20px 30px;
    gap: 30px;
  }

  .afr-footer .afr-footer-brand {
    order: 0;
    margin-top: 0;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -.88px;
  }

  .afr-footer .afr-footer-contact.e-con {
    order: 1;
    gap: 24px;
  }

  .afr-footer .afr-footer-legal {
    order: 2;
    margin-top: 0;
    font-size: 15px;
    line-height: 1.2;
  }

  .afr-footer .afr-footer-legal p { display: inline; }

  .afr-footer .afr-contact-title {
    font-size: 20px;
  }

  .afr-footer .afr-contact-details {
    font-size: 16px;
  }

  .afr-footer .afr-social-row {
    font-size: 16px;
    min-height: 44px;
    gap: 20px;
    white-space: normal;
  }

  .afr-domain.e-con {
    padding: 20px;
    gap: 24px;
  }

  .afr-domain-title.elementor-widget .elementor-heading-title {
    font-size: 28px;
    letter-spacing: 0;
  }

  .afr-client-list .elementor-icon-list-item {
    font-size: 22px;
  }

  .afr-team-list .elementor-icon-list-item {
    font-size: 28px;
  }

  .afr-logo-row.e-con {
    padding: 40px 20px;
    gap: 20px;
  }

  .afr-demo-note.e-con {
    padding: 24px 20px;
  }

  .afr-demo-note .elementor-heading-title {
    font-size: 24px;
  }

  .afr-domain.e-con::before {
    left: 20px;
    right: 20px;
  }

  .afr-logo-row .elementor-widget-image {
    flex: 0 0 115px;
    width: 115px;
  }

}

@media (min-width: 768px) and (max-width: 1100px) {
  .afr-article-grid { grid-template-columns: minmax(0,1fr); }
  .afr-article-card-media { flex-basis: 48%; }
}

@media (max-width: 767px) {
  .afr-lab-introduction.e-con { padding: 40px 0 20px; gap: 20px; }
  .afr-lab-introduction.e-con > .afr-lab-intro-lead { padding: 0 20px; gap: 24px; }
  .afr-lab-introduction.e-con > .afr-lab-intro-activities { padding: 24px 20px 0; }
  .afr-lab-introduction .afr-title.elementor-widget .elementor-heading-title { font-size: 32px; line-height: 1.15; letter-spacing: -1.28px; }
  .afr-lab-introduction .afr-copy { line-height: 1.15; }

  .afr-contact-row.e-con { gap: 20px; padding-top: 32px; }
  .afr-contact-row.e-con > .afr-contact-details-column { padding: 0 20px; gap: 24px; }
  .afr-contact-row .afr-title.elementor-widget .elementor-heading-title { font-size: 32px; line-height: 1.15; letter-spacing: -1.28px; }
  .afr-contact-copy.afr-copy { font-size: 18px; line-height: 1.15; }
  .afr-contact-media.e-con { flex: none; aspect-ratio: 710/826; }
  .afr-category-navigation.e-con { padding: 40px 20px; }
  .afr-category-heading .elementor-heading-title { font-size: 20px; }
  .afr-category-button .elementor-button { font-size: 18px; line-height: 1.15; min-height: 43px; }

  /* Lab and article mobile composition */
  .afr-lab-partners.afr-logo-row.e-con { padding: 32px 20px; gap: 24px 16px; justify-content: center; }
  .afr-lab-partners .elementor-widget-image { flex: 0 0 100px; max-width: 100px; }
  .afr-lab-partners img { max-width: 100px; max-height: 100px; }
  .afr-lab-activity.e-con > .afr-lab-media { order: -1; }
  .afr-lab-activity.afr-text-media.e-con > .afr-text-cell { padding-block: 32px; }
  .afr-lab-activity .afr-title.elementor-widget .elementor-heading-title { font-size: 32px; line-height: 1.15; letter-spacing: -1.28px; }
  .afr-lab-activity .afr-copy { line-height: 1.15; }
  .afr-lab-activity .afr-lab-copy p:first-child strong { font-size: 18px; }
  .afr-lab-activity .afr-activity-button { width: 100%; }
  .afr-lab-activity .afr-activity-button a { display: flex; font-size: 20px; line-height: 1.15; }
  .afr-article-list-heading.e-con { min-height: 0; padding: 40px 20px; }
  .afr-article-list-heading .afr-title.elementor-widget .elementor-heading-title { font-size: 32px; line-height: 1.15; letter-spacing: -1.28px; }
  .afr-article-grid { grid-template-columns: minmax(0,1fr); padding: 24px 20px 40px; gap: 30px; }
  .afr-article-card { flex-direction: column; align-items: stretch; gap: 15px; }
  .afr-article-card-media { flex: auto; width: 100%; min-height: 0; }
  .afr-article-heading.e-con { padding: 40px 20px 0; }
  .afr-article-text.e-con { padding: 40px 20px; }
  .afr-article-intro.e-con { padding-top: 30px; }
}

@media (max-width: 359px) {
  .afr-header.e-con {
    padding-left: 12px;
    padding-right: 12px;
  }

  :root {
    --afr-brand-size: 16px;
  }

  .afr-mobile-toggle {
    width: 50px;
  }

}

@media (prefers-reduced-motion:reduce) {
  .afr-journal-toggle img { transition: none !important; }

  html {
    scroll-behavior: auto;
  }

}

@media (max-width: 600px) {
  .afr-project-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .afr-project-filters {
    padding: 32px 20px;
  }
  .afr-project-filter-buttons button {
    min-height: 44px;
    font-size: 18px;
    line-height: 1.15;
    padding: 10px 15px;
  }
}

/* Explicit local measurement page only. */
.afr-block-bench-panel {
  position: fixed;
  z-index: 1002;
  left: 16px;
  bottom: 16px;
  width: min(390px, calc(100% - 32px));
  max-height: 45svh;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--afr-ink);
  background: var(--afr-paper);
  color: var(--afr-ink);
  font: 400 12px/1.4 'Space Grotesk', sans-serif;
}
.afr-block-bench-panel button { margin: 4px; padding: 6px; font: inherit; }
.afr-block-bench-panel pre { white-space: pre-wrap; font: 11px/1.4 monospace; }

/* Shared stationary frames carry native bordered controls/rows as a whole. */
.afr-reveal-frame { display: block; overflow: clip; min-width: 0; }
.afr-team-list .elementor-icon-list-item > .afr-reveal-frame { flex: 1; width: 100%; }
.afr-project-filter-buttons > .afr-reveal-frame { display: inline-grid; grid-template-columns: minmax(0,1fr); max-width: 100%; }
.afr-project-filter-buttons > .afr-reveal-frame > button { width: 100%; }
.afr-reveal-frame:has(:focus-visible) { outline: 2px solid currentColor; outline-offset: 3px; }
.afr-frame-pending { transform: translateY(calc(-100% - 1px)); }
.afr-mask-pending { opacity: 0; }
.afr-project-card-media, .afr-portrait a, .afr-collective-gallery .afr-slideshow-frame, .afr-lab-media, .afr-lab-partners .afr-partner-logo { --afr-image-travel: 8%; }
.afr-collective-gallery .afr-slideshow-frame, .afr-lab-media, .afr-lab-partners .afr-partner-logo { overflow: clip; }
.afr-portrait img.afr-image-pending, .afr-collective-gallery img.afr-image-pending, .afr-lab-media img.afr-image-pending, .afr-lab-partners img.afr-image-pending { transform: translateY(calc(-1 * var(--afr-image-travel))); }
.afr-motion-preparing .afr-project-card-media > img:not(.afr-project-card-arrow),
.afr-project-card-media > .afr-image-pending { transform: translateY(calc(-1 * var(--afr-image-travel))); }
@media (prefers-reduced-motion: reduce) {
  .afr-mask-pending { opacity: 1; }
  .afr-frame-pending,
  .afr-motion-preparing .afr-project-card-media > img:not(.afr-project-card-arrow),
  .afr-project-card-media > .afr-image-pending,
  .afr-portrait img.afr-image-pending, .afr-collective-gallery img.afr-image-pending, .afr-lab-media img.afr-image-pending, .afr-lab-partners img.afr-image-pending { transform: none; }
}

/* Framed Image Drift: opt in on the shared wide/pair row. Static unsupported/reduced-motion fallback. */
@supports (animation-timeline: view()) and (container-type: size) and (height: 1cqh) {
  @media (prefers-reduced-motion: no-preference) {
    :is(.afr-wide, .afr-pair) { --afr-frame-ratio: var(--afr-media-ratio); }
    .afr-pair { --afr-frame-ratio: 710 / 880; }
    :is(.afr-frame-parallax:is(.afr-wide, .afr-pair), :is(.afr-frame-drift,.afr-parallax-trial) :is(.afr-wide, .afr-pair)):not(.afr-frame-static) .afr-media:has(img):not(.afr-frame-static):not(:has(figcaption)) {
      position: relative;
      aspect-ratio: var(--afr-frame-ratio);
      overflow: clip;
      container-type: size;
      view-timeline: --afr-image-frame block;
      view-timeline-inset: 0;
    }
    :is(.afr-frame-parallax:is(.afr-wide, .afr-pair), :is(.afr-frame-drift,.afr-parallax-trial) :is(.afr-wide, .afr-pair)):not(.afr-frame-static) .afr-media:has(img):not(.afr-frame-static):not(:has(figcaption)) :is(.elementor-widget-container, a) {
      display: block;
      position: static;
      width: 100%;
      height: 100%;
    }
    :is(.afr-frame-parallax:is(.afr-wide, .afr-pair), :is(.afr-frame-drift,.afr-parallax-trial) :is(.afr-wide, .afr-pair)):not(.afr-frame-static) .afr-media:has(img):not(.afr-frame-static):not(:has(figcaption)) img {
      --afr-frame-travel: max(0px, min(32px, calc(3cqh - 1px)));
      position: absolute;
      top: -3%;
      left: 0;
      width: 100%;
      height: 106%;
      max-width: none;
      aspect-ratio: auto;
      object-fit: cover;
      animation: afr-framed-drift 1ms linear both;
      animation-timeline: --afr-image-frame;
      animation-range: cover;
    }
    :is(.afr-frame-parallax:is(.afr-wide, .afr-pair), :is(.afr-frame-drift,.afr-parallax-trial) :is(.afr-wide, .afr-pair)):not(.afr-frame-static) .afr-media:has(a:focus-visible) {
      outline: 2px solid currentColor;
      outline-offset: 4px;
    }
    @keyframes afr-framed-drift {
      from { transform: translateY(calc(-1 * var(--afr-frame-travel))); }
      to { transform: translateY(var(--afr-frame-travel)); }
    }
  }
}

/* Explicit local wheel-smoothing comparison; document and sticky positioning stay native. */
html.afr-scroll-trial, html.afr-scroll-trial body { height: auto; }
html.afr-scroll-trial.lenis-smooth { scroll-behavior: auto !important; }
html.afr-scroll-trial.lenis-stopped { overflow: clip; }

/* Local engineering fixtures only; never emitted by ordinary site pages. */
.afr-motion-fixtures { max-width: 760px; padding: 30px; margin: auto; font: 400 24px/1.3 'Space Grotesk', sans-serif; }
.afr-motion-sample { display: block; margin-block: 28px; }
.afr-motion-narrow { max-width: 320px; }
.afr-motion-check-panel { position: fixed; z-index: 99999; right: 12px; bottom: 12px; max-width: 350px; max-height: 35svh; overflow: auto; padding: 10px; background: var(--afr-paper); color: var(--afr-ink); border: 1px solid; font: 12px/1.2 monospace; }
.afr-motion-check-panel pre, .afr-motion-fixtures pre { white-space: pre-wrap; font: 12px/1.3 monospace; }

.afr-motion-mobile-frame { display: block; width: 390px; height: 844px; border: 0; max-width: none; }

.afr-ui-frame { display: block; max-width: none; border: 0; }

body.afr-ui-proof .afr-motion-fixtures { max-width: none; padding: 0; margin: 0; }
body.afr-ui-proof .afr-motion-fixtures > :not([data-ui-preview]) { display: none; }
.afr-motion-clamp { max-width: 240px; }

/* Explicit local comparison overlay; never created on ordinary pages. */
.afr-parallax-layout-checks iframe { display: block; border: 0; max-width: none; }
.afr-parallax-layout-checks { position: fixed; inset: 0; overflow: auto; z-index: 100001; background: var(--afr-paper); }

/* Local screenshot fixture, never set by ordinary pages. */
.afr-request-proof .afr-motion-check-panel { visibility: hidden; }
