/*
  The public site's look: "Stone and steel". Dark stone, bronze light, bronze smoke.
  One theme on purpose: the dark stone is the gym's identity, not a display preference.
  Logical properties (inline-start/end) throughout, as in the panel: the page is right-to-left.
*/

@font-face {
  font-family: "Vazirmatn";
  src: url("./fonts/Vazirmatn-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --stone: #0d0e11;
  --stone-2: #15171c;
  --stone-3: #1f222a;
  --line: #2a2d35;
  --bronze: #c89b57;
  --bronze-hi: #e8c07d;
  --bronze-lo: #6e5330;
  --ember: #e25b38;
  --text: #f2efe9;
  --muted: #9a968f;
  --faint: #5d5a55;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: 1.25rem;
  --slide-ms: 4000ms;

  color-scheme: dark;
  interpolate-size: allow-keywords;
}

/* Samsung Internet's dark mode leaves a page alone only when its stylesheet answers
   prefers-color-scheme: dark. The page is already dark, so the answer changes nothing. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--text);
  font-family: "Vazirmatn", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  background: var(--bronze);
  color: var(--stone);
}

:focus-visible {
  outline: 2px solid var(--bronze-hi);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(100% - var(--gutter) * 2, 72rem);
  margin-inline: auto;
}

/* ---------- The logo ----------
   The gym's own logo, white on transparent, used as a mask so it can be any colour. */

.logo {
  display: block;
  aspect-ratio: 425 / 582;
  background: var(--bronze);
  -webkit-mask: url("./img/logo.png") center / contain no-repeat;
  mask: url("./img/logo.png") center / contain no-repeat;
}

/* ---------- The grade ----------
   Every photo, placeholder or real, goes through the same treatment: less colour, a little
   warmer, a little darker, then a breath of bronze. Swapping a file never changes the look. */

.photo {
  position: relative;
  overflow: hidden;
  background: var(--stone-2);
  isolation: isolate;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) sepia(0.18) contrast(1.08) brightness(0.9);
  transition:
    transform 1.2s var(--ease-out),
    filter 1.2s var(--ease-out);
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--bronze-hi), var(--bronze-lo) 75%);
  mix-blend-mode: soft-light;
  opacity: 0.45;
  pointer-events: none;
}

/* A photo still to come: the logo, faint, and a line saying so. */
.photo--soon {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  background:
    repeating-linear-gradient(135deg, rgb(200 155 87 / 0.05) 0 1px, transparent 1px 14px),
    var(--stone-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.photo--soon::after {
  display: none;
}

.photo--soon .logo {
  width: 3.5rem;
  opacity: 0.35;
}

.photo--soon figcaption {
  color: var(--faint);
  font-size: 0.9rem;
}

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 20;
  padding-block-start: env(safe-area-inset-top);
  background: linear-gradient(to bottom, rgb(13 14 17 / 0.8), transparent);
  transition: background-color 0.4s;
}

.topbar.is-scrolled {
  background-color: rgb(13 14 17 / 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - var(--gutter) * 2, 72rem);
  margin-inline: auto;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand__logo {
  height: 2.6rem;
}

.brand__name {
  font-weight: 800;
  font-size: 1.05rem;
}

/* The plus of «پاسارگاد پلاس» */
.brand__name span {
  margin-inline-start: 0.1em;
  color: var(--bronze);
}

.topnav {
  display: none;
  gap: 0.25rem;
}

.topnav a {
  padding: 0.5rem 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.25s;
}

.topnav a:hover {
  color: var(--text);
}

/* A section a link goes to stops below the top bar, not under it */
main > section[id] {
  scroll-margin-block-start: 4.25rem;
}

/* On a phone the menu is hidden, so the button pushes itself to the end next to the menu */
.topbar__join {
  margin-inline-start: auto;
}

.menu-button {
  display: grid;
  place-content: center;
  gap: 0.4rem;
  width: 2.75rem;
  height: 2.75rem;
}

.menu-button span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--text);
}

.menu-button span:last-child {
  width: 1rem;
  justify-self: start;
  background: var(--bronze);
}

/* ----- The phone's menu -----
   The three-line button turns into a cross and a drawer slides out under the bar, from the
   button's side, over a shade that dims the rest of the page. */

.menu-shade {
  display: none;
}

.menu-button span {
  transition:
    translate 0.35s var(--ease-out),
    rotate 0.35s var(--ease-out),
    width 0.35s var(--ease-out);
}

.menu-button[aria-expanded="true"] span:first-child {
  translate: 0 calc(0.2rem + 1px);
  rotate: 45deg;
}

.menu-button[aria-expanded="true"] span:last-child {
  width: 1.5rem;
  translate: 0 calc(-0.2rem - 1px);
  rotate: -45deg;
}

@media (max-width: 899px) {
  /* No blur on a phone's bar, a darker glass instead: a backdrop-filter would make the bar, not
     the screen, the box the fixed drawer and shade are laid out in */
  .topbar.is-scrolled,
  .topbar.is-open {
    background-color: rgb(13 14 17 / 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .topnav,
  .menu-shade {
    position: fixed;
    inset-block: calc(4.25rem + env(safe-area-inset-top)) 0;
    /* Under the bar, over everything else on the page */
    z-index: -1;
  }

  .menu-shade {
    display: block;
    /* Below the drawer too, so a tap on a link reaches the link */
    z-index: -2;
    inset-inline: 0;
    background: rgb(0 0 0 / 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out);
  }

  .topbar.is-open .menu-shade {
    opacity: 1;
    pointer-events: auto;
  }

  /* The button sits at the bar's end (the left), so the drawer comes out of that side */
  .topnav {
    inset-inline-end: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: min(30vw, 7.5rem);
    padding: 0.5rem 0.75rem calc(1.5rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    background:
      radial-gradient(ellipse 90% 35% at 50% 0%, rgb(200 155 87 / 0.1), transparent 70%),
      var(--stone-2);
    box-shadow:
      inset 0 1px 0 var(--line),
      1px 0 0 var(--line),
      20px 0 50px rgb(0 0 0 / 0.5);
    translate: -100% 0;
    visibility: hidden;
    transition:
      translate 0.4s var(--ease-out),
      visibility 0s 0.4s;
  }

  .topbar.is-open .topnav {
    translate: 0 0;
    visibility: visible;
    transition: translate 0.4s var(--ease-out);
  }

  .topnav a {
    padding: 0.8rem 0;
    color: var(--text);
    font-size: 1rem;
    white-space: nowrap;
    font-weight: 700;
    box-shadow: 0 1px 0 var(--line);
  }

  .menu-open {
    overflow: hidden;
  }
}

/* ---------- Hero ----------
   Back to front: the lit background, the ghost word, the back smoke, the athlete, the front
   smoke, the words. site.js moves the light (--hx, --hy) and the depth (--px, --py, -1 to 1)
   with the pointer, and drifts them on its own when nobody touches. */

.hero {
  --hx: 70%;
  --hy: 40%;
  --px: 0;
  --py: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: max(100svh, 36rem);
  padding-block: 7rem 7.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle 60vmax at var(--hx) var(--hy), rgb(200 155 87 / 0.2), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgb(110 83 48 / 0.35), transparent 70%),
    var(--stone);
}

.hero__ghost {
  --lx: 50%;
  --ly: 50%;
  position: absolute;
  inset-block-start: 14%;
  inset-inline: 0;
  z-index: 1;
  font-size: 34vw;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgb(200 155 87 / 0.07);
  background: radial-gradient(
    circle 22vmax at var(--lx) var(--ly),
    rgb(232 192 125 / 0.32),
    rgb(232 192 125 / 0.04) 70%,
    transparent
  );
  -webkit-background-clip: text;
  background-clip: text;
  translate: calc(var(--px) * 10px) calc(var(--py) * 6px);
  pointer-events: none;
  user-select: none;
}

.smoke {
  position: absolute;
  pointer-events: none;
}

.smoke--back {
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.smoke--front {
  inset-inline: -5%;
  inset-block-end: -4%;
  z-index: 4;
  width: 110%;
  height: 52%;
  translate: calc(var(--px) * 26px) calc(var(--py) * 10px);
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  translate: calc(var(--px) * -16px) calc(var(--py) * -10px);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 88%);
  isolation: isolate;
}

/* The whole photo, never cut (2026-11-04, the developer: cut and zoomed photos showed too little
   of the gym): "contain", not "cover". The room left around it is filled by .backdrop below. */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 20%;
  filter: saturate(0.75) sepia(0.12) contrast(1.08) brightness(0.92);
}

/* The slide only fades in, no zoom (removed with the cutting) */
.slide.is-active {
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 5;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--bronze);
  font-size: 0.95rem;
  font-weight: 600;
}

.eyebrow__num {
  font-weight: 300;
  color: var(--faint);
}

.hero__eyebrow {
  animation: rise 1s 0.2s var(--ease-out) both;
}

.hero__title {
  margin-block-start: 0.5rem;
  line-height: 1;
}

/* The name is cut into the stone, and the bronze light passes across it. */
.carved {
  --lx: 50%;
  --ly: 40%;
  display: block;
  /* As wide as the word and its plus: ink outside the box is not drawn (background-clip) */
  width: fit-content;
  padding-block: 0.08em 0.12em;
  font-size: clamp(4.25rem, 22vw, 10rem);
  font-weight: 900;
  line-height: 1.1;
  color: transparent;
  background: radial-gradient(
    circle at var(--lx) var(--ly),
    #fff3d6 0%,
    var(--bronze-hi) 10%,
    var(--bronze) 26%,
    #8a6a3e 50%,
    #4a3f33 75%,
    #3a342d 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / 0.5)) drop-shadow(0 12px 28px rgb(0 0 0 / 0.7));
  animation: carve 1.6s 0.35s var(--ease-out) both;
}

/* The plus of «پاسارگاد پلاس», raised like a mark beside the word. Its own bronze, not the
   word's moving light: at the word's dark end it would vanish */
.carved__plus {
  color: var(--bronze);
  margin-inline-start: 0.04em;
  font-size: 0.62em;
  vertical-align: 0.42em;
}

/* One short line per slide, changing with it. */
.hero__lines {
  display: grid;
  margin-block-start: 1rem;
  animation: rise 1s 1.15s var(--ease-out) both;
}

.hero__line {
  grid-area: 1 / 1;
  font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  font-weight: 500;
  color: var(--text);
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.9);
  opacity: 0;
  translate: 0 0.6rem;
  transition:
    opacity 0.6s var(--ease-out),
    translate 0.6s var(--ease-out);
}

.hero__line.is-active {
  opacity: 0.85;
  translate: 0 0;
  transition-delay: 0.25s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 1.75rem;
  animation: rise 1s 1.3s var(--ease-out) both;
}

.hero__controls {
  position: absolute;
  inset-block-end: 1.5rem;
  inset-inline: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: rise 1s 1.45s var(--ease-out) both;
}

.slider-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.slider-nav__arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(200 155 87 / 0.45);
  background: rgb(13 14 17 / 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition:
    background-color 0.25s,
    border-color 0.25s;
}

.slider-nav__arrow:hover {
  background: var(--bronze);
  border-color: var(--bronze);
}

.slider-nav__arrow svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.slider-nav__arrow:hover svg {
  stroke: var(--stone);
}

.slider-nav__count {
  min-width: 4.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--bronze);
}

.slider-nav__of {
  font-weight: 300;
  color: var(--muted);
}

/* The time to the next slide, along the bottom edge. */
.hero__progress {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 6;
  height: 2px;
  background: rgb(242 239 233 / 0.08);
}

.hero__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(to left, var(--bronze-hi), var(--bronze));
}

.hero__progress span.is-running {
  animation: progress var(--slide-ms) linear both;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding-inline: 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  clip-path: polygon(
    0.6rem 0,
    100% 0,
    100% calc(100% - 0.6rem),
    calc(100% - 0.6rem) 100%,
    0 100%,
    0 0.6rem
  );
  transition:
    background-color 0.3s,
    color 0.3s;
}

.btn--small {
  min-height: 2.6rem;
  padding-inline: 1.1rem;
  font-size: 0.95rem;
}

.btn--bronze {
  background: var(--bronze);
  color: var(--stone);
}

/* A strip of light crossing the bronze, now and then. */
.btn--bronze::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -40%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgb(255 245 220 / 0.55), transparent);
  transform: skewX(-20deg);
  animation: sheen 5s 2.5s ease-in-out infinite;
}

.btn--bronze:hover {
  background: var(--bronze-hi);
}

.btn--ghost {
  color: var(--text);
  background: rgb(13 14 17 / 0.45);
  box-shadow: inset 0 0 0 1px rgb(200 155 87 / 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgb(200 155 87 / 0.15);
}

/* ---------- Open now ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  background: rgb(21 23 28 / 0.7);
  font-size: 0.9rem;
  color: var(--text);
}

.status[hidden],
.dock__status[hidden] {
  display: none;
}

.hero .status {
  white-space: nowrap;
}

@media (max-width: 899px) {
  /* The status gives way to the arrows: it wraps onto a second line rather than push the arrows
     off a narrow phone («الان بسته است · از ۷ صبح باز می‌شود» is the longest, 2026-11-05) */
  .hero .status {
    flex: 0 1 auto;
    min-width: 0;
    padding-inline: 0.7rem;
    font-size: 0.8rem;
    white-space: normal;
  }

  .slider-nav {
    flex: none;
    gap: 0.25rem;
  }

  .slider-nav__arrow {
    width: 2.4rem;
    height: 2.4rem;
  }

  .slider-nav__count {
    min-width: 3.5rem;
    font-size: 0.9rem;
  }
}

.status__dot {
  position: relative;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--bronze-hi);
}

.status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2s ease-out infinite;
}

.is-closed .status__dot {
  background: var(--ember);
}

.is-closed .status__dot::after {
  animation: none;
}

/* ---------- The band ---------- */

.band {
  overflow: hidden;
  background: var(--bronze);
  color: var(--stone);
  padding-block: 0.85rem;
}

.band__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: band 40s linear infinite;
}

.band__track > * {
  margin-inline-end: 1.5rem;
}

.band span {
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
}

.band i {
  width: 0.45rem;
  height: 0.45rem;
  background: currentColor;
  opacity: 0.5;
  rotate: 45deg;
}

/* ---------- Sections ---------- */

.intro,
.plan,
.space,
.coaches,
.shop,
.contact {
  padding-block: clamp(4.5rem, 14vw, 8.5rem) 0;
}

.section-head h2 {
  max-width: 22ch;
  margin-block-start: 0.75rem;
  font-size: clamp(1.75rem, 7.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.4;
}

/* ---------- One line and the numbers ---------- */

.manifesto {
  max-width: 24ch;
  margin-block-start: 1.25rem;
  font-size: clamp(1.65rem, 7vw, 3.25rem);
  font-weight: 750;
  line-height: 1.6;
}

.manifesto .w {
  color: rgb(242 239 233 / 0.14);
  transition: color 0.35s;
}

.manifesto .w.is-lit {
  color: var(--text);
}

/* The four points of the line. Each sign draws itself as it comes on screen (every stroke has
   pathLength 1, so one dash hides it and the offset reveals it), then keeps a small motion
   going; site.js pauses that motion while the row is off screen. */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: clamp(2.5rem, 8vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

/* Five in two columns: the last one takes the whole row */
.feature:last-child {
  grid-column: 1 / -1;
}

.feature {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  padding: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgb(200 155 87 / 0.1), transparent 60%), var(--stone-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.feature__icon {
  width: clamp(3.75rem, 12vw, 5.25rem);
  height: clamp(3.75rem, 12vw, 5.25rem);
  overflow: visible;
  fill: none;
  stroke: var(--bronze-hi);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature__name {
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  font-weight: 800;
}

.js .feature .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}

.js .feature.is-in .draw {
  stroke-dashoffset: 0;
}

.js .feature .draw:nth-child(2) {
  transition-delay: 0.2s;
}

.js .feature .draw:nth-child(3) {
  transition-delay: 0.4s;
}

.js .feature .draw:nth-child(4) {
  transition-delay: 0.6s;
}

/* The lamp's light: comes on once the lamp is drawn, then breathes */
.feature__beam {
  fill: rgb(232 192 125 / 0.22);
  stroke: none;
  opacity: 0;
  transition: opacity 1s 1s;
}

.feature.is-in .feature__beam {
  opacity: 1;
  animation: beam 3.2s ease-in-out 2s infinite;
}

/* Walking in at ground level: the arrow goes through the door and comes round again */
.feature__walk {
  opacity: 0;
}

.feature.is-in .feature__walk {
  animation: walk-in 2.6s ease-in-out 1.2s infinite;
}

/* The stage: two spotlights come on and sweep across it in turn */
.feature__spot {
  fill: rgb(232 192 125 / 0.2);
  stroke: none;
  opacity: 0;
  transition: opacity 1s 1.2s;
}

.feature.is-in .feature__spot {
  opacity: 1;
}

.feature__spot--a {
  transform-box: view-box;
  transform-origin: 4px 2px;
  animation: sweep-a 3.6s ease-in-out infinite;
}

.feature__spot--b {
  transform-box: view-box;
  transform-origin: 60px 2px;
  animation: sweep-b 3.6s ease-in-out infinite;
}

/* The fan turns and the air flows */
.feature__fan {
  fill: rgb(232 192 125 / 0.35);
  transform-box: view-box;
  transform-origin: 24px 30px;
  animation: spin 2.8s linear infinite;
}

.feature__wind {
  stroke-dasharray: 5 6;
  animation: wind 1s linear infinite;
}

.features:not(.is-playing) * {
  animation-play-state: paused;
}

.facts {
  display: grid;
  gap: 1.5rem;
  margin-block-start: clamp(3rem, 10vw, 5rem);
}

.fact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* A barbell plate: dark cast iron with machined grooves, a bronze ring at the rim, the hole in
   the middle; the number above the hole and its unit below, like «20 KG» on a real plate. */
.fact__num {
  position: relative;
  flex: none;
  display: grid;
  width: clamp(8.5rem, 34vw, 15rem);
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--bronze-hi);
  font-size: clamp(1.9rem, 8vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(circle, var(--stone) 0 9%, #4a3820 9% 11%, transparent 11%),
    radial-gradient(
      circle,
      transparent 0 30%,
      rgb(255 255 255 / 0.04) 30% 31%,
      transparent 31% 64%,
      rgb(255 255 255 / 0.05) 64% 65%,
      transparent 65%
    ),
    repeating-conic-gradient(rgb(255 255 255 / 0.02) 0 1deg, transparent 1deg 5deg),
    radial-gradient(circle at 35% 30%, #2c2e35, #141519 72%);
  box-shadow:
    inset 0 0 0 0.5rem #1c1d22,
    inset 0 0 0 0.6rem rgb(200 155 87 / 0.6),
    inset 0 3px 16px rgb(255 255 255 / 0.07),
    0 24px 50px rgb(0 0 0 / 0.55);
  transition: rotate 0.8s var(--ease-out);
}

.fact__num .slot {
  position: absolute;
  inset-block-start: 17%;
  inset-inline: 0;
  text-align: center;
}

.fact__num::after {
  content: attr(data-unit);
  position: absolute;
  inset-block-end: 18%;
  inset-inline: 0;
  color: var(--bronze);
  font-size: clamp(0.75rem, 2.4vw, 0.95rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2em;
}

/* It rolls in from the side and settles with a small bounce */
.js .fact[data-reveal] .fact__num {
  transform: translateX(-3rem) rotate(-150deg);
  transition:
    transform 1.4s cubic-bezier(0.2, 1.25, 0.35, 1),
    rotate 0.8s var(--ease-out);
}

.js .fact[data-reveal].is-in .fact__num {
  transform: none;
}

.fact:nth-child(2) .fact__num {
  transition-delay: 0.12s;
}

.fact:nth-child(3) .fact__num {
  transition-delay: 0.24s;
}

@media (hover: hover) {
  .fact:hover .fact__num {
    rotate: 25deg;
  }
}

.fact dd {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* The slot reels site.js builds from each digit. A number is written left to right even in
   Persian text; once each digit is its own box the browser would lay them out right to left
   (۳۶۵ shown as ۵۶۳), so the row of reels is isolated as left-to-right. */
.slot > [aria-hidden] {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

.reel {
  display: inline-block;
  height: 1.1em;
  overflow: hidden;
  vertical-align: top;
}

.reel__strip {
  display: flex;
  flex-direction: column;
  transition: transform 1.6s var(--ease-out);
}

.reel__strip span {
  height: 1.1em;
  text-align: center;
}

/* ---------- The plan: a walk through the hall ----------
   The stage is one screen tall and stays put while the page scrolls past it. The .tour box
   around it is what gets scrolled: one screen for the stage plus some scroll per stop. */

.tour {
  --edge: max(var(--gutter), calc((100% - 72rem) / 2));
  position: relative;
  margin-block-start: 2.5rem;
}

.js .tour.is-live {
  height: calc(100svh + 12 * 45svh);
}

.tour__stage {
  position: relative;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
  isolation: isolate;
}

.tour.is-live .tour__stage {
  position: sticky;
  inset-block-start: 0;
}

/* The stage's dark edges: the words and the plan stay readable on any photo */
.tour__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--stone) 2%, rgb(13 14 17 / 0.6) 32%, transparent 62%),
    linear-gradient(to bottom, var(--stone), transparent 22%),
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgb(13 14 17 / 0.55));
}

/* The photos lie on top of each other; the stop's own fades in */
.tour__photos {
  position: absolute;
  inset: 0;
}

.tour__photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
}

.tour__photo.is-active {
  opacity: 1;
}

/* Like the hero's slides: the whole photo, never cut or zoomed. A stop's photo arrives soft and
   dim and comes into focus (2026-11-05); the filters keep the same order so they blend. */
.tour__photo img {
  object-fit: contain;
  filter: saturate(0.6) sepia(0.18) contrast(1.08) brightness(0.6) blur(14px);
  transition: filter 1.8s var(--ease-out);
}

.tour__photo.is-active img {
  filter: saturate(0.6) sepia(0.18) contrast(1.08) brightness(0.9) blur(0);
}

/* And a band of warm light crosses it once, from the reading side, as the walker comes in. It
   lies on the picture (a box over the whole frame, under the bronze breath) and adds light
   (screen); twice and a half as wide as the frame, its bright middle is off the frame at either
   end of the run. */
.tour__photo picture {
  display: block;
  position: absolute;
  inset: 0;
}

.tour__photo picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgb(255 222 165 / 0.32) 50%, transparent 60%)
    100% 0 / 250% 100% no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}

.tour__photo.is-active picture::after {
  animation: sweep 2s 0.2s ease-in-out both;
}

@keyframes sweep {
  from {
    background-position-x: 0%;
  }

  to {
    background-position-x: 100%;
  }
}

/* The room a whole photo leaves on a screen of another shape: the same photo behind it, blurred
   and dark, so the photo never sits in an empty frame. site.js sets --backdrop to the file the
   browser chose (a phone's -tall one included); without it the stone shows. */
.slide::before,
.tour__photo::before {
  content: "";
  position: absolute;
  inset: -3rem;
  z-index: -1;
  background: var(--backdrop, none) center / cover no-repeat;
  filter: blur(2rem) brightness(0.46) saturate(0.7);
}

/* The tour's room is a mirror instead (2026-11-05): the photo, tiled at its own whole size and
   the layer flipped about the centre, puts a mirrored copy against each edge, so the hall seems
   to carry on past the photo, blurred and a little darker. The padding keeps the tiles measured
   on the stage itself while the layer reaches past it, so the blur has no faded rim. The flip
   follows the side the room is on: left and right when the screen is wider than the photo
   (a computer's 16:9 files, a phone's 9:16 ones), above and below when it is taller. */
.tour__photo::before {
  inset: -3rem;
  padding: 3rem;
  background: var(--backdrop, none) center / contain repeat;
  background-origin: content-box;
  background-clip: border-box;
  scale: -1 1;
  filter: blur(0.45rem) saturate(0.6) sepia(0.18) brightness(0.8);
}

@media (min-width: 900px) and (max-aspect-ratio: 16/9),
  (max-width: 899px) and (max-aspect-ratio: 9/16) {
  .tour__photo::before {
    scale: 1 -1;
  }
}

/* The photo's own edges fade into its mirror, from a little inside the photo, so no frame line
   shows where they meet. The drawn photo is found from the frame's size (container units) and
   the photo's shape (--ar, from site.js). Only a side with mirror room fades: the band's width
   times fifty is near zero only when there is no band, and a screen's own edge stays sharp. */
.tour__photo {
  container-type: size;
}

.tour__photo img {
  --pw: min(100cqw, 100cqh * var(--ar, 1.7778));
  --ph: min(100cqh, 100cqw / var(--ar, 1.7778));
  --bx: calc((100cqw - var(--pw)) / 2);
  --by: calc((100cqh - var(--ph)) / 2);
  --fx: min(var(--bx) * 50, var(--pw) * 0.09);
  --fy: min(var(--by) * 50, var(--ph) * 0.09);
  mask-image:
    linear-gradient(
      to right,
      transparent var(--bx),
      #000 calc(var(--bx) + var(--fx)),
      #000 calc(100% - var(--bx) - var(--fx)),
      transparent calc(100% - var(--bx))
    ),
    linear-gradient(
      to bottom,
      transparent var(--by),
      #000 calc(var(--by) + var(--fy)),
      #000 calc(100% - var(--by) - var(--fy)),
      transparent calc(100% - var(--by))
    );
  mask-composite: intersect;
}

/* The name of the stop, large, with its count above */
.tour__caption {
  position: absolute;
  z-index: 2;
  inset-inline-start: var(--edge);
  inset-block-end: clamp(2rem, 9svh, 5rem);
  width: min(28rem, 100% - var(--gutter) * 2);
}

.tour__count {
  color: var(--bronze);
  font-size: 0.95rem;
  font-weight: 700;
}

.tour__of {
  color: var(--faint);
}

.tour__names {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tour__names > li {
  grid-area: 1 / 1;
}

.tour__names h3 {
  overflow: hidden;
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 900;
  line-height: 1.35;
}

.tour__names h3 span {
  display: block;
  translate: 0 105%;
  text-shadow: 0 12px 40px rgb(0 0 0 / 0.5);
  transition: translate 0.8s var(--ease-out);
}

.tour__names .is-past h3 span {
  translate: 0 -105%;
}

.tour__names .is-active h3 span {
  translate: 0 0;
}

.tour__names p {
  color: var(--muted);
  opacity: 0;
  translate: 0 0.75rem;
  transition:
    opacity 0.5s,
    translate 0.5s var(--ease-out);
}

.tour__names .is-active p {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.25s;
}

/* The plan, on a pane of smoked glass */
.tour__hud {
  position: absolute;
  z-index: 2;
  inset-inline-end: var(--edge);
  inset-block-end: clamp(2rem, 9svh, 5rem);
  width: min(42rem, 50vw);
  padding: 0.75rem;
  /* Thin glass: the photo shows through it */
  background: rgb(13 14 17 / 0.2);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-shadow:
    inset 0 0 0 1px rgb(200 155 87 / 0.25),
    0 20px 50px rgb(0 0 0 / 0.3);
}

.tour__map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 414;
}

/* Left to right even in this page: the walk starts at the door on the plan's left, so the
   ticks fill from the left with it */
.tour__ticks {
  display: flex;
  direction: ltr;
  gap: 0.35rem;
  margin-block-start: 0.6rem;
}

.tour__ticks button {
  position: relative;
  flex: 1;
  height: 1.25rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.tour__ticks button::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 50%;
  height: 2px;
  translate: 0 -50%;
  background: var(--line);
  transition:
    background-color 0.3s,
    height 0.3s,
    box-shadow 0.3s;
}

.tour__ticks .is-past::before {
  background: var(--bronze-lo);
}

.tour__ticks .is-active::before {
  height: 4px;
  background: var(--bronze-hi);
  box-shadow: 0 0 12px var(--bronze);
}

.tour__ticks button:focus-visible {
  outline: 2px solid var(--bronze-hi);
  outline-offset: 2px;
}

.tour__hint {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  inset-block-end: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  transition: opacity 0.4s;
}

.tour__hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 1.75rem;
  margin: 0.4rem auto 0;
  background: linear-gradient(var(--bronze), transparent);
  transform-origin: top;
  animation: hint 1.8s ease-in-out infinite;
}

.is-walking .tour__hint,
.tour:not(.is-live) .tour__hint {
  opacity: 0;
}

/* ----- The plan's drawing ----- */

.plan__grid {
  fill: url(#plan-grid);
}

#plan-grid path {
  fill: none;
  stroke: rgb(200 155 87 / 0.1);
  stroke-width: 1;
}

.plan__floor {
  fill: rgb(13 14 17 / 0.12);
}

.plan__wall {
  fill: none;
  stroke: rgb(200 155 87 / 0.75);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.room rect {
  fill: none;
  stroke: rgb(242 239 233 / 0.14);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.room text,
.zone text {
  font-family: inherit;
  /* A dark outline keeps the names readable on any photo */
  stroke: rgb(13 14 17 / 0.75);
  stroke-width: 4px;
  paint-order: stroke;
  text-anchor: middle;
  dominant-baseline: middle;
}

.room text {
  fill: var(--faint);
  font-size: 19px;
}

.zone {
  cursor: pointer;
  outline: none;
}

.zone :is(rect, path) {
  fill: rgb(200 155 87 / 0.04);
  stroke: rgb(200 155 87 / 0.3);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition:
    fill 0.5s,
    stroke 0.5s;
}

.zone.is-past :is(rect, path) {
  fill: rgb(200 155 87 / 0.1);
}

.zone:hover :is(rect, path),
.zone:focus-visible :is(rect, path),
.zone.is-active :is(rect, path) {
  fill: rgb(200 155 87 / 0.26);
  stroke: var(--bronze-hi);
}

.zone:focus-visible :is(rect, path) {
  stroke-width: 2.5;
}

.zone text {
  fill: var(--muted);
  font-size: 28px;
  font-weight: 700;
  transition: fill 0.4s;
}

.zone--small text {
  font-size: 22px;
}

.zone--tiny text {
  font-size: 16px;
}

.zone:hover text,
.zone.is-active text {
  fill: var(--text);
}

/* The walk: the dotted track ahead, the bronze line behind, and the walker on it */
.route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.route--track {
  stroke: rgb(242 239 233 / 0.25);
  stroke-width: 3;
  stroke-dasharray: 2 9;
}

.route--done {
  stroke: var(--bronze-hi);
  stroke-width: 5;
  filter: drop-shadow(0 0 6px rgb(232 192 125 / 0.6));
}

.tour:not(.is-live) :is(.route, .walker) {
  display: none;
}

/* A spot inside a big room: hollow ahead, bronze once passed, lit while the walk is there */
.spot {
  fill: var(--stone);
  stroke: rgb(232 192 125 / 0.55);
  stroke-width: 2;
  pointer-events: none;
  transition:
    fill 0.4s,
    stroke 0.4s;
}

.spot.is-past {
  fill: var(--bronze-lo);
}

.spot.is-active {
  fill: var(--bronze-hi);
  stroke: var(--bronze-hi);
}

.walker {
  pointer-events: none;
}

.walker__dot {
  fill: var(--bronze-hi);
  stroke: var(--stone);
  stroke-width: 2;
}

.walker__ring {
  fill: none;
  stroke: var(--bronze-hi);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 1.8s var(--ease-out) infinite;
}

@media (min-width: 900px) {
  /* A computer, option A (2026-11-05): the photo still fills the stage; the plan a small pane
     in the corner, its names drawn larger so they stay readable at this size */
  .tour__hud {
    width: 24rem;
    padding: 0.5rem;
  }

  .room text,
  .zone text {
    stroke-width: 3px;
  }

  .zone text {
    font-size: 30px;
  }

  .zone--small text,
  .zone[data-steps="2"] text {
    font-size: 24px;
  }

  .zone--tiny text {
    font-size: 19px;
  }

  .room text {
    font-size: 20px;
  }

  /* The figure stage is too narrow for its full name at this size: «فیگور» */
  .zone .zone__long {
    display: none;
  }

  .zone .zone__short {
    display: inline;
  }
}

@media (max-width: 899px) {
  /* A phone (2026-11-05): the plan a small chip in the top corner, only the rooms, the line
     and the walker (the name at the bottom says where it is); the photo has the screen */
  .tour__hud {
    inset-inline: auto 0.75rem;
    inset-block: calc(4.75rem + env(safe-area-inset-top)) auto;
    width: min(44vw, 12rem);
    padding: 0.3rem;
    background: rgb(13 14 17 / 0.45);
  }

  .tour__ticks,
  .room text,
  .zone text {
    display: none;
  }

  /* Drawn thicker, or they vanish at this size */
  .route--done {
    stroke-width: 12;
  }

  .route--track {
    stroke-width: 6;
    stroke-dasharray: 4 16;
  }

  .spot {
    r: 12;
    stroke-width: 4;
  }

  .tour__caption {
    inset-block-end: 6.5rem;
  }

  .tour__hint {
    display: none;
  }
}

.zone__short {
  display: none;
}

/* ---------- The gallery ---------- */

.gallery {
  display: flex;
  gap: 0.75rem;
  margin-block-start: 2.5rem;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.gallery::-webkit-scrollbar {
  display: none;
}

/* Every photo whole, in its own shape (2026-11-05): on a phone a row of photos the same height,
   each as wide as its shape makes it; a wide one (4:3) just fits the screen's width */
.gallery__item {
  flex: none;
  height: min(62svh, 26rem, (100vw - var(--gutter) * 2) * 0.75);
  scroll-snap-align: start;
}

.gallery__item img {
  width: auto;
  height: 100%;
}

@media (hover: hover) {
  .gallery__item:hover img {
    transform: scale(1.04);
    filter: saturate(0.9) sepia(0.05) contrast(1.05) brightness(1);
  }
}

.gallery__count {
  margin-block-start: 1rem;
  font-weight: 700;
  color: var(--bronze);
}

.gallery__of {
  color: var(--faint);
  font-weight: 300;
}

/* ---------- The trainers: cards on a stage ----------
   site.js gives each card its place as --o (-1 beside, 0 in front, 1 the other side) and --a
   (how far: 0 or 1); the tilt as --tx/--ty and the sheen's spot as --sx/--sy. */

.coaches__stage {
  --card-w: clamp(15rem, 68vw, 19rem);
  position: relative;
  margin-block-start: 2rem;
  padding-block: 2.5rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
}

/* One cone of bronze light from above, onto the card in front */
.coaches__light {
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  z-index: -1;
  width: min(44rem, 130%);
  margin-inline: auto;
  background:
    radial-gradient(ellipse 22% 95% at 50% -5%, rgb(232 192 125 / 0.3), transparent 70%),
    radial-gradient(ellipse 45% 30% at 50% 88%, rgb(200 155 87 / 0.14), transparent 70%);
}

.coaches__deck {
  position: relative;
  height: calc(var(--card-w) * 1.4 + 1rem);
  perspective: 1400px;
  touch-action: pan-y;
}

.coach {
  --o: 0;
  --a: 0;
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: calc(3 - var(--a));
  width: var(--card-w);
  aspect-ratio: 5 / 7;
  margin-inline: auto;
  outline: none;
  cursor: pointer;
  opacity: calc(1 - var(--a) * 0.4);
  transform: translateX(calc(var(--o) * -70%)) translateZ(calc(var(--a) * -180px))
    rotateY(calc(var(--o) * 20deg));
  /* No filter here: a filter flattens the 3D and the card could no longer turn over */
  transform-style: preserve-3d;
  transition:
    transform 0.8s var(--ease-out),
    opacity 0.8s;
}

.coach__card {
  position: relative;
  height: 100%;
  transform: rotateX(var(--tx, 0deg)) rotateY(calc(var(--flip, 0deg) + var(--ty, 0deg)));
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out);
}

.coach.is-flipped {
  --flip: 180deg;
}

.coach.is-tilting .coach__card {
  transition-duration: 0.15s;
}

.coach:focus-visible .coach__face {
  outline: 2px solid var(--bronze-hi);
  outline-offset: 4px;
}

/* Both faces: stone inside a bronze frame */
.coach__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow: hidden;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--stone-2), var(--stone-2)) padding-box,
    linear-gradient(
        150deg,
        var(--bronze-hi),
        var(--bronze-lo) 35%,
        var(--bronze) 65%,
        var(--bronze-lo)
      )
      border-box;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.55);
  filter: brightness(calc(1 - var(--a) * 0.5));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: filter 0.8s;
}

.coach__back {
  justify-content: space-between;
  transform: rotateY(180deg);
}

.coach__photo {
  position: relative;
  flex: 1;
  display: grid;
  align-items: end;
  justify-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgb(200 155 87 / 0.18), transparent 70%),
    var(--stone);
}

.coach__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) sepia(0.18) contrast(1.08) brightness(0.95);
}

.coach__num {
  position: absolute;
  z-index: 1;
  inset-block-start: 1.5rem;
  inset-inline-start: 1.6rem;
  color: var(--bronze-hi);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.7);
}

.coach__name {
  margin-block-start: 0.85rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.4;
}

.coach__role {
  color: var(--muted);
  font-size: 0.9rem;
}

.coach__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-block-start: 0.75rem;
  border-block-start: 1px solid var(--line);
}

.coach__stats > div {
  padding-block-start: 0.6rem;
}

.coach__stats > div + div {
  padding-inline-start: 0.75rem;
  border-inline-start: 1px solid var(--line);
}

.coach__stats dt,
.coach__about dt {
  color: var(--bronze);
  font-size: 0.8rem;
}

.coach__stats dd {
  font-size: 1.25rem;
  font-weight: 800;
}

.coach__about {
  display: grid;
  gap: 1.1rem;
  margin-block-start: 0.5rem;
}

.coach__about dd {
  color: var(--muted);
}

/* A trainer who can be picked in the app (15.4d): the whole width of the card's back. */
.coach__choose {
  width: 100%;
}

.coach__pick {
  padding: 0.75rem;
  border: 1px dashed rgb(200 155 87 / 0.5);
  color: var(--bronze);
  font-size: 0.9rem;
  text-align: center;
}

/* The light on the metal: follows the pointer over the card in front */
.coach__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--sx, 30%) var(--sy, 20%),
      rgb(255 228 180 / 0.22),
      transparent 45%
    ),
    linear-gradient(115deg, transparent 35%, rgb(232 192 125 / 0.12) 48%, transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s;
}

.coach.is-tilting .coach__sheen {
  opacity: 1;
}

.coaches__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-block-start: 1.5rem;
}

.coaches__hint {
  color: var(--faint);
  font-size: 0.85rem;
}

/* A phone: the card in front takes nearly the whole width; the others peek at the edges */
@media (max-width: 899px) {
  .coaches__stage {
    --card-w: min(100vw - 3rem, 26rem);
  }
}

/* ---------- The shop: a showcase ----------
   A phone swipes along one row of tall shelves; a computer sees them all at once, one big and
   the rest around it. A band of light crosses a shelf when the pointer comes. */

.shop__lead {
  margin-block-start: 0.75rem;
  color: var(--muted);
}

.shop__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 20rem);
  gap: 0.75rem;
  margin: 2.5rem 0 0;
  padding: 0 var(--gutter);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.shop__grid::-webkit-scrollbar {
  display: none;
}

.shelf {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px var(--line);
}

.shelf__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.shelf__photo img {
  transition:
    transform 1.2s var(--ease-out),
    filter 1.2s var(--ease-out);
}

/* The words sit on a shadow rising from the bottom */
.shelf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgb(13 14 17 / 0.92), rgb(13 14 17 / 0.2) 55%, transparent);
  pointer-events: none;
}

/* The band of light */
.shelf::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -60%;
  z-index: 1;
  width: 50%;
  background: linear-gradient(
    100deg,
    transparent,
    rgb(232 192 125 / 0.18) 45%,
    rgb(255 236 200 / 0.28) 50%,
    rgb(232 192 125 / 0.18) 55%,
    transparent
  );
  transform: skewX(-12deg);
  pointer-events: none;
}

.shelf__text {
  position: absolute;
  inset-inline: 1.25rem;
  inset-block-end: 1.25rem;
  z-index: 2;
  display: grid;
  justify-items: start;
}

.shelf__num {
  color: var(--bronze);
  font-size: 0.9rem;
  font-weight: 700;
}

.shelf__name {
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 900;
  line-height: 1.4;
}

@media (hover: hover) {
  .shelf:hover .shelf__photo img {
    transform: scale(1.07);
    filter: saturate(0.85) sepia(0.12) contrast(1.08) brightness(1);
  }

  .shelf:hover::after {
    inset-inline-start: 120%;
    transition: inset-inline-start 0.9s var(--ease-out);
  }
}

/* The online shop's own products (roadmap 16.4), in place of the shelves once site.js has them:
   the newest six, each a link to its page under /shop/. A phone swipes along one row, a computer
   sees the six side by side. A product's photo is shown whole and in its own colours, not through
   the page's grade: it is what someone buys. */

.shop__grid[hidden],
.shop__goods[hidden],
.shop__more[hidden] {
  display: none;
}

.shop__goods {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(58%, 14rem);
  gap: 0.75rem;
  margin: 2.5rem 0 0;
  padding: 0 var(--gutter);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.shop__goods::-webkit-scrollbar {
  display: none;
}

.good {
  scroll-snap-align: start;
}

.good a {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  background: var(--stone-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.3s;
}

.good__photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--stone-3);
}

.good__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* A product without a photo yet: the gym's logo, faint */
.good__photo .logo {
  width: 2.5rem;
  opacity: 0.35;
}

.good__out {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  padding: 0.05rem 0.5rem;
  background: rgb(13 14 17 / 0.85);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.good__text {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem 0.9rem;
}

.good__name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.good__price {
  color: var(--bronze);
  font-size: 0.9rem;
  font-weight: 700;
}

.good.is-out img {
  opacity: 0.6;
}

.good.is-out .good__price {
  color: var(--muted);
}

.shop__more {
  margin-block-start: 1.5rem;
}

@media (hover: hover) {
  .good a:hover {
    box-shadow: inset 0 0 0 1px var(--bronze);
  }
}

/* ---------- Hours (the first box of the contact section) ---------- */

.hours__card {
  padding: clamp(1.5rem, 6vw, 2.25rem);
  background: linear-gradient(160deg, var(--stone-3), var(--stone-2) 60%);
  clip-path: polygon(
    1.25rem 0,
    100% 0,
    100% calc(100% - 1.25rem),
    calc(100% - 1.25rem) 100%,
    0 100%,
    0 1.25rem
  );
}

.hours__range {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(2.25rem, 11vw, 3.75rem);
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.hours__dash {
  flex: 1;
  min-width: 0.75rem;
  height: 3px;
  background: linear-gradient(to left, var(--bronze), var(--bronze-lo));
}

.hours__words {
  margin-block-start: 0.25rem;
  color: var(--muted);
}

/* The day as a track: 0 at the start (right), 24 at the end, the open hours in bronze. */
.dial {
  margin-block: 2rem 1.5rem;
}

.dial__track {
  position: relative;
  height: 0.5rem;
  background: var(--line);
}

.dial__open {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 29.1667%; /* 7:00 */
  width: 64.5833%; /* to 22:30 */
  background: linear-gradient(to left, var(--bronze-hi), var(--bronze));
  box-shadow: 0 0 18px rgb(200 155 87 / 0.35);
}

/* On a Friday in Tehran, site.js shows that day's hours instead. */
.dial__open.is-friday {
  inset-inline-start: 50%; /* 12:00 */
  width: 43.75%; /* to 22:30 */
}

.dial__now {
  --now: 0;
  position: absolute;
  inset-block: -0.6rem;
  inset-inline-start: calc(var(--now) * 100%);
  width: 2px;
  background: var(--text);
  box-shadow: 0 0 10px rgb(242 239 233 / 0.7);
}

.dial__now[hidden] {
  display: none;
}

.dial__ticks {
  display: flex;
  justify-content: space-between;
  margin-block-start: 0.6rem;
  color: var(--faint);
  font-size: 0.85rem;
}

/* ---------- Contact ---------- */

.contact {
  padding-block-end: clamp(4.5rem, 14vw, 8.5rem);
}

.contact__body {
  display: grid;
  gap: 2rem;
  margin-block-start: 2.5rem;
}

.contact__list {
  margin-block-start: 2rem;
  border-block-start: 1px solid var(--line);
}

.contact__list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.1rem;
  border-block-end: 1px solid var(--line);
}

.contact__list dt {
  color: var(--muted);
}

.contact__list dd {
  font-size: 1.15rem;
  font-weight: 700;
}

.contact__list a:hover {
  color: var(--bronze);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 2rem;
}

/* The streets around the gym, drawn by site.js. A phone sees it first and edge to edge, cropped
   to the gym by the slice; its edges fade into the stone. */
.contact__map {
  display: none;
  order: -1;
  margin: 0 calc(var(--gutter) * -1);
}

.js .contact__map {
  display: block;
}

/* A tap on the map opens Neshan */
.contact__map-link {
  display: block;
}

.town {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.9;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent);
  mask-image: radial-gradient(closest-side, #000 70%, transparent);
}

.town__ground {
  fill: var(--stone);
}

.town__road {
  fill: #1a1d23;
}

.town__road--lit {
  fill: url(#town-lit);
}

.town__park {
  fill: #11171a;
}

.town__top {
  fill: #2a2d35;
  stroke: #363a44;
  stroke-width: 0.8;
}

.town__south {
  fill: #1c1f26;
}

.town__east {
  fill: #14161b;
}

.town__trunk {
  stroke: #0b0d0c;
  stroke-width: 2;
}

.town__tree {
  fill: #1c2a24;
  stroke: #26382f;
  stroke-width: 0.8;
}

.town__label {
  fill: var(--faint);
  font-size: 17px;
  font-weight: 700;
  text-anchor: middle;
}

.town__label--lit {
  fill: var(--text);
}

/* The light along the streets to the door, and two dashes running down it */
.town__beam {
  fill: none;
  stroke: var(--bronze-hi);
  stroke-width: 2.5;
  stroke-opacity: 0.45;
  stroke-linejoin: round;
}

.town__flow {
  fill: none;
  stroke: #fff3dc;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 44;
  stroke-dashoffset: 50;
  animation: town-flow 5s linear infinite;
}

/* The gym: a bronze shed under the light, the sheets of its walls and roof in thin lines */
.town__gym-front {
  fill: url(#town-gym-front);
}

.town__gym-side {
  fill: url(#town-gym-side);
}

.town__gym-roof {
  fill: #e4cfa6;
}

.town__gym-roof--east {
  fill: #c49a5c;
}

.town__sheets {
  fill: none;
  stroke: rgb(13 14 17 / 0.22);
  stroke-width: 0.8;
}

.town__ridge {
  fill: none;
  stroke: #fff3dc;
  stroke-width: 1.5;
}

.town__door {
  fill: #fff3dc;
}

.town__shutter {
  fill: none;
  stroke: rgb(110 83 48 / 0.45);
  stroke-width: 0.8;
}

/* The gym rises from the ground as the map comes on screen, then the bubble drops onto it */
.town__rise {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 1.3s var(--ease-out) 0.35s;
}

.js .contact__map:not(.is-in) .town__rise {
  transform: scaleY(0);
}

.town__pop {
  transition:
    opacity 0.6s var(--ease-out) 1.4s,
    transform 0.6s var(--ease-out) 1.4s;
}

.js .contact__map:not(.is-in) .town__pop {
  opacity: 0;
  transform: translateY(-16px);
}

.town__bob {
  animation: town-bob 3.2s ease-in-out infinite alternate;
}

.town__bubble {
  fill: var(--stone-2);
  stroke: var(--bronze);
  stroke-width: 1.2;
}

.town__logo {
  fill: var(--bronze-hi);
}

.town__name {
  fill: var(--text);
  font-size: 18px;
  font-weight: 800;
  text-anchor: middle;
}

/* ---------- Footer ---------- */

.footer {
  overflow: hidden;
  border-block-start: 1px solid var(--line);
}

.footer__word {
  margin-block-end: -0.18em;
  font-size: min(31vw, 24rem);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgb(200 155 87 / 0.35);
  background: linear-gradient(to bottom, rgb(200 155 87 / 0.1), transparent 75%);
  -webkit-background-clip: text;
  background-clip: text;
}

.footer__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__logo {
  height: 2rem;
}

.footer__instagram {
  margin-inline-start: auto;
}

.footer__instagram:hover {
  color: var(--bronze);
}

/* The eNamad's details at the foot of every page (roadmap 16.9): the pages, then the address,
   the postal code, the landline and the email. */
.footer__info {
  display: grid;
  gap: 1rem;
  padding-block: 1.75rem 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 2;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  color: var(--text);
  font-weight: 600;
}

.footer__address {
  font-style: normal;
}

.footer__links a:hover,
.footer__address a:hover {
  color: var(--bronze);
}

/* ---------- Pages of their own: «تماس با ما», «حریم خصوصی» (roadmap 16.9) ----------
   The public page's stone, bar and foot; their own content under the fixed bar. */

.page {
  padding-block: calc(4.25rem + env(safe-area-inset-top) + clamp(2.5rem, 8vw, 4.5rem))
    clamp(3.5rem, 10vw, 6rem);
}

.page__title {
  max-width: 22ch;
  margin-block-start: 0.75rem;
  font-size: clamp(1.75rem, 7.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.4;
}

.page__lead {
  max-width: 52ch;
  margin-block-start: 0.75rem;
  color: var(--muted);
  line-height: 1.9;
}

.page__columns {
  display: grid;
  gap: 2rem;
  margin-block-start: 2rem;
}

.page__list {
  margin-block-start: 0;
}

/* A long address goes to a second line under its name, not squeezed beside it. */
.page__list > div {
  flex-wrap: wrap;
}

.page__list dd {
  overflow-wrap: anywhere;
}

.page__side {
  display: grid;
  align-content: start;
  gap: 1.5rem;
}

.page__label {
  color: var(--bronze);
  font-size: 0.95rem;
  font-weight: 600;
  margin-block-end: 0.75rem;
}

@media (min-width: 900px) {
  .page__columns {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3.5rem;
  }
}

/* Reading text: the privacy page. */
.prose {
  max-width: 46rem;
  margin-block-start: 2.5rem;
  line-height: 2.1;
}

.prose h2 {
  margin-block: 2.25rem 0.5rem;
  color: var(--bronze);
  font-size: 1.2rem;
  font-weight: 700;
}

.prose ul {
  display: grid;
  gap: 0.4rem;
  padding-inline-start: 1.25rem;
  list-style: disc;
}

.prose li::marker {
  color: var(--bronze-lo);
}

.prose p {
  color: var(--text);
}

.prose a {
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.prose .prose__date {
  margin-block-start: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- The phone's bar ---------- */

.dock {
  position: fixed;
  inset-inline: 0.75rem;
  inset-block-end: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  padding-inline-start: 0.9rem;
  background: rgb(21 23 28 / 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 18px 40px rgb(0 0 0 / 0.5);
  translate: 0 160%;
  transition: translate 0.5s var(--ease-out);
}

.dock.is-on {
  translate: 0 0;
}

.dock__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.dock__actions {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 899px) {
  body {
    padding-block-end: 5rem;
  }
}

/* ---------- Reveal on scroll (only when site.js runs) ---------- */

.js [data-reveal] {
  opacity: 0;
  translate: 0 1.5rem;
  transition:
    opacity 0.9s var(--ease-out),
    translate 0.9s var(--ease-out);
}

.js [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Computer screen ---------- */

@media (min-width: 900px) {
  :root {
    --gutter: 2.5rem;
  }

  .topnav {
    display: flex;
    margin-inline-start: auto;
  }

  .topbar__join {
    margin-inline-start: 0.75rem;
  }

  .menu-button {
    display: none;
  }

  .dock {
    display: none;
  }

  .hero {
    align-content: center;
    padding-block: 8rem 9rem;
  }

  .hero__ghost {
    inset-block-start: auto;
    inset-block-end: 6%;
    font-size: min(30vw, 30rem);
  }

  /* The athlete stands on the end (left) side, the words on the start (right). */
  .hero__stage {
    inset-inline-start: auto;
    width: 62%;
  }

  .slide {
    -webkit-mask-image:
      linear-gradient(to left, transparent 0%, #000 38%),
      linear-gradient(to bottom, #000 55%, transparent 95%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to left, transparent 0%, #000 38%),
      linear-gradient(to bottom, #000 55%, transparent 95%);
    mask-composite: intersect;
  }

  .hero__content {
    max-width: 72rem;
  }

  .hero__content > * {
    max-width: 34rem;
  }

  .features {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }

  .feature:last-child {
    grid-column: auto;
  }

  .feature {
    padding: 1.75rem 1.5rem;
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .fact {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  /* The showcase: one big shelf, the rest around it, all seen at once */
  .shop__grid {
    grid-auto-flow: row dense;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 14rem;
    width: min(100% - var(--gutter) * 2, 72rem);
    margin-inline: auto;
    padding: 0;
    overflow: visible;
  }

  .shop__goods {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, 1fr);
    width: min(100% - var(--gutter) * 2, 72rem);
    margin-inline: auto;
    padding: 0;
    overflow: visible;
  }

  .shelf {
    aspect-ratio: auto;
  }

  .shelf--big {
    grid-row: span 2;
    grid-column: span 2;
  }

  .shelf--wide {
    grid-column: span 2;
  }

  /* Three columns, the photos in the page's order down each (a wide and a tall one per column,
     so the columns end level); none is cut */
  .gallery {
    display: block;
    columns: 3;
    column-gap: 0.75rem;
    width: min(100% - var(--gutter) * 2, 72rem);
    margin-inline: auto;
    padding: 0;
    overflow: visible;
  }

  .gallery__item {
    height: auto;
    margin-block-end: 0.75rem;
    break-inside: avoid;
  }

  .gallery__item img {
    display: block;
    width: 100%;
    height: auto;
  }

  .gallery__count {
    display: none;
  }

  .contact__list dd {
    font-size: 1.35rem;
  }

  /* The details at the start (right), the map beside them */
  .contact__body {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 3rem;
  }

  .contact__map {
    order: 0;
    margin: 0;
  }

  .town {
    aspect-ratio: 10 / 6.6;
  }
}

/* ---------- Keyframes ---------- */

@keyframes carve {
  from {
    clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 1.25rem;
  }
}
@keyframes progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes beam {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@keyframes walk-in {
  0% {
    opacity: 0;
    translate: -6px 0;
  }
  25%,
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    translate: 22px 0;
  }
}

@keyframes sweep-a {
  0%,
  100% {
    rotate: -10deg;
  }
  50% {
    rotate: 12deg;
  }
}

@keyframes sweep-b {
  0%,
  100% {
    rotate: -12deg;
  }
  50% {
    rotate: 10deg;
  }
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes wind {
  to {
    stroke-dashoffset: -11;
  }
}

@keyframes hint {
  0%,
  100% {
    scale: 1 0.2;
  }
  50% {
    scale: 1 1;
  }
}

@keyframes sheen {
  0%,
  70% {
    inset-inline-start: -40%;
  }
  100% {
    inset-inline-start: 130%;
  }
}

@keyframes ping {
  0% {
    opacity: 0.7;
    scale: 1;
  }
  100% {
    opacity: 0;
    scale: 3;
  }
}

/* Right to left: the band moves towards the reader's right, new words entering from the left. */
@keyframes band {
  to {
    translate: 50% 0;
  }
}

/* The streets' path has pathLength 100: one dash every 50, so a shift of 50 loops seamlessly */
@keyframes town-flow {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes town-bob {
  to {
    transform: translateY(-6px);
  }
}

/* ---------- Less motion when the phone asks for it ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    translate: 0 0;
  }

  .manifesto .w {
    color: var(--text);
  }
}
