/* ==========================================================================
   Fathipour Law — design tokens
   Ink: the green-black of a Hyrcanian forest night (Gilan).
   Paper: the cream of a qabaleh, the old Persian deed.
   Brass: the seal, the hairline frame, the calligraphy.
   The pointed Persian arch (taq) is the one recurring shape.
   ========================================================================== */
:root {
  --ink: #0E1A16;
  --ink-2: #13221D;
  --ink-3: #1A2D26;
  --ink-deep: #09120F;
  --paper: #F1E9DA;
  --paper-2: #E9DFCC;
  --paper-hi: #FAF6EE;
  --paper-ink: #1B2420;
  --sepia: #6B5A44;
  --brass: #B8925A;
  --brass-hi: #DCC08E;
  --brass-lo: #8D6B3C;
  --rain: #9AA79F;
  --error: #9B2C1F;
  --error-on-ink: #F0A493;
  --ok: #2F6B4B;

  --hair-ink: rgba(220, 192, 142, .16);
  --hair-paper: rgba(27, 36, 32, .12);

  --f-display: "Markazi Text", "Vazirmatn", Georgia, serif;
  --f-body: "Instrument Sans", "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4.2vw, 48px);
  --section: clamp(96px, 12vw, 176px);
  --radius: 28px;
  --radius-in: 22px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.32, .72, 0, 1);
  --ease-in: cubic-bezier(.55, 0, .75, .2);
  --dir: 1;

  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M0 130V61.1A62.33 62.33 0 0 1 50 0a62.33 62.33 0 0 1 50 61.1V130Z'/%3E%3C/svg%3E");
}
[dir="rtl"] { --dir: -1; }

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[lang="fa"] body, body:lang(fa) { line-height: 1.95; }
img, svg { display: block; max-width: 100%; }
svg use { pointer-events: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 104px; }
::selection { background: var(--brass); color: var(--ink); }

:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 6px; }
.section--paper :focus-visible, .bezel--paper :focus-visible { outline-color: var(--brass-lo); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset-inline-start: 16px; top: -80px; z-index: 100;
  padding: 10px 18px; border-radius: 999px; background: var(--brass); color: var(--ink);
  font-weight: 600; text-decoration: none; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* film grain, fixed so it never repaints with scrolling */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- layout */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--paper { background: var(--paper); color: var(--paper-ink); }

/* ---------------------------------------------------------------- type */
.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 1.25rem + 2.7vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin-bottom: .5em;
}
:lang(fa) .h2 { line-height: 1.35; letter-spacing: 0; }
.h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 1.1rem + .9vw, 1.95rem);
  line-height: 1.25;
  text-wrap: balance;
}
:lang(fa) .h3 { line-height: 1.5; }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.7; max-width: 40em; }
:lang(fa) .lead { line-height: 2; }
.lead--muted { opacity: .78; }
.section--paper .lead--muted { opacity: 1; color: var(--sepia); }

/* ---------------------------------------------------------------- buttons (island + nested icon) */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-icon-bg: rgba(255, 255, 255, .1);
  display: inline-flex; align-items: center; gap: .85rem;
  min-height: 48px;
  padding-block: 6px; padding-inline: 1.35rem 6px;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .98rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--btn-ring, transparent);
  transition: transform .6s var(--ease-spring), background-color .45s var(--ease-out),
              box-shadow .45s var(--ease-out), color .45s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn__icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--btn-icon-bg);
  transition: transform .6s var(--ease-spring), background-color .45s var(--ease-out);
}
.btn__icon svg { width: 18px; height: 18px; }
.btn:hover .btn__icon { transform: translate(calc(var(--dir) * 2px), -1px) scale(1.06); }
.btn--brass {
  --btn-bg: linear-gradient(135deg, #E3C894, #C29C61 55%, #A47E46);
  --btn-fg: var(--ink); --btn-icon-bg: rgba(14, 26, 22, .12);
  background: var(--btn-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 30px -14px rgba(184, 146, 90, .65);
}
.btn--brass:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 16px 36px -14px rgba(184, 146, 90, .8); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-icon-bg: rgba(220, 192, 142, .16); }
.btn--ink:hover { --btn-bg: var(--ink-3); }
.btn--ghost-light { --btn-ring: rgba(241, 233, 218, .28); --btn-fg: var(--paper); --btn-icon-bg: rgba(241, 233, 218, .1); }
.btn--ghost-light:hover { --btn-ring: rgba(220, 192, 142, .7); --btn-bg: rgba(220, 192, 142, .06); }
.section--paper .btn--ghost-light, .bezel--paper .btn--ghost-light {
  --btn-ring: rgba(27, 36, 32, .22); --btn-fg: var(--paper-ink); --btn-icon-bg: rgba(27, 36, 32, .07);
}
.btn--sm { min-height: 42px; font-size: .9rem; padding-inline-start: 1.1rem; }
.btn--sm .btn__icon { width: 30px; height: 30px; }
.btn--sm .btn__icon svg { width: 16px; height: 16px; }
.btn--lg { min-height: 56px; font-size: 1.04rem; padding-inline-start: 1.6rem; }
.btn--lg .btn__icon { width: 42px; height: 42px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.flip-prev { transform: scaleX(-1); }
[dir="rtl"] .flip-prev { transform: none; }

/* ---------------------------------------------------------------- double bezel */
.bezel {
  padding: 6px;
  border-radius: var(--radius);
  background: rgba(220, 192, 142, .045);
  box-shadow: inset 0 0 0 1px var(--hair-ink);
}
.bezel__core {
  border-radius: var(--radius-in);
  background: var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.bezel--paper { background: rgba(27, 36, 32, .035); box-shadow: inset 0 0 0 1px var(--hair-paper); }
.bezel--paper > .bezel__core {
  background: var(--paper-hi); color: var(--paper-ink);
  box-shadow: inset 0 1px 0 #fff, 0 30px 70px -40px rgba(60, 44, 20, .35);
}
.bezel--deep { background: rgba(14, 26, 22, .06); box-shadow: inset 0 0 0 1px rgba(14, 26, 22, .12); }
.bezel--deep > .bezel__core { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------- the bar association emblem, tinted by CSS */
.emblem {
  display: inline-block; flex: none; aspect-ratio: 1;
  background: var(--emblem, var(--brass));
  -webkit-mask: url("../img/gilan-bar-emblem.png") center / contain no-repeat;
  mask: url("../img/gilan-bar-emblem.png") center / contain no-repeat;
}
.emblem--sm { width: 30px; }
.emblem--lg { width: 88px; }
.emblem--xl { width: 128px; }

/* ==========================================================================
   Navigation — a floating island
   ========================================================================== */
.nav {
  position: fixed; inset-inline: 0; top: max(12px, env(safe-area-inset-top));
  z-index: 50; display: flex; justify-content: center; pointer-events: none;
}
.nav__island {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px);
  width: min(1180px, 100% - 24px);
  padding: 6px; padding-inline-start: 16px;
  border-radius: 999px;
  background: rgba(14, 26, 22, .66);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--hair-ink), 0 18px 50px -24px rgba(0, 0, 0, .6);
  transition: background-color .5s var(--ease-out), transform .7s var(--ease-spring);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); flex: none; }
.brand__mark { width: 26px; color: var(--brass); }
.brand__mark .mark { width: 100%; height: auto; }
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; }
.brand__role { font-size: .72rem; color: var(--rain); }
:lang(fa) .brand__name { font-size: 1.2rem; }
.nav__links { margin-inline-start: auto; }
.nav__links ul { display: flex; gap: clamp(4px, 1.2vw, 14px); }
.nav__links a {
  display: block; padding: 8px 10px; border-radius: 999px;
  font-size: .9rem; color: rgba(241, 233, 218, .82); text-decoration: none;
  transition: color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.nav__links a:hover { color: var(--brass-hi); background: rgba(220, 192, 142, .07); }
.nav__lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-ink); }
.nav__lang a {
  display: grid; place-items: center; min-width: 32px; height: 30px; padding-inline: 6px;
  border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  color: rgba(241, 233, 218, .7); text-decoration: none;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.nav__lang a:hover { color: var(--paper); }
.nav__lang a[aria-current] { background: rgba(220, 192, 142, .16); color: var(--brass-hi); }
.nav__toggle {
  display: none; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; background: rgba(241, 233, 218, .08); color: var(--paper);
}
.burger { position: relative; width: 18px; height: 12px; display: block; }
.burger i {
  position: absolute; inset-inline: 0; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform .55s var(--ease-spring), top .55s var(--ease-spring);
}
.burger i:first-child { top: 2px; }
.burger i:last-child { top: 9px; }
.nav.is-open .burger i:first-child { top: 5.5px; transform: rotate(45deg); }
.nav.is-open .burger i:last-child { top: 5.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: -1; pointer-events: auto;
  display: grid; align-content: center; gap: 48px;
  padding: 120px var(--gutter) 48px;
  background: rgba(9, 18, 15, .9);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  opacity: 0; transition: opacity .45s var(--ease-out);
}
.nav.is-open .menu { opacity: 1; }
.menu__links { display: grid; gap: 6px; }
.menu__links li {
  opacity: 0; transform: translateY(2.5rem);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-spring);
  transition-delay: calc(var(--i) * 55ms + 80ms);
}
.nav.is-open .menu__links li { opacity: 1; transform: none; }
.menu__links a {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.3; color: var(--paper); text-decoration: none;
}
.menu__links a:hover { color: var(--brass-hi); }
.menu__foot {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  opacity: 0; transform: translateY(1.5rem);
  transition: opacity .7s var(--ease-out) .4s, transform .9s var(--ease-spring) .4s;
}
.nav.is-open .menu__foot { opacity: 1; transform: none; }
.menu__lang { display: flex; gap: 16px; width: 100%; margin-top: 12px; }
.menu__lang a { color: var(--rain); text-decoration: none; font-size: .95rem; }
.menu__lang a[aria-current] { color: var(--brass-hi); }
body.menu-open { overflow: hidden; }

@media (max-width: 1080px) {
  .nav__links, .nav__lang { display: none; }
  .nav__toggle { display: grid; }
  .nav__cta { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .nav__cta span:first-child { display: none; }
  .nav__cta { padding-inline-start: 6px; gap: 0; }
  .brand__role { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100dvh;
  display: grid; align-items: center;
  padding-block: clamp(112px, 15vh, 150px) clamp(72px, 10vh, 120px);
  background:
    radial-gradient(70% 60% at 22% 40%, rgba(184, 146, 90, .10), transparent 70%),
    radial-gradient(60% 80% at 85% 10%, rgba(54, 84, 70, .45), transparent 70%),
    var(--ink);
  overflow: clip;
}
[dir="rtl"] .hero { background:
    radial-gradient(70% 60% at 78% 40%, rgba(184, 146, 90, .10), transparent 70%),
    radial-gradient(60% 80% at 15% 10%, rgba(54, 84, 70, .45), transparent 70%),
    var(--ink); }
.hero__glow {
  position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--ink), transparent);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; gap: clamp(32px, 6vw, 96px);
}
.hero__bar {
  display: flex; align-items: center; gap: 12px;
  font-size: .9rem; color: var(--rain); margin-bottom: clamp(20px, 3vh, 36px);
}
.hero__bar .emblem { --emblem: var(--brass-hi); }
.hero__title { display: grid; gap: .35rem; font-weight: inherit; }
.hero__calligraphy { display: block; width: clamp(250px, 33vw, 500px); margin-inline-start: -.4rem; }
.hero__calligraphy .nastaliq { width: 100%; height: auto; overflow: visible; }
.hero__calligraphy path { fill: url(#brass-grad); }
/* Latin pages: the name in a formal roundhand, the English counterpart of Nastaliq */
.hero__script {
  display: block; width: max-content; max-width: 100%;
  padding: .12em .3em .22em 0; margin-inline-start: -.08em;
  font-family: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  font-weight: 400; font-size: clamp(3.1rem, 1.6rem + 4.6vw, 6.4rem); line-height: 1.15;
  background: linear-gradient(135deg, #E9D2A1 0%, #C9A56B 45%, #94703F 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero__role {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.55rem, 1.05rem + 1.7vw, 2.55rem); line-height: 1.25;
  color: var(--paper);
}
:lang(fa) .hero__role { line-height: 1.55; }
.hero__lead {
  margin-top: clamp(16px, 2.5vh, 28px);
  max-width: 33em; font-size: clamp(1.05rem, .98rem + .3vw, 1.22rem);
  color: rgba(241, 233, 218, .78);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4vh, 40px); }
.hero__facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin-top: clamp(32px, 5vh, 56px);
}
.hero__facts li {
  display: grid; gap: 2px; padding-inline: clamp(14px, 2vw, 26px);
  border-inline-start: 1px solid var(--hair-ink);
}
.hero__facts li:first-child { padding-inline-start: 0; border: 0; }
.hero__facts strong { font-family: var(--f-display); font-weight: 600; font-size: 1.22rem; color: var(--brass-hi); line-height: 1.3; }
.hero__facts span { font-size: .84rem; color: var(--rain); }

.hero__figure { position: relative; }
.arch { position: relative; width: min(100%, 460px); aspect-ratio: 100 / 130; margin-inline: auto; }
.arch__glow {
  position: absolute; inset: 0;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
  background:
    radial-gradient(70% 45% at 50% 26%, rgba(220, 192, 142, .30), transparent 70%),
    linear-gradient(to bottom, #2B4239 0%, #1A2D26 50%, #13221D 100%);
}
.arch__frame { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; }
.arch__frame path { fill: none; stroke: var(--brass); stroke-width: 1.2; }
.arch__frame .arch__frame-inner { stroke-width: .7; opacity: .55; }
.arch__portrait { position: absolute; inset-inline: 7%; bottom: 0; top: -13%; overflow: hidden; }
.arch__portrait img {
  position: absolute; bottom: 0; left: 50%;
  width: 128%; max-width: none; height: auto;
  transform: translateX(-50%);
  -webkit-mask-image: url("../img/portrait-mask.png"), linear-gradient(to top, transparent 0%, #000 20%);
  -webkit-mask-size: 100% 100%, 100% 100%;
  -webkit-mask-composite: source-in;
  mask-image: url("../img/portrait-mask.png"), linear-gradient(to top, transparent 0%, #000 20%);
  mask-size: 100% 100%, 100% 100%;
  mask-composite: intersect;
  filter: saturate(.92) contrast(1.04);
}
.hero__scroll {
  position: absolute; bottom: clamp(16px, 3vh, 32px); left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 6px;
  font-size: .78rem; color: var(--rain); text-decoration: none;
}
.hero__scroll svg { width: 18px; height: 18px; animation: nudge 2.6s var(--ease-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(6px); opacity: 1; } }

/* the one orchestrated load moment: the name is written in, then the page settles */
@media (prefers-reduced-motion: no-preference) {
  .hero__calligraphy .nastaliq {
    -webkit-mask-image: linear-gradient(to right, transparent 0 44%, #000 56% 100%);
    mask-image: linear-gradient(to right, transparent 0 44%, #000 56% 100%);
    -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: ink-write 2.4s cubic-bezier(.45, .05, .25, 1) .25s both;
  }
  /* Latin roundhand is written left to right */
  .hero__script {
    -webkit-mask-image: linear-gradient(to right, #000 0 44%, transparent 56% 100%);
    mask-image: linear-gradient(to right, #000 0 44%, transparent 56% 100%);
    -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: ink-write-ltr 2.2s cubic-bezier(.45, .05, .25, 1) .3s both;
  }
  .hero__bar, .hero__role, .hero__lead, .hero__ctas, .hero__facts {
    animation: rise 1.1s var(--ease-out) both;
  }
  .hero__bar { animation-delay: .1s; }
  .hero__role { animation-delay: 1.35s; }
  .hero__lead { animation-delay: 1.5s; }
  .hero__ctas { animation-delay: 1.65s; }
  .hero__facts { animation-delay: 1.8s; }
  .arch { animation: arch-in 1.6s var(--ease-out) .05s both; }
  .arch__frame path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: frame-draw 2.6s var(--ease-out) .2s forwards; }
  .arch__portrait img { animation: portrait-in 1.9s var(--ease-out) .45s both; }
  .hero__scroll { animation: rise 1s var(--ease-out) 2.2s both; }
}
@keyframes ink-write { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 100% 0; mask-position: 100% 0; } }
@keyframes ink-write-ltr { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes arch-in { from { opacity: 0; transform: translateY(28px) scale(.97); } }
@keyframes frame-draw { to { stroke-dashoffset: 0; } }
@keyframes portrait-in { from { opacity: 0; transform: translate(-50%, 5%); } }

@media (max-width: 900px) {
  .hero { align-items: start; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__figure { order: -1; }
  .arch { width: min(68vw, 330px); }
  .hero__calligraphy { width: min(78vw, 400px); }
  .hero__facts { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .hero__facts li:nth-child(3) { grid-column: 1 / -1; padding-inline-start: 0; border: 0; }
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Manifesto — walking through the arch
   ========================================================================== */
.portal { position: relative; background: var(--paper); color: var(--paper-ink); }
.portal__sticky { padding-block: var(--section); }
.portal__door { display: none; }
.portal__content { position: relative; z-index: 1; max-width: 980px; }
.portal__label { font-size: .95rem; color: var(--sepia); margin-bottom: 1.4rem; display: flex; align-items: center; gap: 12px; }
.portal__label::before { content: ""; width: 36px; height: 1px; background: var(--brass); }
.portal__quote p {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.55rem, .95rem + 2.15vw, 2.95rem);
  line-height: 1.45; text-wrap: pretty;
}
:lang(fa) .portal__quote p { line-height: 1.75; }
.portal__sign {
  display: flex; align-items: center; gap: 14px; margin-top: 2rem;
  font-family: var(--f-display); font-size: 1.25rem; color: var(--sepia);
}
.portal__sign-line { width: 48px; height: 1px; background: var(--brass); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .portal { height: 300vh; background: var(--ink); view-timeline: --portal block; }
    .portal__sticky {
      position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 0;
      display: grid; place-items: center; overflow: hidden;
    }
    .portal__door {
      display: block; position: absolute; left: 50%; top: 50%;
      width: min(38vw, 330px); aspect-ratio: 100 / 130;
      margin: calc(min(38vw, 330px) * -.65) 0 0 calc(min(38vw, 330px) * -.5);
      background: var(--paper);
      -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
      transform-origin: 50% 58%;
      animation: door-open linear both;
      animation-timeline: --portal;
      animation-range: contain 0% contain 38%;
    }
    .portal__door::after {
      content: ""; position: absolute; inset: 0;
      box-shadow: inset 0 0 0 1px var(--brass);
    }
    .portal__content { opacity: 0; animation: fade-in linear both; animation-timeline: --portal; animation-range: contain 26% contain 40%; }
    .portal__quote .w {
      color: rgba(27, 36, 32, .14);
      animation: word-lit linear both;
      animation-timeline: --portal;
      animation-range: contain var(--s, 40%) contain var(--e, 44%);
    }
  }
}
@media (max-width: 700px) {
  .portal__door { width: 58vw !important; margin: -37.7vw 0 0 -29vw !important; }
}
@keyframes door-open { from { transform: scale(.6); } to { transform: scale(11); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes word-lit { to { color: var(--paper-ink); } }

/* ==========================================================================
   About + credential certificate
   ========================================================================== */
.about { padding-top: clamp(40px, 6vw, 96px); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.about__text p + p { margin-top: 1.2em; }
.about__text p { max-width: 36em; color: rgba(27, 36, 32, .86); }
.about__text .lead { color: var(--paper-ink); }
.certificate { position: relative; padding: clamp(28px, 4vw, 48px); overflow: hidden; }
.certificate::before, .certificate::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 14px;
}
.certificate::before { inset: 12px; box-shadow: inset 0 0 0 1px rgba(184, 146, 90, .55); }
.certificate::after { inset: 17px; box-shadow: inset 0 0 0 .5px rgba(184, 146, 90, .35); border-radius: 10px; }
.certificate__head { display: grid; justify-items: center; gap: 14px; text-align: center; margin-bottom: 28px; }
.certificate__head .emblem { --emblem: var(--paper-ink); width: 78px; }
.certificate__title { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; }
.certificate__list { display: grid; }
.certificate__list > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; padding-block: 12px; border-top: 1px dashed rgba(27, 36, 32, .16); }
.certificate__list > div:last-child { border-bottom: 1px dashed rgba(27, 36, 32, .16); }
.certificate__list dt { font-size: .85rem; color: var(--sepia); padding-top: .2em; }
.certificate__list dd { font-family: var(--f-display); font-size: 1.12rem; line-height: 1.45; font-weight: 500; }
.certificate__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.certificate__seal { width: 44px; color: var(--brass); }
.certificate__sign { width: 150px; }
.certificate__sign .nastaliq { width: 100%; height: auto; }
.certificate__sign--script {
  width: auto; font-family: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  font-size: 2.1rem; line-height: 1.2; color: var(--paper-ink); opacity: .85; white-space: nowrap;
}
.certificate__sign path { fill: var(--paper-ink); opacity: .82; }
.certificate__verify {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-size: .86rem; color: var(--sepia);
}
.certificate__verify svg { width: 18px; height: 18px; color: var(--ok); }
.certificate__verify:hover { color: var(--paper-ink); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Practice areas — Apple-style gallery
   ========================================================================== */
.practice__head { margin-bottom: clamp(36px, 5vw, 64px); }
.gallery { position: relative; }
.gallery__track {
  --pad: max(var(--gutter), (100% - var(--container)) / 2);
  position: relative; /* keeps absolutely positioned children inside the scroller */
  display: flex; gap: clamp(14px, 2vw, 28px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding-inline: var(--pad); padding-block: 8px 24px;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 min(1000px, 86vw); scroll-snap-align: start; }
.slide__bezel { height: 100%; }
.slide__core {
  height: 100%;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  min-height: clamp(460px, 56vh, 560px); overflow: hidden;
  background:
    radial-gradient(80% 70% at 20% 30%, rgba(54, 84, 70, .55), transparent 70%),
    var(--ink-2);
}
[dir="rtl"] .slide__core { background:
    radial-gradient(80% 70% at 80% 30%, rgba(54, 84, 70, .55), transparent 70%),
    var(--ink-2); }
.slide__art { position: relative; display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); }
.slide__art::before {
  content: ""; position: absolute; width: min(78%, 340px); aspect-ratio: 100 / 130;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
  background: linear-gradient(to bottom, rgba(220, 192, 142, .10), rgba(220, 192, 142, .02));
}
.art { position: relative; width: min(100%, 420px); height: auto; color: var(--brass); }
.art__rain { opacity: .35; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.draw-fill { fill: none; stroke-width: 1.2; }
.gallery.is-ready .draw { stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-out); }
.gallery.is-ready .draw-fill { opacity: 0; transition: opacity 1.2s var(--ease-out) 1.4s; }
.gallery.is-ready .slide.is-drawn .draw { stroke-dashoffset: 0; }
.gallery.is-ready .slide.is-drawn .draw-fill { opacity: 1; }
.slide.is-drawn .draw:nth-of-type(2) { transition-delay: .1s; }
.slide.is-drawn .draw:nth-of-type(3) { transition-delay: .2s; }
.slide.is-drawn .draw:nth-of-type(4) { transition-delay: .3s; }
.slide.is-drawn .draw:nth-of-type(5) { transition-delay: .4s; }
.slide.is-drawn .draw:nth-of-type(n+6) { transition-delay: .55s; }
.slide__body { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 56px); padding-inline-start: clamp(8px, 1vw, 16px); }
.slide__summary { color: rgba(241, 233, 218, .78); max-width: 32em; }
.slide__services {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px;
  padding-block: 18px; margin-block: 4px 6px;
  border-block: 1px solid var(--hair-ink);
  font-size: .95rem;
}
.slide__services li { position: relative; padding-inline-start: 18px; line-height: 1.55; }
.slide__services li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .62em;
  width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg);
}
.slide__body .btn { align-self: flex-start; margin-top: auto; }

.gallery__controls { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.gallery__dots {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: rgba(241, 233, 218, .06); box-shadow: inset 0 0 0 1px var(--hair-ink);
}
.gallery__dot {
  position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(241, 233, 218, .35); overflow: hidden;
  transition: width .6s var(--ease-spring), background-color .4s var(--ease-out);
}
.gallery__dot::after { content: ""; position: absolute; inset: -12px -4px; }
.gallery__dot.is-active { width: 46px; background: rgba(241, 233, 218, .2); }
.gallery__dot-fill { position: absolute; inset: 0; background: var(--brass-hi); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .gallery__dot-fill { transform-origin: right center; }
.gallery__dot.is-active .gallery__dot-fill { animation: dot-fill var(--autoplay, 7s) linear forwards; }
.gallery.is-paused .gallery__dot.is-active .gallery__dot-fill,
.gallery:not(.is-playing) .gallery__dot.is-active .gallery__dot-fill { animation: none; transform: scaleX(1); }
@keyframes dot-fill { to { transform: scaleX(1); } }
.gallery__btn {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(241, 233, 218, .07); color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--hair-ink);
  transition: background-color .35s var(--ease-out), transform .5s var(--ease-spring);
}
.gallery__btn:hover { background: rgba(220, 192, 142, .14); }
.gallery__btn:active { transform: scale(.94); }
.gallery__btn:disabled { opacity: .35; cursor: default; }
.gallery__btn svg { width: 18px; height: 18px; }
.gallery__play .i-play { display: none; }
.gallery.is-paused .gallery__play .i-play, .gallery:not(.is-playing) .gallery__play .i-play { display: block; }
.gallery.is-paused .gallery__play .i-pause, .gallery:not(.is-playing) .gallery__play .i-pause { display: none; }
.gallery__arrows { display: flex; gap: 8px; margin-inline-start: auto; }

@media (max-width: 820px) {
  .slide { flex-basis: 88vw; }
  .slide__core { grid-template-columns: 1fr; min-height: 0; }
  .slide__art { padding: 28px 28px 0; }
  .slide__art::before { width: 54%; }
  .art { width: min(80%, 320px); }
  .slide__body { padding: 20px 24px 28px; }
  .slide__services { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Audiences — bento
   ========================================================================== */
.bento {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(36px, 5vw, 64px);
}
.bento__main { grid-row: span 2; }
.bento > .bezel > .bezel__core { height: 100%; }
.abroad { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 52px); }
.abroad > p { color: rgba(241, 233, 218, .8); max-width: 36em; }
.abroad__icon, .audience__icon { width: 40px; height: 40px; color: var(--brass); }
.abroad .btn { align-self: flex-start; margin-top: auto; }
.abroad__note { font-size: .92rem; color: var(--rain) !important; }
.clock {
  display: grid; gap: 6px; padding: 18px 20px; border-radius: 18px;
  background: rgba(220, 192, 142, .06); box-shadow: inset 0 0 0 1px var(--hair-ink);
}
.clock__title { font-size: .85rem; color: var(--rain); }
.clock__hours { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.clock__hours strong { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: var(--brass-hi); line-height: 1.3; }
.clock__now { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--rain); }
.clock__now svg { width: 16px; height: 16px; }
.clock__now strong { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
.audience { display: grid; align-content: start; gap: 14px; padding: clamp(26px, 3vw, 40px); }
.audience p { color: rgba(27, 36, 32, .8); }
@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr; }
  .bento__main { grid-row: auto; }
}

/* ==========================================================================
   Process — a real sequence, so it is numbered
   ========================================================================== */
.steps {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px); margin-top: clamp(36px, 5vw, 64px);
}
.steps::before {
  content: ""; position: absolute; top: 28px; inset-inline: 28px; height: 1px;
  background: linear-gradient(to right, var(--brass), rgba(184, 146, 90, .2));
  transform-origin: left center;
}
[dir="rtl"] .steps::before { background: linear-gradient(to left, var(--brass), rgba(184, 146, 90, .2)); transform-origin: right center; }
.step { position: relative; display: grid; gap: 12px; align-content: start; }
.step__num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--brass-hi);
  box-shadow: inset 0 0 0 1px var(--brass), 0 0 0 8px var(--ink);
  font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; line-height: 1;
}
.step__title { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; line-height: 1.3; margin-top: 10px; }
:lang(fa) .step__title { line-height: 1.6; }
.step p { color: rgba(241, 233, 218, .74); font-size: .98rem; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::before { animation: line-grow linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  }
}
@keyframes line-grow { from { transform: scaleX(0); } }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { grid-template-columns: 56px 1fr; column-gap: 18px; }
  .step__num { grid-row: span 2; }
  .step__title { margin-top: 6px; }
}

/* ==========================================================================
   Booking
   ========================================================================== */
.booking__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(28px, 4vw, 48px); }
.booking__facts { display: flex; flex-wrap: wrap; gap: 0; }
.booking__facts > div { padding-inline: 22px; border-inline-start: 1px solid var(--hair-paper); }
.booking__facts > div:first-child { padding-inline-start: 0; border: 0; }
.booking__facts dt { font-size: .82rem; color: var(--sepia); }
.booking__facts dd { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.4; }

.bk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
.bk__main { padding: clamp(22px, 3.5vw, 44px); display: grid; gap: clamp(28px, 3.5vw, 40px); min-width: 0; }
.bk__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.bk__step[disabled] { opacity: .55; }
.bk__legend {
  display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.35rem;
}
.bk__num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--brass-hi); font-size: 1rem; flex: none;
}
.bk__status { font-size: .92rem; color: var(--sepia); }
.bk__status:empty { display: none; }
.bk__status .btn { margin-top: 10px; }
.bk__days-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.bk__days {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 2px 10px; scrollbar-width: thin; scrollbar-color: rgba(27, 36, 32, .2) transparent;
  flex: 1; min-width: 0;
}
.bk__scroll {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #fff; color: var(--paper-ink); box-shadow: inset 0 0 0 1px var(--hair-paper);
}
.bk__scroll svg { width: 16px; height: 16px; }
.choice { position: relative; flex: none; scroll-snap-align: start; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice input:disabled { cursor: not-allowed; }
.day {
  display: grid; justify-items: center; gap: 2px; width: 104px; padding: 14px 8px 12px;
  border-radius: 18px; background: #fff; text-align: center;
  box-shadow: inset 0 0 0 1px var(--hair-paper);
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .5s var(--ease-spring);
}
.day__wd { font-size: .8rem; color: var(--sepia); }
.day__num { font-family: var(--f-display); font-weight: 600; font-size: 2rem; line-height: 1.1; }
.day__month { font-size: .8rem; }
.day__state { margin-top: 6px; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: rgba(47, 107, 75, .1); color: var(--ok); }
.choice:hover input:not(:disabled) + .day { box-shadow: inset 0 0 0 1px rgba(184, 146, 90, .8); }
.choice input:checked + .day { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--brass), 0 16px 30px -18px rgba(14, 26, 22, .7); transform: translateY(-2px); }
.choice input:checked + .day .day__wd { color: var(--rain); }
.choice input:checked + .day .day__state { background: rgba(220, 192, 142, .16); color: var(--brass-hi); }
.choice input:disabled + .day { background: transparent; opacity: .55; }
.choice input:disabled + .day .day__state { background: rgba(27, 36, 32, .06); color: var(--sepia); }
.choice input:focus-visible + .day, .choice input:focus-visible + .slot { outline: 2px solid var(--brass-lo); outline-offset: 3px; }

.bk__tz { font-size: .86rem; color: var(--sepia); margin-bottom: 14px; }
.bk__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.bk__hint { grid-column: 1 / -1; font-size: .92rem; color: var(--sepia); }
.slot {
  display: grid; justify-items: center; gap: 0; padding: 12px 8px; border-radius: 16px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--hair-paper); text-align: center;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.slot__time { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.3; }
.slot__local { font-size: .74rem; color: var(--sepia); }
.slot__state { font-size: .74rem; color: var(--sepia); }
.choice:hover input:not(:disabled) + .slot { box-shadow: inset 0 0 0 1px rgba(184, 146, 90, .8); }
.choice input:checked + .slot { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--brass); }
.choice input:checked + .slot .slot__local { color: var(--rain); }
.choice input:disabled + .slot { background: transparent; }
.choice input:disabled + .slot .slot__time { text-decoration: line-through; text-decoration-thickness: 1px; opacity: .45; }

.bk__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--sepia); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 14px;
  background: #fff; color: var(--paper-ink);
  box-shadow: inset 0 0 0 1px rgba(27, 36, 32, .16);
  transition: box-shadow .3s var(--ease-out);
  font-size: 1rem;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(27, 36, 32, .3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brass); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error); }
.field input[dir="ltr"] { text-align: left; }
[dir="rtl"] .field input[dir="ltr"]::placeholder { text-align: right; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; inset-inline-end: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-inline-end: 1.5px solid var(--sepia); border-bottom: 1.5px solid var(--sepia); transform: rotate(45deg); pointer-events: none;
}
.field__hint { font-size: .8rem; color: var(--sepia); line-height: 1.6; }
.field__error { font-size: .84rem; color: var(--error); font-weight: 600; line-height: 1.5; }
.field__error:empty { display: none; }
.terms { margin-top: 22px; border-radius: 14px; background: rgba(27, 36, 32, .04); }
.terms summary { padding: 12px 16px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.terms ul { padding: 0 16px 14px; display: grid; gap: 6px; font-size: .9rem; color: var(--sepia); }
.terms li { position: relative; padding-inline-start: 16px; }
.terms li::before { content: ""; position: absolute; inset-inline-start: 0; top: .75em; width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg); }
.check { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.check label { font-size: .95rem; cursor: pointer; }
.bk__errors { padding: 16px 18px; border-radius: 14px; background: rgba(155, 44, 31, .07); color: var(--error); box-shadow: inset 0 0 0 1px rgba(155, 44, 31, .25); }
.bk__errors p { font-weight: 600; }
.bk__errors ul { list-style: disc; padding-inline-start: 20px; margin-top: 6px; }
.bk__errors a { color: inherit; }

.bk__summary {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(22px, 3vw, 36px);
  border-inline-start: 1px solid var(--hair-paper);
  background: linear-gradient(to bottom, rgba(233, 223, 204, .45), rgba(233, 223, 204, .15));
  border-start-end-radius: var(--radius-in); border-end-end-radius: var(--radius-in);
}
.bk__summary > * { position: relative; }
.bk__summary-title { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; }
.bk__ticket {
  display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--hair-paper); min-height: 96px; align-content: start;
}
.bk__ticket-empty { font-size: .92rem; color: var(--sepia); }
.bk__ticket dl { display: grid; gap: 10px; }
.bk__ticket dt { font-size: .76rem; color: var(--sepia); }
.bk__ticket dd { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; line-height: 1.4; }
.bk__ticket .bk__local { font-family: var(--f-body); font-weight: 400; font-size: .8rem; color: var(--sepia); }
.bk__price { display: flex; justify-content: space-between; align-items: baseline; padding-block: 12px; border-block: 1px dashed rgba(27, 36, 32, .2); }
.bk__price > div { display: contents; }
.bk__price dt { font-size: .9rem; color: var(--sepia); }
.bk__price dd { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; }
.bk__submit { width: 100%; justify-content: space-between; }
.bk__submit[aria-busy="true"] { opacity: .8; cursor: progress; }
.bk__submit[aria-busy="true"] .btn__icon svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bk__note { display: flex; gap: 8px; font-size: .82rem; color: var(--sepia); line-height: 1.6; }
.bk__note svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 2px; }
.bk__note--soft { display: block; }
.bk__note a { color: var(--paper-ink); font-weight: 600; }
.bk__test { font-size: .78rem; padding: 8px 12px; border-radius: 10px; background: rgba(184, 146, 90, .16); color: var(--brass-lo); }
.bk__noscript { margin-top: 20px; }

@media (min-width: 981px) {
  .bk__summary > .bk__summary-title { position: sticky; top: 100px; }
}
@media (max-width: 980px) {
  .bk { grid-template-columns: 1fr; }
  .bk__summary { border-inline-start: 0; border-top: 1px solid var(--hair-paper); border-radius: 0 0 var(--radius-in) var(--radius-in); }
}
@media (max-width: 600px) {
  .bk__fields { grid-template-columns: 1fr; }
  .bk__scroll { display: none !important; }
  .day { width: 92px; }
  .booking__facts { gap: 12px 28px; }
  .booking__facts > div { padding-inline: 0; border: 0; }
}

/* booking by WhatsApp (static hosting version) */
.wa-book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
.wa-book__main { display: grid; gap: 18px; align-content: start; padding: clamp(22px, 3.5vw, 44px); }
.wa-book__text { color: rgba(27, 36, 32, .82); max-width: 34em; }
.wa-book__list { display: grid; gap: 12px; margin-top: 6px; }
.wa-book__list li { display: flex; gap: 12px; align-items: flex-start; }
.wa-book__list svg { width: 20px; height: 20px; flex: none; color: var(--brass-lo); margin-top: 4px; }
.wa-book__side { justify-content: center; }
@media (max-width: 980px) {
  .wa-book { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Documents (tabs)
   ========================================================================== */
.documents__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.tabs__list {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(241, 233, 218, .06); box-shadow: inset 0 0 0 1px var(--hair-ink); margin-bottom: 24px;
}
.tabs__list button {
  min-height: 42px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent;
  color: rgba(241, 233, 218, .75); font-size: .92rem; font-weight: 600;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
.tabs__list button:hover { color: var(--paper); }
.tabs__list button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.tabs__panel:focus-visible { outline-offset: 8px; }
.checklist { display: grid; gap: 4px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 4px;
  border-bottom: 1px solid var(--hair-ink); font-size: 1.02rem;
}
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--brass); margin-top: 3px; }
@media (max-width: 900px) { .documents__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--hair-paper); }
.qa { border-bottom: 1px solid var(--hair-paper); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 22px; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 1rem + .4vw, 1.35rem); line-height: 1.45;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair-paper); transition: transform .5s var(--ease-spring), background-color .3s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .5s var(--ease-spring); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { background: var(--ink); color: var(--brass-hi); }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa summary:hover .qa__icon { box-shadow: inset 0 0 0 1px var(--brass); }
.qa__answer { padding-bottom: 24px; color: rgba(27, 36, 32, .82); max-width: 44em; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; transition: height .55s var(--ease-spring), content-visibility .55s allow-discrete; }
  .qa[open]::details-content { height: auto; }
}
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__list { display: grid; margin-top: 32px; border-top: 1px solid var(--hair-ink); }
.contact__list > div { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, 1fr); gap: 18px; padding-block: 18px; border-bottom: 1px solid var(--hair-ink); }
.contact__list dt { display: flex; align-items: center; gap: 10px; color: var(--rain); font-size: .92rem; }
.contact__list dt svg { width: 20px; height: 20px; color: var(--brass); flex: none; }
.contact__list dd { font-size: 1.05rem; }
.contact__list a { color: var(--paper); text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--brass-hi); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.verify { display: grid; justify-items: start; gap: 14px; padding: clamp(28px, 3.5vw, 44px); }
.verify .emblem { --emblem: var(--brass); width: 108px; margin-bottom: 6px; }
.verify > p { color: rgba(241, 233, 218, .76); font-size: .96rem; }
.verify__codes { display: flex; flex-wrap: wrap; gap: 10px; }
.verify__code { display: flex; align-items: baseline; gap: 12px; padding: 12px 18px; border-radius: 14px; background: rgba(220, 192, 142, .07); box-shadow: inset 0 0 0 1px var(--hair-ink); }
.verify__code span { font-size: .85rem; color: var(--rain); }
.verify__code strong { font-family: var(--f-display); font-size: 1.9rem; color: var(--brass-hi); letter-spacing: .04em; line-height: 1; }
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__list > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ==========================================================================
   Footer + WhatsApp
   ========================================================================== */
.footer { background: var(--ink-deep); color: rgba(241, 233, 218, .78); padding-block: 72px 32px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--hair-ink); }
.footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.footer__mark { width: 40px; color: var(--brass); flex: none; }
.footer__name { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; color: var(--paper); }
.footer__tagline { margin-top: 4px; color: var(--rain); max-width: 26em; }
.footer__nav ul { display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--brass-hi); }
.footer__contact { display: grid; gap: 10px; align-content: start; }
.footer__lang { display: flex; gap: 14px; margin-top: 8px; }
.footer__lang a[aria-current] { color: var(--brass-hi); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; padding-top: 24px; padding-inline-end: 76px; font-size: .82rem; color: var(--rain); }
.footer__top { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.footer__top svg { width: 16px; height: 16px; transform: rotate(180deg); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } .footer__top { margin-inline-start: 0; } }

.wa-float {
  position: fixed; z-index: 40; inset-inline-end: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #1F6B47; color: #F4FBF6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 14px 30px -12px rgba(0, 0, 0, .55);
  transition: transform .6s var(--ease-spring), background-color .3s var(--ease-out);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: #237A51; }
.wa-float:active { transform: scale(.96); }

/* ==========================================================================
   Scroll-scrubbed entrances (no JavaScript; browsers without support simply show content)
   ========================================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
    .hero__figure { animation: hero-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .hero__text { animation: hero-text-out linear both; animation-timeline: view(); animation-range: exit 0% exit 80%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(56px) scale(.985); } }
@keyframes hero-out { to { transform: translateY(14%) scale(1.05); opacity: .15; } }
@keyframes hero-text-out { to { transform: translateY(-8%); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .gallery__dot.is-active .gallery__dot-fill { transform: scaleX(1); }
}

/* ==========================================================================
   Secondary pages (booking result, 404, test gateway)
   ========================================================================== */
.page { min-height: 100dvh; display: grid; place-items: center; padding: 120px var(--gutter) 80px; background: var(--paper); color: var(--paper-ink); }
.page--ink { background: var(--ink); color: var(--paper); }
.result { width: min(720px, 100%); }
.result__core { padding: clamp(28px, 5vw, 56px); display: grid; gap: 20px; }
.result__badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--brass-hi); }
.result__badge svg { width: 30px; height: 30px; }
.result__badge--bad { background: rgba(155, 44, 31, .1); color: var(--error); }
.result__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); line-height: 1.25; }
:lang(fa) .result__title { line-height: 1.5; }
.result__text { color: var(--sepia); }
.result__ticket { display: grid; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair-paper); }
.result__ticket > div { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: 14px; padding: 14px 20px; border-bottom: 1px dashed rgba(27, 36, 32, .16); }
.result__ticket > div:last-child { border-bottom: 0; }
.result__ticket dt { font-size: .85rem; color: var(--sepia); }
.result__ticket dd { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; }
.result__code { font-family: var(--f-body) !important; letter-spacing: .08em; }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mock { width: min(520px, 100%); }
.mock__core { padding: 36px; display: grid; gap: 16px; }
.mock__banner { padding: 10px 14px; border-radius: 12px; background: rgba(184, 146, 90, .18); color: var(--brass-lo); font-size: .9rem; }
.page__brand { position: fixed; top: 20px; inset-inline-start: 24px; display: flex; gap: 10px; align-items: center; color: var(--paper-ink); text-decoration: none; }
.page__brand .brand__mark { color: var(--brass-lo); }
@media print {
  .nav, .wa-float, .result__actions, body::after { display: none !important; }
  .page { padding: 0; min-height: 0; }
}
