/* ==================================================================
   بهگر — site.css
   زبان بصری: مرکب و زر، نقطهٔ لوزی قلم، کشیده و حاشیه
   ================================================================== */

:root {
  --ink: #032d4b;
  --ink-deep: #02223a;
  --ink-2: #0a3a5c;
  --mist: #e8edf0;
  --paper: #f5f8f9;
  --gold: #b99154;
  --gold-hi: #d6b06f;
  --gold-deep: #7a5c2c;
  --slate: #4d6677;
  --fog: #a9bccb;
  --alert: #b4543a;
  --line: rgba(3, 45, 75, .18);
  --line-ink: rgba(232, 237, 240, .16);

  --f-d: 'Markazi Text', 'Noto Naskh Arabic', 'Times New Roman', serif;
  --f-t: 'IBM Plex Sans Arabic', Vazirmatn, Tahoma, sans-serif;

  --rail: 84px;
  --gut: clamp(20px, 5vw, 76px);
  --max: 1260px;
  --nib: 1.1em;
  --ease: cubic-bezier(.42, 0, .28, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--f-t);
  font-size: 1.0625rem;
  line-height: 1.95;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-hi); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }
.s-mist :focus-visible, .s-paper :focus-visible { outline-color: var(--ink); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: -100px; right: 16px; z-index: 100; background: var(--gold-hi); color: var(--ink); padding: .6em 1em; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; position: relative; z-index: 2; }

.s-ink { background: var(--ink); color: var(--mist); }
.s-deep { background: var(--ink-deep); color: var(--mist); }
.s-mist { background: var(--mist); }
.s-paper { background: var(--paper); }

main { margin-inline-start: var(--rail); position: relative; }
section { position: relative; }

/* ---------- نقطهٔ لوزی ---------- */
.nowrap { white-space: nowrap; }
.h-sec .line { display: block; }
.pt {
  display: inline-block; width: .15em; height: .15em;
  background: var(--gold-hi); transform: rotate(45deg);
  margin-inline-start: .1em; vertical-align: .08em;
}
.s-mist .pt, .s-paper .pt { background: var(--gold); }

/* ---------- عنوان‌ها ---------- */
.h-sec {
  font-family: var(--f-d); font-weight: 700;
  font-size: clamp(2.7rem, 1.4rem + 4vw, 5.4rem);
  line-height: 1.08; margin: 0;
}
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 72px); align-items: end;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.sec-head p { margin: 0; max-width: 34em; color: var(--slate); font-size: 1.08rem; }
.s-ink .sec-head p { color: var(--fog); }

/* ---------- دکمه با برش قلم ---------- */
.btn {
  --bg: var(--ink); --fg: var(--mist);
  display: inline-flex; align-items: center; gap: .6em;
  padding: .78em 1.5em .82em calc(1.5em + var(--nib) * .6);
  background: var(--bg); color: var(--fg);
  font-weight: 500; font-size: 1rem; line-height: 1.4;
  text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--nib) 100%);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { --bg: var(--gold-deep); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--gold-hi); text-decoration: underline; text-underline-offset: .3em; }
.btn--gold { --bg: var(--gold-hi); --fg: var(--ink); }
.btn--gold:hover { --bg: var(--mist); }
.btn--gold:focus-visible { box-shadow: inset 0 0 0 3px var(--ink); }

.link {
  text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: .15em; transition: background-size .25s var(--ease);
}
.link--gold { background-image: linear-gradient(var(--gold-hi), var(--gold-hi)); background-size: 100% 2px; }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ==================================================================
   ستون راهبری (راست)
   ================================================================== */
.rail {
  position: fixed; inset-block: 0; right: 0; width: var(--rail); z-index: 50;
  background: var(--ink); color: var(--mist);
  display: flex; flex-direction: column; align-items: center;
  padding-block: 22px 26px;
  border-inline-end: 1px solid var(--line-ink);
}
.rail__mark { display: block; width: 46px; }
.rail__mark img { width: 100%; }
.rail__nav { margin-block: auto; }
.rail__nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rail__nav a {
  position: relative; display: grid; place-items: center; width: 40px; height: 34px;
  text-decoration: none;
}
.rail__nav a::before {
  content: ''; width: 9px; height: 9px; transform: rotate(45deg);
  border: 1.5px solid var(--fog); transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.rail__nav a:hover::before, .rail__nav a[aria-current="true"]::before { background: var(--gold-hi); border-color: var(--gold-hi); }
.rail__nav a[aria-current="true"]::before { transform: rotate(45deg) scale(1.35); }
.rail__nav span {
  position: absolute; right: calc(100% + 10px); top: 50%; translate: 0 -50%;
  white-space: nowrap; font-size: .88rem; line-height: 1; padding: .55em .8em;
  background: var(--ink); color: var(--mist); border: 1px solid var(--line-ink);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.rail__nav a:hover span, .rail__nav a:focus-visible span { opacity: 1; }
.rail__site {
  writing-mode: vertical-rl; font-size: .8rem; letter-spacing: .12em; color: var(--fog);
  text-decoration: none; direction: ltr;
}
.rail__site:hover { color: var(--gold-hi); }

/* نوار موبایل */
.topbar { display: none; }
.sheet { display: none; }

/* ==================================================================
   نخ زر (قلم صفحه)
   ================================================================== */
.thread {
  position: absolute; inset: 0 auto auto 0; width: 100%; z-index: 1;
  pointer-events: none; overflow: visible;
}
.thread__ink { fill: var(--gold); }
.thread__nib { fill: var(--gold-hi); transition: opacity .3s; }
.knot { position: absolute; width: 0; height: 0; pointer-events: none; }

/* ==================================================================
   آغاز
   ================================================================== */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  padding-block: clamp(40px, 7vh, 88px) clamp(72px, 12vh, 128px);
  padding-inline: var(--gut);
  overflow: hidden;
}
.hero__text { position: relative; z-index: 2; padding-inline-start: clamp(0px, 2vw, 32px); }
.hero__title {
  font-family: var(--f-d); font-weight: 700;
  font-size: clamp(4rem, 1.6rem + 7.6vw, 10.6rem);
  line-height: .94; margin: 0 0 .32em;
  color: var(--mist);
}
.hero__title .line { display: block; }
.hero__lede { margin: 0 0 2.2em; max-width: 31em; font-size: clamp(1.05rem, .92rem + .42vw, 1.3rem); line-height: 2; color: var(--fog); }
.hero__lede strong { color: var(--mist); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2em 2em; }
.hero__actions .link { color: var(--mist); }

.hero__mark { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; height: 100%; }
.hero__mark img { height: min(80svh, 780px); width: auto; max-width: 100%; }

.hero__domains {
  position: absolute; z-index: 2; bottom: clamp(20px, 4vh, 40px); right: var(--gut); left: var(--gut);
  margin: 0; display: flex; flex-wrap: wrap; gap: .3em 1.6em;
  font-size: .9rem; color: var(--fog); list-style: none; padding: 0;
  border-top: 1px solid var(--line-ink); padding-top: 1em;
}
.hero__domains li { display: flex; align-items: center; gap: .7em; }
.hero__domains li::before { content: ''; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* ==================================================================
   نام: ستون «گر»
   ================================================================== */
.gar__sticky { padding-block: clamp(88px, 12vh, 150px); }
.gar__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.gar__copy p { margin: 1.4em 0 0; max-width: 30em; color: var(--slate); font-size: 1.1rem; line-height: 2.05; }
.gar__copy p b { color: var(--ink); font-weight: 600; }

.gar__list { list-style: none; margin: 0; padding: 0; position: relative; }
.gar__row { display: flex; align-items: baseline; gap: 1rem; transition: opacity .45s var(--ease); }
.gar__row.is-first:not(:first-child) { margin-top: .5em; }
.gar__kind { flex: 0 0 6.8rem; font-size: .82rem; line-height: 1.4; color: var(--slate); }
.gar__lead { flex: 1 1 auto; align-self: center; height: 0; border-bottom: 1.5px dotted rgba(3, 45, 75, .3); translate: 0 .35em; }
.gar__word {
  font-family: var(--f-d); font-weight: 700;
  font-size: clamp(2.3rem, 1rem + 4.2vh + 1.2vw, 4.9rem);
  line-height: 1.1; white-space: nowrap;
}
.gar__suf { color: var(--gold); }
.gar__row.is-end .gar__word { color: var(--gold-deep); }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .gar.is-scrolly { height: calc(100svh + var(--steps, 9) * 26svh); }
  .gar.is-scrolly .gar__sticky { position: sticky; top: 0; min-height: 100svh; display: flex; align-items: center; }
  .gar.is-scrolly .gar__sticky > .wrap { width: min(var(--max), 100% - 2 * var(--gut)); }
  .gar.is-scrolly .gar__row { opacity: .14; }
  .gar.is-scrolly .gar__row.is-past { opacity: .4; }
  .gar.is-scrolly .gar__row.is-now { opacity: 1; }
}

/* ==================================================================
   یک نام
   ================================================================== */
.one { padding-block: clamp(96px, 14vw, 190px); overflow: hidden; }
.one__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.one__copy p { margin: 1.3em 0 0; max-width: 31em; color: var(--fog); font-size: 1.1rem; }
.one__braid { position: relative; }
.one__braid svg { width: 100%; height: auto; display: block; overflow: visible; }
.one__count {
  margin: 2.2em 0 0 !important; padding-top: 1.4em; border-top: 1px solid var(--line-ink);
  color: var(--mist) !important; font-size: 1.05rem !important; line-height: 2.4;
}
.one__count b { font-family: var(--f-d); font-weight: 700; font-size: 2.5em; line-height: 1; color: var(--gold-hi); vertical-align: -.12em; margin-inline-end: .12em; }

/* ==================================================================
   لایه‌ها
   ================================================================== */
.strata { padding-block: clamp(96px, 12vw, 170px) 0; }
.strata { --core: clamp(96px, 13vw, 190px); }
.strata__list { list-style: none; margin: 0; padding: 0; }
.sec-head--stack { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 18px; }
.sec-head--stack p { max-width: 40em; }
.layer {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--core);
  gap: clamp(28px, 6vw, 110px); position: relative;
}
.layer::before {
  content: ''; position: absolute; top: 0; right: 0; left: calc(var(--core) * -0 - var(--gut));
  border-top: 1px dashed var(--line);
}
.layer__body { padding-block: clamp(40px, 5.5vw, 76px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px clamp(24px, 4vw, 64px); align-items: start; }
.layer__name { font-family: var(--f-d); font-weight: 700; font-size: clamp(2rem, 1.2rem + 2.2vw, 3.3rem); line-height: 1.12; margin: 0; }
.layer__text { margin: .25em 0 0; color: var(--slate); max-width: 36em; }
.layer__tags { grid-column: 2; list-style: none; margin: .4em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5em; }
.layer__tags li { font-size: .84rem; line-height: 1.5; padding: .32em .75em; border: 1px solid var(--line); background: var(--paper); }
.layer__core {
  position: relative; border-inline: 1px solid rgba(3, 45, 75, .35);
  background-color: var(--paper);
}
.layer__depth {
  position: absolute; top: 12px; right: 8px;
  font-size: .78rem; line-height: 1; white-space: nowrap; color: var(--ink);
  background: var(--paper); padding: .35em .55em; border: 1px solid var(--line);
}

.rock-sand { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M4 2l2 2-2 2-2-2zM12 10l2 2-2 2-2-2z' fill='%23032d4b' fill-opacity='.38'/%3E%3C/svg%3E"); }
.rock-shale { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='12'%3E%3Cpath d='M2 3h10M13 9h8' stroke='%23032d4b' stroke-opacity='.4' stroke-width='1.3'/%3E%3C/svg%3E"); }
.rock-lime { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='16'%3E%3Cpath d='M0 .5h30M0 8.5h30M8 .5v8M23 8.5v8' stroke='%23032d4b' stroke-opacity='.34' fill='none'/%3E%3C/svg%3E"); }
.rock-dolo { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M0 20L20 0' stroke='%23032d4b' stroke-opacity='.3'/%3E%3Cpath d='M15 13l2 2-2 2-2-2z' fill='%23032d4b' fill-opacity='.4'/%3E%3C/svg%3E"); }
.rock-reservoir { background-color: #efe4d0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M7 3l4 4-4 4-4-4z' fill='%23b99154'/%3E%3C/svg%3E"); }
.layer--reservoir .layer__name { color: var(--gold-deep); }
.strata__foot { height: clamp(56px, 7vw, 96px); position: relative; }
.strata__foot .layer__core { position: absolute; top: 0; bottom: 0; left: 0; width: var(--core); background: linear-gradient(var(--paper), transparent); border: 0; }

/* ==================================================================
   کارنامه
   ================================================================== */
.karnameh { padding-block: clamp(96px, 12vw, 170px) clamp(64px, 8vw, 120px); }
.folios { display: flex; flex-direction: column; }
.folio {
  display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7fr) minmax(0, 1.6fr);
  grid-template-areas: "text media margin";
  gap: clamp(24px, 3.4vw, 56px); align-items: center;
  padding-block: clamp(48px, 7vw, 110px);
  border-top: 1px solid var(--line);
}
.folio:nth-child(even) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 7fr) minmax(0, 4.6fr); grid-template-areas: "margin media text"; }
.folio__text { grid-area: text; }
.folio__media { grid-area: media; }
.folio__margin { grid-area: margin; }

.folio__title { font-family: var(--f-d); font-weight: 700; font-size: clamp(3rem, 1.4rem + 4.6vw, 6.6rem); line-height: 1; margin: 0; }
.folio__title a { text-decoration: none; }
.folio__title--long { font-size: clamp(2.5rem, 1.3rem + 3.2vw, 4.8rem); line-height: 1.12; }
.folio__latin { margin: .5em 0 0; direction: ltr; text-align: right; font-size: .9rem; letter-spacing: .06em; color: var(--slate); line-height: 1.4; }
.folio__tagline { margin: .9em 0 0; font-family: var(--f-d); font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); font-weight: 500; line-height: 1.3; }
.folio__summary { margin: .9em 0 1.8em; color: var(--slate); max-width: 30em; }
.folio__meta { margin: 0 0 1.8em; font-size: .88rem; color: var(--slate); line-height: 1.7; }

.mount {
  margin: 0; position: relative; background: var(--ink);
  padding: clamp(10px, 1.3vw, 18px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 56px 100%, 0 calc(100% - 56px));
}
.mount img, .mount svg { display: block; width: 100%; height: auto; }
.mount--tall img { max-height: 70vh; width: auto; margin-inline: auto; }
.mount figcaption { color: var(--fog); font-size: .82rem; line-height: 1.6; padding: .8em 4px 0 60px; }
a.mount { display: block; text-decoration: none; }
a.mount:hover { background: var(--gold-deep); }

.folio__margin ul {
  list-style: none; margin: 0 auto; padding: 70px 0; width: 100%;
  display: grid; grid-auto-rows: 62px; justify-items: center; align-items: center;
}
.folio__margin li {
  white-space: nowrap; transform: rotate(-38deg);
  font-size: .9rem; line-height: 1.2; color: var(--slate);
  display: flex; align-items: baseline; gap: .35em;
}
.folio:nth-child(even) .folio__margin li { transform: rotate(38deg); }
.folio__margin b { font-family: var(--f-d); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--gold-deep); }

/* فهرست کامل */
.ledger { margin-top: clamp(64px, 9vw, 130px); }
.ledger__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 18px 40px; margin-bottom: 26px; }
.ledger__title { font-family: var(--f-d); font-weight: 700; font-size: clamp(2.2rem, 1.4rem + 2vw, 3.4rem); line-height: 1.1; margin: 0; }
.ledger__title small { font-family: var(--f-t); font-size: .95rem; font-weight: 400; color: var(--slate); margin-inline-start: .6em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid var(--line); background: transparent; padding: .38em .95em; font-size: .88rem; line-height: 1.5; cursor: pointer;
  display: inline-flex; gap: .5em; align-items: center;
}
.filter sup { font-size: .72rem; color: var(--slate); top: 0; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.filter[aria-pressed="true"] sup { color: var(--gold-hi); }

.ledger__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ledger__list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.ledger__list li[hidden] { display: none; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr) 6.5rem;
  gap: 8px 24px; align-items: baseline;
  padding: 18px 0 16px; border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative;
}
.row::before {
  content: ''; position: absolute; right: -22px; top: 50%; width: 9px; height: 9px; translate: 0 -50%;
  background: var(--gold); transform: rotate(45deg) scale(0); transition: transform .25s var(--ease);
}
.row:hover::before, .row:focus-visible::before, .row.is-active::before { transform: rotate(45deg) scale(1); }
.row:focus-visible { outline-offset: 2px; }
.row__title { font-family: var(--f-d); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + .7vw, 1.85rem); line-height: 1.3; }
.row__domain { display: block; font-family: var(--f-t); font-weight: 400; font-size: .8rem; color: var(--slate); line-height: 1.6; margin-top: 2px; }
.row__client { font-size: .9rem; color: var(--slate); line-height: 1.6; }
.row__year { font-size: .9rem; text-align: left; font-variant-numeric: tabular-nums; color: var(--ink); }
.ledger__preview { position: sticky; top: 32px; }
.ledger__preview .mount { transition: opacity .2s; }
.ledger__preview p { margin: 1em 0 0; font-size: .95rem; color: var(--slate); min-height: 5.8em; }
.ledger__empty { padding: 28px 0; color: var(--slate); }

/* ==================================================================
   کتیبهٔ مشتریان
   ================================================================== */
.inscription { padding-block: 0; }
.inscription__band {
  height: 30px;
  background-color: var(--ink-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M15 7l8 8-8 8-8-8z' fill='none' stroke='%23b99154' stroke-width='1.2'/%3E%3Cpath d='M15 12.5l2.5 2.5-2.5 2.5-2.5-2.5z' fill='%23b99154'/%3E%3C/svg%3E");
}
.inscription__inner { padding-block: clamp(80px, 11vw, 160px); }
.inscription__title { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.inscription__title p { margin: .8em auto 0; color: var(--fog); max-width: 36em; }
.inscription__names {
  margin: 0 auto; max-width: 1120px; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .1em 0;
  font-family: var(--f-d); font-weight: 600; font-size: clamp(1.9rem, 1.1rem + 2.3vw, 3.6rem); line-height: 1.55;
  color: var(--mist);
}
.inscription__names li { white-space: nowrap; display: flex; align-items: center; }
.inscription__names li + li::before {
  content: ''; width: .19em; height: .19em; margin-inline: .55em; background: var(--gold-hi); transform: rotate(45deg) translateY(.05em);
}

/* ==================================================================
   روش کار (کشیده)
   ================================================================== */
.path { padding-block: clamp(96px, 12vw, 170px); }
.path__line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.step__head { display: flex; align-items: flex-end; }
.step__word { font-family: var(--f-d); font-weight: 700; font-size: clamp(2rem, 1.1rem + 2vw, 3.3rem); line-height: 1.35; white-space: nowrap; }
.step__kashida { flex: 1 1 auto; height: .085em; min-width: 18px; background: var(--ink); margin-bottom: .34em; font-size: clamp(2rem, 1.1rem + 2vw, 3.3rem); }
.step:last-child .step__kashida { background: none; }
.step:last-child .step__kashida::after { content: ''; display: block; width: .16em; height: .16em; background: var(--gold); transform: translateY(-.04em) rotate(45deg); margin-inline-start: .18em; }
.step__text { margin: .6em 0 0; padding-inline-end: clamp(12px, 2vw, 32px); font-size: .95rem; line-height: 1.9; color: var(--slate); }

/* ==================================================================
   پروفایل
   ================================================================== */
.dossier { padding-block: clamp(96px, 12vw, 170px); overflow: hidden; }
.dossier__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.dossier__copy p { color: var(--slate); max-width: 30em; margin: 1.2em 0 2em; }
.dossier__sheets { position: relative; aspect-ratio: 1 / 1.05; max-width: 520px; width: 100%; justify-self: center; }
.sheet-mini {
  position: absolute; width: 58%; aspect-ratio: 210 / 297; background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(2, 34, 58, .45);
  border: 1px solid var(--line);
}
.sheet-mini:nth-child(1) { left: 6%; top: 10%; transform: rotate(-8deg); }
.sheet-mini:nth-child(2) { left: 22%; top: 5%; transform: rotate(3deg); }
.sheet-mini:nth-child(3) { left: 36%; top: 0; transform: rotate(9deg); background: var(--ink); border-color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 9% 9% 10%; color: var(--mist); }
.sheet-mini:nth-child(3) img { width: 44%; }
.sheet-mini__t { font-family: var(--f-d); font-weight: 700; font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem); line-height: 1; }
.sheet-mini__s { font-size: .72rem; color: var(--fog); line-height: 1.6; margin-top: .6em; }
.sheet-mini__lines { position: absolute; inset: 12% 10% auto 10%; display: grid; gap: 9px; }
.sheet-mini__lines i { display: block; height: 5px; background: var(--line); }
.sheet-mini__lines i:nth-child(1) { width: 60%; height: 12px; background: var(--ink); margin-bottom: 10px; }
.sheet-mini__lines i:nth-child(3n) { width: 80%; }

/* ==================================================================
   نامه (تماس)
   ================================================================== */
.letter { padding-block: clamp(96px, 12vw, 170px); overflow: hidden; }
.letter__grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.letter__head p { color: var(--fog); margin: 1.3em 0 0; max-width: 26em; }
.letter__head a { color: var(--mist); }
.letter__direct { margin-top: 2.2em !important; padding-top: 1.4em; border-top: 1px solid var(--line-ink); font-size: .95rem; }
.letter__direct span { display: block; }

.letter__form { font-family: var(--f-d); font-size: clamp(1.55rem, 1.1rem + 1.1vw, 2.25rem); line-height: 2.05; font-weight: 500; color: var(--mist); }
.letter__form p { margin: 0 0 .35em; }
.blank { display: inline-block; vertical-align: baseline; position: relative; }
.blank input, .blank select {
  font-family: var(--f-t); font-size: 1.05rem; line-height: 1.5; font-weight: 400;
  background: transparent; border: 0; border-bottom: 1.5px dashed var(--gold); color: var(--gold-hi);
  padding: .1em .2em .15em; width: 14ch; min-width: 0; border-radius: 0;
  transition: border-color .2s, background-color .2s;
}
.blank--wide input { width: 20ch; }
.blank select { width: auto; padding-inline-end: 1.4em; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M5 1l4 4-4 4-4-4z' fill='%23d6b06f'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left .2em center; }
.blank select option { color: var(--ink); background: var(--mist); }
.blank input::placeholder, .letter__area textarea::placeholder { color: rgba(169, 188, 203, .6); }
.blank input:focus, .blank select:focus, .letter__area textarea:focus { outline: none; border-bottom-style: solid; border-color: var(--gold-hi); background: rgba(214, 176, 111, .08); }
.letter__area { display: block; margin: .3em 0 .7em; }
.letter__area textarea {
  display: block; width: 100%; resize: vertical; min-height: 7.5em;
  font-family: var(--f-t); font-size: 1.05rem; line-height: 2; color: var(--mist);
  background: rgba(232, 237, 240, .04); border: 0; border-bottom: 1.5px dashed var(--gold); border-radius: 0;
  padding: .7em .9em;
  background-image: repeating-linear-gradient(transparent 0 calc(2em + .7em - 1px), rgba(232, 237, 240, .07) calc(2em + .7em - 1px) calc(2em + .7em));
}
.blank[data-invalid] input, .letter__area[data-invalid] textarea { border-bottom-color: #e38b6d; border-bottom-style: solid; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.letter__send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 1.3em; font-family: var(--f-t); position: relative; }
.letter__send .btn { font-size: 1.05rem; }
.letter__dot { position: absolute; left: -36px; top: 50%; margin-top: -9px; width: 18px; height: 18px; background: var(--gold-hi); transform: rotate(45deg) scale(.2); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
.letter__dot.is-landed, .no-thread .letter__dot { transform: rotate(45deg) scale(1); opacity: 1; }
.letter__status { flex-basis: 100%; margin: 0; font-size: 1rem; line-height: 1.8; color: var(--fog); min-height: 1.8em; }
.letter__status.is-ok { color: var(--gold-hi); }
.letter__status.is-err { color: #f0a58c; }

/* ==================================================================
   پانوشت
   ================================================================== */
.foot { padding-block: 56px 40px; margin-inline-start: var(--rail); }
.foot__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.foot__mark { width: 64px; }
.foot__say { font-family: var(--f-d); font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.8rem); font-weight: 700; line-height: 1.15; margin: 0; }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .92rem; }
.foot nav a { text-decoration: none; color: var(--fog); }
.foot nav a:hover { color: var(--gold-hi); }
.foot__legal { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line-ink); padding-top: 18px; font-size: .82rem; color: var(--fog); }
.foot__legal a { text-decoration: none; direction: ltr; }

/* ==================================================================
   پاسخ‌گو
   ================================================================== */
@media (max-width: 1100px) {
  .folio, .folio:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "text media" "margin margin"; }
  .folio:nth-child(even) { grid-template-areas: "media text" "margin margin"; }
  .folio__margin ul { padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-items: start; }
  .folio__margin li, .folio:nth-child(even) .folio__margin li { transform: none; }
  .path__line { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .step:nth-child(3) .step__kashida { background: linear-gradient(90deg, transparent, var(--ink)); }
  .layer__body { grid-template-columns: minmax(0, 1fr); }
  .layer__tags { grid-column: 1; }
}

@media (max-width: 899px) {
  :root { --rail: 0px; }
  body { padding-top: 64px; }
  .rail { display: none; }
  .topbar {
    display: flex; position: fixed; top: 0; right: 0; left: 0; height: 64px; z-index: 60;
    align-items: center; justify-content: space-between; padding-inline: 16px;
    background: var(--ink); color: var(--mist); border-bottom: 1px solid var(--line-ink);
  }
  .topbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-d); font-weight: 700; font-size: 1.9rem; line-height: 1; }
  .topbar__brand img { width: 32px; }
  .topbar__menu { background: none; border: 1px solid var(--line-ink); color: var(--mist); padding: .45em .9em; font-size: .95rem; line-height: 1.3; cursor: pointer; }
  .sheet { position: fixed; inset: 64px 0 0; z-index: 59; background: var(--ink); color: var(--mist); padding: 24px 16px 40px; overflow: auto; }
  .sheet:not([hidden]) { display: block; }
  .sheet ol { list-style: none; margin: 0; padding: 0; }
  .sheet a { display: flex; align-items: center; gap: 14px; text-decoration: none; font-family: var(--f-d); font-weight: 700; font-size: 2.3rem; line-height: 1.6; border-bottom: 1px solid var(--line-ink); }
  .sheet a::before { content: ''; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }

  .thread { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: 24px 120px; gap: 8px; }
  .hero__mark { order: -1; }
  .hero__mark img { height: 40svh; }
  .hero__domains { font-size: .82rem; gap: .2em 1.1em; }
  .sec-head, .gar__grid, .one__grid, .dossier__grid, .letter__grid, .ledger__body { grid-template-columns: minmax(0, 1fr); }
  .gar__word { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .gar__kind { flex-basis: 5.2rem; font-size: .75rem; }
  .one__braid { order: 2; }
  .layer { grid-template-columns: minmax(0, 1fr) 44px; gap: 18px; }
  .layer__depth { right: auto; left: calc(100% + 0px); top: 8px; writing-mode: vertical-rl; display: none; }
  .ledger__preview { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row__client { grid-column: 1 / -1; grid-row: 2; }
  .row::before { display: none; }
  .folio, .folio:nth-child(even) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "text" "margin"; }
  .mount { clip-path: polygon(0 0, 100% 0, 100% 100%, 32px 100%, 0 calc(100% - 32px)); }
  .path__line { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .step .step__kashida { max-width: 40%; }
  .step:nth-child(3) .step__kashida { background: var(--ink); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .blank, .blank input, .blank--wide input { width: 100%; }
  .letter__dot { position: static; margin: 0; }
  .blank select { width: 100%; }
  .letter__form { line-height: 1.9; }
  .sheet-mini:nth-child(3) { left: 30%; }
  .inscription__names { font-size: 1.7rem; line-height: 1.5; }
  .inscription__names li { white-space: normal; text-align: center; }
  .inscription__names li + li::before { display: none; }
  .inscription__names li { flex-basis: 100%; justify-content: center; padding-block: .25em; border-bottom: 1px solid var(--line-ink); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
