:root {
  color-scheme: dark;
  --ink: #030303;
  --paper: #f5f3ef;
  --muted: rgba(245, 243, 239, 0.7);
  --line: rgba(255, 255, 255, 0.42);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
  background: #030303;
}

.scene,
.scene__image,
.scene__shade,
.scene__glow,
.scene__grain {
  position: absolute;
  inset: 0;
}

.scene {
  z-index: -2;
  overflow: hidden;
  background: #030303;
}

.scene__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0) scale(1.035);
  filter: saturate(0.77) contrast(1.08) brightness(0.82);
  will-change: transform;
  animation: scene-breathe 14s ease-in-out infinite alternate;
}

.scene__shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, transparent 22%, transparent 66%, rgba(0, 0, 0, 0.28) 100%),
    radial-gradient(circle at center 47%, rgba(0, 0, 0, 0.04) 0 24%, rgba(0, 0, 0, 0.22) 58%, rgba(0, 0, 0, 0.58) 115%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.32));
}

.scene__glow {
  inset: -20%;
  opacity: 0.32;
  background: radial-gradient(
    circle 22rem at var(--pointer-x, 68%) var(--pointer-y, 24%),
    rgba(255, 244, 227, 0.13),
    transparent 65%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.pointer-active .scene__glow {
  opacity: 0.44;
}

.scene__grain {
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  pointer-events: none;
}

.site-header {
  position: absolute;
  z-index: 4;
  top: clamp(1.75rem, 4vw, 3.25rem);
  left: clamp(1.5rem, 3.2vw, 3.5rem);
  right: clamp(1.5rem, 3.2vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  direction: ltr;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 3.5rem;
}

.brand__name {
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: clamp(2.25rem, 3vw, 3.45rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.brand__rule {
  width: 1px;
  height: 2rem;
  margin: 0 clamp(1rem, 1.8vw, 1.75rem);
  background: rgba(255, 255, 255, 0.42);
}

.brand__motto {
  min-width: 5.5rem;
  max-width: 10rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.31em;
  color: rgba(255, 255, 255, 0.7);
  overflow-wrap: anywhere;
}

html:not([lang="en"]) .brand__motto {
  font-size: 0.68rem;
  letter-spacing: 0.17em;
}

html:is([lang="ar"], [lang="he"], [lang="fa"], [lang="ur"], [lang="hi"], [lang="bn"], [lang="pa"], [lang="gu"], [lang="mr"], [lang="ta"], [lang="te"], [lang="kn"], [lang="ml"], [lang="ne"], [lang="si"], [lang="th"], [lang="my"], [lang="km"], [lang="lo"], [lang="ka"], [lang="hy"], [lang="am"]) .brand__motto {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-switcher {
  position: relative;
}

.language-toggle {
  display: inline-flex;
  min-width: 4.7rem;
  min-height: 3rem;
  padding: 0.2rem 0.85rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  transition: border-color 300ms ease, background 300ms ease, transform 300ms var(--ease);
}

.language-toggle:hover,
.language-toggle:focus-visible,
.language-toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.language-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.language-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-toggle__globe {
  width: 1.15rem;
  height: 1.15rem;
}

.language-toggle__chevron {
  width: 0.72rem;
  height: 0.72rem;
  transition: transform 260ms var(--ease);
}

.language-toggle[aria-expanded="true"] .language-toggle__chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  width: min(27rem, calc(100vw - 3rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.2rem;
  background: rgba(8, 8, 8, 0.9);
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  direction: ltr;
  transform-origin: top right;
  animation: menu-in 260ms var(--ease) both;
}

.language-menu[hidden] {
  display: none;
}

.language-menu__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.8rem;
  padding: 0 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.language-menu__current {
  max-width: 60%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.language-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  margin-bottom: 0.75rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 200ms ease, background 200ms ease;
}

.language-search:focus-within {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.075);
}

.language-search svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.language-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
}

.language-search input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.language-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  max-height: min(28rem, calc(100svh - 13rem));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.26) transparent;
  scrollbar-width: thin;
}

.language-option {
  display: grid;
  min-width: 0;
  padding: 0.66rem 0.72rem;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.language-option[hidden] {
  display: none;
}

.language-option:hover,
.language-option:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.language-option[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.language-option__code {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.38);
}

.language-option__name {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-empty {
  margin: 1.2rem 0 0.4rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.84rem;
  text-align: center;
}

.contacts {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.contact-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 3rem;
  padding: 0.2rem 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.9rem;
  letter-spacing: 0.035em;
  transition: border-color 300ms ease, background 300ms ease, transform 300ms var(--ease), color 300ms ease;
}

.contact-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(102%);
  transition: transform 420ms var(--ease);
  z-index: -1;
}

.contact-pill svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-pill:hover,
.contact-pill:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  color: #070707;
  transform: translateY(-2px);
}

.contact-pill:hover::before,
.contact-pill:focus-visible::before {
  transform: translateY(0);
}

.contact-pill:focus-visible,
.brand:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  top: 48.5%;
  left: 50%;
  display: flex;
  width: min(90vw, 76rem);
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero-title {
  position: relative;
  margin: 0;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: clamp(6rem, 10.7vw, 12rem);
  font-weight: 500;
  line-height: 0.72;
  letter-spacing: -0.068em;
  text-indent: -0.03em;
  color: #f4f4f1;
  text-shadow: 0 7px 24px rgba(0, 0, 0, 0.48), 0 1px 0 #fff;
}

.hero-title span {
  background: linear-gradient(128deg, #ffffff 2%, #d1d1ce 32%, #ffffff 50%, #a6a6a4 78%, #eeeeeb 96%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title sup {
  position: absolute;
  top: -0.18em;
  right: -0.82em;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.12em;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.86);
  -webkit-text-fill-color: currentColor;
}

.hero-kicker {
  margin: clamp(1.75rem, 3.3vh, 2.75rem) 0 0;
  padding-left: 0.52em;
  font-size: clamp(0.76rem, 1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.52em;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.hero-rule {
  display: block;
  width: 2.75rem;
  height: 1px;
  margin: clamp(1.5rem, 3.4vh, 2.45rem) 0 clamp(1.25rem, 2.4vh, 1.75rem);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgba(255, 240, 218, 0.5);
}

.hero-description {
  margin: 0;
  font-size: clamp(0.94rem, 1.18vw, 1.12rem);
  font-weight: 350;
  line-height: 1.68;
  letter-spacing: 0.035em;
  color: var(--muted);
  text-shadow: 0 2px 15px #000;
}

html:not([lang="en"]) .hero-kicker {
  max-width: min(90vw, 54rem);
  letter-spacing: 0.2em;
}

html[dir="rtl"] .hero-kicker,
html[dir="rtl"] .hero-description {
  direction: rtl;
  unicode-bidi: plaintext;
}

html:is([lang="ar"], [lang="he"], [lang="fa"], [lang="ur"], [lang="hi"], [lang="bn"], [lang="pa"], [lang="gu"], [lang="mr"], [lang="ta"], [lang="te"], [lang="kn"], [lang="ml"], [lang="ne"], [lang="si"], [lang="th"], [lang="my"], [lang="km"], [lang="lo"], [lang="am"]) .hero-kicker {
  letter-spacing: 0.05em;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 1.7rem;
  left: 50%;
  width: 1px;
  height: 2rem;
  overflow: hidden;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.15);
}

.scroll-cue span {
  display: block;
  width: 100%;
  height: 48%;
  background: rgba(255, 255, 255, 0.82);
  animation: cue 2.4s ease-in-out infinite;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.15rem);
  animation: reveal 1.2s var(--ease) forwards;
}

[data-reveal="1"] { animation-delay: 80ms; }
[data-reveal="2"] { animation-delay: 260ms; }
[data-reveal="3"] { animation-delay: 420ms; }
[data-reveal="4"] { animation-delay: 560ms; }
[data-reveal="5"] { animation-delay: 680ms; }
[data-reveal="6"] { animation-delay: 980ms; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scene-breathe {
  from { scale: 1; }
  to { scale: 1.016; }
}

@keyframes cue {
  0% { transform: translateY(-120%); }
  45%, 65% { transform: translateY(54%); }
  100% { transform: translateY(230%); }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-0.4rem) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 31rem;
  }

  .site-header {
    top: 1.35rem;
    left: 1.15rem;
    right: 1.15rem;
  }

  .brand__name {
    font-size: 2.15rem;
  }

  .brand__rule,
  .brand__motto {
    display: none;
  }

  .contacts {
    gap: 0.6rem;
  }

  .header-actions {
    gap: 0.55rem;
  }

  .language-toggle {
    min-width: 3.65rem;
    min-height: 2.75rem;
    padding: 0 0.62rem;
    gap: 0.4rem;
  }

  .language-toggle__chevron {
    display: none;
  }

  .language-menu {
    position: fixed;
    top: 5rem;
    right: 1.15rem;
    left: 1.15rem;
    width: auto;
    max-height: calc(100svh - 6.2rem);
  }

  .language-list {
    grid-template-columns: 1fr;
    max-height: calc(100svh - 14rem);
  }

  .contact-pill {
    width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
  }

  .contact-pill span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .scene__image {
    object-position: center 54%;
    filter: saturate(0.74) contrast(1.09) brightness(0.72);
  }

  .scene__shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.46), transparent 24%, transparent 60%, rgba(0, 0, 0, 0.55)),
      radial-gradient(circle at center 48%, transparent 0 18%, rgba(0, 0, 0, 0.36) 82%);
  }

  .hero-copy {
    top: 49%;
    width: calc(100% - 2rem);
  }

  .hero-title {
    font-size: clamp(4.4rem, 22vw, 7rem);
    line-height: 0.78;
  }

  .hero-kicker {
    max-width: 24rem;
    margin-top: 1.75rem;
    padding-left: 0.28em;
    font-size: 0.75rem;
    line-height: 1.7;
    letter-spacing: 0.27em;
  }

  .hero-rule {
    margin-top: 1.35rem;
    margin-bottom: 1.15rem;
  }

  .hero-description {
    max-width: 20rem;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero-description br {
    display: none;
  }

  .scroll-cue {
    bottom: 1.15rem;
    height: 1.5rem;
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  .site-header {
    top: 1.25rem;
  }

  .hero-copy {
    top: 51%;
  }

  .hero-title {
    font-size: clamp(5rem, 14vh, 7.5rem);
  }

  .hero-kicker {
    margin-top: 1.35rem;
  }

  .hero-rule {
    margin-top: 1.1rem;
    margin-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
