/* IT-ESPACE — Homepage “Deep Emerald Light” */

.page-emerald {
  --em-deep: #1e4a42;
  --em-header: rgba(22, 60, 52, 0.75);
  --em-header-solid: rgb(22, 60, 52);
  --em-gold: #d4a857;
  --em-gold-soft: rgba(212, 168, 87, 0.35);
  --em-gold-glow: 0 0 16px rgba(212, 168, 87, 0.35);
  --em-light: #e8fff7;
  --em-mint: #f4fffb;
  --em-accent: #0e7c66;
  --em-accent-light: #159e7a;
  --em-graphite: #1b2430;
  --em-muted: #475569;
  --em-white: #ffffff;
  --header-h: 72px;
  --shadow-soft: 0 8px 32px rgba(30, 74, 66, 0.08);
  --shadow-card: 0 4px 24px rgba(27, 36, 48, 0.06);
  background: var(--em-mint);
  color: var(--em-graphite);
}

/* ===== 1. Header ===== */

.page-emerald .site-header--emerald {
  background: var(--em-header-solid);
  border-bottom: none;
  box-shadow: none;
}

.page-emerald .site-header--emerald::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--em-gold);
  opacity: 0.85;
}

.page-emerald .site-header--emerald.is-scrolled {
  background: var(--em-header-solid);
}

.page-emerald .site-header__emerald-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.625rem 0;
}

.page-emerald .site-header__emerald-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.page-emerald .site-header__emerald-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.page-emerald .site-header__emerald-name {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--em-white);
}

.page-emerald .main-nav--emerald {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.375rem);
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.page-emerald .site-header--emerald .main-nav--emerald .main-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0 0.5rem;
  margin: 0;
  border: none;
  border-radius: 0;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(0.75rem, 1.1vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: none;
  color: var(--em-white);
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
  transition: color 0.22s ease;
}

.page-emerald .site-header--emerald .main-nav--emerald .main-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--em-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-emerald .site-header--emerald .main-nav--emerald .main-nav__link:hover,
.page-emerald .site-header--emerald .main-nav--emerald .main-nav__link:focus-visible {
  color: var(--em-white);
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  text-shadow: none;
  transform: none;
}

.page-emerald .site-header--emerald .main-nav--emerald .main-nav__link:hover::after,
.page-emerald .site-header--emerald .main-nav--emerald .main-nav__link:focus-visible::after {
  transform: scaleX(1);
}

.page-emerald .site-header--emerald .main-nav--emerald .main-nav__link.is-active {
  color: var(--em-gold);
  font-weight: 500;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  text-shadow: none;
  transform: none;
}

.page-emerald .site-header--emerald .main-nav--emerald .main-nav__link.is-active::after {
  transform: scaleX(0);
}

.page-emerald .site-header--emerald .main-nav--emerald .main-nav__link.is-active:hover::after {
  transform: scaleX(1);
}

.page-emerald .burger--emerald {
  display: none;
  border-color: rgba(212, 168, 87, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.page-emerald .burger--emerald span {
  background: var(--em-white);
}

/* ===== 2. Hero ===== */

.page-emerald .hero--emerald {
  position: relative;
  padding: calc(var(--header-h) + 1.75rem) 0 1.375rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    var(--em-deep);
  overflow-x: clip;
  overflow-y: visible;
}

.page-emerald .container.hero-emerald {
  min-width: 0;
  max-width: 100%;
}

.page-emerald .hero-emerald__shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 80% 30%, rgba(255, 255, 255, 0.04), transparent 60%);
  pointer-events: none;
}

.page-emerald .hero-emerald__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  min-width: 0;
}

.page-emerald .hero-emerald__top > * {
  min-width: 0;
}

.page-emerald .hero-emerald__brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  opacity: 1;
  transform: none;
}

.page-emerald .hero-emerald__logo {
  flex-shrink: 0;
  display: block;
  width: clamp(4rem, 16vw, 5.5rem);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.2));
}

.page-emerald .hero-emerald__brand {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  box-sizing: border-box;
}

.page-emerald .hero-diploma-showcase {
  --diploma-width: 6.5rem;
  position: relative;
  width: 100%;
  max-width: 20rem;
  min-width: 0;
  margin-inline: auto;
  overflow: hidden;
}

.page-emerald .hero-diploma-showcase__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  transition: min-height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-emerald .hero-diploma-showcase__track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.page-emerald .hero-diploma-showcase__slide {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition:
    opacity 1.5s ease-in-out,
    visibility 1.5s ease-in-out;
}

.page-emerald .hero-diploma-showcase__slide.is-active {
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

.page-emerald .hero-diploma-showcase__slide.is-active:not(.is-entering) {
  opacity: 1;
}

.page-emerald .hero-diploma-showcase__slide.is-active.is-entering {
  opacity: 0;
  pointer-events: none;
}

.page-emerald .hero-diploma-showcase__slide.is-leaving {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 1;
}

.page-emerald .hero-diploma-showcase__card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.page-emerald .hero-diploma-showcase__media {
  flex: 0 0 var(--diploma-width);
  width: var(--diploma-width);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(212, 168, 87, 0.32);
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.page-emerald .hero-diploma-showcase__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: contrast(1.04) saturate(1.05);
}

.page-emerald .hero-diploma-showcase__slide:hover .hero-diploma-showcase__media {
  border-color: rgba(212, 168, 87, 0.55);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(212, 168, 87, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translate3d(0, -2px, 0);
}

.page-emerald .hero-diploma-showcase__slide:hover .hero-diploma-showcase__media img {
  filter: contrast(1.06) saturate(1.07) brightness(1.02);
}

.page-emerald .hero-diploma-showcase__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.page-emerald .hero-diploma-showcase__competition {
  margin: 0;
  width: 100%;
  font-size: clamp(0.6875rem, 2.6vw, 0.8125rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.page-emerald .hero-diploma-showcase__student {
  margin: 0;
  font-size: clamp(0.875rem, 3.2vw, 1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.page-emerald .hero-diploma-showcase__student-surname,
.page-emerald .hero-diploma-showcase__student-given {
  color: var(--em-gold, #d4a857);
}

.page-emerald .hero-diploma-showcase__student-patronymic {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.page-emerald .hero-diploma-showcase__degree {
  margin: 0;
  font-size: clamp(0.6875rem, 2.5vw, 0.8125rem);
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
}

.page-emerald .hero-diploma-showcase__level {
  font-weight: 700;
}

.page-emerald .hero-diploma-showcase__level--district {
  color: #cd7f32;
}

.page-emerald .hero-diploma-showcase__level--city {
  color: #cbd5e1;
}

.page-emerald .hero-diploma-showcase__level--region {
  color: #34d399;
}

.page-emerald .hero-diploma-showcase__level--republic {
  color: var(--em-gold, #d4a857);
}

.page-emerald .hero-diploma-showcase__level--international {
  color: #a78bfa;
}

.page-emerald .hero-diploma-showcase__year-sep {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.page-emerald .hero-diploma-showcase__year {
  margin: 0;
  font-size: clamp(0.625rem, 2.2vw, 0.75rem);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

.page-emerald .hero-diploma-showcase__slide--placeholder .hero-diploma-showcase__media {
  background:
    linear-gradient(160deg, rgba(212, 168, 87, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.18);
}

.page-emerald .hero-diploma-showcase__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
}

.page-emerald .hero-diploma-showcase__placeholder-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--em-gold);
}

.page-emerald .hero-diploma-showcase__placeholder-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.page-emerald .hero-diploma-showcase__caption {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-emerald .hero-diploma-showcase__viewport {
    transition: none;
  }

  .page-emerald .hero-diploma-showcase__slide {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .page-emerald .hero-diploma-showcase__slide.is-leaving {
    opacity: 0;
    visibility: hidden;
  }
}

.page-emerald .hero-emerald__content {
  max-width: none;
}

.page-emerald .hero-emerald__brand-name {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  color: #f4fffb;
  text-shadow: 0 2px 24px rgba(212, 168, 87, 0.28), 0 1px 2px rgba(0, 0, 0, 0.15);
}

.page-emerald .hero-emerald__brand-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-emerald .hero-emerald__brand-divider {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2px;
  min-height: 0;
  align-self: center;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--em-gold) 20%,
    rgba(212, 168, 87, 0.55) 50%,
    var(--em-gold) 80%,
    transparent 100%
  );
}

.page-emerald .hero-emerald__brand-slogan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: 0.5rem;
  box-sizing: border-box;
}

.page-emerald .hero-emerald__brand-line {
  margin: 0;
  width: 100%;
  font-size: clamp(0.8125rem, 3.5vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: break-word;
  hyphens: auto;
}

.page-emerald .hero-emerald__brand-line--lead {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.page-emerald .hero-emerald__brand-accent {
  color: var(--em-gold);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(212, 168, 87, 0.35);
}

/* Buttons */

.page-emerald .btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8125rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.page-emerald .btn-emerald--glass {
  color: var(--em-deep);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.page-emerald .btn-emerald--glass:hover {
  background: #ffffff;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.page-emerald .btn-emerald--solid {
  color: var(--em-white);
  background: rgba(14, 124, 102, 0.55);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 20px rgba(0, 0, 0, 0.15);
}

.page-emerald .btn-emerald--solid:hover {
  background: rgba(14, 124, 102, 0.72);
  transform: translateY(-2px);
}

.page-emerald .btn-emerald--outline {
  color: var(--em-accent);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(14, 124, 102, 0.25);
}

.page-emerald .btn-emerald--outline:hover {
  border-color: var(--em-gold);
  box-shadow: var(--em-gold-glow);
}

.page-emerald .btn-emerald--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ===== 3. About teacher ===== */

.page-emerald .emerald-section {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.page-emerald .emerald-about {
  background: transparent;
}

.page-emerald .emerald-profile {
  background: var(--em-light);
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

.page-emerald .emerald-profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: start;
}

.page-emerald .emerald-profile__news {
  min-width: 0;
}

.page-emerald .emerald-profile__grid .emerald-card--about {
  padding: clamp(1.125rem, 2vw, 1.625rem) clamp(1.5rem, 2.5vw, 2.25rem);
  overflow: visible;
}

.page-emerald .emerald-profile__grid .emerald-about__layout {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  gap: clamp(0.625rem, 1.25vw, 1rem);
}

.page-emerald .emerald-profile__grid .emerald-about__title,
.page-emerald .emerald-profile__grid .emerald-about__rule {
  grid-column: 1 / -1;
}

.page-emerald .emerald-profile__grid .emerald-about__body {
  grid-column: 1;
  grid-row: 3;
}

.page-emerald .emerald-profile__grid .emerald-about__photo-wrap {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  padding-top: 0;
}

.page-emerald .emerald-profile__grid .emerald-about__rule {
  margin-top: 0.5rem;
}

.page-emerald .emerald-profile__grid .emerald-about__title {
  font-size: clamp(1.625rem, 2.4vw, 2.25rem);
  white-space: nowrap;
}

.page-emerald .emerald-profile__grid .emerald-about__photo {
  width: clamp(9rem, 14vw, 13rem);
}

.page-emerald .emerald-profile__grid .emerald-about__text {
  margin: 2.25rem 0 2.25rem;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.55;
}

.page-emerald .emerald-about__title {
  margin: 0;
  font-family: var(--font-name, 'Cambria', 'Georgia', 'Times New Roman', serif);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--em-deep);
}

.page-emerald .emerald-about__title-accent {
  color: var(--em-accent);
}

.page-emerald .emerald-about__rule {
  width: 100%;
  height: 2px;
  margin: 0.5rem 0 0;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    rgba(14, 124, 102, 0.45) 0%,
    rgba(21, 158, 122, 0.25) 55%,
    transparent 100%
  );
}

.page-emerald .emerald-heading {
  margin: 0;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1.625rem, 3.2vw, 2.125rem);
  font-weight: 700;
  color: var(--em-deep);
}

.page-emerald .emerald-heading--section {
  color: var(--em-deep);
}

.page-emerald .emerald-card--about {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 20px;
  background: var(--em-light);
  border: 1px solid var(--em-gold);
  box-shadow: var(--shadow-soft);
  overflow: visible;
}

.page-emerald .emerald-about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.page-emerald .emerald-about__title,
.page-emerald .emerald-about__rule {
  grid-column: 1 / -1;
}

.page-emerald .emerald-about__body {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
}

.page-emerald .emerald-about__photo-wrap {
  grid-column: 2;
  grid-row: 3;
  flex-shrink: 0;
  align-self: start;
}

.page-emerald .emerald-about__photo {
  display: block;
  width: clamp(10rem, 16vw, 14rem);
  height: auto;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 8px 24px rgba(30, 74, 66, 0.12));
}

.page-emerald .emerald-theses {
  margin: 0.625rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}

.page-emerald .emerald-theses li {
  position: relative;
  padding-left: 1rem;
  font-family: var(--font, 'PT Sans', sans-serif);
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--em-muted);
}

.page-emerald .emerald-theses li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--em-accent-light);
  box-shadow: 0 0 6px rgba(21, 158, 122, 0.35);
}

.page-emerald .emerald-about__text {
  margin: 2.25rem 0 2.25rem;
  font-family: var(--font, 'PT Sans', sans-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--em-muted);
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.page-emerald .emerald-about__stats {
  width: 100%;
  margin: 0.875rem 0 0;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(14, 124, 102, 0.1);
  min-width: 0;
  overflow: visible;
}

.page-emerald .emerald-profile__grid .emerald-about__stats {
  margin-top: clamp(0.75rem, 1.5vw, 1rem);
}

.page-emerald .emerald-about__stats-empty {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--em-muted);
}

.page-emerald .emerald-about-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.page-emerald .emerald-about-stats-line-wrap {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.page-emerald .emerald-about-stats-year {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
  min-width: 0;
}

.page-emerald .emerald-about-stats__divider {
  width: 100%;
  height: 1px;
  margin: 0.125rem 0 0.25rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 168, 87, 0.18) 8%,
    rgba(212, 168, 87, 0.72) 50%,
    rgba(212, 168, 87, 0.18) 92%,
    transparent 100%
  );
}

.page-emerald .emerald-about-stats-year__label {
  margin: 0;
  font-family: var(--font, 'PT Sans', sans-serif);
  font-size: clamp(0.625rem, 0.85vw, 0.6875rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(14, 124, 102, 0.52);
}

.page-emerald .emerald-about-stats-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3125rem 0.4375rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: var(--font, 'PT Sans', sans-serif);
  font-size: clamp(0.6875rem, 0.95vw, 0.875rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(14, 124, 102, 0.72);
}

.page-emerald .emerald-about-stats-line__item {
  display: inline-flex;
  flex-shrink: 0;
  align-items: baseline;
  gap: 0.25rem;
  white-space: nowrap;
}

.page-emerald .emerald-about-stats-line__num {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: inherit;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--em-deep);
}

.page-emerald .emerald-about-stats-line__sep {
  flex-shrink: 0;
  align-self: center;
  padding-inline: 0.0625rem;
  font-size: 0.5rem;
  line-height: 1;
  color: rgba(212, 168, 87, 0.6);
  user-select: none;
}

.page-emerald .emerald-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.page-emerald .emerald-tabs--header {
  justify-content: flex-end;
  gap: 0.5rem;
  padding-bottom: 0.125rem;
}

.page-emerald .emerald-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--em-muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--em-gold);
  backdrop-filter: blur(6px);
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.page-emerald .emerald-tab:hover,
.page-emerald .emerald-tab--active {
  color: var(--em-deep);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--em-gold-glow);
}

/* ===== 4. Background & sections ===== */
/* ===== 5. News ===== */

.page-emerald .emerald-news {
  background: transparent;
}

.page-emerald .emerald-profile__news .emerald-news__head {
  margin-bottom: 1rem;
}

.page-emerald .emerald-profile__news .emerald-heading--section {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
}

.page-emerald .emerald-profile__news-more {
  margin: 1rem 0 0;
  text-align: center;
}

.page-emerald .emerald-profile__news-more .btn-emerald--outline {
  padding: 0.4375rem 0.875rem;
  font-size: 0.75rem;
}

.page-emerald .emerald-section__head {
  margin-bottom: 2rem;
}

.page-emerald .emerald-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-emerald .emerald-news__head .emerald-heading {
  margin: 0;
}

.page-emerald .emerald-news__head .btn-emerald--outline {
  flex-shrink: 0;
}

.page-emerald .emerald-section__more {
  margin: 2rem 0 0;
  text-align: center;
}

.page-emerald .news-grid--emerald {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.page-emerald .news-grid--emerald.news-grid--sidebar {
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.page-emerald .news-grid--emerald.news-grid--sidebar .news-card {
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 8.5rem;
}

.page-emerald .news-grid--emerald.news-grid--sidebar .news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 0.8125rem 0.875rem 0.75rem 0.75rem;
  gap: 0.3125rem;
}

.page-emerald .news-grid--emerald.news-grid--sidebar .news-card__title {
  font-size: 0.875rem;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(0.875rem * 1.35 * 2);
}

.page-emerald .news-grid--emerald.news-grid--sidebar .news-card__summary {
  flex: 1;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--em-muted);
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(0.8125rem * 1.45 * 3);
}

.page-emerald .news-grid--emerald.news-grid--sidebar .news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  margin-top: auto;
  padding-top: 0.375rem;
}

.page-emerald .news-grid--emerald.news-grid--sidebar .news-card__footer .news-card__date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--em-gold);
}

.page-emerald .news-grid--emerald.news-grid--sidebar .news-card__footer .news-card__badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  padding: 0.125rem 0.4375rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(212, 168, 87, 0.35);
  color: var(--em-muted);
  backdrop-filter: blur(6px);
}

.page-emerald .news-grid--emerald .news-grid__loading,
.page-emerald .news-grid--emerald .news-grid__empty {
  grid-column: 1 / -1;
  padding: 2.5rem;
  text-align: center;
  color: var(--em-muted);
  background: var(--em-white);
  border-radius: 16px;
  border: 1px solid rgba(212, 168, 87, 0.2);
  box-shadow: var(--shadow-card);
}

.page-emerald.page-emerald--embedded {
  background: transparent;
  color: inherit;
  padding: 0;
  margin: 0;
}

.page-emerald--embedded .news-archive__grid {
  margin-top: 0;
}

.page-emerald .news-grid--emerald .news-card {
  display: flex;
  flex-direction: row;
  min-height: auto;
  background: var(--em-white);
  border: 1px solid rgba(212, 168, 87, 0.15);
  border-left: 3px solid var(--em-gold);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-emerald .news-grid--emerald .news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(212, 168, 87, 0.35);
}

.page-emerald .news-grid--emerald .news-card:focus-visible {
  outline: 2px solid var(--em-gold);
  outline-offset: 2px;
}

.page-emerald .news-grid--emerald .news-card__media {
  display: none;
}

.page-emerald .news-grid--emerald.news-grid--sidebar .news-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: stretch;
  width: 6.5rem;
  min-height: 100%;
  margin: 0;
  padding: 0.375rem;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 168, 87, 0.12) 0%, rgba(6, 78, 59, 0.08) 100%);
}

.page-emerald .news-grid--emerald.news-grid--sidebar .news-card__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.page-emerald .news-grid--emerald.news-grid--sidebar .news-card--sidebar:not(:has(.news-card__media)) .news-card__body {
  padding-left: 0.9375rem;
}

.page-emerald .news-grid--emerald .news-card__body {
  padding: 1.25rem 1.375rem 1.375rem;
  gap: 0.625rem;
}

.page-emerald .news-grid--emerald .news-card__meta {
  justify-content: space-between;
  gap: 0.75rem;
}

.page-emerald .news-grid--emerald .news-card__date {
  margin-left: auto;
  text-align: right;
  color: var(--em-gold);
  font-weight: 700;
}

.page-emerald .news-grid--emerald .news-card__badge {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(212, 168, 87, 0.35);
  color: var(--em-muted);
  backdrop-filter: blur(6px);
}

.page-emerald .news-grid--emerald .news-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--em-graphite);
}

.page-emerald .news-grid--emerald .news-card__summary {
  color: var(--em-muted);
  font-size: 0.9375rem;
}

.page-emerald .news-grid--emerald .news-card__btn {
  display: none;
}

/* ===== News archive page ===== */

.page-emerald .emerald-news-archive {
  padding-top: clamp(3.75rem, 7.5vw, 5.5rem);
  padding-bottom: 3rem;
}

.page-emerald .emerald-news-archive .emerald-breadcrumb {
  margin-top: 0;
}

.page-emerald .emerald-news-archive__lead {
  margin: 0.5rem 0 0;
  color: var(--em-muted);
  font-size: 1rem;
}

.page-emerald .news-archive__grid {
  margin-top: 1.5rem;
}

.page-emerald .news-archive__grid .news-card--archive {
  flex-direction: column;
}

.page-emerald .news-archive__grid .news-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 24 / 10;
  min-height: calc(9.5rem * 2 / 3);
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 168, 87, 0.12) 0%, rgba(6, 78, 59, 0.08) 100%);
  border-bottom: 1px solid rgba(212, 168, 87, 0.15);
}

.page-emerald .news-archive__grid .news-card__media--placeholder {
  display: flex;
}

.page-emerald .news-archive__grid .news-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.page-emerald .news-archive__grid .news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.page-emerald .news-archive__grid .news-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-emerald .news-archive__grid .news-card__summary {
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-emerald .emerald-news-archive__back {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .page-emerald .news-archive__grid.news-grid--emerald {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .page-emerald .news-archive__grid.news-grid--emerald {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== News article page ===== */

.page-emerald .emerald-news-article {
  padding-top: clamp(3.75rem, 7.5vw, 5.5rem);
}

.page-emerald .emerald-news-article .emerald-breadcrumb {
  margin-top: 0;
}

.page-emerald .emerald-profile__grid .news-article {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.page-emerald .emerald-news-article .emerald-profile__news {
  background: transparent;
}

@media (max-width: 991px) {
  .page-emerald .emerald-news-article .emerald-profile__grid > .emerald-profile__news {
    margin-top: clamp(1.75rem, 4vw, 2.5rem);
  }
}

.page-emerald .emerald-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--em-muted);
}

.page-emerald .emerald-breadcrumb a {
  color: var(--em-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-emerald .emerald-breadcrumb a:hover,
.page-emerald .emerald-breadcrumb a:focus-visible {
  color: var(--em-deep);
}

.page-emerald .emerald-breadcrumb__sep {
  color: rgba(30, 74, 66, 0.35);
}

.page-emerald .emerald-breadcrumb__current {
  color: var(--em-graphite);
  font-weight: 600;
}

.page-emerald .news-article__status {
  margin: 0 0 1rem;
  color: var(--em-muted);
}

.page-emerald .news-article__status--error {
  color: #b91c1c;
}

.page-emerald .news-article__card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: transparent;
  border: 1px solid var(--em-gold);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow: visible;
}

.page-emerald .news-article__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(212, 168, 87, 0.2);
}

.page-emerald .news-article__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
}

.page-emerald .news-article__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--em-graphite);
}

.page-emerald .news-article__tag {
  flex-shrink: 0;
  padding-top: 0.125rem;
}

.page-emerald .news-article__tag .news-card__badge {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(212, 168, 87, 0.35);
  color: var(--em-muted);
  backdrop-filter: blur(6px);
}

.page-emerald .news-article__main::after {
  content: '';
  display: table;
  clear: both;
}

.page-emerald .news-article__figure {
  float: right;
  width: min(38%, 18rem);
  margin: 0.125rem 0 0.75rem 0.875rem;
  padding: 0.375rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212, 168, 87, 0.12) 0%, rgba(6, 78, 59, 0.08) 100%);
  border: 1px solid rgba(212, 168, 87, 0.2);
}

.page-emerald .news-article__figure-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.page-emerald .news-article__text {
  min-width: 0;
}

.page-emerald .news-article__content {
  font-size: clamp(0.9375rem, 1.4vw, 1rem);
  line-height: 1.65;
  color: var(--em-graphite);
  text-align: justify;
}

.page-emerald .news-article__content p {
  margin: 0 0 0.875rem;
  text-align: justify;
}

.page-emerald .news-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-emerald .news-article__instagram-action {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  text-align: right;
}

.page-emerald .news-article__instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5625rem 1.125rem;
  font-size: 0.8125rem;
}

.page-emerald .news-article__instagram-icon {
  flex-shrink: 0;
}

.page-emerald .news-article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.875rem 0;
  font-size: 0.8125rem;
}

.page-emerald .news-article__content td,
.page-emerald .news-article__content th {
  border: 1px solid rgba(212, 168, 87, 0.25);
  padding: 0.5rem 0.75rem;
}

.page-emerald .news-article__slideshow {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 168, 87, 0.2);
}

.page-emerald .news-article__slideshow-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(14rem, 36vw, 22rem);
  padding: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 168, 87, 0.12) 0%, rgba(6, 78, 59, 0.08) 100%);
  border: 1px solid rgba(212, 168, 87, 0.15);
}

.page-emerald .news-article__slideshow-zoom {
  position: relative;
  display: block;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.page-emerald .news-article__slideshow-zoom:focus-visible {
  outline: 2px solid var(--em-gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.page-emerald .news-article__slideshow-img {
  display: block;
  max-width: 100%;
  max-height: clamp(16rem, 42vw, 28rem);
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.page-emerald .news-article__slideshow-zoom-hint {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1;
  pointer-events: none;
}

.page-emerald .news-article__slideshow-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.page-emerald .news-article__slideshow-thumb {
  flex: 0 0 auto;
  width: 3.75rem;
  height: 3.75rem;
  padding: 0.1875rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.page-emerald .news-article__slideshow-thumb:hover,
.page-emerald .news-article__slideshow-thumb:focus-visible {
  border-color: rgba(212, 168, 87, 0.55);
  transform: translateY(-1px);
}

.page-emerald .news-article__slideshow-thumb.is-active {
  border-color: var(--em-gold);
  box-shadow: 0 0 0 1px rgba(212, 168, 87, 0.25);
}

.page-emerald .news-article__slideshow-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

.page-emerald .news-article__slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 0.75rem;
}

.page-emerald .news-article__slideshow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(212, 168, 87, 0.4);
  border-radius: 50%;
  background: var(--em-white);
  color: var(--em-deep);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.page-emerald .news-article__slideshow-btn:hover,
.page-emerald .news-article__slideshow-btn:focus-visible {
  border-color: var(--em-gold);
  color: var(--em-accent);
  background: rgba(212, 168, 87, 0.08);
}

.page-emerald .news-article__slideshow-counter {
  min-width: 3.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--em-muted);
  text-align: center;
}

.page-emerald .news-article__back {
  margin: 1rem 0 0;
}

.page-emerald .news-article__back .btn-emerald--outline {
  padding: 0.4375rem 0.875rem;
  font-size: 0.75rem;
}

@media (max-width: 575px) {
  .page-emerald .news-article__figure {
    float: none;
    width: min(100%, 14rem);
    margin: 0 auto 0.875rem;
  }
}

/* ===== 6. Projects ===== */

.page-emerald .emerald-projects {
  background: var(--em-mint);
}

.page-emerald .projects-grid--emerald {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.page-emerald .project-card--emerald {
  background: var(--em-white);
  border: 1px solid var(--em-gold);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-emerald .project-card--emerald:hover {
  transform: translateY(-4px);
  border-color: var(--em-gold);
  box-shadow: var(--shadow-soft), var(--em-gold-glow);
}

.page-emerald .project-card--emerald .project-card__thumb {
  background: linear-gradient(135deg, rgba(14, 124, 102, 0.06) 0%, rgba(212, 168, 87, 0.08) 100%);
  border-bottom: 1px solid rgba(212, 168, 87, 0.2);
}

.page-emerald .project-card--emerald .project-card__thumb--icon {
  color: var(--em-accent);
  filter: drop-shadow(0 2px 4px rgba(212, 168, 87, 0.25));
}

.page-emerald .project-card--emerald h3 {
  color: var(--em-graphite);
}

.page-emerald .project-card--emerald p {
  color: var(--em-muted);
}

.page-emerald .project-card--emerald .tag {
  background: rgba(14, 124, 102, 0.08);
  color: var(--em-accent);
  border: 1px solid rgba(14, 124, 102, 0.15);
}

.page-emerald .project-card--emerald .project-card__link {
  display: inline-flex;
  margin-top: auto;
  padding: 0.4375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--em-deep);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 168, 87, 0.4);
  backdrop-filter: blur(6px);
}

.page-emerald .project-card--emerald .project-card__link:hover {
  background: var(--em-white);
  box-shadow: var(--em-gold-glow);
}

/* ===== 7. Timeline ===== */

.page-emerald .emerald-triumphs {
  background: var(--em-light);
}

.page-emerald .emerald-timeline {
  position: relative;
  margin: 0 0 3rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--em-gold);
}

.page-emerald .emerald-timeline__item {
  position: relative;
  padding: 0 0 2rem 1.75rem;
}

.page-emerald .emerald-timeline__item:last-child {
  padding-bottom: 0;
}

.page-emerald .emerald-timeline__item::before {
  content: '';
  position: absolute;
  left: -1.625rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--em-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 87, 0.25);
}

.page-emerald .emerald-timeline__year {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--em-accent);
}

.page-emerald .emerald-timeline__card {
  padding: 1.125rem 1.25rem;
  border-radius: 14px;
  background: var(--em-white);
  border: 1px solid rgba(212, 168, 87, 0.2);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease;
}

.page-emerald .emerald-timeline__item:hover .emerald-timeline__card {
  box-shadow: var(--shadow-soft);
}

.page-emerald .emerald-timeline__title {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--em-graphite);
}

.page-emerald .emerald-timeline__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--em-muted);
}

/* ===== Lower sections ===== */

.page-emerald .section {
  background: transparent;
}

.page-emerald .section--alt {
  background: var(--em-mint);
}

.page-emerald .section__tag,
.page-emerald .section__tag--emerald {
  color: var(--em-accent);
  border-bottom-color: var(--em-gold);
}

.page-emerald .section__title {
  color: var(--em-graphite);
}

.page-emerald .section__desc {
  color: var(--em-muted);
}

.page-emerald .card {
  background: var(--em-white);
  border: 1px solid rgba(212, 168, 87, 0.2);
  box-shadow: var(--shadow-card);
}

.page-emerald .card h3 {
  color: var(--em-graphite);
}

.page-emerald .card p,
.page-emerald .card li {
  color: var(--em-muted);
}

.page-emerald .info-card {
  background: var(--em-white);
  border-color: rgba(212, 168, 87, 0.25);
}

.page-emerald .info-card__value {
  color: var(--em-deep);
}

.page-emerald .review-card {
  background: var(--em-white);
  border: 1px solid rgba(212, 168, 87, 0.2);
}

.page-emerald .section--cta {
  background: linear-gradient(180deg, var(--em-mint) 0%, var(--em-light) 100%);
}

.page-emerald .home-triumphs-stats--emerald {
  background: var(--em-white);
  border: 1px solid rgba(212, 168, 87, 0.25);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.page-emerald .home-triumphs-stats__total-value {
  color: var(--em-accent);
}

.page-emerald .triumphs-archive-card {
  background: var(--em-white);
  border-color: rgba(212, 168, 87, 0.2);
}

.page-emerald .triumphs-archive-card:hover {
  border-color: var(--em-gold);
  box-shadow: var(--em-gold-glow);
}

/* ===== 8. Footer ===== */

.page-emerald .footer--emerald {
  background: var(--em-deep);
  border-top: 1px solid var(--em-gold);
  color: rgba(255, 255, 255, 0.85);
}

.page-emerald .footer--emerald .logo strong {
  color: var(--em-white);
}

.page-emerald .footer--emerald a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease;
}

.page-emerald .footer--emerald a:hover {
  color: var(--em-gold);
}

.page-emerald .footer__copy {
  color: rgba(255, 255, 255, 0.6);
}

.page-emerald .back-to-top {
  background: var(--em-white);
  border-color: var(--em-gold);
  color: var(--em-accent);
}

/* ===== Overrides from style.css ===== */

body.page-emerald .site-header {
  background: var(--em-header-solid);
  border-bottom: none;
}

body.page-emerald .main-nav {
  background: transparent;
}

body.page-emerald .site-header--emerald .main-nav--emerald .main-nav__link,
body.page-emerald .site-header--emerald .main-nav--emerald .main-nav__link:hover,
body.page-emerald .site-header--emerald .main-nav--emerald .main-nav__link.is-active {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body.page-emerald[data-page="index"] {
  background: var(--em-mint);
  color: var(--em-graphite);
  --header-h: 72px;
}

body.page-emerald[data-page="index"] .section--alt {
  background: var(--em-mint);
}

body.page-emerald[data-page="index"] #projects .project-card {
  background: var(--em-white);
}

/* ===== Responsive ===== */

@media (min-width: 992px) {
  .page-emerald .hero-emerald__top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .page-emerald .emerald-profile__grid {
    grid-template-columns: minmax(0, 3.4fr) minmax(0, 1.7fr);
    gap: clamp(1.25rem, 2vw, 1.75rem);
  }

  .page-emerald .hero-diploma-showcase {
    --diploma-width: 7.75rem;
    width: 100%;
    max-width: 22rem;
    margin-inline: 0;
    justify-self: end;
  }

  .page-emerald .hero-emerald__brand-row {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: clamp(1.25rem, 2.5vw, 2rem);
  }

  .page-emerald .hero-emerald__logo {
    width: clamp(5.5rem, 10vw, 8.75rem);
    margin-inline: 0;
  }

  .page-emerald .hero-emerald__brand {
    align-items: flex-start;
    gap: 1.125rem;
  }

  .page-emerald .hero-emerald__brand-name {
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: 0.1em;
    line-height: 1;
    text-align: left;
  }

  .page-emerald .hero-emerald__brand-body {
    flex-direction: row;
    align-items: stretch;
    gap: clamp(1rem, 2vw, 1.375rem);
    max-width: 32rem;
  }

  .page-emerald .hero-emerald__brand-divider {
    width: 2px;
    height: auto;
    min-height: 3.25rem;
    align-self: stretch;
    background: linear-gradient(
      180deg,
      transparent 0%,
      var(--em-gold) 12%,
      rgba(212, 168, 87, 0.55) 50%,
      var(--em-gold) 88%,
      transparent 100%
    );
  }

  .page-emerald .hero-emerald__brand-slogan {
    align-items: flex-start;
    max-width: none;
    padding-inline: 0;
  }

  .page-emerald .hero-emerald__brand-line {
    font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
    line-height: 1.5;
    text-align: left;
  }
}

@media (max-width: 991px) {
  body.page-emerald {
    --header-h: 64px;
  }

  body.page-emerald[data-page="index"] {
    --header-h: 64px;
  }

  .page-emerald .hero--emerald {
    padding: calc(var(--header-h) + 1.125rem) 0 1rem;
  }

  .page-emerald .emerald-profile {
    padding-top: clamp(1.125rem, 3vw, 1.75rem);
  }

  .page-emerald .burger--emerald {
    display: flex;
  }

  .page-emerald .main-nav--emerald {
    position: fixed;
    inset: calc(var(--header-h) - 1px) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: var(--em-header-solid);
    border-bottom: 1px solid rgba(212, 168, 87, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    z-index: 99;
  }

  .page-emerald .main-nav--emerald.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .page-emerald .site-header--emerald .main-nav--emerald .main-nav__link {
    justify-content: flex-start;
    width: 100%;
    padding: 0.9375rem 1.25rem 0.9375rem 1rem;
    font-size: 0.9375rem;
    letter-spacing: 1px;
    color: var(--em-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .page-emerald .site-header--emerald .main-nav--emerald .main-nav__link::after {
    left: 1rem;
    right: 1rem;
    bottom: 0;
    width: auto;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left center;
  }

  .page-emerald .site-header--emerald .main-nav--emerald .main-nav__link.is-active {
    color: var(--em-gold);
  }

  .page-emerald .hero-emerald__top {
    gap: 1.25rem;
  }

  .page-emerald .emerald-profile__grid .emerald-about__layout,
  .page-emerald .emerald-about__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .page-emerald .emerald-profile__grid .emerald-about__photo-wrap,
  .page-emerald .emerald-about__photo-wrap {
    order: 1;
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
    align-self: center;
    margin: 0 auto;
    padding: 0.5rem;
    border-radius: 1.25rem;
    background: var(--em-white);
    border: 1px solid rgba(212, 168, 87, 0.32);
    box-shadow: var(--shadow-card);
  }

  .page-emerald .emerald-profile__grid .emerald-about__photo,
  .page-emerald .emerald-about__photo {
    width: min(148px, 42vw);
    margin: 0 auto;
    border-radius: 1rem;
  }

  .page-emerald .emerald-profile__grid .emerald-about__title,
  .page-emerald .emerald-about__title {
    order: 2;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    text-align: center;
    font-size: clamp(1.75rem, 6.5vw, 2.125rem);
    line-height: 1.15;
    white-space: normal;
  }

  .page-emerald .emerald-profile__grid .emerald-about__rule,
  .page-emerald .emerald-about__rule {
    order: 3;
    grid-column: auto;
    grid-row: auto;
    width: min(7.5rem, 42%);
    margin: 0 auto;
  }

  .page-emerald .emerald-profile__grid .emerald-about__body,
  .page-emerald .emerald-about__body {
    order: 4;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    align-self: stretch;
  }

  .page-emerald .emerald-theses {
    margin-top: 0.25rem;
    gap: 0.3125rem;
  }

  .page-emerald .emerald-theses li {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .page-emerald .emerald-profile__grid .emerald-about__text,
  .page-emerald .emerald-about__text {
    margin: 1.75rem 0 1.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    text-align: left;
    text-align-last: left;
  }

  .page-emerald .emerald-about-stats-line {
    justify-content: flex-start;
  }

  .page-emerald .news-grid--emerald,
  .page-emerald .projects-grid--emerald {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
