@font-face {
  font-family: "NO SF Pro";
  src: url("/assets/fonts/SFProDisplay-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "NO SF Pro";
  src: url("/assets/fonts/SFProDisplay-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanX";
  src: url("/assets/fonts/IRANYekanXVF.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:lang(fa) {
  font-family: "IRANYekanX", "NO SF Pro", sans-serif;
}

:root {
  color-scheme: dark;
  --ink: #f3f0eb;
  --muted: #b2aea7;
  --copper: #cf9772;
  --edge: rgba(243, 240, 235, 0.2);
}

* {
  box-sizing: border-box;
}

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

body {
  position: fixed;
  inset: 0;
  color: var(--ink);
  font-family: "NO SF Pro", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.landing {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: minmax(67%, 1.9fr) minmax(350px, 0.95fr);
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 4.7vw, 76px) clamp(28px, 6.4vw, 112px) 29px;
  background: #111;
}

.landing__artwork,
.landing__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing__artwork {
  object-fit: cover;
  object-position: 49% 52%;
}

.landing__shade {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.02) 0%, rgba(10, 10, 10, 0.02) 44%, rgba(10, 10, 10, 0.34) 60%, rgba(10, 10, 10, 0.76) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.18), transparent 23%, transparent 72%, rgba(8, 8, 8, 0.55));
}

.masthead,
.footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.masthead {
  grid-row: 1;
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
}

.masthead__brand img {
  display: block;
  width: 168px;
  max-width: 100%;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.masthead__wordmark {
  color: rgba(243, 240, 235, 0.92);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.masthead__index,
.footer {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.masthead__index {
  color: rgba(243, 240, 235, 0.62);
}

.status {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  width: min(100%, 560px);
  padding: 1rem 0 2.3rem 2vw;
  animation: arrive 900ms cubic-bezier(0.2, 0.72, 0.25, 1) both;
}

.status__eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 29px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1.7;
  text-transform: uppercase;
}

.status__eyebrow span {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 13px rgba(207, 151, 114, 0.6);
}

.status h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(3rem, 4.6vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.status h1 br {
  display: block;
}

.status__note {
  margin: 27px 0 0 4px;
  color: rgba(243, 240, 235, 0.74);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.6;
}

.footer {
  grid-row: 3;
  min-height: 27px;
  color: rgba(243, 240, 235, 0.69);
}

.footer__copyright {
  letter-spacing: 0.12em;
}

.footer__place {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.19em;
}

.footer__place i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--copper);
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .landing {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 32px 34px 25px;
  }

  .landing__artwork {
    object-position: 42% 48%;
  }

  .landing__shade {
    background:
      linear-gradient(180deg, rgba(8, 8, 8, 0.1) 0%, rgba(8, 8, 8, 0.05) 34%, rgba(8, 8, 8, 0.55) 62%, #101010 100%);
  }

  .status {
    grid-column: 1;
    align-self: end;
    justify-self: start;
    width: min(100%, 680px);
    padding: 0 0 7vh;
  }

  .status h1 {
    font-size: clamp(3.4rem, 8vw, 5.4rem);
  }
}

@media (max-width: 620px) {
  .landing {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 0;
    padding: 25px 24px 21px;
  }

  .landing__artwork {
    object-position: 36% 46%;
  }

  .landing__shade {
    background:
      linear-gradient(180deg, rgba(9, 9, 9, 0.26) 0%, rgba(9, 9, 9, 0.02) 24%, rgba(9, 9, 9, 0.2) 43%, rgba(9, 9, 9, 0.84) 69%, #101010 100%),
      linear-gradient(90deg, rgba(8, 8, 8, 0.06), rgba(8, 8, 8, 0.1));
  }

  .masthead__index {
    font-size: 9px;
  }

  .status {
    grid-column: 1;
    align-self: end;
    justify-self: start;
    width: 100%;
    padding: 0 0 8vh;
  }

  .status__eyebrow {
    margin-bottom: 21px;
    font-size: 9px;
  }

  .status h1 {
    font-size: clamp(3.5rem, 13.5vw, 5rem);
  }

  .status__note {
    margin-top: 19px;
    font-size: 13px;
  }

  .footer {
    font-size: 9px;
    letter-spacing: 0.14em;
  }
}

@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;
  }
}

/* Minimal typography motion preview, 2026-10-01 */
.status { animation: none; }
.status__line { display: inline-block; animation: text-pulse 1s ease-in-out infinite; }
.status__line--second { animation-delay: 0s; }
.status__note { animation: text-pulse 1s ease-in-out infinite; transform-origin: left center; }
.masthead { animation: note-arrive 1400ms 120ms both; }
.footer { animation: note-arrive 1800ms 650ms both; }
@keyframes type-arrive { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes note-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes note-breathe { 0%, 100% { opacity: .86; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .status__line, .status__note, .masthead, .footer { animation: none; } }

.landing__video { opacity: 0; }
.landing__video.is-playing { opacity: 1; }
.motion-paused .status__note { animation-play-state: paused; }
@media (prefers-reduced-motion:reduce) { .landing__video { display:none; } }

/* Keep the 720p film smaller, with a calm charcoal surround. */
.landing__artwork { inset: auto; left: 0; top: 50%; width: min(73vw, 1200px); height: auto; aspect-ratio: 16 / 9; transform: translateY(-50%); object-fit: cover; object-position: center; mask-image: linear-gradient(90deg, #000 82%, transparent 100%), linear-gradient(180deg, transparent, #000 14%, #000 84%, transparent); mask-composite: intersect; }
.landing__shade { background: linear-gradient(90deg, transparent 38%, rgba(17,17,17,.18) 55%, #111 78%); }
@media (max-width:1100px) { .landing__artwork { width: 100%; max-width: 1000px; left: 50%; top: 40%; transform: translate(-50%,-50%); mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 74%, transparent 100%); } .landing__shade { background: linear-gradient(180deg, transparent 35%, rgba(17,17,17,.18) 52%, #111 70%); } }
@media (max-width:620px) { .landing__artwork { width: 108%; max-width: none; top: 34%; } .landing__shade { background: linear-gradient(180deg, transparent 26%, rgba(17,17,17,.1) 39%, #111 55%); } }

/* Approved outlined bilingual wordmark; preserve its own brand colors. */
.masthead__brand { text-decoration: none; }
.masthead__brand:lang(fa) img { object-position: right center; }

.footer { justify-content: flex-end; }
@keyframes type-beat { 0%, 12%, 30%, 100% { transform: scale(1); opacity: .96; } 6% { transform: scale(1.007); opacity: 1; } 19% { transform: scale(1.003); opacity: .985; } }
@keyframes note-beat { 0%, 12%, 30%, 100% { opacity: .86; } 6% { opacity: .96; } 19% { opacity: .91; } }
.status__line { transform-origin: left center; }
.motion-paused .status__line { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .status__line, .status__note { animation: text-pulse 1s ease-in-out infinite; transform-origin: left center; } }

/* A restrained black carbon weave surrounds the smaller film. */
.landing { background-color: #101112; background-image: radial-gradient(ellipse at 34% 48%, transparent 20%, rgba(0,0,0,.22) 100%), url('/assets/carbon.svg'); }
.landing__shade { background: linear-gradient(90deg, transparent 40%, rgba(16,17,18,.06) 60%, rgba(16,17,18,.12) 100%); }
@media (max-width:1100px) { .landing__artwork { width: 94%; } .landing__shade { background: linear-gradient(180deg, transparent 35%, rgba(16,17,18,.06) 55%, rgba(16,17,18,.12) 100%); } }
@media (max-width:620px) { .landing__artwork { width:108%; } }
@media (prefers-reduced-motion: reduce) { .status__line, .status__note { animation: text-pulse 1s ease-in-out infinite; transform-origin: left center; } }

@keyframes text-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.007); } }
@media (prefers-reduced-motion: reduce) { .status__line, .status__note { animation: none; } }

/* The authentication surface stays still while the landing artwork moves. */
.login-trigger { color: #bdbdb8; background: none; border: 0; padding: 12px; cursor: pointer; margin-left: auto; }
.login-trigger:hover { color: #fff; }
.login-trigger:focus-visible, .login-dialog button:focus-visible { outline: 1px solid #c69873; outline-offset: 5px; }
.login-dialog { box-sizing: border-box; width: min(390px, calc(100vw - 36px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 38px 32px 30px; color: #ededeb; background: #161616; border: 1px solid #373735; border-radius: 16px; box-shadow: 0 24px 80px #0008; font: inherit; }
.login-dialog::backdrop { background: #0009; backdrop-filter: blur(5px); }
.login-dialog h2 { margin: 0 0 8px; font-size: 27px; font-weight: 400; letter-spacing: -.6px; }
.login-description { color: #999993; font-size: 14px; margin: 0 0 22px; }
.login-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; color: #a5a5a0; font-size: 25px; cursor: pointer; }
.login-content form { display: grid; gap: 12px; }
.login-content label { font-size: 13px; color: #b5b5ae; margin-top: 6px; }
.login-content input:not([type=hidden]), .login-content select { box-sizing: border-box; width: 100%; min-height: 45px; padding: 10px 13px; background: #101010; border: 1px solid #42423e; border-radius: 7px; font: inherit; color: #f1f1ed; }
.login-content input:focus { outline: 1px solid #c69873; border-color: #c69873; }
.login-content button[type=submit] { border: 1px solid #deded8; border-radius: 7px; min-height: 44px; margin-top: 13px; background: #deded8; color: #151515; font: inherit; font-size: 14px; cursor: pointer; }
.login-dialog button:disabled { cursor: wait; }
.login-message { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #d6b29a; }
.login-message:empty { display: none; }
.login-restart { background: none; border: 0; padding: 0; color: #92928c; font: inherit; font-size: 12px; margin-top: 20px; cursor: pointer; }
.login-restart[hidden] { display: none; }

/* Required actions remain inside the accessible homepage dialog. */
#login-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.login-setup-qr { display: block; margin: 12px auto; background: #fff; padding: 8px; border-radius: 8px; box-sizing: content-box; max-width: calc(100% - 16px); }
.login-checkbox { display: flex; align-items: center; gap: 8px; }
.login-checkbox input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }

/* Official live trust seal, kept clear of the footer and device safe areas. */
.enamad-badge {
  position: fixed;
  z-index: 3;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 80px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  color: #202440;
  font-size: 12px;
  cursor: pointer;
}
.enamad-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
.enamad-badge:focus-visible { outline: 2px solid #cf9772; outline-offset: 4px; }
@media (max-width: 620px) {
  .enamad-badge {
    width: 60px;
    height: 68px;
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}
