:root {
  --paper: #f7f5f1;
  --paper-bright: #fcfbf8;
  --ink: #221f20;
  --muted-ink: #6f6865;
  --red: #b94037;
  --line: rgba(252, 251, 248, 0.2);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 1rem;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  background: var(--ink);
  color: var(--paper-bright);
  inset-inline-start: var(--space-2);
  padding: 0.75rem 1rem;
  position: fixed;
  text-decoration: none;
  top: 0.75rem;
  transform: translateY(-150%);
  transition: transform 180ms ease;
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  align-items: center;
  display: flex;
  inset-inline: 0;
  justify-content: flex-start;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  position: absolute;
  top: 0;
  z-index: 3;
}

.site-nav__link,
.site-footer a,
.scroll-cue {
  text-decoration: none;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav__link,
.site-footer a {
  color: var(--muted-ink);
  font-size: 0.82rem;
  min-height: 2.75rem;
  padding: 0.75rem 0.25rem;
  transition: color 180ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link[aria-current='page'],
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--red);
}

.logo-section,
.contact-section {
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.logo-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 4vh, 2.5rem);
  justify-content: center;
  padding: clamp(5rem, 11svh, 7rem) 1.5rem clamp(7rem, 14svh, 10rem);
  background:
    radial-gradient(circle at 50% 44%, rgba(185, 64, 55, 0.065), transparent 31rem),
    var(--paper-bright);
}

.logo-section__content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

.section-kicker {
  color: var(--red);
  direction: ltr;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1.5;
  margin: 0;
}

.logo-section h1 {
  align-items: center;
  direction: ltr;
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(1.35rem, 3.8vw, 2.35rem);
  font-weight: 500;
  gap: 0.6rem;
  justify-content: center;
  letter-spacing: -0.04em;
  line-height: 1.3;
  margin: 0;
}

.brand-name__local {
  direction: rtl;
}

.brand-name__separator {
  color: var(--red);
  font-weight: 400;
}

.logo-stage {
  aspect-ratio: 1;
  isolation: isolate;
  margin-top: 0.85rem;
  position: relative;
  width: min(68vw, 31rem, 52svh);
}

.logo-layer {
  display: block;
  height: 100%;
  inset: 0;
  mix-blend-mode: multiply;
  object-fit: contain;
  pointer-events: none;
  position: absolute;
  transform-origin: center;
  user-select: none;
  width: 100%;
}

.logo-layer--static {
  z-index: 1;
}

.logo-layer--left {
  animation: rotate-left 18s linear infinite;
  z-index: 2;
}

.logo-layer--right {
  animation: rotate-right 24s linear infinite;
  z-index: 3;
}

.scroll-cue {
  align-items: center;
  bottom: 0;
  color: var(--muted-ink);
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  gap: 0.75rem;
  left: 50%;
  min-height: 4rem;
  padding: 0.75rem 1rem 0;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
}

.scroll-cue__line {
  background: var(--red);
  height: 2.5rem;
  width: 1px;
}

.contact-section {
  align-items: center;
  background: var(--ink);
  color: var(--paper-bright);
  display: flex;
  justify-content: center;
  padding: 6rem 1.5rem;
}

.contact-section::after {
  background: var(--red);
  border-radius: 50%;
  content: '';
  height: min(46vw, 36rem);
  opacity: 0.92;
  position: absolute;
  right: -14rem;
  top: -13rem;
  width: min(46vw, 36rem);
}

.contact-card {
  max-width: 38rem;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.contact-card .section-kicker {
  margin-bottom: 1.25rem;
}

.contact-card h2 {
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.25;
  margin: 0;
}

.contact-card__intro {
  color: rgba(252, 251, 248, 0.7);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 2;
  margin: 1.5rem auto 3rem;
  max-width: 29rem;
}

.contact-list {
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: 30rem;
}

.contact-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 5rem;
  padding: 0.75rem 0;
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease;
}

.contact-item:hover,
.contact-item:focus-visible {
  color: var(--red);
  padding-inline: 0.65rem;
}

.contact-item__label {
  color: rgba(252, 251, 248, 0.62);
  font-size: 0.88rem;
}

.contact-item__value {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: rgba(252, 251, 248, 0.35);
  display: flex;
  font-size: 0.68rem;
  justify-content: space-between;
  letter-spacing: 0.2em;
  padding: 0 1.5rem 2.25rem;
}

.site-footer__links {
  align-items: center;
  display: flex;
  gap: 1.5rem;
}

.site-footer__copyright {
  direction: ltr;
}

.site-footer a {
  color: rgba(252, 251, 248, 0.58);
  font-size: 0.72rem;
  letter-spacing: normal;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 0.35rem;
}

@keyframes rotate-left {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes rotate-right {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav {
    gap: 0.35rem;
  }

  .site-nav__link {
    font-size: 0.76rem;
  }

  .logo-section {
    padding-inline: 1rem;
  }

  .logo-stage {
    margin-top: 0.6rem;
    width: min(84vw, 25rem, 44svh);
  }

  .contact-section {
    padding-inline: 1rem;
  }

  .contact-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: center;
  }

  .contact-section::after {
    height: 20rem;
    right: -11rem;
    top: -8rem;
    width: 20rem;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo-layer--left,
  .logo-layer--right {
    animation-play-state: paused;
  }

  .contact-item,
  .site-nav__link,
  .site-footer a,
  .skip-link {
    transition: none;
  }
}
