/* ==========================================================================
   چهارترنج / ChaharToranj
   Single stylesheet for both language editions.
   Direction-neutral: written with CSS logical properties, so the same rules
   lay out right-to-left (fa) and left-to-right (en) without a second file.
   ========================================================================== */

/* Self-hosted brand fonts (OFL-1.1), variable weight, split by script like Google Fonts serves them.
   Persian headings: Noto Naskh Arabic; text: Vazirmatn; English headings: Cormorant Garamond. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/noto-naskh-arabic-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/noto-naskh-arabic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/noto-naskh-arabic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/vazirmatn-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/vazirmatn-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/vazirmatn-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* --------------------------------------------------------------------------
   1. Tokens
   Colours are the five values fixed in the brand guide, plus two raised
   surfaces mixed from the base ink and two hairline tints of the gold.
   -------------------------------------------------------------------------- */
:root {
  --ink:        #17140F;
  --olive:      #45502E;
  --gold:       #C9A257;
  --wine:       #5B2233;
  --ivory:      #F1E8D6;

  --ink-raised: #1E1A14;
  --ink-card:   #221D16;
  --olive-deep: #333C22;

  --line:        rgba(201, 162, 87, 0.22);
  --line-strong: rgba(201, 162, 87, 0.42);
  --line-soft:   rgba(241, 232, 214, 0.11);
  --muted:       rgba(241, 232, 214, 0.66);
  --muted-dim:   rgba(241, 232, 214, 0.45);

  --font-body:    'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Noto Naskh Arabic', 'Vazirmatn', Georgia, serif;

  --fs-hero:  clamp(2.35rem, 6.2vw, 4.4rem);
  --fs-h2:    clamp(1.7rem,  3.6vw, 2.7rem);
  --fs-h3:    clamp(1.1rem,  1.9vw, 1.35rem);
  --fs-lead:  clamp(1.02rem, 0.98rem + 0.4vw, 1.2rem);
  --fs-body:  clamp(0.97rem, 0.94rem + 0.2vw, 1.05rem);
  --fs-small: 0.86rem;
  --fs-label: 0.72rem;

  --lh-body: 2.05;
  --lh-head: 1.5;

  --wrap:    1180px;
  --gutter:  clamp(20px, 5vw, 56px);
  --section: clamp(72px, 10vw, 136px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* The toranj: four pointed lobes, drawn once and reused as the site's only
     ornament — corner marks, watermarks, and the eyebrow glyph. */
  --toranj-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23C9A257'%3E%3Cpath d='M32 32C22.4 27.6 19.2 14.8 32 3c12.8 11.8 9.6 24.6 0 29Z'/%3E%3Cpath d='M32 32C22.4 27.6 19.2 14.8 32 3c12.8 11.8 9.6 24.6 0 29Z' transform='rotate(90 32 32)'/%3E%3Cpath d='M32 32C22.4 27.6 19.2 14.8 32 3c12.8 11.8 9.6 24.6 0 29Z' transform='rotate(180 32 32)'/%3E%3Cpath d='M32 32C22.4 27.6 19.2 14.8 32 3c12.8 11.8 9.6 24.6 0 29Z' transform='rotate(270 32 32)'/%3E%3C/g%3E%3C/svg%3E");
  --toranj-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23000000'%3E%3Cpath d='M32 32C22.4 27.6 19.2 14.8 32 3c12.8 11.8 9.6 24.6 0 29Z'/%3E%3Cpath d='M32 32C22.4 27.6 19.2 14.8 32 3c12.8 11.8 9.6 24.6 0 29Z' transform='rotate(90 32 32)'/%3E%3Cpath d='M32 32C22.4 27.6 19.2 14.8 32 3c12.8 11.8 9.6 24.6 0 29Z' transform='rotate(180 32 32)'/%3E%3Cpath d='M32 32C22.4 27.6 19.2 14.8 32 3c12.8 11.8 9.6 24.6 0 29Z' transform='rotate(270 32 32)'/%3E%3C/g%3E%3C/svg%3E");

  /* Warp and weft. The vertical thread is the light one, as on the loom. */
  --weave:
    repeating-linear-gradient(90deg, rgba(241,232,214,0.040) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg,  rgba(0,0,0,0.20)        0 1px, transparent 1px 7px);
}

/* The English edition swaps the display face and needs a larger optical size,
   because Cormorant Garamond sets much smaller than Noto Naskh Arabic. */
html[lang="en"] {
  --font-display: 'Cormorant Garamond', 'Vazirmatn', Georgia, serif;
  --fs-hero:  clamp(2.9rem, 7.4vw, 5.4rem);
  --fs-h2:    clamp(2rem,   4.4vw, 3.2rem);
  --fs-h3:    clamp(1.2rem, 2vw,   1.5rem);
  --lh-body:  1.85;
  --lh-head:  1.18;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-head);
  margin: 0;
  letter-spacing: 0.012em;   /* the guide asks for slightly open headline tracking */
}
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 { font-weight: 400; letter-spacing: 0.005em; }

p { margin: 0; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

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

::selection { background: var(--gold); color: var(--ink); }

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: var(--gutter);
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 18px;
  font-size: var(--fs-small);
  transition: inset-block-start 0.2s var(--ease);
}
.skip-link:focus { inset-block-start: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(52px, 7vw, 92px); }
.section--raised { background: var(--ink-raised); }

.rule {
  border: 0;
  border-block-start: 1px solid var(--line);
  margin: 0;
}

/* Editorial split: a narrow label column beside a wide reading column.
   Grid follows the document direction, so the label lands on the right in
   Persian and on the left in English with no extra rules. */
.split {
  display: grid;
  gap: clamp(20px, 4vw, 64px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .split { grid-template-columns: 190px minmax(0, 1fr); align-items: start; }
  /* Nudge the label down so it sits on the heading's cap line rather than
     floating against the top of a tall block. */
  .split > .eyebrow { padding-block-start: 0.75em; }
}

.measure { max-width: 62ch; }
.measure-narrow { max-width: 48ch; }

.stack > * + * { margin-block-start: var(--stack-gap, 1.35rem); }

/* --------------------------------------------------------------------------
   4. Type roles
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: var(--gold);
  margin: 0;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: 0.24em; }

.eyebrow::before {
  content: "";
  inline-size: 0.78em;
  block-size: 0.78em;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--toranj-mask) center / contain no-repeat;
  mask: var(--toranj-mask) center / contain no-repeat;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--ivory);
}

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

.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

/* Numerals inside otherwise Persian text: keep them on the body face so the
   Persian digits stay even in weight with the words around them. */
.num { font-family: var(--font-body); font-weight: 500; font-feature-settings: "tnum" 1; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: var(--ivory); border-color: var(--ivory); transform: translateY(-2px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--gold);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: rgba(201, 162, 87, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

.btn__icon { inline-size: 1.15em; block-size: 1.15em; flex: none; fill: currentColor; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* A quieter, text-level call to action for the end of a passage. */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--gold);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-block-end: 4px;
  border-block-end: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-more:hover { border-color: var(--gold); gap: 0.85em; }
.link-more::after {
  content: "";
  inline-size: 0.62em; block-size: 0.62em;
  background: currentColor;
  -webkit-mask: var(--toranj-mask) center / contain no-repeat;
  mask: var(--toranj-mask) center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(23, 20, 15, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-block-end: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.header.is-scrolled {
  background: rgba(23, 20, 15, 0.95);
  border-block-end-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-block-size: 78px;
}

/* The full lockup is a tall, centred stack — too vertical for a sticky bar —
   so the header carries the ornament beside a typeset wordmark, and the
   complete lockup appears in the footer where it has room. */
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
/* The standalone mark is square by rule, and the guide floors it at 32px on
   screen — so that, not 30px, is the bottom of the clamp. */
.brand__mark { block-size: clamp(32px, 4.2vw, 38px); inline-size: auto; aspect-ratio: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--ivory);
}
html[lang="en"] .brand__name {
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (max-width: 420px) { .brand__name { display: none; } }

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
}

.nav__link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding-block: 6px;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 0;
  block-size: 1px;
  background: var(--gold);
  transition: inline-size 0.4s var(--ease);
}
.nav__link:hover { color: var(--ivory); }
.nav__link:hover::after { inline-size: 100%; }
.nav__link[aria-current="page"] { color: var(--ivory); }
.nav__link[aria-current="page"]::after { inline-size: 100%; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.5em 0.9em;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.lang-switch:hover { border-color: var(--gold); background: rgba(201, 162, 87, 0.1); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  inline-size: 42px;
  block-size: 38px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

.nav-toggle span {
  display: block;
  inline-size: 18px;
  block-size: 1px;
  background: var(--ivory);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: block;
  overflow: hidden;
  max-block-size: 0;
  border-block-start: 1px solid transparent;
  transition: max-block-size 0.45s var(--ease), border-color 0.45s var(--ease);
}
.nav-mobile.is-open { max-block-size: 420px; border-block-start-color: var(--line); }
@media (min-width: 900px) { .nav-mobile { display: none; } }

.nav-mobile__list { padding-block: 14px 26px; }
.nav-mobile__list li + li { border-block-start: 1px solid var(--line-soft); }
.nav-mobile__list a {
  display: block;
  padding-block: 15px;
  font-size: 1rem;
  color: var(--muted);
}
.nav-mobile__list a[aria-current="page"] { color: var(--gold); }

/* --------------------------------------------------------------------------
   7. Hero — the page opens as a carpet: a bordered field, four corner toranj,
   and the name set in the middle where the medallion belongs.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-block-size: min(90svh, 820px);
  padding-block: clamp(72px, 12vw, 128px);
  padding-inline: var(--gutter);
  background-color: var(--ink);
  background-image: var(--weave);
  text-align: center;
  overflow: hidden;
}

/* A slow warm bloom behind the medallion, the colour of lamplight on silk. */
.hero::before {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 162, 87, 0.13) 0%, rgba(91, 34, 51, 0.07) 38%, transparent 68%);
  pointer-events: none;
}

.hero__frame {
  position: absolute;
  inset: clamp(14px, 2.6vw, 34px);
  border: 1px solid var(--line);
  pointer-events: none;
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: -9px;
  background-image: var(--toranj-gold), var(--toranj-gold), var(--toranj-gold), var(--toranj-gold);
  background-position: left top, right top, right bottom, left bottom;
  background-size: 18px 18px;
  background-repeat: no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.8vw, 28px);
}

.hero__mark { inline-size: clamp(54px, 8.5vw, 78px); block-size: auto; aspect-ratio: 1; opacity: 0.95; }

.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.35;
  text-wrap: balance;
}
html[lang="en"] .hero__title { line-height: 1.12; }

.hero__text {
  color: var(--muted);
  max-width: 54ch;
  font-size: var(--fs-lead);
}

/* Provenance strip: only the three facts the brand can actually prove. */
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px clamp(18px, 3vw, 34px);
  margin-block-start: clamp(8px, 1.6vw, 16px);
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.7;
}
/* The rule lives on the item itself, not as a flex child — a fact may contain
   its own inline spans, and those must not be pulled apart by the gap. */
.facts li + li {
  border-inline-start: 1px solid var(--line-strong);
  padding-inline-start: clamp(18px, 3vw, 34px);
}

.scroll-hint {
  position: absolute;
  inset-block-end: clamp(24px, 4vw, 44px);
  inset-inline: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.scroll-hint span {
  inline-size: 1px;
  block-size: 46px;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
}

/* --------------------------------------------------------------------------
   8. Page head (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  padding-block: clamp(60px, 8vw, 116px) clamp(44px, 6vw, 72px);
  background-color: var(--ink);
  background-image: var(--weave);
  border-block-end: 1px solid var(--line);
}
.page-head__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.32;
  margin-block-start: 0.4em;
}
html[lang="en"] .page-head__title { line-height: 1.1; }
.page-head__text { color: var(--muted); max-width: 58ch; margin-block-start: 1.3em; }

/* --------------------------------------------------------------------------
   9. Values — four quadrants divided by gold hairlines, with a single toranj
   where the two rules cross. Four values, four toranj, one name.
   -------------------------------------------------------------------------- */
.values {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line);
  background-color: var(--ink);
}
.section--raised .values,
.closing .values { background-color: var(--ink-raised); }

@media (min-width: 720px) {
  /* Equal rows are what put the crossing of the two rules at exactly 50%,
     which is where the centre toranj is anchored. */
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
}

.values__item {
  padding: clamp(26px, 3.6vw, 46px);
  border-block-end: 1px solid var(--line);
}
.values__item:last-child { border-block-end: 0; }

@media (min-width: 720px) {
  .values__item { border-inline-end: 1px solid var(--line); }
  .values__item:nth-child(2n) { border-inline-end: 0; }
  .values__item:nth-last-child(-n + 2) { border-block-end: 0; }

  /* The crossing point, punched out of the rules. */
  .values::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    inline-size: 48px;
    block-size: 48px;
    background-color: inherit;
    background-image: var(--toranj-gold);
    background-position: center;
    background-size: 17px 17px;
    background-repeat: no-repeat;
  }
}

.values__title { font-size: var(--fs-h3); margin-block-end: 0.7em; }
.values__text { color: var(--muted); font-size: var(--fs-body); }

/* --------------------------------------------------------------------------
   10. USP band
   -------------------------------------------------------------------------- */
.usp {
  background-color: var(--olive-deep);
  background-image: var(--weave);
  border-block: 1px solid var(--line);
}
.usp__quote {
  font-size: clamp(1.35rem, 3.2vw, 2.3rem);
  line-height: 1.7;
  max-width: 26ch;
  text-wrap: balance;
}
html[lang="en"] .usp__quote { line-height: 1.3; max-width: 21ch; }
.usp__note { color: var(--muted); margin-block-start: 1.6em; max-width: 46ch; }

/* --------------------------------------------------------------------------
   11. Product cards
   -------------------------------------------------------------------------- */
.grid-cards {
  display: grid;
  gap: clamp(20px, 2.6vw, 34px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-card);
  border: 1px solid var(--line-soft);
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-raised);
}
.card__media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }
/* A <picture> wrapper must not change the layout: the img still fills the media box. */
.card__media picture { display: contents; }

.card__tag {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  z-index: 1;
  padding: 0.4em 0.85em;
  background: rgba(23, 20, 15, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.card__tag--wine {
  color: var(--ivory);
  background: rgba(91, 34, 51, 0.85);
  border-color: rgba(241, 232, 214, 0.28);
}

.card__body {
  padding: clamp(20px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.card__title { font-size: var(--fs-h3); }
.card__text { color: var(--muted); font-size: var(--fs-small); line-height: 1.9; }

.spec {
  margin: 0;
  margin-block-start: auto;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--line-soft);
}
.spec__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 7px;
  font-size: var(--fs-small);
  line-height: 1.7;
}
.spec__row + .spec__row { border-block-start: 1px solid var(--line-soft); }
.spec__key { color: var(--muted-dim); margin: 0; }
.spec__val { color: var(--ivory); font-weight: 400; text-align: end; margin: 0; }

/* An honest note wherever the page shows stand-in imagery. */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-inline-start: 2px solid var(--gold);
  background: rgba(201, 162, 87, 0.05);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.contact-panel {
  padding: clamp(28px, 4.2vw, 52px);
  background-color: var(--ink-raised);
  background-image: var(--weave);
  border: 1px solid var(--line);
}

.channels { border-block-start: 1px solid var(--line-soft); }
.channels__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 20px;
  padding-block: 16px;
  border-block-end: 1px solid var(--line-soft);
}
.channels__key { color: var(--muted-dim); font-size: var(--fs-small); letter-spacing: 0.06em; margin: 0; }
.channels__val { color: var(--ivory); font-size: var(--fs-small); margin: 0; }
.channels__val a { border-block-end: 1px solid var(--line); transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.channels__val a:hover { border-block-end-color: var(--gold); color: var(--gold); }

.checklist li {
  position: relative;
  padding-inline-start: 1.7em;
  color: var(--muted);
  font-size: var(--fs-body);
}
.checklist li + li { margin-block-start: 0.85em; }
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.72em;
  inline-size: 0.62em;
  block-size: 0.62em;
  background: var(--gold);
  -webkit-mask: var(--toranj-mask) center / contain no-repeat;
  mask: var(--toranj-mask) center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   13. Closing call to action
   -------------------------------------------------------------------------- */
.closing {
  position: relative;
  padding-block: clamp(64px, 9vw, 118px);
  padding-inline: var(--gutter);
  background-color: var(--ink-raised);
  background-image: var(--weave);
  border-block-start: 1px solid var(--line);
  text-align: center;
}
.closing__inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.4vw, 24px);
}
.closing__title { font-size: var(--fs-h2); line-height: 1.45; }
html[lang="en"] .closing__title { line-height: 1.2; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  border-block-start: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 78px) clamp(24px, 3vw, 32px);
}
.footer__top {
  display: grid;
  gap: clamp(30px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .footer__top { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
}

/* The lockup is a near-square stack (3544x3024) and ships with its own clear
   space baked in, so it is sized by width rather than height: the guide's
   180px floor for the full lockup on screen is reached at a 272px frame. The
   file's ground is exactly --ink, so that built-in margin reads as clear
   space against the footer rather than as a panel. */
.footer__logo {
  inline-size: clamp(272px, 26vw, 304px);
  max-inline-size: 100%;
  block-size: auto;
  aspect-ratio: 3544 / 3024;
  margin-block-end: 2px;
}
.footer__tagline { font-family: var(--font-display); font-size: 1.06rem; color: var(--ivory); }
html[lang="en"] .footer__tagline { font-size: 1.35rem; }
.footer__note { color: var(--muted-dim); font-size: var(--fs-small); margin-block-start: 1em; max-width: 42ch; line-height: 1.9; }

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-block-end: 1.2em;
}
html[lang="en"] .footer__heading { text-transform: uppercase; letter-spacing: 0.22em; }

.footer__list li + li { margin-block-start: 0.75em; }
.footer__list a { color: var(--muted); font-size: var(--fs-small); transition: color 0.3s var(--ease); }
.footer__list a:hover { color: var(--gold); }

.footer__bottom {
  margin-block-start: clamp(36px, 5vw, 60px);
  padding-block-start: 22px;
  border-block-start: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  color: var(--muted-dim);
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   15. Motion
   One reveal, used everywhere: a short rise out of nothing. Groups stagger
   their own children through --i, set inline on the markup.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
    transition-delay: calc(var(--i, 0) * 110ms);
  }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* The hero does not wait for the observer; it plays on load. */
  .hero .reveal { transition-delay: calc(220ms + var(--i, 0) * 130ms); }
}

/* --------------------------------------------------------------------------
   16. Reduced motion and print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .header, .nav-mobile, .scroll-hint, .closing { display: none; }
  /* White is the paper, not a brand colour; the text is the brand base ink. */
  body { background: #fff; color: var(--ink); }
  /* On paper the reversed lockup would print as a dark panel, so the sheet
     falls back to the one-colour version the guide reserves for print. */
  .footer__logo { content: url("../../images/logo/chahartoranj_logo_onecolor.svg"); }
}

/* Persian and Arabic script is cursive: tracking pulls joined letters apart, so it is
   off for all fa/ar text, headings and the brand name included. Latin text keeps it. */
:is(h1, h2, h3, h4, .brand__name, .eyebrow, .btn, .link-more, .nav__link, .lang-switch, .card__tag, .channels__key, .footer__heading):is(:lang(fa), :lang(ar)) {
  letter-spacing: 0;
}
