/* header, full screen menu, and the small parts the home panels and the next section band both use */
.hd {
  --hc: var(--ptx);
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 90;
  height: var(--hh);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  color: var(--hc);
  transition: background 0.4s, border-color 0.4s, color 0.4s, opacity 0.8s;
  border-bottom: 1px solid transparent;
}
.hd.solid,
body.menu-open .hd {
  --hc: var(--tx);
}
.hd.solid {
  background: var(--bg);
  border-bottom-color: var(--line-soft);
}
body.menu-open .hd {
  background: transparent;
  border-bottom-color: transparent;
}
body:not(.ready) .hd {
  opacity: 0;
}
.hd-l,
.hd-r {
  display: flex;
  align-items: center;
  gap: 22px;
}
.hd-r {
  justify-content: flex-end;
}
.lg,
.dash-link {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
html[dir='rtl'] .lg,
html[dir='rtl'] .dash-link {
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.dash-link {
  opacity: 0.7;
}
.dash-link:hover {
  opacity: 1;
}
.lk {
  text-align: center;
}
.logo {
  display: block;
  font-family: var(--serif-latin);
  font-size: 25px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  line-height: 1.2;
  color: inherit;
}
.bk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.85;
  white-space: nowrap;
}
.bk::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--ac);
}
html[dir='rtl'] .bk {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.mn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
}
html[dir='rtl'] .mn {
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.mn i {
  display: block;
  width: 34px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transition: transform 0.4s var(--ease);
}
.mn .t-close {
  display: none;
}
body.menu-open .mn .t-open {
  display: none;
}
body.menu-open .mn .t-close {
  display: inline;
}
body.menu-open .mn i {
  height: 1px;
  border-bottom: 0;
  transform: rotate(45deg);
}

/* full screen menu */
.ov {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
}
body.menu-open .ov {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.ov-l {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--hh) + 20px) var(--pad) 90px;
  position: relative;
}
.ov-l nav {
  display: flex;
  flex-direction: column;
}
.ov-r {
  flex: 0.9;
  position: relative;
}
.ov-r::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--bg), rgba(var(--bg-rgb), 0) 45%);
}
html[dir='rtl'] .ov-r::before {
  background: linear-gradient(to left, var(--bg), rgba(var(--bg-rgb), 0) 45%);
}
.ov-r img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.ov-r img.on {
  opacity: 1;
}
.ov-i {
  display: flex;
  align-items: baseline;
  gap: 26px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.28;
  color: rgba(var(--tx-rgb), 0.45);
  opacity: 0;
  transform: translateY(18px);
  transition: color 0.3s, opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
body.menu-open .ov-i {
  opacity: 1;
  transform: none;
}
body.menu-open .ov-i:nth-child(2) { transition-delay: 0.05s; }
body.menu-open .ov-i:nth-child(3) { transition-delay: 0.1s; }
body.menu-open .ov-i:nth-child(4) { transition-delay: 0.15s; }
body.menu-open .ov-i:nth-child(5) { transition-delay: 0.2s; }
body.menu-open .ov-i:nth-child(6) { transition-delay: 0.25s; }
.ov-i em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ac);
  width: 34px;
  flex: none;
}
.ov-i:hover,
.ov-i:focus-visible,
.ov-i.on {
  color: var(--tx);
}
.ov-i.on::after {
  content: '';
  align-self: center;
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--ac);
}
.ov-ft {
  position: absolute;
  inset-inline: var(--pad);
  bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 34px;
  font-size: 13px;
  color: var(--mute);
}

/* shared by the home panels and the next section band */
.ex {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ptx);
  transition: border-color 0.3s, color 0.3s;
}
html[dir='rtl'] .ex {
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.ex:hover {
  border-bottom-color: var(--hi);
  color: var(--pt);
}
.pv,
.nx {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 44px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ptx);
  transform: translateY(-50%);
}
html[dir='rtl'] .pv,
html[dir='rtl'] .nx {
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}
.pv {
  inset-inline-start: clamp(24px, 4.8vw, 70px);
}
.nx {
  inset-inline-end: clamp(24px, 4.8vw, 70px);
}
.pv,
.nx {
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
/* nothing before the first panel and nothing after the last */
.pv.off,
.nx.off {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pv u,
.nx u {
  display: block;
  width: clamp(60px, 10vw, 150px);
  height: 1px;
  background: var(--line);
  transition: width 0.4s var(--ease), background 0.3s;
}
.pv:hover u,
.nx:hover u {
  width: clamp(80px, 12vw, 190px);
  background: var(--pt);
}
.cnt {
  position: absolute;
  bottom: 48px;
  inset-inline: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: var(--ptx);
}
.cnt .lab {
  color: var(--ptx);
}
.cnt u {
  display: block;
  width: 44px;
  height: 1px;
  background: var(--line);
  transition: background 0.3s, height 0.3s;
}
.cnt u.on,
.dot.on u {
  background: var(--pt);
  height: 2px;
}
.dot {
  display: flex;
  align-items: center;
  min-height: 44px;
}
