:root {
  color-scheme: dark;
  --aspect: 1.779;
  --violet: rgba(143, 80, 255, 0.82);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #020204;
}

body { font-family: Arial, sans-serif; }

.landing {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background: #020204;
}

.artboard {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, calc(100svh * var(--aspect)));
  height: max(100svh, calc(100vw / var(--aspect)));
  transform: translate(-50%, -50%);
  background: url("../assets/balak-bg-clean.png") center / 100% 100% no-repeat;
}

.brand {
  position: absolute;
  top: 24.2%;
  left: 50%;
  display: flex;
  width: 34%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 78%;
  height: auto;
}

.brand p {
  margin: 4.5% 0 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: clamp(0.62rem, 0.88vw, 0.92rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.contact-panel {
  position: absolute;
  top: 53.8%;
  left: 50%;
  display: flex;
  width: 25%;
  min-height: 27%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  background: transparent;
}

.accent-line {
  width: 15%;
  height: 1px;
  margin: 0 auto 3.6%;
  background: linear-gradient(90deg, transparent, #8247ec, transparent);
  box-shadow: 0 0 0.45rem rgba(130, 71, 236, 0.65);
}

.email-link,
.socials a {
  color: #eeeaf2;
  text-decoration: none;
  transition: color 225ms ease, filter 225ms ease, text-shadow 225ms ease;
}

.email-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
  font-size: clamp(0.8rem, 1.16vw, 1.22rem);
  letter-spacing: 0.02em;
}

.email-link svg {
  width: 1.75em;
  height: 1.75em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 17%;
  width: 88%;
  margin-top: 11%;
}

.socials a {
  display: flex;
  width: 20%;
  flex-direction: column;
  align-items: center;
  gap: 0.7em;
}

.icon {
  display: grid;
  width: clamp(1.85rem, 2.1vw, 2.2rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(121, 70, 173, 0.34);
  border-radius: 0.55rem;
  background: rgba(8, 6, 11, 0.72);
  box-shadow: inset 0 0 0.8rem rgba(88, 41, 130, 0.08);
}

.icon svg {
  width: 78%;
  height: 78%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.icon svg .fill,
.icon .facebook-icon,
.icon .linkedin-icon {
  fill: currentColor;
  stroke: none;
}

.label {
  font-size: clamp(0.55rem, 0.58vw, 0.68rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  .email-link:hover,
  .socials a:hover {
    color: #9c62ff;
    filter: brightness(1.24);
    text-shadow: 0 0 0.75rem rgba(143, 80, 255, 0.58);
  }
}

.email-link:focus-visible,
.socials a:focus-visible {
  color: #bba2ff;
  outline: 1px dotted #bba2ff;
  outline-offset: 0.35rem;
}

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

@media (max-aspect-ratio: 3 / 4) {
  .artboard {
    width: 100vw;
    height: 100svh;
    background-position: center;
    background-size: cover;
  }

  .brand {
    top: 17%;
    width: min(82vw, 22rem);
  }

  .brand-logo {
    width: 68%;
  }

  .brand p {
    max-width: 18rem;
    margin-top: 6%;
    font-size: clamp(0.5rem, 2.15vw, 0.62rem);
    letter-spacing: 0.3em;
  }

  .contact-panel {
    top: 50%;
    width: min(84vw, 21rem);
    min-height: 0;
  }

  .accent-line {
    width: 12%;
    margin-bottom: 7%;
  }

  .email-link {
    gap: 0.55em;
    font-size: clamp(0.76rem, 3.5vw, 0.92rem);
  }

  .email-link svg {
    width: 1.55em;
    height: 1.55em;
  }

  .socials {
    width: 82%;
    gap: 14%;
    margin-top: 12%;
  }

  .socials a {
    width: 21%;
    gap: 0.6em;
  }

  .icon {
    width: clamp(1.75rem, 8vw, 2rem);
  }

  .label {
    font-size: clamp(0.43rem, 1.8vw, 0.53rem);
    letter-spacing: 0.3em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .email-link,
  .socials a { transition: none; }
}
