/* ==========================================================================
   Al Rowad — global foundation
   Luxury corporate / editorial. Visual polish comes in later phases.
   ========================================================================== */

:root {
  --color-ivory: #f7f4ee;
  --color-sand: #eee9df;
  --color-charcoal: #1d1d1b;
  --color-warm-gray: #6f6b64;
  --color-bronze: #a58a5c;
  --color-border: #d9d2c5;
  --color-white: #ffffff;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.75rem, 3vw, 2.75rem);
  --text-hero: clamp(2.25rem, 6vw, 4.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  --container: 72rem;
  --container-wide: 88rem;
  --header-height: 4.5rem;
  --radius: 2px;
  --transition: 180ms ease;

  --focus-ring: 2px solid var(--color-bronze);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--color-ivory);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
  font-family: var(--font-arabic);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), opacity var(--transition), transform var(--transition);
}

a:hover {
  color: var(--color-bronze);
}

.nav-list a,
.site-footer nav a {
  position: relative;
}

.nav-list a::after,
.site-footer nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0.8;
  transition: transform 220ms ease;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.site-footer nav a:hover::after,
.site-footer nav a:focus-visible::after {
  transform: scaleX(1);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.error-page__main {
  width: min(100% - 2rem, 52rem);
  min-height: 100vh;
  margin-inline: auto;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--space-4);
  padding-block: var(--space-7);
}

.error-page__brand {
  margin-bottom: var(--space-7);
}

.error-page__brand img {
  width: min(13.75rem, 55vw);
}

.error-page h1 {
  max-width: 12ch;
  margin-bottom: 0;
}

.error-page p:not(.section__label) {
  max-width: 40rem;
  font-size: var(--text-lg);
}

@media (max-width: 40rem) {
  .error-page__main {
    justify-items: stretch;
  }

  .error-page .btn {
    justify-self: start;
  }
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: var(--font-arabic);
  font-weight: 500;
}

h1 {
  font-size: var(--text-hero);
  letter-spacing: 0.01em;
}

h2 {
  font-size: var(--text-xl);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 var(--space-4);
  color: var(--color-warm-gray);
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: -4rem;
  z-index: 200;
  padding: var(--space-2) var(--space-4);
  background: var(--color-charcoal);
  color: var(--color-ivory);
}

.skip-link:focus {
  top: var(--space-4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2rem, var(--container-wide));
}

.site-main {
  padding-block: var(--space-7);
}

.section {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.section--sand {
  background: var(--color-sand);
}

.section__label {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-bronze);
}

[dir="rtl"] .section__label {
  font-family: var(--font-arabic);
  letter-spacing: 0.08em;
}

.section__intro {
  max-width: 40rem;
}

.placeholder-note {
  font-size: var(--text-sm);
  color: var(--color-warm-gray);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 40;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-ivory);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  color: var(--color-charcoal);
  order: 1;
}

.brand:hover {
  color: var(--color-charcoal);
}

.brand__logo {
  height: 58px;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

[dir="rtl"] .brand__name {
  font-family: var(--font-arabic);
  letter-spacing: 0.04em;
}

.brand__tag {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-warm-gray);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-border);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--color-charcoal);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}

.nav-toggle__bars::before {
  top: -5px;
}

.nav-toggle__bars::after {
  top: 5px;
}

.site-nav {
  display: none;
  flex-basis: 100%;
  order: 3;
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) 0 var(--space-5);
}

.nav-list a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  order: 2;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
}

.lang-switch__btn {
  min-width: 2.4rem;
  padding: 0.4rem 0.55rem;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-warm-gray);
}

.lang-switch__btn[aria-pressed="true"] {
  background: var(--color-charcoal);
  color: var(--color-ivory);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--color-charcoal);
  background: var(--color-charcoal);
  color: var(--color-ivory);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.btn:hover {
  background: transparent;
  color: var(--color-charcoal);
}

.btn--ghost {
  background: transparent;
  color: var(--color-charcoal);
  border-color: var(--color-border);
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.btn--ghost:hover {
  border-color: var(--color-charcoal);
}

body[data-page="home"] .home-team .btn--ghost,
body[data-page="team"] .person-card .btn--ghost {
  border: 0;
  border-bottom: 1px solid var(--color-bronze);
}

body[data-page="home"] .home-team .btn--ghost:hover,
body[data-page="team"] .person-card .btn--ghost:hover {
  border: 0;
  border-bottom: 1px solid var(--color-charcoal);
  color: var(--color-charcoal);
}

.btn--header {
  display: none;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(29 29 27 / 0.28);
  z-index: 30;
  pointer-events: none;
}

.nav-backdrop.is-visible {
  display: block;
  pointer-events: auto;
}

.nav-backdrop.is-visible {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 960px) {

  .nav-toggle,
  .nav-backdrop {
    display: none;
  }

  .brand,
  .header-actions,
  .site-nav {
    order: 0;
  }

  .site-nav {
    display: block;
    flex: 1;
    flex-basis: auto;
    order: 0;
    position: static;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
    padding: 0;
  }

  .nav-list a {
    padding: 0;
  }

  .btn--header {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------------
   Cards / media
   -------------------------------------------------------------------------- */

.media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-sand);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 5;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--missing::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-warm-gray);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--4,
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.person-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.person-card__name {
  margin-bottom: var(--space-1);
  font-size: 1.5rem;
}

.person-card__role {
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-bronze);
}

.person-card__bio {
  font-size: var(--text-sm);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.profile-layout {
  display: grid;
  gap: var(--space-6);
}

.profile-meta {
  color: var(--color-bronze);
  margin-bottom: var(--space-5);
}

.profile-block {
  margin-bottom: var(--space-6);
}

.profile-block h2 {
  font-size: 1.5rem;
}

.profile-block ul {
  padding-inline-start: 1.15rem;
  list-style: disc;
  color: var(--color-warm-gray);
}

.profile-block li+li {
  margin-top: var(--space-2);
}

.profile-fallback {
  max-width: 36rem;
}

.stat-row {
  display: grid;
  gap: var(--space-5);
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}

[dir="rtl"] .stat-item strong {
  font-family: var(--font-arabic);
}

.hero {
  padding-block: var(--space-8);
}

.hero p {
  max-width: 38rem;
  font-size: var(--text-lg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-6);
  background: var(--color-sand);
}

.site-footer p {
  margin: 0;
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {

  .grid--2,
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {

  .grid--4,
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  body[data-page="home"] .home-team .team-grid,
  body[data-page="team"] .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-page="home"] .home-team .person-card--managing-partner,
  body[data-page="team"] .team-grid .person-card--managing-partner {
    grid-column: 1 / -1;
    width: min(100%, 26rem);
  }

  body[data-page="home"] .home-team .person-card--managing-partner .media-frame,
  body[data-page="team"] .team-grid .person-card--managing-partner .media-frame {
    width: min(100%, 20.5rem);
    max-width: 80%;
    margin-inline: auto;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .container {
    width: min(100% - 3rem, var(--container));
  }
}

@media (min-width: 1440px) {
  .container--wide {
    width: min(100% - 4rem, var(--container-wide));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-section,
  .reveal-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

.reveal-section,
.reveal-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal-section.is-visible,
.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Homepage editorial layer
   -------------------------------------------------------------------------- */

body[data-page="home"] .site-header {
  position: sticky;
  top: 0;
  background: rgb(247 244 238 / 0.97);
  transition: box-shadow var(--transition), background var(--transition);
}

body[data-page="home"] .site-main {
  padding-block: 0;
}

body[data-page="home"] .site-header.is-scrolled {
  background: rgb(247 244 238 / 0.99);
  box-shadow: 0 1px 0 var(--color-border), 0 0.4rem 1.2rem rgb(29 29 27 / 0.04);
}

body[data-page="home"] .site-header:has(+ .site-main:focus-within) {
  box-shadow: 0 1px 0 var(--color-border);
}

body[data-page="home"] .site-header__inner {
  min-height: 0;
}

body[data-page="home"] .brand__logo {
  height: 70px;
  max-width: none;
}

body[data-page="home"] .nav-list {
  gap: clamp(1.25rem, 2.2vw, 2.5rem);
}

body[data-page="home"] .hero--home {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(34rem, 80vh, 52rem);
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-4);
  background: var(--color-charcoal);
}

body[data-page="home"] .hero--home::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgb(29 29 27 / 0.2), rgb(29 29 27 / 0.2)),
    url("../assets/images/hero/hero-office.jpeg");
  background-position: left center;
  background-size: cover;
}

body[data-page="home"] .hero__layout {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

body[data-page="home"] .hero__content {
  /* Reserve the background logo area as cover scales the image. */
  width: min(34rem, 48vw, calc(100% - max(37.64vw, clamp(17.08rem, 40.18vh, 26.12rem)) + 0.5rem));
  max-width: 100%;
  margin-left: auto;
  margin-right: 0;
  text-align: start;
}

body[data-page="home"] .hero h1 {
  color: var(--color-ivory);
}

body[data-page="home"] .hero h1 {
  margin-bottom: var(--space-5);
  font-size: clamp(3.5rem, 8vw, 7.8rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

body[data-page="home"] .hero__lead {
  max-width: 34rem;
  margin-bottom: var(--space-6);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--color-ivory);
}

body[data-page="home"] .hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
}

body[data-page="home"] .hero__actions .btn {
  border-color: var(--color-ivory);
  background: var(--color-ivory);
  color: var(--color-charcoal);
}

body[data-page="home"] .hero__actions .btn:hover {
  background: transparent;
  color: var(--color-ivory);
}

body[data-page="home"] .text-link {
  border-bottom: 1px solid var(--color-bronze);
  padding-bottom: 0.2rem;
  color: var(--color-ivory);
  font-size: var(--text-sm);
}

body[data-page="home"] .text-link span {
  color: var(--color-bronze);
  margin-inline-start: var(--space-2);
}

body[data-page="home"] .text-link span {
  color: var(--color-bronze);
  margin-inline-start: var(--space-2);
}

body[data-page="home"] .hero__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid rgb(247 244 238 / 0.35);
  padding-top: var(--space-4);
  color: var(--color-ivory);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}

body[data-page="home"] .scroll-cue {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgb(247 244 238 / 0.55);
  color: var(--color-ivory);
}

body[data-page="home"] .home-about {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

body[data-page="home"] .home-about__layout {
  display: block;
  width: min(70ch, 100%);
  margin-inline: auto;
}

body[data-page="home"] .home-about .editorial-copy {
  max-width: none;
}

body[data-page="home"] .home-about .editorial-copy .section__intro {
  max-width: none;
  margin-top: 0;
  font-size: var(--text-lg);
  line-height: 1.75;
}

html[dir="rtl"] body[data-page="home"] .home-about .editorial-copy .section__intro {
  line-height: 1.9;
}

body[data-page="home"] .section {
  padding-block: clamp(3rem, 5vw, 5.5rem);
}

body[data-page="home"] .section-heading {
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

body[data-page="home"] .section-heading h2,
body[data-page="home"] .editorial-copy h2,
body[data-page="home"] .home-contact h2 {
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

body[data-page="home"] .section-heading--split,
body[data-page="home"] .home-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 8vw, 9rem);
  align-items: start;
}

body[data-page="home"] .section-heading--split .section__intro {
  padding-top: 1rem;
}

body[data-page="home"] .display-mark {
  margin: 1.75rem 0 0;
  color: var(--color-bronze);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
}

body[data-page="home"] .editorial-copy {
  max-width: 42rem;
}

body[data-page="home"] .editorial-copy .section__intro {
  max-width: 32rem;
  margin-top: var(--space-5);
  font-size: var(--text-lg);
}

body[data-page="home"] .meta-rule {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: 32rem;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  color: var(--color-warm-gray);
  font-size: var(--text-xs);
}

body[data-page="home"] .section--dark {
  background: var(--color-charcoal);
  color: var(--color-ivory);
}

body[data-page="home"] .section--dark .section__label,
body[data-page="home"] .section--dark h2,
body[data-page="home"] .section--dark h3 {
  color: var(--color-ivory);
}

body[data-page="home"] .section--dark p {
  color: #bdb8ae;
}

body[data-page="home"] .section--dark .section__label {
  color: var(--color-bronze);
}

body[data-page="home"] .experience-list,
body[data-page="home"] .expertise-list,
body[data-page="home"] .selected-list,
body[data-page="home"] .principles-list {
  border-top: 1px solid var(--color-border);
}

body[data-page="home"] .experience-item,
body[data-page="home"] .expertise-item,
body[data-page="home"] .selected-list>div,
body[data-page="home"] .principles-list>div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(10rem, 0.8fr) auto;
  gap: var(--space-5);
  align-items: baseline;
  border-bottom: 1px solid var(--color-border);
  padding-block: 1.25rem;
}

body[data-page="home"] .experience-item>span,
body[data-page="home"] .expertise-item>span,
body[data-page="home"] .selected-list span,
body[data-page="home"] .principles-list span {
  color: var(--color-bronze);
  font-family: var(--font-display);
  font-size: 1.4rem;
}

body[data-page="home"] .experience-item h3,
body[data-page="home"] .expertise-item h3,
body[data-page="home"] .principles-list h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

body[data-page="home"] .experience-item p,
body[data-page="home"] .expertise-item p,
body[data-page="home"] .principles-list p {
  margin: 0;
  font-size: var(--text-sm);
}

body[data-page="home"] .expertise-item {
  color: var(--color-charcoal);
  cursor: default;
  transition: padding-inline 220ms ease, background 220ms ease, color 220ms ease;
}

body[data-page="home"] .expertise-item b {
  color: var(--color-bronze);
  font-size: 1.4rem;
  font-weight: 400;
  text-align: end;
}

body[data-page="home"] .expertise-item:hover {
  padding-inline: var(--space-3);
  background: var(--color-sand);
  color: var(--color-charcoal);
}

body[data-page="home"] .home-team .person-card .media-frame,
body[data-page="team"] .person-card .media-frame {
  overflow: hidden;
}

body[data-page="home"] .home-team .person-card .media-frame img,
body[data-page="team"] .person-card .media-frame img {
  transition: transform 260ms ease, opacity 260ms ease;
  will-change: transform;
}

body[data-page="home"] .home-team .person-card:hover .media-frame img,
body[data-page="team"] .person-card:hover .media-frame img {
  transform: scale(1.02);
}

body[data-page="home"] .home-team .person-card:hover .btn--ghost,
body[data-page="team"] .person-card:hover .btn--ghost {
  color: var(--color-charcoal);
}

body[data-page="home"] .home-team .section-heading {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

body[data-page="home"] .home-team .team-grid {
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

body[data-page="home"] .home-team .person-card {
  gap: var(--space-3);
}

body[data-page="home"] .home-team .person-card--managing-partner,
body[data-page="team"] .team-grid .person-card--managing-partner {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 26rem);
}

body[data-page="home"] .home-team .person-card .media-frame {
  aspect-ratio: 3 / 4;
  border: 0;
  background: var(--color-ivory);
}

@media (min-width: 640px) and (max-width: 1023px) {

  body[data-page="home"] .home-team .team-grid,
  body[data-page="team"] .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .home-team .person-card .media-frame,
  body[data-page="team"] .person-card .media-frame {
    aspect-ratio: 4 / 4.8;
  }
}

@media (max-width: 639px) {

  body[data-page="home"] .home-team .person-card .media-frame,
  body[data-page="team"] .person-card .media-frame {
    width: min(100%, 17.5rem);
    max-width: 17.5rem;
    margin-inline: auto;
    aspect-ratio: 4 / 5.2;
  }
}

body[data-page="home"] .home-team .person-card__name {
  margin-top: var(--space-2);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

body[data-page="home"] .home-team .person-card__bio {
  min-height: 0;
  margin-bottom: var(--space-1);
}

body[data-page="home"] .home-team .btn--ghost {
  align-self: flex-start;
  padding-inline: 0;
  border: 0;
  border-bottom: 1px solid var(--color-bronze);
}

body[data-page="home"] .selected-list>div {
  grid-template-columns: 4rem minmax(0, 1fr) minmax(8rem, 0.6fr);
}

body[data-page="home"] .selected-list strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  font-weight: 500;
}

body[data-page="home"] .selected-list em {
  color: var(--color-warm-gray);
  font-size: var(--text-sm);
  font-style: normal;
}

body[data-page="home"] .principles-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--color-border);
}

body[data-page="home"] .principles-list>div {
  display: block;
  min-height: 9rem;
  border-bottom: 0;
  border-inline-end: 1px solid var(--color-border);
  padding: var(--space-5);
}

body[data-page="home"] .principles-list>div:first-child {
  padding-inline-start: 0;
}

body[data-page="home"] .principles-list>div:last-child {
  border-inline-end: 0;
}

body[data-page="home"] .principles-list h3 {
  margin-block: 1.5rem var(--space-2);
}

body[data-page="home"] .home-selected,
body[data-page="home"] .home-principles,
body[data-page="home"] .home-contact {
  padding-block: clamp(2.5rem, 4vw, 4rem);
}

body[data-page="home"] .home-contact__layout {
  align-items: end;
}

body[data-page="home"] .home-contact__layout .section__intro {
  max-width: 28rem;
  margin-bottom: var(--space-4);
}

/*

body[data-page="home"] .home-contact__details {
  display: grid;
  gap: var(--space-4);
  max-width: 34rem;
  margin-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

body[data-page="home"] .home-contact__item {
  display: grid;
  grid-template-columns: minmax(7rem, 0.35fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: baseline;
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-3);
}

body[data-page="home"] .home-contact__label {
  color: var(--color-bronze);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="home"] .home-contact__link {
  min-width: 0;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--color-bronze);
  color: var(--color-charcoal);
  font-size: var(--text-sm);
}

body[data-page="home"] .home-contact__link>span[dir="ltr"] {
  unicode-bidi: isolate;
  direction: ltr;
}

body[data-page="home"] .home-contact__link:hover,
body[data-page="home"] .home-contact__link:focus-visible {
  border-color: var(--color-charcoal);
  color: var(--color-charcoal);
}

*/

body[data-page="home"] .home-contact__details {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 34rem;
  margin-top: var(--space-6);
}

body[data-page="home"] .home-contact__icon {
  display: inline-grid;
  place-items: center;
  width: 5.5rem;
  height: 3.5rem;
  flex: 0 0 5.5rem;
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
  background: transparent;
  transition:
    border-color 220ms ease,
    color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

body[data-page="home"] .home-contact__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

body[data-page="home"] .home-contact__icon:hover,
body[data-page="home"] .home-contact__icon:focus-visible {
  border-color: var(--color-bronze);
  color: var(--color-bronze);
  background: transparent;
  transform: translateY(-2px);
}

body[data-page="home"] .site-footer--home {
  padding-block: var(--space-5);
  background: var(--color-charcoal);
  color: var(--color-ivory);
}

body[data-page="home"] .site-footer--home p {
  color: #bdb8ae;
}

body[data-page="home"] .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-5);
  align-items: end;
}

body[data-page="home"] .footer-brand {
  display: inline-block;
  margin-bottom: var(--space-2);
}

body[data-page="home"] .footer-brand img {
  width: 9rem;
  height: 9rem;
  object-fit: contain;
  filter: invert(1);
}

body[data-page="home"] .footer-grid nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: var(--space-3) var(--space-6);
}

body[data-page="home"] .footer-grid nav a {
  color: var(--color-ivory);
  font-size: var(--text-sm);
}

body[data-page="home"] .footer-grid nav a:hover,
body[data-page="home"] .footer-grid nav a:focus-visible,
body[data-page="team"] .site-footer nav a:hover,
body[data-page="team"] .site-footer nav a:focus-visible,
body[data-page="profile"] .site-footer nav a:hover,
body[data-page="profile"] .site-footer nav a:focus-visible {
  color: var(--color-bronze);
}

body[data-page="home"] .footer-copyright {
  margin: 0;
  text-align: end;
  font-size: var(--text-xs) !important;
}

@media (max-width: 959px) {
  body[data-page="home"] .principles-list {
    grid-template-columns: repeat(2, 1fr);
  }

  body[data-page="home"] .principles-list>div:nth-child(2) {
    border-inline-end: 0;
  }

  body[data-page="home"] .principles-list>div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }
}

@media (max-width: 639px) {
  body[data-page="home"] .site-header__inner {
    min-height: 0;
  }

  body[data-page="home"] .home-about__layout {
    padding-inline: 1rem;
  }

  body[data-page="home"] .brand__logo {
    height: 58px;
    max-width: none;
  }

  body[data-page="home"] .hero--home {
    min-height: auto;
    padding: 0;
  }

  body[data-page="home"] .hero--home::before {
    position: relative;
    inset: auto;
    z-index: 0;
    display: block;
    width: 100%;
    aspect-ratio: 1196 / 896;
    flex: 0 0 auto;
    background-position: left center;
  }

  body[data-page="home"] .hero__layout {
    display: block;
    width: 100%;
    margin: 0;
    padding: 2.5rem 1rem;
  }

  body[data-page="home"] .hero__content {
    width: min(34rem, 100%);
  }

  body[data-page="home"] .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  body[data-page="home"] .hero__actions .text-link {
    padding-block: 0.65rem;
  }

  body[data-page="home"] .hero__actions .btn {
    min-height: 44px;
  }

  body[data-page="home"] .section-heading--split,
  body[data-page="home"] .home-contact__layout {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .hero h1 {
    font-size: clamp(3rem, 16vw, 5.3rem);
  }

  body[data-page="home"] .hero__footer {
    margin-top: var(--space-5);
    padding-bottom: var(--space-4);
  }

  body[data-page="home"] .hero__footer>span:first-child {
    display: none;
  }

  body[data-page="home"] .display-mark {
    margin-top: var(--space-4);
  }

  body[data-page="home"] .section-heading--split .section__intro {
    padding-top: 0;
  }

  /*
  body[data-page="home"] .experience-item,
  body[data-page="home"] .expertise-item,
  body[data-page="home"] .selected-list>div {
    grid-template-columns: 2.5rem minmax(0, 1fr) 1.2rem;
    gap: var(--space-3);
  }

  body[data-page="home"] .experience-item p,
  body[data-page="home"] .expertise-item p,
  body[data-page="home"] .selected-list em {
    display: none;
  }

  body[data-page="home"] .expertise-item b {
    grid-column: 3;
  }
*/
  body[data-page="home"] .experience-item,
  body[data-page="home"] .expertise-item,
  body[data-page="home"] .selected-list>div {
    grid-template-columns: 2.5rem minmax(0, 1fr) 1.2rem;
    gap: var(--space-3);
  }

  body[data-page="home"] .experience-item h3,
  body[data-page="home"] .experience-item p,
  body[data-page="home"] .expertise-item h3,
  body[data-page="home"] .expertise-item p {
    grid-column: 2;
  }

  body[data-page="home"] .experience-item p,
  body[data-page="home"] .expertise-item p {
    display: block;
    line-height: 1.75;
    margin-top: 0.35rem;
  }

  body[data-page="home"] .expertise-item b {
    grid-column: 3;
    grid-row: 1;
  }

  body[data-page="home"] .selected-list em {
    display: none;
  }

  body[data-page="home"] .principles-list {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .principles-list>div,
  body[data-page="home"] .principles-list>div:nth-child(-n + 2) {
    min-height: auto;
    border-inline-end: 0;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-5) 0;
  }

  body[data-page="home"] .principles-list>div:last-child {
    border-bottom: 0;
  }

  body[data-page="home"] .principles-list h3 {
    margin-block: var(--space-3);
  }

  body[data-page="home"] .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  body[data-page="home"] .home-contact__item {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  body[data-page="home"] .footer-copyright {
    text-align: start;
  }
}

/* --------------------------------------------------------------------------
   Team and profile pages
   -------------------------------------------------------------------------- */

body[data-page="team"] .site-main,
body[data-page="profile"] .site-main {
  padding-block: 0;
}

body[data-page="team"] .team-hero {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--color-charcoal);
  color: var(--color-ivory);
}

body[data-page="team"] .team-hero h1,
body[data-page="team"] .team-hero p {
  color: var(--color-ivory);
}

body[data-page="team"] .team-hero h1 {
  max-width: 36rem;
  margin-bottom: var(--space-5);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
}

body[data-page="team"] .team-hero p {
  max-width: 34rem;
  color: #bdb8ae;
  font-size: var(--text-lg);
}

body[data-page="team"] .team-directory {
  padding-block: clamp(3.5rem, 6vw, 6rem);
  background: var(--color-sand);
}

body[data-page="team"] .team-grid {
  counter-reset: team-member;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

body[data-page="team"] .person-card {
  position: relative;
  gap: var(--space-2);
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

body[data-page="team"] .person-card::before {
  counter-increment: team-member;
  content: "0" counter(team-member);
  position: absolute;
  top: 0.35rem;
  inset-inline-end: 0;
  color: var(--color-bronze);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

body[data-page="team"] .person-card .media-frame {
  aspect-ratio: 3 / 4;
  margin-bottom: var(--space-2);
  border: 0;
  background: var(--color-ivory);
}

body[data-page="team"] .person-card__name {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

body[data-page="team"] .person-card__role {
  margin-bottom: var(--space-1);
}

body[data-page="team"] .person-card__bio {
  min-height: 0;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

body[data-page="team"] .person-card .btn--ghost {
  align-self: flex-start;
  padding-inline: 0;
  border: 0;
  border-bottom: 1px solid var(--color-bronze);
}

body[data-page="profile"] .profile-page {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

body[data-page="profile"] .profile-shell {
  display: grid;
  gap: 0;
}

body[data-page="profile"] .profile-hero {
  display: grid;
  grid-template-columns: minmax(16rem, 360px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(3rem, 5vw, 4.5rem) max(1rem, calc((100% - var(--container)) / 2));
  background: var(--color-charcoal);
  color: var(--color-ivory);
}

body[data-page="profile"] .profile-hero__media {
  width: min(100%, 360px);
  max-width: 360px;
}

body[data-page="profile"] .profile-hero .media-frame {
  aspect-ratio: 3 / 4;
  border: 0;
  background: var(--color-sand);
}

body[data-page="profile"] .profile-hero__identity h1 {
  margin-bottom: var(--space-3);
  color: var(--color-ivory);
  font-size: clamp(2.75rem, 5vw, 5.2rem);
  line-height: 0.95;
}

body[data-page="profile"] .profile-hero .profile-meta {
  margin-bottom: var(--space-4);
  color: var(--color-bronze);
  font-size: var(--text-md);
}

body[data-page="profile"] .profile-hero__intro {
  max-width: 34rem;
  color: #bdb8ae;
  font-size: var(--text-md);
}

body[data-page="profile"] .profile-content {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

body[data-page="profile"] .profile-overview {
  display: grid;
  grid-template-columns: minmax(12rem, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 7vw, 8rem);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

body[data-page="profile"] .profile-overview h2,
body[data-page="profile"] .profile-list-block h2,
body[data-page="profile"] .profile-contact h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
}

body[data-page="profile"] .profile-overview__text {
  max-width: 42rem;
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
}

body[data-page="profile"] .profile-list-block {
  display: grid;
  grid-template-columns: minmax(12rem, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 7vw, 8rem);
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

body[data-page="profile"] .profile-list-block--featured {
  background: var(--color-sand);
  margin-inline: calc((min(100vw - 2rem, var(--container)) - 100vw) / 2);
  padding-inline: max(1rem, calc((100vw - var(--container)) / 2));
}

body[data-page="profile"] .profile-list-block--selected {
  border-block: 1px solid var(--color-bronze);
}

body[data-page="profile"] .profile-list-block ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page="profile"] .profile-list-block li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-3);
  color: var(--color-warm-gray);
}

body[data-page="profile"] .profile-list-block li:first-child {
  padding-top: 0;
}

body[data-page="profile"] .profile-list-block li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body[data-page="profile"] .profile-list-block li>span:first-child {
  color: var(--color-bronze);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

body[data-page="profile"] .profile-contact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

body[data-page="profile"] .profile-contact .contact-list {
  justify-content: flex-end;
}

body[data-page="profile"] .profile-back {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}

body[data-page="profile"] .profile-fallback--page {
  width: min(100% - 2rem, 36rem);
  margin-block: clamp(4rem, 10vw, 8rem);
}

body[data-page="profile"] .site-footer,
body[data-page="team"] .site-footer {
  padding-block: var(--space-5);
  background: var(--color-charcoal);
  color: var(--color-ivory);
}

body[data-page="profile"] .site-footer p,
body[data-page="team"] .site-footer p {
  color: #bdb8ae;
}

body[data-page="profile"] .directory-footer-grid,
body[data-page="team"] .directory-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-5);
  align-items: end;
}

body[data-page="profile"] .directory-footer-grid nav,
body[data-page="team"] .directory-footer-grid nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: var(--space-2) var(--space-5);
}

body[data-page="profile"] .directory-footer-grid nav a,
body[data-page="team"] .directory-footer-grid nav a {
  color: var(--color-ivory);
  font-size: var(--text-sm);
}

body[data-page="profile"] .directory-footer-grid .footer-brand,
body[data-page="team"] .directory-footer-grid .footer-brand {
  display: inline-block;
  margin-bottom: var(--space-2);
}

body[data-page="profile"] .directory-footer-grid .footer-brand img,
body[data-page="team"] .directory-footer-grid .footer-brand img {
  width: 12rem;
  height: auto;
  object-fit: contain;
  filter: invert(1);
}

body[data-page="profile"] .directory-footer-grid .footer-copyright,
body[data-page="team"] .directory-footer-grid .footer-copyright {
  margin: 0;
  text-align: end;
  font-size: var(--text-xs);
}

@media (max-width: 959px) {
  body[data-page="profile"] .profile-hero {
    grid-template-columns: minmax(15rem, 320px) minmax(0, 1fr);
    gap: var(--space-6);
  }
}

@media (max-width: 639px) {
  body[data-page="team"] .team-hero {
    padding-block: 3.5rem;
  }

  body[data-page="profile"] .profile-hero {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding-block: 2.75rem 3.5rem;
  }

  body[data-page="profile"] .profile-hero__media {
    width: min(100%, 280px);
    max-width: 280px;
    margin-inline: auto;
  }

  body[data-page="profile"] .profile-hero__identity h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  body[data-page="profile"] .profile-hero .profile-meta {
    margin-bottom: var(--space-3);
  }

  body[data-page="profile"] .profile-overview,
  body[data-page="profile"] .profile-list-block {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  body[data-page="profile"] .profile-list-block--featured {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }

  body[data-page="profile"] .profile-contact {
    display: block;
  }

  body[data-page="profile"] .profile-contact .contact-list {
    justify-content: flex-start;
    margin-top: var(--space-4);
  }

  body[data-page="profile"] .directory-footer-grid,
  body[data-page="team"] .directory-footer-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="profile"] .directory-footer-grid .footer-copyright,
  body[data-page="team"] .directory-footer-grid .footer-copyright {
    text-align: start;
  }
}

/* Profile dossier refinements */
body[data-page="profile"] .profile-overview {
  align-items: start;
}

body[data-page="profile"] .profile-overview__text {
  max-width: 68ch;
  margin-bottom: 1.15rem;
  font-size: 1.06rem;
  line-height: 1.78;
}

body[data-page="profile"] .profile-overview__text:last-child {
  margin-bottom: 0;
}

body[data-page="profile"] .profile-list-block {
  align-items: start;
}

body[data-page="profile"] .profile-list-block ol {
  min-width: 0;
}

body[data-page="profile"] .profile-list-block--expertise ol,
body[data-page="profile"] .profile-list-block--selected-experience ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

body[data-page="profile"] .profile-list-block--expertise li,
body[data-page="profile"] .profile-list-block--selected-experience li {
  align-items: start;
  min-width: 0;
  padding-block: 0.9rem;
}

body[data-page="profile"] .profile-list-block--expertise li:nth-child(-n + 2),
body[data-page="profile"] .profile-list-block--selected-experience li:nth-child(-n + 2) {
  padding-top: 0;
}

body[data-page="profile"] .profile-list-block--education li,
body[data-page="profile"] .profile-list-block--courses li,
body[data-page="profile"] .profile-list-block--career li {
  align-items: start;
  padding-block: 1rem;
}

body[data-page="profile"] .profile-list-block--education li>span:last-child,
body[data-page="profile"] .profile-list-block--courses li>span:last-child {
  color: var(--color-charcoal);
  font-size: 1.02rem;
  line-height: 1.65;
}

body[data-page="profile"] .profile-list-block--career li {
  grid-template-columns: 3rem minmax(0, 1fr);
}

body[data-page="profile"] .profile-career__entry {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  color: var(--color-charcoal);
  line-height: 1.65;
}

body[data-page="profile"] .profile-career__date {
  flex: 0 0 auto;
  color: var(--color-bronze);
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

body[data-page="profile"] .profile-list-block--languages ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 4rem);
}

body[data-page="profile"] .profile-list-block--languages li {
  grid-template-columns: 3rem minmax(0, 1fr);
}

html[dir="rtl"] body[data-page="profile"] .profile-overview__text {
  line-height: 1.9;
}

html[dir="rtl"] body[data-page="profile"] .profile-career__date {
  letter-spacing: 0;
}

@media (min-width: 1200px) {
  body[data-page="profile"] .profile-list-block--expertise ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="profile"] .profile-list-block--expertise li:nth-child(-n + 2),
  body[data-page="profile"] .profile-list-block--selected-experience li:nth-child(-n + 2) {
    padding-top: 0.9rem;
  }

  body[data-page="profile"] .profile-list-block--expertise li:nth-child(-n + 3),
  body[data-page="profile"] .profile-list-block--selected-experience li:nth-child(-n + 2) {
    padding-top: 0;
  }
}

@media (max-width: 639px) {
  body[data-page="profile"] .profile-overview__text {
    max-width: none;
    font-size: 1rem;
    line-height: 1.78;
  }

  html[dir="rtl"] body[data-page="profile"] .profile-overview__text {
    line-height: 1.9;
  }

  body[data-page="profile"] .profile-list-block--expertise ol,
  body[data-page="profile"] .profile-list-block--selected-experience ol,
  body[data-page="profile"] .profile-list-block--languages ol {
    grid-template-columns: 1fr;
  }

  body[data-page="profile"] .profile-list-block--expertise li:nth-child(-n + 3),
  body[data-page="profile"] .profile-list-block--selected-experience li:nth-child(-n + 2) {
    padding-top: 0.9rem;
  }

  body[data-page="profile"] .profile-list-block--expertise li:first-child,
  body[data-page="profile"] .profile-list-block--selected-experience li:first-child {
    padding-top: 0;
  }

  body[data-page="profile"] .profile-career__entry {
    display: block;
  }

  body[data-page="profile"] .profile-career__date {
    display: block;
    margin-top: 0.25rem;
  }
}
