/* =====================================================================
   Eden Realty Group — page styles (after css/base.css).
   Sections: banner entrance · profile (ScrollMagic word fill + stats, on
   the Home grid) · chairman · leadership (editorial team list) ·
   projects (ScrollMagic horizontal track) · landmarks list · awards.
   Motion is driven by js/eden-realty-group.js; every rule here is a
   resting state that reads fine without JS / with reduced motion.
   ===================================================================== */

/* ---------- banner: the title rises from a mask, the photo settles ---------- */
.hero__ln {
  display: block;
  overflow: hidden;
  /* room for descenders and the italic overhang */
  padding: 0 0.12em 0.1em 0;
  margin-bottom: -0.1em;
}

.hero__ln > span {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__img {
    animation: erSettle 2.6s var(--ease) both;
  }

  .hero .crumbs {
    animation: erRise 0.9s var(--ease) 0.15s both;
  }

  .hero__ln > span {
    animation: erLine 1.2s var(--ease) 0.3s both;
  }

  .hero__sub {
    animation: erRise 1s var(--ease) 0.7s both;
  }
}

@keyframes erSettle {
  from {
    scale: 1.12;
  }
  to {
    scale: 1;
  }
}

@keyframes erRise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes erLine {
  from {
    transform: translate3d(0, 110%, 0);
  }
  to {
    transform: none;
  }
}

/* ---------- profile ---------- */
.erprof {
  --cell: 64px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 92% 0%, rgba(214, 181, 128, 0.26), transparent 70%),
    radial-gradient(ellipse 55% 80% at 0% 100%, rgba(214, 181, 128, 0.18), transparent 70%),
    linear-gradient(180deg, #F4ECDF 0%, #FBF8F2 50%, #F6EFE4 100%);
}

/* the Home "values" grid: fine orange lines with lights running along them */
.erprof__field {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(241, 89, 34, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 89, 34, 0.09) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 25%, transparent 82%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 25%, transparent 82%);
  pointer-events: none;
}

.erprof__pulse {
  position: absolute;
  box-shadow: 0 0 8px 1px rgba(241, 89, 34, 0.35);
  animation: var(--dur, 12s) linear var(--delay, 0s) infinite;
  will-change: transform;
}

.erprof__pulse--h {
  top: calc(var(--row) * var(--cell));
  left: 0;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, rgba(241, 89, 34, 0), rgba(241, 89, 34, 0.95), rgba(241, 89, 34, 0));
  animation-name: erPulseX;
}

.erprof__pulse--v {
  top: 0;
  left: calc(var(--col) * var(--cell));
  width: 1px;
  height: 180px;
  background: linear-gradient(180deg, rgba(241, 89, 34, 0), rgba(241, 89, 34, 0.95), rgba(241, 89, 34, 0));
  animation-name: erPulseY;
}

.erprof.is-offscreen .erprof__pulse {
  animation-play-state: paused;
}

@keyframes erPulseX {
  from {
    transform: translateX(-200px);
  }
  to {
    transform: translateX(100vw);
  }
}

@keyframes erPulseY {
  from {
    transform: translateY(-200px);
  }
  to {
    transform: translateY(900px);
  }
}

.erprof__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
}

.erprof__year {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.erprof__year b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(72px, 8vw, 116px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}

.erprof__year span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.erprof__text {
  font-family: var(--font-serif);
  font-size: clamp(24px, calc(1.7vw + 10px), 40px);
  line-height: 1.38;
  color: var(--ink);
}

.erprof__text em {
  font-style: italic;
  color: var(--accent);
}

/* word fill: JS wraps each word; unlit words are faint until the scroll
   reaches them */
.erw {
  opacity: var(--o, 1);
  transition: opacity 0.25s linear;
}

.erprof__stats {
  margin-top: clamp(48px, 6vw, 80px);
}

.erprof__stats dd {
  font-variant-numeric: tabular-nums;
}

/* ---------- chairman ---------- */
.erchair {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 70% at 100% 0%, rgba(241, 89, 34, 0.16), transparent 70%),
    linear-gradient(rgba(241, 89, 34, 0.05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(241, 89, 34, 0.05) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--dark);
}

.erchair__inner {
  display: grid;
  grid-template-columns: clamp(120px, 14vw, 200px) minmax(0, 1fr);
  gap: 24px clamp(24px, 4vw, 64px);
}

.erchair__mark {
  font-family: var(--font-serif);
  font-size: clamp(200px, 24vw, 340px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(241, 89, 34, 0.7);
  user-select: none;
}

.erchair__quote {
  max-width: 34em;
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(21px, calc(1.2vw + 11px), 30px);
  line-height: 1.5;
  color: #FAF7F1;
}

.erchair__quote em {
  font-style: italic;
  color: var(--accent);
}

.erchair__by {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 247, 241, 0.14);
}

.erchair__by b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  color: #FAF7F1;
}

.erchair__by span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- leadership ---------- */
/* the Chairman: a split card — monogram + name on the champagne grid,
   bio and his fields of work on white */
.erlead__feature {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(36, 26, 18, 0.07);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: 0 40px 70px -50px rgba(90, 45, 20, 0.35);
}

.erlead__id {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  overflow: hidden;
  padding: clamp(28px, 3.5vw, 44px);
  background:
    linear-gradient(rgba(241, 89, 34, 0.08) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(241, 89, 34, 0.08) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(214, 181, 128, 0.35), transparent 70%),
    linear-gradient(160deg, #F4ECDF 0%, #FBF8F2 100%);
}

/* a big outlined "SR" in the corner */
.erlead__mono {
  position: absolute;
  z-index: -1;
  top: -0.08em;
  right: -0.02em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(150px, 15vw, 220px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 89, 34, 0.4);
  pointer-events: none;
  user-select: none;
}

/* his photo, large: a rounded frame across the panel above the name */
.erlead__photo {
  width: 100%;
  aspect-ratio: 491 / 432;
  margin-bottom: 26px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 0 0 5px #FFFFFF, 0 0 0 6.5px rgba(241, 89, 34, 0.55), 0 30px 50px -26px rgba(90, 45, 20, 0.55);
}

.erlead__id h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.08;
  color: var(--ink);
}

.erlead__role {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.erlead__chip {
  align-self: flex-start;
  margin-top: 20px;
  padding: 7px 14px;
  border: 1px solid rgba(241, 89, 34, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}

.erlead__bio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(28px, 3.5vw, 48px) clamp(28px, 4vw, 56px);
}

.erlead__bio .lead {
  max-width: 60ch;
}

.erlead__areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.erlead__areas li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(241, 89, 34, 0.08);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.erlead__label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: clamp(48px, 5vw, 72px) 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.erlead__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* the senior team: a row of cards, initials badge + number at the top,
   name and role at the foot; an orange rule draws in on hover */
.erteam {
  display: grid;
  /* cards up to 256px wide (15% wider than the old 5-across row) */
  grid-template-columns: repeat(auto-fit, minmax(0, 256px));
  justify-content: center;
  gap: 16px;
  list-style: none;
}

/* second leadership level (under the Chairman): the MD and Joint MD as two
   wide cards in the Chairman card's language - champagne grid, framed
   photo, name + orange role beside it */
.erteam.erteam--top {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(16px, 2vw, 24px);
}

/* with the "Managing Directors" heading above, the heading gives the gap */
.erlead__label + .erteam.erteam--top {
  margin-top: 0;
}

.erteam--top .erteam__card {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto 1fr; /* name + role + profile centred beside the photo */
  column-gap: clamp(18px, 2vw, 28px);
  padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 26px) clamp(16px, 1.8vw, 22px) clamp(16px, 1.8vw, 22px);
  border-radius: 24px;
  background:
    linear-gradient(rgba(241, 89, 34, 0.08) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(241, 89, 34, 0.08) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(214, 181, 128, 0.35), transparent 70%),
    linear-gradient(160deg, #F4ECDF 0%, #FBF8F2 100%);
  box-shadow: 0 40px 70px -50px rgba(90, 45, 20, 0.35);
}

.erteam--top .erteam__photo {
  grid-row: 1 / 6;
  border-radius: 16px;
  box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 5.5px rgba(241, 89, 34, 0.5), 0 26px 44px -26px rgba(90, 45, 20, 0.55);
}

.erteam--top .erteam__name {
  grid-row: 2;
  align-self: end;
  padding: 0;
  font-size: clamp(26px, 2.1vw, 30px);
  line-height: 1.1;
}

/* below 960px two side by side get too narrow for the larger photos - stack them */
@media (max-width: 960px) {
  .erteam.erteam--top {
    grid-template-columns: minmax(0, 1fr);
  }

  .erteam--top .erteam__card {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  }
}

.erteam--top .erteam__role {
  grid-row: 3;
  align-self: start;
  margin-top: 12px;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

/* the person's profile, under the role (team list "Profile" field) */
.erteam__bio {
  margin-top: 12px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
}

.erteam--top .erteam__bio {
  grid-row: 4;
  margin-top: 16px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(241, 89, 34, 0.18);
  font-size: 14.5px;
  line-height: 1.7;
}

.erteam__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 22px;
  overflow: hidden;
  border: 1px solid rgba(36, 26, 18, 0.07);
  border-radius: 20px;
  background: var(--bg-card);
  transition: opacity 0.9s var(--ease), transform 0.6s var(--ease), border-color 0.4s ease, box-shadow 0.5s ease;
}

.erteam__card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.erteam__card:hover {
  border-color: rgba(241, 89, 34, 0.3);
  box-shadow: 0 28px 50px -34px rgba(90, 45, 20, 0.45);
}

.erteam__card.is-in:hover {
  transform: translateY(-6px);
}

.erteam__card:hover::after {
  transform: scaleX(1);
}

/* the photo slot: the person's photo, or (until there is one) their
   initials on the champagne grid */
.erteam__photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(rgba(241, 89, 34, 0.08) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(241, 89, 34, 0.08) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(160deg, #F4ECDF 0%, #FBF8F2 100%);
}

.erteam__init {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  transition: color 0.4s ease;
}

.erteam__card:hover .erteam__init {
  color: var(--accent);
}

.erteam__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 0.9s var(--ease);
}

.erteam__card:hover .erteam__photo img {
  transform: scale(1.05);
}

.erteam__name {
  padding: 18px 10px 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
}

.erteam__role {
  margin-top: 8px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- projects: the horizontal track ---------- */
.erproj {
  padding-bottom: 40px;
}

.erproj__head {
  align-items: flex-end;
}

.erproj__meter {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.erproj__count {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-muted);
}

.erproj__count b {
  font-weight: 400;
  font-size: 30px;
  color: var(--accent);
}

.erproj__bar {
  display: block;
  width: 160px;
  height: 2px;
  background: var(--line);
}

.erproj__bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--p, 0.25));
  transform-origin: left;
}

/* phones / no ScrollMagic: the track swipes, snapping card by card */
.erproj__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.erproj__viewport::-webkit-scrollbar {
  display: none;
}

.erproj__track {
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 4px var(--edge) 8px;
  will-change: transform;
}

/* scroll mode (wide screens, set by JS): the section is tall, the head and
   track stay put and the scroll slides the track */
.erproj.is-scrub {
  padding: 0;
}

.erproj.is-scrub .erproj__sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  padding: var(--nav-h) 0 32px;
  overflow: hidden;
}

.erproj.is-scrub .erproj__viewport {
  overflow: visible;
  scroll-snap-type: none;
}

.erproj.is-scrub .erproj__track {
  transform: translate3d(calc(var(--x, 0) * -1px), 0, 0);
}

/* a Solaris address: full-bleed photo, name + line at the foot */
.ercard {
  position: relative;
  flex: none;
  width: min(560px, 82vw);
  height: clamp(380px, 58vh, 540px);
  overflow: hidden;
  border-radius: 24px;
  background: #2A1E16;
  color: #FFFFFF;
  scroll-snap-align: center;
  isolation: isolate;
}

.ercard__img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.ercard:hover .ercard__img {
  transform: scale(1.04);
}

.ercard::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 9, 0.35) 0%, rgba(20, 14, 9, 0) 28%, rgba(20, 14, 9, 0) 45%, rgba(20, 14, 9, 0.78) 100%);
}

.ercard__num {
  position: absolute;
  top: 22px;
  left: 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.ercard__body {
  position: absolute;
  left: 24px;
  right: 96px;
  bottom: 24px;
}

.ercard__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.1;
}

.ercard__desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

/* landmarks slider: not pinned (eden-realty-group.js, data-erproj-flow) -
   normal section height, half the usual top/bottom gap */
.section.erproj--land {
  padding: 40px 0;
}

.erproj.is-flow {
  overflow: hidden;
}

.erproj.is-flow .erproj__viewport {
  overflow: visible;
  scroll-snap-type: none;
}

.erproj.is-flow .erproj__track {
  transform: translate3d(calc(var(--x, 0) * -1px), 0, 0);
}

/* landmarks slider: cards at half the projects' size, text scaled to match */
.erproj--land .ercard {
  width: min(280px, 64vw);
  height: clamp(230px, 29vh, 270px);
  border-radius: 18px;
}

.erproj--land .ercard__num {
  top: 14px;
  left: 16px;
  font-size: 17px;
}

.erproj--land .ercard__body {
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.erproj--land .ercard__name {
  font-size: 21px;
}

.erproj--land .ercard__desc {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
}

.erproj--land .ercard__rera {
  top: 12px;
  right: 12px;
  gap: 6px;
  padding: 6px 10px;
  font-size: 9.5px;
}

.erproj--land .ercard__panel {
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 12px 14px;
}

/* RERA: a frosted pill top-right opens a panel over the card's foot */
.ercard__rera {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.3s ease;
}

.ercard__rera span {
  font-size: 15px;
  line-height: 1;
}

.ercard__rera:hover,
.ercard__rera[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.3);
}

.ercard__panel {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  animation: erPanel 0.45s var(--ease) both;
}

.ercard__panel > b {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.ercard__panel ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.ercard__panel li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.ercard__panel li span {
  color: var(--text-muted);
}

.ercard__panel li b {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

@keyframes erPanel {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* the gold arrow to the project's page (as on the Home address cards) */
.ercard__go {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  transition: transform 0.45s var(--ease), background 0.3s ease;
}

.ercard__go:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.ercard__go svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- landmarks list ---------- */
.erland {
  padding-top: clamp(40px, 5vw, 64px);
}

.erland__list {
  border-top: 1px solid var(--line);
  list-style: none;
}

.erland__row {
  display: grid;
  grid-template-columns: 48px 104px minmax(0, 1fr);
  gap: 8px 22px;
  align-items: center;
  padding: 20px 12px;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, opacity 0.9s var(--ease), transform 1.1s var(--ease);
}

.erland__row:hover {
  background: rgba(241, 89, 34, 0.04);
}

.erland__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 89, 34, 0.6);
}

.erland__thumb {
  display: block;
  aspect-ratio: 148 / 121;
  overflow: hidden;
  border-radius: 12px;
  background: #EFE6DA;
}

.erland__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.erland__row:hover .erland__thumb img {
  transform: scale(1.06);
}

.erland__txt h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
  color: var(--ink);
}

.erland__txt p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* the registration numbers: always shown, a quiet line under the text */
.erland__reg {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 22px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(36, 26, 18, 0.14);
  font-size: 13px;
}

.erland__reg dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.erland__reg dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.erland__reg dd span {
  margin-right: 8px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}

/* ---------- awards (the Awards page's card) ---------- */
.erawards__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.awcard {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px 14px 14px;
  border: 1px solid rgba(36, 26, 18, 0.07);
  border-radius: 18px;
  background: var(--bg-card);
  transition: opacity 0.9s var(--ease), transform 0.6s var(--ease), border-color 0.4s ease, box-shadow 0.5s ease;
}

.awcard:hover,
.awcard:focus-visible {
  border-color: rgba(241, 89, 34, 0.35);
  box-shadow: 0 24px 44px -30px rgba(90, 45, 20, 0.45);
  outline: none;
}

.awcard.is-in:hover,
.awcard.is-in:focus-visible {
  transform: translateY(-4px);
}

.awcard__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(36, 26, 18, 0.06);
}

.awcard__media img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
  transition: transform 0.8s var(--ease);
}

.awcard:hover .awcard__media img {
  transform: scale(1.06);
}

.awcard__txt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.awcard__org {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.awcard__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.38;
  color: var(--ink);
}

.awcard__go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.45s var(--ease);
}

.awcard__go svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.awcard:hover .awcard__go {
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFFFF;
  transform: rotate(45deg);
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .erawards__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .erprof__grid,
  .erlead__feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .erproj__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .erproj__meter {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .erchair__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .erteam {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .erteam.erteam--top {
    grid-template-columns: minmax(0, 1fr);
  }

  .erchair__mark {
    height: 0.55em;
    overflow: hidden;
    font-size: 180px;
  }

  .erland__row {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px 16px;
    padding: 18px 4px;
  }

  .erland__num {
    display: none;
  }

  .ercard {
    height: 440px;
  }

  .ercard__body {
    right: 84px;
  }
}

@media (max-width: 520px) {
  .erteam,
  .erteam.erteam--top {
    grid-template-columns: minmax(0, 1fr);
  }

  .erteam--top .erteam__card {
    grid-template-columns: 160px minmax(0, 1fr);
    column-gap: 18px;
    padding: 14px 18px 14px 14px;
    border-radius: 20px;
  }

  .erteam--top .erteam__name {
    font-size: 24px;
  }

  .erteam--top .erteam__role {
    margin-top: 8px;
    padding-bottom: 0;
    font-size: 11px;
  }

  /* phones: photo + name/role side by side, the profile full width below */
  .erteam--top .erteam__card {
    grid-template-rows: 1fr auto auto 1fr auto;
  }

  .erteam--top .erteam__photo {
    grid-row: 1 / 5;
  }

  .erteam--top .erteam__bio {
    grid-row: 5;
    grid-column: 1 / -1;
    margin-top: 16px;
    font-size: 14px;
  }

  .erteam__card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 16px;
    padding: 12px 16px 12px 12px;
  }

  .erteam__photo {
    grid-row: 1 / 3;
  }

  .erteam__name {
    align-self: end;
    padding: 0;
  }

  .erteam__role {
    align-self: start;
    padding: 0;
  }

    .awcard {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .awcard__go {
    display: none;
  }

  .awcard__name {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .erprof__pulse {
    display: none;
  }

  .erw,
  .ercard__panel,
  .ercard__img,
  .erteam__card,
  .erteam__card::after {
    transition: none;
    animation: none;
  }
}
