:root {
  --black: #070608;
  --panel: #111013;
  --panel-soft: rgba(18, 16, 18, 0.86);
  --bronze: #c5794f;
  --bronze-light: #eea56f;
  --bronze-deep: #8d4c32;
  --cream: #f5eee7;
  --muted: #d4c7be;
  --line: rgba(221, 137, 84, 0.27);
  --line-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(6, 5, 6, 0.58), rgba(6, 5, 6, 0.86)),
    url("./assets/images/site-texture.jpg") center top / cover fixed,
    radial-gradient(circle at 7% 69%, rgba(197, 121, 79, 0.12), transparent 18rem),
    radial-gradient(circle at 92% 64%, rgba(197, 121, 79, 0.1), transparent 18rem),
    linear-gradient(180deg, #0a090b 0%, #0d0b0d 44%, #060507 100%);
  color: var(--cream);
  font-family: "Inter", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at center, transparent 0, rgba(0, 0, 0, 0.72) 78%);
  opacity: 0.78;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    repeating-linear-gradient(
      112deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 14px
    );
  mix-blend-mode: soft-light;
  opacity: 0.12;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

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

.page-frame,
.header-inner {
  width: min(100% - 104px, 1400px);
  margin: 0 auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(4, 4, 5, 0.88), rgba(10, 9, 10, 0.72)),
    rgba(10, 9, 10, 0.75);
  border-bottom: 1px solid rgba(221, 137, 84, 0.33);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
}

.top-contact {
  height: 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(245, 238, 231, 0.74);
  font-size: 11px;
}

.top-contact__inner,
.main-nav__inner,
.contact-links,
.locale-tools,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.top-contact__inner {
  height: 35px;
  justify-content: space-between;
}

.contact-links {
  gap: 24px;
}

.contact-links a,
.locale-tools button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  transition: color 180ms ease;
}

.contact-links a:hover,
.locale-tools button:hover,
.nav-links a:hover {
  color: var(--bronze-light);
}

.mini-icon {
  color: var(--bronze-light);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.locale-tools {
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
}

.divider {
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.16);
}

.mail-chip {
  min-width: 29px;
  height: 22px;
  justify-content: center;
  background: linear-gradient(180deg, #ee9d66, #b96841);
  color: #160e0b;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav {
  position: relative;
  height: 78px;
}

.main-nav__inner {
  height: 78px;
  justify-content: space-between;
}

.nav-links {
  gap: clamp(26px, 4vw, 54px);
  width: 43%;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 78px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: 21px;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--bronze-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a.is-active {
  color: #fff2e9;
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.brand-lockup {
  position: absolute;
  left: 50%;
  top: -12px;
  width: clamp(218px, 24vw, 326px);
  transform: translateX(-50%);
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.58));
}

.brand-lockup img {
  width: 100%;
  clip-path: inset(0 0 8px 0);
}

.nav-actions {
  justify-content: flex-end;
  gap: 13px;
  width: 35%;
}

.search-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 12px;
  width: 144px;
  height: 38px;
  border: 1px solid rgba(238, 165, 111, 0.18);
  background: rgba(4, 3, 4, 0.32);
  color: rgba(245, 238, 231, 0.78);
  font-size: 10px;
  font-weight: 600;
}

.search-mark {
  width: 13px;
  height: 13px;
  border: 1.8px solid var(--bronze-light);
  border-radius: 50%;
}

.search-mark::after {
  display: block;
  width: 6px;
  height: 1.8px;
  margin-top: 9px;
  margin-left: 9px;
  content: "";
  background: var(--bronze-light);
  transform: rotate(45deg);
}

.reload-mark {
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(238, 165, 111, 0.7);
  border-left-color: transparent;
  border-radius: 50%;
}

.bronze-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 27px;
  border: 1px solid rgba(255, 218, 179, 0.24);
  background: linear-gradient(180deg, #e59761 0%, #b66842 100%);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.31), inset 0 1px 0 rgba(255, 255, 255, 0.17);
  color: #170f0c;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  transition: transform 180ms ease, filter 180ms ease;
}

.bronze-button:hover {
  filter: saturate(1.08) brightness(1.05);
  transform: translateY(-1px);
}

.nav-cta {
  min-width: 136px;
}

.hero {
  position: relative;
  height: 512px;
  min-height: 512px;
  overflow: visible;
  border-bottom: 1px solid rgba(238, 165, 111, 0.2);
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.82) 0%, rgba(7, 6, 8, 0.5) 38%, rgba(7, 6, 8, 0.28) 64%, rgba(7, 6, 8, 0.55) 100%),
    linear-gradient(180deg, rgba(4, 4, 5, 0.18) 0%, rgba(5, 5, 7, 0.04) 48%, rgba(6, 5, 7, 0.7) 100%),
    url("./assets/images/hero-bg.jpg");
  background-position: center 39%;
  background-size: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(38, 18, 12, 0.12), rgba(6, 5, 7, 0.18)),
    url("./assets/images/site-texture.jpg") center center / cover,
    radial-gradient(circle at 75% 42%, rgba(238, 165, 111, 0.13), transparent 19rem),
    radial-gradient(circle at 18% 48%, rgba(238, 165, 111, 0.08), transparent 24rem),
    linear-gradient(180deg, transparent 52%, rgba(6, 5, 7, 0.97) 100%);
  mix-blend-mode: multiply;
  opacity: 0.48;
}

.hero__frame {
  position: relative;
  height: 512px;
  min-height: 512px;
}

.hero-copy {
  position: absolute;
  top: 196px;
  left: 32px;
  z-index: 2;
  width: min(560px, 50vw);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
}

.eyebrow,
.hero-copy h1,
.experience__number,
.experience h2,
.section-heading h2,
.closing h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
}

.eyebrow {
  margin-bottom: 2px;
  color: var(--bronze-light);
  font-size: clamp(32px, 3.1vw, 47px);
  font-weight: 700;
  line-height: 1.05;
}

.hero-copy h1 {
  color: #fff8f2;
  font-size: clamp(32px, 3.2vw, 49px);
  font-weight: 700;
  line-height: 1.12;
}

.hero-lede {
  margin: 22px 0 0;
  color: rgba(255, 248, 242, 0.85);
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.72;
}

.hero-cta {
  width: 244px;
  min-height: 55px;
  margin-top: 31px;
}

.agent-card {
  position: absolute;
  right: 76px;
  bottom: -148px;
  z-index: 3;
  width: 246px;
  height: 240px;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid rgba(238, 165, 111, 0.4);
  background:
    linear-gradient(rgba(11, 9, 10, 0.4), rgba(11, 9, 10, 0.72)),
    url("./assets/images/site-texture.jpg") center center / cover,
    linear-gradient(90deg, rgba(9, 8, 9, 0.99) 0%, rgba(9, 8, 9, 0.92) 55%, rgba(9, 8, 9, 0.3) 100%),
    rgba(10, 9, 10, 0.88);
  box-shadow: var(--shadow);
}

.agent-card__content {
  position: relative;
  z-index: 2;
  width: 70%;
  padding: 16px 0 14px 18px;
}

.agent-card__logo {
  width: 124px;
  margin-bottom: 8px;
  clip-path: inset(0 0 8px 0);
  filter: drop-shadow(0 9px 13px rgba(0, 0, 0, 0.5));
}

.agent-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 247, 241, 0.9);
  font-size: 11px;
  line-height: 1.5;
}

.agent-email {
  display: inline-block;
  margin-top: 9px;
  color: rgba(255, 247, 241, 0.78);
  font-size: 9px;
}

.agent-card p {
  margin: 6px 0 0;
  color: #fff3ea;
  font-size: 8px;
  font-weight: 700;
}

.agent-button {
  min-height: 32px;
  margin-top: 14px;
  padding: 0 17px;
  font-size: 8px;
}

.agent-card__person {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 48%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.section-panel {
  position: relative;
  border-bottom: 1px solid rgba(238, 165, 111, 0.18);
  background:
    linear-gradient(rgba(10, 8, 8, 0.82), rgba(7, 6, 7, 0.92)),
    url("./assets/images/site-texture.jpg") center top / cover,
    radial-gradient(circle at 14% 30%, rgba(197, 121, 79, 0.12), transparent 19rem),
    radial-gradient(circle at 88% 44%, rgba(197, 121, 79, 0.11), transparent 22rem),
    linear-gradient(180deg, rgba(18, 15, 15, 0.96), rgba(6, 5, 7, 0.98));
}

.experience {
  padding: 12px 0 24px;
  text-align: center;
}

.experience__inner {
  max-width: 860px;
}

.experience__number {
  color: var(--bronze-light);
  font-size: clamp(62px, 7vw, 104px);
  font-weight: 500;
  line-height: 0.9;
  text-shadow: 0 9px 22px rgba(0, 0, 0, 0.5);
}

.experience h2,
.section-heading h2,
.closing h2 {
  color: #fff4ed;
  font-weight: 700;
  text-transform: uppercase;
}

.experience h2 {
  margin-top: 7px;
  font-size: clamp(23px, 3vw, 35px);
}

.experience p:not(.experience__number) {
  margin: 14px 0 0;
  color: rgba(255, 245, 239, 0.88);
  font-size: clamp(15px, 1.8vw, 21px);
  line-height: 1.5;
}

.gallery {
  padding: 38px 0 45px;
  text-align: center;
}

.section-heading h2,
.closing h2 {
  color: var(--bronze-light);
  font-size: clamp(24px, 2.2vw, 34px);
}

.section-heading p,
.closing p {
  margin: 13px 0 0;
  color: #fff3ea;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.34;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  max-width: 1118px;
  margin: 34px auto 0;
}

.gallery-card {
  position: relative;
  aspect-ratio: 1.62 / 1;
  overflow: hidden;
  border: 1px solid rgba(238, 165, 111, 0.24);
  background: #121012;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.35);
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.32)),
    radial-gradient(circle at 50% 35%, transparent, rgba(4, 3, 4, 0.3));
  opacity: 0.86;
  transition: opacity 220ms ease;
}

.gallery-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.gallery-card__image--villa {
  object-position: center 43%;
}

.gallery-card__image--building {
  object-position: center 39%;
}

.gallery-card__image--interior {
  object-position: center 47%;
}

.gallery-card:hover::after {
  opacity: 0.45;
}

.gallery-card:hover .gallery-card__image {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.065);
}

.closing {
  padding: 42px 0 160px;
  text-align: center;
}

.closing__inner {
  padding-top: 31px;
  border-top: 1px solid rgba(238, 165, 111, 0.24);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .page-frame,
  .header-inner {
    width: min(100% - 56px, 1400px);
  }

  .brand-lockup {
    width: 232px;
  }

  .nav-links {
    gap: 24px;
  }

  .search-control {
    width: 120px;
  }

  .hero-copy {
    width: 520px;
  }

  .agent-card {
    right: 0;
    width: 300px;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: relative;
    background: #080708;
  }

  .top-contact {
    height: auto;
  }

  .top-contact__inner {
    height: auto;
    padding: 9px 0;
    gap: 9px;
  }

  .top-contact__inner,
  .contact-links,
  .locale-tools {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    height: auto;
    min-height: 276px;
  }

  .main-nav__inner {
    height: auto;
    min-height: 276px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    padding: 190px 0 18px;
  }

  .brand-lockup {
    top: 8px;
    width: 210px;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .nav-links a {
    height: 32px;
  }

  .nav-links a::after {
    bottom: 3px;
  }

  .hero {
    min-height: auto;
    background-position: 62% 39%;
  }

  .hero__frame {
    display: flex;
    min-height: auto;
    flex-direction: column;
    gap: 34px;
    padding: 92px 0 56px;
  }

  .hero-copy,
  .agent-card {
    position: relative;
    inset: auto;
  }

  .hero-copy {
    width: min(100%, 560px);
  }

  .agent-card {
    width: min(100%, 340px);
    margin-left: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 560px) {
  .page-frame,
  .header-inner {
    width: min(100% - 28px, 1400px);
  }

  .contact-links {
    gap: 10px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .nav-actions {
    flex-wrap: wrap;
  }

  .search-control,
  .nav-cta {
    width: min(100%, 220px);
  }

  .hero__frame {
    padding-top: 58px;
  }

  .hero-lede br {
    display: none;
  }

  .hero-cta {
    width: min(100%, 244px);
  }

  .experience {
    padding: 38px 0 35px;
  }

  .gallery,
  .closing {
    padding-left: 0;
    padding-right: 0;
  }

  .section-heading p,
  .closing p {
    font-size: 20px;
  }
}

.references-body {
  background:
    linear-gradient(rgba(5, 4, 5, 0.52), rgba(5, 4, 5, 0.78)),
    url("./assets/images/site-texture.jpg") center top / cover fixed,
    #060506;
}

.references-page {
  min-height: 100vh;
  padding-top: 228px;
}

.references-poster {
  position: relative;
  overflow: hidden;
  padding: 36px 0 28px;
  background:
    radial-gradient(circle at 50% 5%, rgba(255, 191, 113, 0.28), transparent 19rem),
    radial-gradient(circle at 50% 78%, rgba(255, 173, 66, 0.26), transparent 19rem),
    linear-gradient(rgba(10, 8, 8, 0.82), rgba(5, 4, 5, 0.9)),
    url("./assets/images/site-texture.jpg") center top / cover;
  border-top: 1px solid rgba(255, 183, 98, 0.24);
}

.references-poster::before,
.references-poster::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.references-poster::before {
  inset: 0;
  background:
    radial-gradient(circle at 8% 24%, rgba(255, 171, 77, 0.18), transparent 13rem),
    radial-gradient(circle at 92% 27%, rgba(255, 171, 77, 0.18), transparent 13rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.34));
  opacity: 0.94;
}

.references-poster::after {
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255, 196, 113, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 196, 113, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.2;
}

.references-frame {
  position: relative;
  z-index: 1;
  width: min(100% - 64px, 1160px);
  margin: 0 auto;
  text-align: center;
}

.references-crest {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  margin: 0 auto 10px;
  place-items: center;
  color: #ffd39a;
}

.references-crest::before {
  position: absolute;
  inset: 7px 14px 4px;
  content: "";
  border: 3px solid rgba(255, 181, 102, 0.88);
  border-radius: 42% 42% 48% 48%;
  box-shadow:
    0 0 18px rgba(255, 174, 75, 0.55),
    inset 0 0 19px rgba(0, 0, 0, 0.55);
  clip-path: polygon(50% 0, 88% 15%, 78% 72%, 50% 100%, 22% 72%, 12% 15%);
}

.references-crest::after {
  content: "★";
  color: #ffd39a;
  font-size: 32px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 177, 80, 0.85);
}

.references-title-block {
  max-width: 1040px;
  margin: 0 auto 30px;
}

.ornament-line {
  position: relative;
  width: 84%;
  height: 1px;
  margin: 0 auto 10px;
  background: linear-gradient(90deg, transparent, rgba(255, 181, 98, 0.78), transparent);
  box-shadow: 0 0 10px rgba(255, 170, 75, 0.75);
}

.references-title-block h1 {
  margin: 0;
  color: #ffc891;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(52px, 8vw, 84px);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow:
    0 3px 0 #4a2014,
    0 8px 18px rgba(0, 0, 0, 0.82),
    0 0 22px rgba(255, 172, 82, 0.45);
}

.ornament-small {
  position: relative;
  width: min(640px, 72%);
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255, 190, 118, 0.7), transparent);
}

.ornament-small::after {
  position: absolute;
  left: 50%;
  top: -7px;
  width: 64px;
  height: 15px;
  content: "";
  background:
    radial-gradient(circle at 50% 50%, #ffd09a 0 3px, transparent 4px),
    linear-gradient(90deg, transparent, rgba(255, 181, 98, 0.9), transparent);
  transform: translateX(-50%);
}

.references-lede {
  margin: 19px 0 0;
  color: #ffd2a2;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 3vw, 35px);
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.78);
}

.references-sublede {
  margin: 15px 0 0;
  color: #fff1e2;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.78);
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.reference-card {
  position: relative;
  grid-column: span 4;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid rgba(255, 192, 111, 0.88);
  background-position: center;
  background-size: cover;
  box-shadow:
    0 0 18px rgba(255, 158, 54, 0.3),
    inset 0 0 0 1px rgba(255, 227, 176, 0.18),
    0 18px 34px rgba(0, 0, 0, 0.45);
}

.reference-card:nth-last-child(-n + 4) {
  grid-column: span 3;
  min-height: 164px;
}

.reference-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(circle at 50% 100%, rgba(255, 169, 65, 0.28), transparent 34%);
}

.reference-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  color: #fff2df;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(25px, 2.7vw, 34px);
  font-weight: 700;
  line-height: 1;
  text-shadow:
    0 2px 0 #3f1b11,
    0 0 15px rgba(255, 189, 108, 0.55),
    0 5px 12px rgba(0, 0, 0, 0.8);
}

.reference-card--optic {
  background-image: url("./assets/images/building.jpg");
}

.reference-card--restaurant {
  background-image: url("./assets/images/interior.jpg");
}

.reference-card--cafe {
  background-image: url("./assets/images/villa.jpg");
}

.reference-card--mall {
  background-image: url("./assets/images/hero-bg.jpg");
}

.reference-card--office {
  background-image: url("./assets/images/building.jpg");
}

.reference-card--hospital {
  background-image: url("./assets/images/interior.jpg");
}

.reference-card--residence {
  background-image: url("./assets/images/building.jpg");
}

.reference-card--apartment {
  background-image: url("./assets/images/hero-bg.jpg");
}

.reference-card--villa {
  background-image: url("./assets/images/villa.jpg");
}

.reference-card--flat {
  background-image: url("./assets/images/building.jpg");
}

.projects-block {
  position: relative;
  margin-top: 35px;
  padding-top: 18px;
}

.projects-block::before,
.projects-block::after {
  position: absolute;
  top: 0;
  width: 38%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 190, 118, 0.8));
  box-shadow: 0 0 10px rgba(255, 170, 75, 0.65);
}

.projects-block::before {
  left: 0;
}

.projects-block::after {
  right: 0;
  transform: scaleX(-1);
}

.projects-block h2 {
  margin: 0;
  color: #ffd0a0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.15;
  text-shadow:
    0 2px 0 #4a2014,
    0 5px 16px rgba(0, 0, 0, 0.82);
}

.projects-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  max-width: 960px;
  margin: 22px auto 0;
  text-align: left;
}

.projects-columns ul {
  margin: 0;
  padding: 0 0 0 24px;
  color: #ffdfbf;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 1.72;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.86);
}

.projects-columns li::marker {
  color: #ffb56d;
  font-size: 0.75em;
}

.projects-columns ul + ul {
  position: relative;
}

.projects-columns ul + ul::before {
  position: absolute;
  left: -27px;
  top: 4px;
  width: 1px;
  height: calc(100% - 14px);
  content: "";
  background: linear-gradient(transparent, rgba(255, 190, 118, 0.55), transparent);
}

.references-map {
  height: clamp(190px, 31vw, 330px);
  margin: 18px auto 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 211, 139, 0.95), rgba(255, 166, 55, 0.22) 18%, transparent 42%),
    linear-gradient(180deg, rgba(255, 176, 72, 0.18), rgba(0, 0, 0, 0.3));
  filter: saturate(1.1) contrast(1.07);
  box-shadow: inset 0 30px 45px rgba(4, 3, 4, 0.42);
}

.legal-note {
  max-width: 1080px;
  margin: 12px auto 0;
  color: rgba(255, 241, 222, 0.9);
  font-size: clamp(10px, 1.2vw, 14px);
  line-height: 1.35;
  text-align: left;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.72);
}

@media (max-width: 1040px) {
  .references-frame {
    width: min(100% - 38px, 1160px);
  }

  .references-grid {
    gap: 12px;
  }

  .reference-card {
    min-height: 152px;
  }

  .reference-card:nth-last-child(-n + 4) {
    min-height: 142px;
  }
}

@media (max-width: 820px) {
  .references-page {
    padding-top: 0;
  }

  .references-poster {
    padding-top: 34px;
  }

  .references-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reference-card,
  .reference-card:nth-last-child(-n + 4) {
    grid-column: span 1;
    min-height: 160px;
  }

  .projects-columns {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .projects-columns ul + ul::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .references-frame {
    width: min(100% - 24px, 1160px);
  }

  .references-crest {
    width: 74px;
    height: 74px;
  }

  .references-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .reference-card,
  .reference-card:nth-last-child(-n + 4) {
    min-height: 178px;
  }

  .projects-columns ul {
    padding-left: 18px;
  }
}

.references-body--exact {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 184, 94, 0.12), transparent 22rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(9, 7, 7, 0.25), rgba(0, 0, 0, 0.84)),
    url("./assets/images/site-texture.jpg") center top / cover fixed,
    #050404;
}

.references-exact-page {
  display: flex;
  min-height: 100vh;
  justify-content: center;
  padding: 0;
}

.references-exact-poster {
  width: min(100%, 1024px);
  height: auto;
  align-self: flex-start;
  object-fit: contain;
  box-shadow:
    0 0 0 1px rgba(255, 186, 107, 0.08),
    0 32px 90px rgba(0, 0, 0, 0.76);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.references-html-body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 9%, rgba(255, 187, 103, 0.2), transparent 26rem),
    radial-gradient(circle at 10% 62%, rgba(255, 145, 55, 0.16), transparent 22rem),
    radial-gradient(circle at 91% 62%, rgba(255, 145, 55, 0.14), transparent 22rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(19, 13, 12, 0.92) 27%, rgba(19, 13, 12, 0.92) 73%, rgba(0, 0, 0, 0.48)),
    url("./assets/images/site-texture.jpg") center top / cover fixed,
    #060505;
  color: #fff0dd;
}

.references-html-page {
  min-height: 100vh;
}

.references-html-poster {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  overflow: visible;
  padding: 198px clamp(24px, 4vw, 78px) 40px;
  background:
    radial-gradient(circle at 50% 4%, rgba(255, 205, 140, 0.18), transparent 18rem),
    radial-gradient(circle at 50% 77%, rgba(255, 174, 67, 0.22), transparent 24rem),
    linear-gradient(rgba(7, 5, 5, 0.14), rgba(7, 5, 5, 0.5));
  box-shadow: none;
}

.references-html-poster::before,
.references-html-poster::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.references-html-poster::before {
  background:
    radial-gradient(circle at 8% 57%, rgba(255, 156, 53, 0.24), transparent 26rem),
    radial-gradient(circle at 92% 57%, rgba(255, 156, 53, 0.22), transparent 26rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.24));
}

.references-html-poster::after {
  background-image:
    linear-gradient(45deg, rgba(255, 202, 125, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 202, 125, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.26;
}

.references-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 5% 77%, rgba(255, 181, 78, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 96% 77%, rgba(255, 181, 78, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 20% 24%, rgba(255, 236, 184, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 83% 23%, rgba(255, 236, 184, 0.8) 0 1px, transparent 2px);
  background-size: 130px 130px, 120px 120px, 170px 170px, 150px 150px;
  opacity: 0.6;
}

.references-html-header {
  position: relative;
  width: min(100%, 1160px);
  margin: 0 auto;
  text-align: center;
}

.references-shield {
  position: relative;
  display: grid;
  width: 96px;
  height: 90px;
  margin: 0 auto 10px;
  place-items: center;
}

.references-shield::before {
  position: absolute;
  inset: 1px 15px 6px;
  content: "";
  border: 3px solid rgba(255, 185, 105, 0.95);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 197, 114, 0.33), transparent 45%),
    rgba(55, 26, 17, 0.52);
  box-shadow:
    0 0 20px rgba(255, 178, 82, 0.72),
    inset 0 0 22px rgba(0, 0, 0, 0.62);
  clip-path: polygon(50% 0, 88% 14%, 78% 72%, 50% 100%, 22% 72%, 12% 14%);
}

.references-shield span::before {
  position: relative;
  z-index: 1;
  content: "★";
  color: #ffd18e;
  font-size: 34px;
  text-shadow: 0 0 17px rgba(255, 181, 75, 0.9);
}

.references-rule {
  width: 88%;
  height: 1px;
  margin: -47px auto 48px;
  background: linear-gradient(90deg, transparent, rgba(255, 188, 102, 0.86), transparent);
  box-shadow: 0 0 14px rgba(255, 173, 75, 0.76);
}

.references-html-header h1 {
  margin: 0;
  color: #ffc894;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(56px, 7.1vw, 76px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 3px 0 #442014,
    0 8px 20px rgba(0, 0, 0, 0.86),
    0 0 24px rgba(255, 176, 74, 0.45);
}

.references-ornament {
  position: relative;
  width: min(660px, 76%);
  height: 1px;
  margin: 17px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255, 193, 114, 0.72), transparent);
}

.references-ornament::before {
  position: absolute;
  left: 50%;
  top: -7px;
  width: 70px;
  height: 15px;
  content: "";
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 218, 151, 0.96) 0 4px, transparent 5px),
    linear-gradient(90deg, transparent, rgba(255, 185, 96, 0.9), transparent);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 8px rgba(255, 178, 75, 0.76));
}

.references-primary-line {
  margin: 12px 0 0;
  color: #ffd3aa;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 2.7vw, 31px);
  font-weight: 600;
  line-height: 1.22;
  text-shadow: 0 4px 13px rgba(0, 0, 0, 0.82);
}

.references-secondary-line {
  margin: 11px auto 0;
  color: #fff4e7;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(13px, 1.65vw, 18px);
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 4px 13px rgba(0, 0, 0, 0.82);
}

.references-card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: min(100%, 1240px);
  margin: clamp(34px, 4vw, 54px) auto 0;
  gap: clamp(16px, 1.4vw, 24px);
}

.html-ref-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 198, 118, 0.92);
  background: #100b0a;
  box-shadow:
    0 0 16px rgba(255, 166, 53, 0.34),
    inset 0 0 0 1px rgba(255, 239, 199, 0.18),
    0 16px 32px rgba(0, 0, 0, 0.52);
}

.html-ref-card--wide {
  grid-column: span 4;
  height: auto;
  aspect-ratio: 1.74 / 1;
}

.html-ref-card--compact {
  grid-column: span 3;
  height: auto;
  aspect-ratio: 1.55 / 1;
}

.html-ref-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.html-ref-card::before,
.html-ref-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.html-ref-card::before {
  display: none;
}

.html-ref-card::after {
  display: none;
}

.html-ref-card h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.html-ref-icon {
  display: none;
}

.html-ref-icon--optic {
  width: 72px;
  height: 24px;
  border-top: 4px solid #ffd8a3;
}

.html-ref-icon--optic::before,
.html-ref-icon--optic::after {
  position: absolute;
  top: 0;
  width: 29px;
  height: 17px;
  content: "";
  border: 4px solid #ffd8a3;
  border-radius: 50%;
}

.html-ref-icon--optic::before {
  left: 0;
}

.html-ref-icon--optic::after {
  right: 0;
}

.html-ref-icon--restaurant,
.html-ref-icon--cafe {
  width: 64px;
  height: 44px;
  border: 4px solid #ffd8a3;
  border-top: 0;
  border-radius: 0 0 28px 28px;
}

.html-ref-icon--restaurant::before,
.html-ref-icon--cafe::before {
  position: absolute;
  left: 9px;
  right: 9px;
  top: -10px;
  height: 4px;
  content: "";
  background: #ffd8a3;
}

.references-projects {
  width: min(100%, 1240px);
  margin: clamp(34px, 4vw, 52px) auto 0;
}

.projects-title-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.projects-title-row span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 190, 111, 0.82));
  box-shadow: 0 0 10px rgba(255, 173, 75, 0.72);
}

.projects-title-row span:last-child {
  transform: scaleX(-1);
}

.projects-title-row h2 {
  margin: 0;
  color: #ffd0a0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 2.85vw, 29px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 2px 0 #472014,
    0 5px 15px rgba(0, 0, 0, 0.88);
}

.references-ornament--tight {
  margin-top: 14px;
}

.references-project-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 6vw, 90px);
  margin: 18px auto 0;
  max-width: 1080px;
  text-align: left;
}

.references-project-list ul {
  margin: 0;
  padding-left: 24px;
  color: #ffdfbf;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(17px, 1.82vw, 21px);
  font-weight: 600;
  line-height: 1.58;
  text-shadow:
    0 2px 0 #31150d,
    0 4px 12px rgba(0, 0, 0, 0.9);
}

.references-project-list li::marker {
  color: #ffb66d;
  font-size: 0.72em;
}

.references-project-list ul + ul {
  position: relative;
}

.references-project-list ul + ul::before {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 1px;
  height: calc(100% - 18px);
  content: "";
  background: linear-gradient(transparent, rgba(255, 190, 111, 0.55), transparent);
}

.references-world {
  position: relative;
  width: 100vw;
  max-width: none;
  height: clamp(280px, 27vw, 430px);
  margin: clamp(28px, 3.6vw, 48px) calc(50% - 50vw) 0;
  overflow: hidden;
  background: url("./assets/images/references-map.jpg") center bottom / cover no-repeat;
  border-top: 1px solid rgba(255, 185, 95, 0.24);
  border-bottom: 1px solid rgba(255, 185, 95, 0.16);
  box-shadow:
    inset 0 28px 52px rgba(0, 0, 0, 0.5),
    inset 0 -16px 34px rgba(0, 0, 0, 0.38);
}

.references-world::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(8, 6, 6, 0.08), rgba(0, 0, 0, 0.05));
}

.world-sun {
  display: none;
}

.world-grid {
  display: none;
}

.world-arc {
  display: none;
}

.world-map-word {
  display: none;
}

.references-disclaimer {
  width: min(100%, 1240px);
  margin: -28px auto 0;
  color: rgba(255, 240, 220, 0.92);
  font-size: 12px;
  line-height: 1.34;
  text-align: left;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.86);
}

@media (max-width: 760px) {
  .references-html-poster {
    min-height: auto;
    padding: 30px 22px 18px;
  }

  .references-html-header h1 {
    font-size: clamp(32px, 9vw, 48px);
  }

  .references-primary-line {
    max-width: 330px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(19px, 5.2vw, 24px);
  }

  .references-secondary-line {
    max-width: 330px;
    font-size: 10px;
    white-space: normal;
  }

  .references-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .html-ref-card--wide,
  .html-ref-card--compact {
    grid-column: span 1;
    aspect-ratio: 1.55 / 1;
  }

  .projects-title-row {
    grid-template-columns: 1fr;
  }

  .projects-title-row span {
    display: none;
  }

  .references-project-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .references-project-list ul + ul::before {
    display: none;
  }

  .references-world {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .references-card-grid {
    grid-template-columns: 1fr;
  }

  .html-ref-card--wide,
  .html-ref-card--compact {
    aspect-ratio: 1.62 / 1;
  }

  .world-map-word {
    display: none;
  }
}
