/* Page frame: header and menu, hero, page banners, section rhythm, footer. */

.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand:hover {
  color: #fff;
  text-shadow: 0 0 14px var(--blood);
}

.menu {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  transition: right 0.25s;
}

.menu a:hover::after,
.menu a[aria-current="page"]::after {
  right: 0;
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  padding: 8px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}

@media (max-width: 860px) {
  .burger {
    display: inline-block;
  }

  .menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(35, 35, 38, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.3s;
    padding: 8px var(--gutter) 20px;
  }

  .menu.open {
    transform: none;
  }

  .menu li {
    border-top: 1px solid var(--line);
  }

  .menu a {
    display: block;
    padding: 14px 0;
    font-size: 1.25rem;
  }
}

main {
  padding-top: var(--nav-h);
}

section {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0;
}

.footer {
  padding: 46px 0 40px;
  margin-top: 40px;
  position: relative;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: center;
}

.footer .irons em {
  font-style: normal;
}

.footer small {
  display: block;
  margin-top: 2px;
  font-family: var(--f-mono);
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  line-height: 1.2;
}

.footer ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  font-family: var(--f-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.brand {
  font-family: var(--f-display);
  text-shadow: 0 0 18px rgba(201, 169, 107, 0.5);
}

.menu a {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.2em;
}

.menu a:hover,
.menu a[aria-current="page"] {
  text-shadow: none;
}

.menu a::after {
  background: linear-gradient(90deg, var(--blood), var(--cyan));
  box-shadow: none;
}

.burger {
  font-family: var(--f-head);
}

.footer {
  border-top-color: rgba(201, 169, 107, 0.5);
}

.brand {
  font-synthesis: none;
}

.brand,
.footer .irons {
  font-weight: 400;
}

.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-word {
  display: block;
  position: relative;
  top: 3px;
}

.brand .mask {
  display: block;
  height: 58px;
  width: auto;
  flex: none;
}

.footer {
  border-top: 0;
  padding-top: 70px;
}

.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  background: url(../art/vine.png) repeat-x left top;
  background-size: 371px 28px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.foot-eleph {
  height: 66px;
  width: auto;
}

.footer .irons {
  font-family: "Cinzel", "Marcellus SC", serif;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer ul {
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer .wrap {
  row-gap: 18px;
}

@media (max-width: 700px) {
  .footer .wrap {
    justify-content: flex-start;
  }
}

.footer .irons,
.brand {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' result='t'/><feColorMatrix in='t' type='matrix' values='.33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 0 1'/><feComponentTransfer><feFuncR type='linear' slope='.5' intercept='.5'/><feFuncG type='linear' slope='.5' intercept='.5'/><feFuncB type='linear' slope='.5' intercept='.5'/></feComponentTransfer></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"), #c9a96b;
  background-blend-mode: multiply;
  background-size: 160px, auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none !important;
}

.footer .irons em {
  color: var(--bone);
  -webkit-text-fill-color: var(--bone);
  background: none;
}

.nav {
  background: #2f2f33;
  border-bottom: 1px solid rgba(201, 169, 107, 0.55);
}

.menu a {
  color: #bdb8ae;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: #e2d0a4;
}

.brand {
  -webkit-text-fill-color: transparent;
}

.footer {
  background: linear-gradient(to bottom, rgba(44, 44, 48, 0) 28px, #2c2c30 120px);
}

.footer::before {
  box-shadow: none;
}

.footer small {
  color: #8f8b83;
}

.foot-eleph {
  opacity: 1;
  color: #6a6a70;
}

.footer ul a {
  color: #93bba8;
}

.bgimg, .hero-bg {
  background-image: url(../thumbs/bg.jpg);
}

.mandala, .sigiriya, .eleph, .foot-eleph, .moon, .mask {
  display: block;
}

.foot-eleph {
  min-width: 0;
}
