:root {
  --emg-ink: #0a1612;
  --emg-forest: #14352c;
  --emg-canopy: #1f4a3c;
  --emg-mist: #e8eef0;
  --emg-snow: #f5f8f9;
  --emg-brass: #d4a84b;
  --emg-brass-deep: #b8892e;
  --emg-sage: #7a9e8f;
  --emg-muted: #5e736c;
  --emg-line: rgba(10, 22, 18, 0.12);
  --emg-glow: rgba(212, 168, 75, 0.28);
  --emg-display: "Syne", sans-serif;
  --emg-body: "Literata", Georgia, serif;
  --emg-ui: "Syne", system-ui, sans-serif;
  --emg-max: 1120px;
  --emg-radius: 2px;
  --emg-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--emg-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--emg-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(122, 158, 143, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(212, 168, 75, 0.12), transparent 50%),
    linear-gradient(180deg, #f7fafb 0%, var(--emg-mist) 48%, #eef3f4 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.emg-shell {
  width: min(100% - 2rem, var(--emg-max));
  margin-inline: auto;
}

/* Top bar */
.emg-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--emg-ink) 88%, transparent);
  border-bottom: 1px solid rgba(212, 168, 75, 0.22);
}

.emg-topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.emg-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--emg-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-transform: lowercase;
}

.emg-mark em {
  font-style: normal;
  color: var(--emg-brass);
}

.emg-mark__sigil {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.35rem;
  background: linear-gradient(145deg, var(--emg-brass), var(--emg-brass-deep));
  color: var(--emg-ink);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.emg-mark img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(212, 168, 75, 0.35);
}

.emg-mark__name {
  display: inline;
}

.emg-rail {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.05rem;
  flex-wrap: wrap;
}

.emg-rail a {
  font-family: var(--emg-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s var(--emg-ease);
}

.emg-rail a:hover,
.emg-rail a.is-on {
  color: var(--emg-brass);
}

.emg-burger {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  padding: 0.45rem 0.75rem;
  font-family: var(--emg-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.emg-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.55rem;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.emg-lang button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--emg-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--emg-ease), color 0.2s var(--emg-ease);
}

.emg-lang button.is-on,
.emg-lang button:hover {
  background: var(--emg-brass);
  color: var(--emg-ink);
}

.emg-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Hero */
.emg-stage {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--emg-ink);
  color: #fff;
}

.emg-stage__media {
  position: absolute;
  inset: 0;
}

.emg-stage__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s var(--emg-ease), transform 6s linear;
}

.emg-stage__media img.is-live {
  opacity: 1;
  transform: scale(1);
}

.emg-stage__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 18, 0.78) 0%, rgba(10, 22, 18, 0.35) 48%, rgba(10, 22, 18, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 22, 18, 0.15) 0%, rgba(10, 22, 18, 0.72) 100%);
}

.emg-stage__copy {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0 4rem;
  max-width: 34rem;
  animation: emgRise 0.9s var(--emg-ease) both;
}

.emg-bars {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin-bottom: 1.1rem;
}

.emg-bars i {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: var(--emg-brass);
  box-shadow: 0 0 18px rgba(212, 168, 75, 0.45);
}

.emg-bars i:nth-child(1) { width: 46px; }
.emg-bars i:nth-child(2) { width: 72px; }
.emg-bars i:nth-child(3) { width: 34px; }
.emg-bars i:nth-child(4) { width: 58px; }
.emg-bars i:nth-child(5) { width: 24px; }

.emg-stage__badge {
  position: absolute;
  right: max(1rem, calc((100% - var(--emg-max)) / 2));
  bottom: 1.4rem;
  z-index: 3;
  width: min(180px, 38vw);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.emg-stage__badge img {
  width: 100%;
  height: auto;
  display: block;
}

.emg-kicker {
  display: inline-block;
  font-family: var(--emg-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emg-brass);
  margin-bottom: 1rem;
}

.emg-stage h1 {
  margin: 0 0 1rem;
  font-family: var(--emg-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.emg-stage p {
  margin: 0 0 1.6rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 28rem;
}

.emg-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.emg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--emg-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--emg-radius);
  cursor: pointer;
  transition: transform 0.25s var(--emg-ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.emg-btn:hover {
  transform: translateY(-2px);
}

.emg-btn--brass {
  background: linear-gradient(135deg, var(--emg-brass), var(--emg-brass-deep));
  color: var(--emg-ink);
  box-shadow: 0 10px 30px var(--emg-glow);
}

.emg-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.emg-btn--ink {
  background: var(--emg-ink);
  color: #fff;
}

.emg-btn--line {
  background: transparent;
  color: var(--emg-ink);
  border-color: var(--emg-line);
}

/* Sections */
.emg-block {
  padding: 4.5rem 0;
}

.emg-block--tight {
  padding: 3rem 0;
}

.emg-head {
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.emg-head h2 {
  margin: 0 0 0.7rem;
  font-family: var(--emg-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--emg-forest);
}

.emg-head p {
  margin: 0;
  color: var(--emg-muted);
}

.emg-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.emg-tile {
  position: relative;
  grid-column: span 4;
  min-height: 280px;
  overflow: hidden;
  background: var(--emg-forest);
  isolation: isolate;
}

.emg-tile:nth-child(1),
.emg-tile:nth-child(6) {
  grid-column: span 5;
}

.emg-tile:nth-child(2),
.emg-tile:nth-child(5) {
  grid-column: span 3;
}

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

.emg-tile:hover img {
  transform: scale(1.05);
}

.emg-tile__cap {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: auto 0 0;
  padding: 1.25rem 1.1rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(10, 22, 18, 0.88));
  color: #fff;
}

.emg-tile__cap h3 {
  margin: 0 0 0.3rem;
  font-family: var(--emg-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.emg-tile__cap p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.emg-ribbon {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  border-radius: 48% / 18% 18% 0 0;
  margin-top: 1rem;
}

.emg-ribbon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42);
}

.emg-ribbon__bars {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.emg-ribbon__bars i {
  width: 5px;
  height: 28px;
  border-radius: 99px;
  background: var(--emg-brass);
}

.emg-ribbon__text {
  position: relative;
  z-index: 1;
  font-family: var(--emg-display);
  font-size: clamp(1.5rem, 3.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 18ch;
  padding: 0 1rem 2.2rem;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.emg-note {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--emg-brass);
  background: rgba(255, 255, 255, 0.65);
  color: var(--emg-muted);
  font-size: 0.95rem;
}

/* Inner pages */
.emg-banner {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--emg-ink);
  color: #fff;
}

.emg-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.emg-banner h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 3.5rem 0 2rem;
  font-family: var(--emg-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.emg-prose {
  max-width: 46rem;
}

.emg-prose p {
  margin: 0 0 1rem;
  color: var(--emg-muted);
}

.emg-prose strong {
  color: var(--emg-ink);
}

.emg-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}

.emg-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--emg-line);
  padding: 1.35rem 1.25rem;
}

.emg-panel h3 {
  margin: 0 0 0.9rem;
  font-family: var(--emg-display);
  font-size: 1.2rem;
  color: var(--emg-forest);
}

.emg-panel p,
.emg-panel li {
  color: var(--emg-muted);
}

.emg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.emg-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.55rem;
  align-items: start;
}

.emg-list b {
  color: var(--emg-ink);
}

.emg-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--emg-brass);
}

.emg-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.emg-figure {
  background: #fff;
  border: 1px solid var(--emg-line);
  overflow: hidden;
}

.emg-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.emg-figure__body {
  padding: 1rem 1.05rem 1.2rem;
}

.emg-figure h2 {
  margin: 0 0 0.4rem;
  font-family: var(--emg-display);
  font-size: 1.25rem;
  color: var(--emg-forest);
}

.emg-figure p {
  margin: 0;
  color: var(--emg-muted);
  font-size: 0.98rem;
}

.emg-map {
  width: 100%;
  min-height: 380px;
  border: 0;
  border: 1px solid var(--emg-line);
  filter: grayscale(0.15) contrast(1.02);
}

.emg-foot {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--emg-line);
  color: var(--emg-muted);
  font-size: 0.92rem;
}

.emg-foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.6rem;
  font-family: var(--emg-ui);
  font-size: 0.82rem;
  font-weight: 600;
}

.emg-foot a:hover {
  color: var(--emg-forest);
}

@keyframes emgRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .emg-tile,
  .emg-tile:nth-child(1),
  .emg-tile:nth-child(2),
  .emg-tile:nth-child(5),
  .emg-tile:nth-child(6) {
    grid-column: span 6;
  }

  .emg-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .emg-mark__name {
    display: none;
  }

  .emg-mark img {
    width: 44px;
    height: 44px;
  }

  .emg-burger {
    display: inline-flex;
  }

  .emg-lang {
    margin-left: 0;
  }

  .emg-rail {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--emg-ink);
    border-bottom: 1px solid rgba(212, 168, 75, 0.22);
  }

  .emg-rail.is-open {
    display: flex;
  }

  .emg-rail a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .emg-stage {
    min-height: 78vh;
  }

  .emg-tile,
  .emg-tile:nth-child(n) {
    grid-column: span 12;
    min-height: 240px;
  }

  .emg-gallery {
    grid-template-columns: 1fr;
  }
}
