/* ==========================================================================
   فن پژوهان پیشتاز جنوب — «شب، دریا، فانوس»
   ========================================================================== */

/* ---------- Fonts (Vazirmatn, OFL — داخل پروژه) ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-arabic-wght-normal.05d9ce2a23d3.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-latin-wght-normal.e7eada615dc3.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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;
}

/* ---------- Tokens ---------- */
:root {
  --night-deep: #071B33;
  --night: #0B2644;
  --blue: #12407B;
  --teal: #1FB6C1;
  --teal-ink: #0E7C86;      /* فیروزه‌ای تیره برای متن روی زمینهٔ روشن (کنتراست AA) */
  --aqua: #3FD8D5;
  --light: #E9FFFD;
  --paper: #FFFFFF;
  --mist: #F2F8FB;
  --ink: #0B2644;
  --ink-soft: #3E5672;
  --on-night: #E9FFFD;
  --on-night-soft: #B5CCDD;
  --line-day: #DCE8EF;
  --line-night: rgba(63, 216, 213, .18);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -24px rgba(11, 38, 68, .35);
  --shadow-night: 0 24px 60px -28px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --header-h: 76px;

  --fs-body: 1.0625rem;
  --fs-h1: clamp(2.2rem, 1.2rem + 3.6vw, 4.1rem);
  --fs-h2: clamp(1.7rem, 1.1rem + 2vw, 2.7rem);
  --fs-h3: 1.2rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 2;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.35; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); font-weight: 850; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 750; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 2.5rem, 900px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100; background: var(--aqua); color: var(--night); padding: .6rem 1rem; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.icon { width: 1.5rem; height: 1.5rem; flex: none; }
.icon-sm { width: 1.1rem; height: 1.1rem; }

/* ---------- Surfaces: night & day ---------- */
.night {
  position: relative;
  color: var(--on-night);
  background:
    radial-gradient(1200px 600px at 15% 0%, rgba(18, 64, 123, .9), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(31, 182, 193, .12), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  isolation: isolate;
}
.day { position: relative; background: var(--paper); color: var(--ink); }
.day.tint { background: linear-gradient(180deg, var(--mist), #fff); }
section { padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem); }

.stars {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 41% 28%, var(--aqua) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 72% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 22%, var(--aqua) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 93% 70%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 80%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 50% 85%, #fff 50%, transparent 51%);
  background-size: 640px 420px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .7; } }

/* ---------- Waves (از سربرگ) ---------- */
.waves { position: absolute; inset-inline: 0; height: clamp(60px, 8vw, 110px); pointer-events: none; overflow: hidden; z-index: 1; }
.waves .wave { position: absolute; bottom: 0; left: 0; width: 200%; max-width: none; height: 100%; }
.wave-1 { animation: drift 26s linear infinite; }
.wave-2 { animation: drift 18s linear infinite reverse; height: 85% !important; }
.wave-3 { animation: drift 32s linear infinite; height: 65% !important; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* موج از شب به روز (پایین بخش‌های شب) */
.waves-to-day { bottom: -1px; }
.waves-to-day .wave-1 path { fill: var(--teal); opacity: .35; }
.waves-to-day .wave-2 path { fill: var(--aqua); opacity: .35; }
.waves-to-day .wave-3 path { fill: var(--paper); }
/* موج از روز به شب (بالای بخش‌های شب) */
.waves-from-day { top: -1px; transform: scaleY(-1); }
.waves-from-day .wave-1 path { fill: var(--teal); opacity: .25; }
.waves-from-day .wave-2 path { fill: var(--aqua); opacity: .25; }
.waves-from-day .wave-3 path { fill: var(--paper); }
.waves-to-night { bottom: -1px; }
.waves-to-night .wave-1 path { fill: var(--teal); opacity: .5; }
.waves-to-night .wave-2 path { fill: var(--aqua); opacity: .5; }
.waves-to-night .wave-3 path { fill: var(--night-deep); }
.night:has(.waves-from-day) { padding-top: calc(clamp(4.5rem, 3rem + 5vw, 7.5rem) + 50px); }
.night:has(.waves-to-day) { padding-bottom: calc(clamp(4.5rem, 3rem + 5vw, 7.5rem) + 60px); }
/* بخش روزِ پیش از بخش شبِ رنگی‌شده: آخرین لایهٔ موج باید هم‌رنگ آن باشد */
.tint + .night .waves-from-day .wave-3 path { fill: #fff; }

/* ---------- Divider (سه لوزی سربرگ) ---------- */
.divider { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.divider::after { content: ""; width: 72px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--teal)); }
.divider i { width: 6px; height: 6px; background: var(--teal); transform: rotate(45deg); display: block; }
.divider i.big { width: 11px; height: 11px; background: var(--night); }
.night .divider i.big { background: var(--light); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.eyebrow { margin: 0 0 .5rem; font-size: .95rem; font-weight: 700; color: var(--teal-ink); letter-spacing: .02em; }
.night .eyebrow { color: var(--aqua); }
.section-sub { margin-top: 1rem; color: var(--ink-soft); font-size: 1.1rem; }
.night .section-sub { color: var(--on-night-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .7rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.4;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: linear-gradient(135deg, var(--light), var(--aqua)); color: var(--night); box-shadow: 0 10px 30px -10px rgba(63, 216, 213, .7); }
.btn-light:hover { box-shadow: 0 16px 40px -10px rgba(63, 216, 213, .9); }
.btn-ghost { border-color: rgba(233, 255, 253, .35); color: var(--on-night); background: rgba(233, 255, 253, .04); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--aqua); background: rgba(63, 216, 213, .1); }
.btn-dark { background: var(--night); color: var(--light); }
.btn-dark:hover { background: var(--blue); }
.btn-sm { min-height: 42px; padding: .45rem 1.1rem; font-size: .92rem; }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(-4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--header-h);
  color: var(--on-night);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 27, 51, .82); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-night), 0 10px 30px -18px rgba(0, 0, 0, .6);
  --header-h: 66px;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(63, 216, 213, .5), 0 0 24px rgba(63, 216, 213, .35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.1rem; font-weight: 850; }
.brand-text span { font-size: .82rem; color: var(--aqua); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav a { padding: .45rem .85rem; border-radius: 999px; font-weight: 600; font-size: .97rem; color: var(--on-night-soft); transition: color .25s, background .25s; }
.main-nav a:hover { color: var(--light); background: rgba(233, 255, 253, .07); }
.main-nav .nav-cta { margin-inline-start: .5rem; color: var(--night); background: var(--aqua); }
.main-nav .nav-cta:hover { background: var(--light); color: var(--night); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-night); background: rgba(233, 255, 253, .06); color: var(--light); align-items: center; justify-content: center; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

/* ---------- Hero ---------- */
.hero {
  min-height: min(100svh, 920px); display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 3rem); overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .3rem .9rem; border: 1px solid var(--line-night); border-radius: 999px; background: rgba(63, 216, 213, .06); font-size: .9rem; }
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 12px var(--aqua); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 {
  margin-top: 1.1rem;
  background: linear-gradient(100deg, var(--light) 30%, var(--aqua) 60%, var(--light) 90%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 9s ease-in-out infinite;
}
@keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero-sub { margin-top: 1.25rem; max-width: 34em; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: var(--on-night-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.hero-tags a { display: inline-block; padding: .2rem .8rem; border-radius: 999px; font-size: .85rem; color: var(--on-night-soft); border: 1px dashed rgba(63, 216, 213, .3); transition: .25s; }
.hero-tags a:hover { color: var(--light); border-style: solid; border-color: var(--aqua); }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-lighthouse { width: min(100%, 420px); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); overflow: visible; }
.hero-lighthouse .beams { transform-origin: 200px 127px; animation: beam-sweep 8s ease-in-out infinite; }
.hero-lighthouse .beam-r { transform-origin: 222px 127px; }
.hero-lighthouse .beam-l { transform-origin: 178px 127px; }
@keyframes beam-sweep {
  0%   { transform: scaleX(1);   opacity: 1; }
  25%  { transform: scaleX(.15); opacity: .4; }
  50%  { transform: scaleX(-1);  opacity: 1; }
  75%  { transform: scaleX(-.15); opacity: .4; }
  100% { transform: scaleX(1);   opacity: 1; }
}
.hero-lighthouse .lantern-glow { transform-origin: 200px 127px; animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.18); opacity: .75; } }

/* پرتو بزرگ نور که روی صفحه می‌چرخد */
.hero-sweep {
  position: absolute; z-index: 0; pointer-events: none;
  width: 2400px; height: 2400px; left: calc(22% - 1200px); top: calc(38% - 1200px);
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(233, 255, 253, .0) 70deg, rgba(233, 255, 253, .085) 84deg,
    rgba(63, 216, 213, .05) 92deg, transparent 104deg, transparent 250deg,
    rgba(233, 255, 253, .06) 266deg, transparent 282deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, #000 0 22%, transparent 60%);
  mask: radial-gradient(circle, #000 0 22%, transparent 60%);
  animation: sweep 22s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

/* ---------- Stats ---------- */
.stats { padding-block: 0; margin-top: -1px; }
.stats + .about { padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-day);
  position: relative; z-index: 3; margin-top: -40px;
}
.stat { padding: 1.75rem 1.25rem; text-align: center; display: flex; flex-direction: column; gap: .25rem; }
.stat + .stat { border-inline-start: 1px solid var(--line-day); }
.stat-num { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 900; line-height: 1.2; color: var(--night); display: inline-flex; justify-content: center; }
.stat-prefix { color: var(--teal); }
.stat-label { color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }

/* ---------- About ---------- */
.about { overflow: hidden; }
.about-watermark { position: absolute; inset-inline-end: -60px; top: 50%; transform: translateY(-50%); width: 380px; opacity: .045; filter: grayscale(1); pointer-events: none; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 3vw, 3rem); position: relative; }
.about-body { max-width: 52em; }
.about-body p { color: var(--ink-soft); font-size: 1.08rem; }
.about-body p:first-child { color: var(--ink); font-size: 1.2rem; font-weight: 600; }
.founders {
  background: var(--night); color: var(--on-night); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-night); position: relative; overflow: hidden;
}
.founders::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 100% 0, rgba(63, 216, 213, .25), transparent 70%); }
.founders h3 { position: relative; margin-bottom: 1.25rem; color: var(--aqua); font-size: 1rem; }
.founders-list { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.founder {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem;
  border-radius: var(--radius-sm); background: rgba(233, 255, 253, .05); border: 1px solid var(--line-night);
  transition: border-color .3s, background .3s;
}
.founder:hover { border-color: rgba(63, 216, 213, .45); background: rgba(63, 216, 213, .07); }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; flex: none; object-fit: cover;
  display: grid; place-items: center; font-size: 2rem; font-weight: 850; color: var(--night);
  background: conic-gradient(from 210deg, var(--aqua), var(--light), var(--teal), var(--aqua));
  box-shadow: 0 0 0 4px rgba(63, 216, 213, .15);
}
.avatar.avatar-photo { background: var(--night); box-shadow: 0 0 0 3px rgba(63, 216, 213, .55), 0 0 26px -2px rgba(63, 216, 213, .55); }
.founder-name { font-size: 1.15rem; font-weight: 750; line-height: 1.6; }

/* ---------- Glow cards (نور تعقیب‌کنندهٔ نشانگر) ---------- */
.glow-card { position: relative; --mx: 50%; --my: 0%; }
.glow-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(63, 216, 213, .16), transparent 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.glow-card:hover::after { opacity: 1; }

/* ---------- Areas ---------- */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.area-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 64, 123, .45), rgba(7, 27, 51, .6));
  border: 1px solid var(--line-night); box-shadow: var(--shadow-night);
  transition: transform .5s var(--ease), border-color .4s;
}
.area-card:hover { transform: translateY(-6px); border-color: rgba(63, 216, 213, .5); }
.area-media { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.area-media svg, .area-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.area-card:hover .area-media svg, .area-card:hover .area-media img { transform: scale(1.05); }
.area-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; position: relative; }
.area-index { position: absolute; inset-inline-end: 1.4rem; top: 1.2rem; font-weight: 900; font-size: 1.6rem; color: rgba(63, 216, 213, .25); }
.area-body h3 { font-size: 1.25rem; padding-inline-end: 3rem; }
.area-body h3 a:hover { color: var(--aqua); }
.area-summary { margin-top: .6rem; color: var(--on-night-soft); font-size: .98rem; line-height: 1.9; }
.ps { margin: .5rem 0 1.25rem; display: grid; gap: .6rem; }
.ps-row { padding: .75rem .9rem; border-radius: 12px; background: rgba(233, 255, 253, .04); border-inline-start: 3px solid; }
.ps-problem { border-color: rgba(233, 255, 253, .3); }
.ps-solution { border-color: var(--aqua); background: rgba(63, 216, 213, .07); }
.ps dt { display: flex; align-items: center; gap: .4rem; font-weight: 750; font-size: .88rem; color: var(--aqua); }
.ps-problem dt { color: var(--light); }
.ps dd { margin: .2rem 0 0; font-size: .92rem; line-height: 1.85; color: var(--on-night-soft); }
.link-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--aqua); align-self: flex-start; }
.link-more .icon { transition: transform .3s var(--ease); }
.link-more:hover .icon { transform: translateX(-5px); }

/* انیمیشن‌های داخل تصاویر SVG */
.illus-draw { stroke-dasharray: 600; stroke-dashoffset: 600; }
.is-visible .illus-draw, .page-hero .illus-draw { animation: draw 2.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.illus-dash { animation: dash 2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }
.illus-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.45); opacity: .6; } }
.illus-scanline { animation: scan 3s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(110px); } }
.illus-wave { animation: wavefade 2.4s ease-in-out infinite; }
.illus-wave.w2 { animation-delay: .3s; } .illus-wave.w3 { animation-delay: .6s; }
@keyframes wavefade { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.illus-pin { animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.illus-bars rect { transform-box: fill-box; transform-origin: bottom; animation: grow 3s ease-in-out infinite; }
.illus-bars rect:nth-child(2) { animation-delay: .2s; } .illus-bars rect:nth-child(3) { animation-delay: .4s; } .illus-bars rect:nth-child(4) { animation-delay: .6s; }
@keyframes grow { 50% { transform: scaleY(.75); } }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.industry {
  padding: 1.6rem 1.3rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-day);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  overflow: hidden;
}
.industry:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.industry-icon, .service-icon, .contact-icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex: none;
  color: var(--night); background: linear-gradient(135deg, var(--light), rgba(63, 216, 213, .55));
  box-shadow: inset 0 0 0 1px rgba(31, 182, 193, .35);
}
.industry-icon .icon, .service-icon .icon, .contact-icon .icon { width: 28px; height: 28px; }
.industry h3 { margin-top: 1.1rem; font-size: 1.08rem; }
.industry p { margin: .5rem 0 0; font-size: .93rem; color: var(--ink-soft); line-height: 1.85; }
.industry .glow-card::after, .day .glow-card::after { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(31, 182, 193, .12), transparent 45%); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.6rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line-day); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service h3 { font-size: 1.08rem; }
.service p { margin: .4rem 0 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.85; }

/* ---------- Process (مسیر فانوس تا کشتی) ---------- */
.voyage { position: relative; padding-block: 2rem 1rem; }
.voyage-path { position: absolute; inset-inline: 40px; top: 3.4rem; width: calc(100% - 80px); height: 90px; overflow: visible; }
.voyage-path path { fill: none; stroke: var(--aqua); stroke-width: 2.5; stroke-dasharray: .012 .012; vector-effect: non-scaling-stroke; opacity: .7;
  animation: sail 8s linear infinite; }
@keyframes sail { to { stroke-dashoffset: -.24; } }
.voyage-start, .voyage-end { position: absolute; top: 2.6rem; z-index: 2; }
.voyage-start { inset-inline-start: -8px; }
.voyage-start img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(63, 216, 213, .4), 0 0 40px rgba(63, 216, 213, .6); }
.voyage-end { inset-inline-end: -8px; width: 64px; }
[dir="rtl"] .voyage-end svg { transform: scaleX(-1); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; z-index: 1; padding-top: 6.5rem; counter-reset: s; }
.step { text-align: center; padding: 1.4rem 1.2rem; border-radius: var(--radius); background: rgba(233, 255, 253, .04); border: 1px solid var(--line-night); backdrop-filter: blur(4px); }
.step-num {
  width: 54px; height: 54px; margin: -3.1rem auto 1rem; display: grid; place-items: center; border-radius: 50%;
  font-weight: 900; font-size: 1.35rem; color: var(--night); background: var(--aqua);
  box-shadow: 0 0 0 6px rgba(63, 216, 213, .18), 0 0 30px rgba(63, 216, 213, .55);
}
.step h3 { font-size: 1.1rem; }
.step p { margin: .5rem 0 0; color: var(--on-night-soft); font-size: .94rem; line-height: 1.85; }

/* ---------- Publications marquee ---------- */
.pubs .section-head { margin-bottom: 2.5rem; }
.marquee { display: flex; overflow: hidden; gap: 1rem; direction: ltr;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1rem; flex: none; min-width: 100%; justify-content: space-around; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li span {
  display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; padding: .85rem 1.4rem; border-radius: 999px;
  background: var(--mist); border: 1px solid var(--line-day); font-weight: 700; color: var(--night); font-size: 1rem;
}
.marquee li span::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--teal); }
@keyframes marquee { to { transform: translateX(calc(-100% - 1rem)); } }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(4rem, 3rem + 4vw, 6rem); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .4rem; padding: 1.8rem; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(18, 64, 123, .55), rgba(7, 27, 51, .4));
  border: 1px solid var(--line-night); transition: transform .45s var(--ease), border-color .3s;
}
.contact-card:hover { transform: translateY(-6px); border-color: var(--aqua); }
.contact-card .contact-icon { margin-bottom: .8rem; }
.contact-label { color: var(--on-night-soft); font-size: .95rem; }
.contact-value { font-size: 1.3rem; font-weight: 800; color: var(--light); text-align: start; overflow-wrap: anywhere; }
[dir="rtl"] .contact-value[dir="ltr"] { text-align: right; }
.address-card {
  margin-top: 1.25rem; display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem 1.8rem; border-radius: var(--radius);
  background: rgba(233, 255, 253, .05); border: 1px dashed rgba(63, 216, 213, .35);
}
.address-text { flex: 1; }
.address-text strong { color: var(--aqua); font-size: .95rem; }
.address-text p { margin: .2rem 0 0; color: var(--on-night); line-height: 2; }
.copy-idle, .copy-done { display: inline-flex; align-items: center; gap: .4rem; }
.copy-done, [data-copied] .copy-idle { display: none; }
[data-copied] .copy-done { display: inline-flex; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-deep); color: var(--on-night-soft); padding-top: 3.5rem; border-top: 1px solid var(--line-night); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; }
.footer-brand strong { color: var(--light); font-size: 1.05rem; }
.footer-legal { margin: .4rem 0 0; font-size: .9rem; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .35rem; }
.footer-links a, .footer-contact a { width: fit-content; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--aqua); }
.footer-bottom { border-top: 1px solid var(--line-night); padding-block: 1.2rem 1.6rem; font-size: .88rem; }

/* ---------- Floating contact ---------- */
.float-contact { position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 40; display: flex; flex-direction: column; gap: .6rem; }
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--night);
  background: var(--aqua); box-shadow: 0 12px 30px -8px rgba(7, 27, 51, .6); transition: transform .3s var(--ease);
}
.float-btn:hover { transform: scale(1.08); }
.float-btn .icon { width: 26px; height: 26px; }
.float-wa { background: linear-gradient(135deg, var(--light), var(--aqua)); animation: ring 4s ease-in-out infinite; }
@keyframes ring { 0%, 80%, 100% { box-shadow: 0 12px 30px -8px rgba(7, 27, 51, .6), 0 0 0 0 rgba(63, 216, 213, .6); } 90% { box-shadow: 0 12px 30px -8px rgba(7, 27, 51, .6), 0 0 0 14px rgba(63, 216, 213, 0); } }
.float-call { display: none; }

/* ---------- Area detail page ---------- */
.page-hero { padding-top: calc(var(--header-h) + 3.5rem); overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.page-hero h1 { margin-top: .6rem; }
.page-hero-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-night); box-shadow: var(--shadow-night); }
.page-hero-art svg, .page-hero-art img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; }
.breadcrumb { display: flex; gap: .5rem; font-size: .9rem; color: var(--on-night-soft); }
.breadcrumb a:hover { color: var(--aqua); }
.area-detail { padding-top: 3rem; }
.ps-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.ps-card { padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line-day); background: #fff; }
.ps-card.ps-solution { background: linear-gradient(160deg, var(--night), var(--blue)); color: var(--on-night); border: 0; box-shadow: var(--shadow); }
.ps-card h2 { font-size: 1.25rem; margin: .9rem 0 .5rem; }
.ps-card p { margin: 0; color: var(--ink-soft); }
.ps-card.ps-solution p { color: var(--on-night-soft); }
.ps-card-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--mist); color: var(--night); }
.ps-solution .ps-card-icon { background: rgba(63, 216, 213, .18); color: var(--aqua); }
.prose { margin-top: 3.5rem; }
.prose p { font-size: 1.1rem; color: var(--ink-soft); }
.applications { margin-top: 2.5rem; }
.applications h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.applications ul { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.applications li { display: flex; gap: .7rem; align-items: center; padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: var(--mist); font-weight: 600; line-height: 1.8; }
.check { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--aqua); color: var(--night); }
.cta-band { margin-top: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.8rem 2rem; border-radius: var(--radius); background: linear-gradient(120deg, var(--light), #fff 60%); border: 1px solid var(--line-day); }
.cta-band strong { font-size: 1.2rem; }
.cta-band p { margin: .3rem 0 0; color: var(--ink-soft); }
.others-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.other-card { display: block; border-radius: var(--radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--line-day); transition: transform .4s var(--ease), box-shadow .4s; height: 100%; }
.other-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.other-media { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.other-media svg, .other-media img { width: 100%; height: 100%; object-fit: cover; }
.other-title { display: block; padding: .8rem 1rem 1rem; font-weight: 700; font-size: .95rem; line-height: 1.7; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 2rem); overflow: hidden; }
.lost-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.lost-art .hero-lighthouse { max-width: 300px; margin-inline: auto; }
.lost-code { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 900; line-height: 1; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--aqua); }
.lost h1 { margin: 1rem 0 .5rem; }
.lost .btn { margin-top: 1.5rem; }

/* ==========================================================================
   نسخهٔ دوم: منوی سه‌صفحه‌ای، شعار، مقالات، نمودار، تماس و نقشه
   ========================================================================== */

/* ---------- Nav: لینک فعال ---------- */
.main-nav a[aria-current="page"]:not(.nav-cta) { color: var(--light); background: rgba(63, 216, 213, .12); box-shadow: inset 0 0 0 1px rgba(63, 216, 213, .35); }
.main-nav .nav-cta[aria-current="page"] { background: var(--light); box-shadow: 0 0 0 3px rgba(63, 216, 213, .35), 0 0 22px rgba(63, 216, 213, .45); }

/* ---------- Hero: شعار (خط نوری هم‌خوان با پرتو فانوس) ---------- */
.hero-slogan {
  position: relative; display: inline-flex; align-items: center; gap: .85rem; max-width: 100%;
  margin: 1.1rem 0 0; padding-bottom: .55rem;
  font-size: clamp(1.1rem, .95rem + .75vw, 1.55rem); font-weight: 350; line-height: 1.7; letter-spacing: 0;
}
.hero-slogan::before {
  content: ""; flex: none; width: 46px; height: 2px; border-radius: 2px;
  background: linear-gradient(to left, transparent, var(--aqua)); box-shadow: 0 0 12px rgba(63, 216, 213, .8);
}
.hero-slogan span {
  background: linear-gradient(100deg, var(--light) 0%, var(--aqua) 55%, var(--light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-slogan::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background:
    linear-gradient(to left, transparent 0, rgba(233, 255, 253, .95) 50%, transparent 100%) no-repeat,
    linear-gradient(to left, rgba(63, 216, 213, .75), rgba(63, 216, 213, .08) 85%);
  background-size: 28% 100%, 100% 100%;
  background-position: 130% 0, 0 0;
  animation: slogan-glint 7s ease-in-out infinite;
}
@keyframes slogan-glint { 0%, 35% { background-position: 130% 0, 0 0; } 75%, 100% { background-position: -30% 0, 0 0; } }

/* ---------- Home: برچسب تعداد مقاله روی کارت حوزه ---------- */
.area-pubs {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; margin: -.1rem 0 .9rem;
  padding: .1rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 700;
  color: var(--aqua); border: 1px solid rgba(63, 216, 213, .4); background: rgba(63, 216, 213, .08); transition: .25s;
}
.area-pubs::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: currentColor; }
.area-pubs:hover { background: var(--aqua); color: var(--night); }

/* ---------- Home: صنایع و کاربردهای نمونه ---------- */
.industry { display: flex; flex-direction: column; }
.industry::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(to left, var(--aqua), var(--teal) 50%, transparent);
}
.industry-apps { margin-top: auto; padding-top: 1rem; }
.industry-apps-title { display: block; margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--line-day); font-size: .8rem; font-weight: 800; color: var(--teal-ink); }
.industry-apps ul { display: grid; gap: .3rem; margin-top: .35rem; }
.industry-apps li { position: relative; padding-inline-start: 1rem; font-size: .86rem; line-height: 1.75; color: var(--ink); font-weight: 600; }
.industry-apps li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 5px; height: 5px; transform: rotate(45deg); background: var(--teal); }

/* ---------- Home: تازه‌ترین مقاله‌ها ---------- */
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.latest-grid > div, .pub-grid > div, .area-pubs-grid > div { min-width: 0; }
.latest-more { margin-top: 2.25rem; display: flex; justify-content: center; }
.latest + .pubs { padding-top: 0; }

/* ---------- نوار دعوت به تماس (شبانه) ---------- */
.cta-night { padding-bottom: clamp(3.5rem, 2.5rem + 3vw, 5rem); overflow: hidden; }
.cta-glow {
  position: absolute; z-index: 0; pointer-events: none; width: 520px; height: 520px; inset-inline-start: -120px; top: 50%;
  transform: translateY(-40%); background: radial-gradient(circle, rgba(63, 216, 213, .2), transparent 62%);
}
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-text h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.cta-text p { margin: .5rem 0 0; color: var(--on-night-soft); font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- سرتیتر کوچک صفحه‌های داخلی ---------- */
.page-hero--compact { padding-top: calc(var(--header-h) + 3rem); }
.page-hero-text { position: relative; z-index: 2; }
.page-hero--compact h1 {
  margin-top: .6rem; max-width: 18em;
  background: linear-gradient(100deg, var(--light) 30%, var(--aqua) 60%, var(--light) 90%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 9s ease-in-out infinite;
}
.page-hero--compact .hero-sub { max-width: 40em; }
.page-hero--compact .hero-eyebrow { margin-top: 1rem; }

/* ---------- صفحهٔ مقالات: خلاصه و نمودار ---------- */
.pub-summary { padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.summary-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.5rem; align-items: stretch; }
.summary-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.summary-card {
  display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding: 1.4rem 1.5rem;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line-day); box-shadow: var(--shadow);
}
.summary-num { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 900; line-height: 1.2; color: var(--night); }
.summary-label { color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.summary-note { font-size: .82rem; color: var(--teal-ink); font-weight: 700; }
.summary-card--accent { background: linear-gradient(160deg, var(--night), var(--blue)); border-color: transparent; position: relative; overflow: hidden; }
.summary-card--accent::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 160px at 0 0, rgba(63, 216, 213, .28), transparent 70%); pointer-events: none; }
.summary-card--accent .summary-num { color: var(--aqua); position: relative; }
.summary-card--accent .summary-label { color: var(--on-night-soft); position: relative; }
.summary-card--accent .summary-note { color: var(--light); position: relative; }

.chart-card {
  margin: 0; padding: 1.6rem 1.6rem 1.2rem; border-radius: var(--radius); position: relative; overflow: hidden;
  color: var(--on-night); background: linear-gradient(165deg, var(--night), var(--night-deep));
  box-shadow: var(--shadow-night); isolation: isolate;
}
.chart-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(420px 240px at 100% 0, rgba(63, 216, 213, .16), transparent 70%); }
.chart-head h2 { font-size: 1.35rem; }
.chart-head p { margin: .15rem 0 0; color: var(--on-night-soft); font-size: .92rem; }
.chart-scroll { margin-top: .75rem; overflow-x: auto; overscroll-behavior-x: contain; }
.chart { display: block; width: 100%; max-width: calc(var(--chart-w) * 1.3); min-width: var(--chart-min); height: auto; margin-inline: auto; overflow: visible; direction: ltr; }
.chart-bar { fill: url(#bar-fill); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1s var(--ease), opacity .6s; transition-delay: calc(var(--i, 0) * 120ms); }
.chart-col.is-current .chart-bar { fill: url(#bar-fill-now); filter: drop-shadow(0 0 8px rgba(63, 216, 213, .65)); }
.chart-col.is-zero .chart-bar { fill: rgba(233, 255, 253, .28); }
.chart-value { fill: var(--light); font-size: 17px; font-weight: 800; transition: opacity .6s .5s; }
.chart-col.is-zero .chart-value { fill: var(--on-night-soft); font-weight: 600; }
.chart-year { fill: var(--on-night-soft); font-size: 15px; font-weight: 600; }
.chart-col.is-current .chart-year { fill: var(--aqua); font-weight: 800; }
.chart-now { fill: var(--aqua); font-size: 13px; font-weight: 600; }
.chart-base { stroke: rgba(233, 255, 253, .25); stroke-width: 1; }
.chart-avg line { stroke: var(--light); stroke-opacity: .75; stroke-width: 1.5; stroke-dasharray: 6 6; }
.chart-avg text { fill: var(--light); font-size: 13px; font-weight: 700; paint-order: stroke; stroke: var(--night-deep); stroke-width: 5px; stroke-linejoin: round; }
.chart-avg { transition: opacity .6s 1s; }
.js .chart-card:not(.is-visible) .chart-bar { transform: scaleY(0); }
.js .chart-card:not(.is-visible) .chart-value,
.js .chart-card:not(.is-visible) .chart-avg { opacity: 0; }
.chart-empty { margin: 1rem 0 0; color: var(--on-night-soft); }

/* ---------- صفحهٔ مقالات: فیلتر حوزه ---------- */
.filter-all {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; padding: .45rem .6rem .45rem 1.15rem;
  border-radius: 999px; border: 1px solid rgba(63, 216, 213, .35); color: var(--on-night); font-weight: 700; transition: .25s;
}
.filter-all:hover { border-color: var(--aqua); background: rgba(63, 216, 213, .1); }
.filter-all.is-active { background: var(--aqua); border-color: var(--aqua); color: var(--night); box-shadow: 0 0 26px -6px rgba(63, 216, 213, .8); }
.filter-all-count { min-width: 2rem; height: 2rem; padding-inline: .4rem; display: grid; place-items: center; border-radius: 999px; font-size: .88rem; background: rgba(233, 255, 253, .12); }
.filter-all.is-active .filter-all-count { background: var(--night); color: var(--aqua); }
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.filter-grid > li { min-width: 0; }
.filter-card {
  display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 64, 123, .45), rgba(7, 27, 51, .6));
  border: 1px solid var(--line-night); transition: transform .45s var(--ease), border-color .3s, box-shadow .3s, opacity .3s;
}
.filter-card:hover { transform: translateY(-5px); border-color: rgba(63, 216, 213, .55); }
.filter-media { display: block; aspect-ratio: 16 / 7; overflow: hidden; }
.filter-media svg, .filter-media img { width: 100%; height: 100%; object-fit: cover; }
.filter-body { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.2rem 1.15rem; flex: 1; }
.filter-title { font-weight: 800; font-size: 1.06rem; line-height: 1.6; color: var(--light); }
.filter-blurb { color: var(--on-night-soft); font-size: .9rem; line-height: 1.8; }
.filter-count { margin-top: auto; padding-top: .35rem; color: var(--aqua); font-weight: 800; font-size: .9rem; }
.filter-card.is-active { border-color: var(--aqua); box-shadow: 0 0 0 2px var(--aqua), 0 0 44px -8px rgba(63, 216, 213, .7); }
.filter-card.is-active .filter-count::after { content: " · انتخاب‌شده"; color: var(--light); font-weight: 600; }
.filter-card.is-empty { opacity: .55; }
.filter-card.is-empty .filter-media { filter: grayscale(.7); }
.filter-card.is-empty:hover, .filter-card.is-empty:focus-visible { opacity: .85; }

/* ---------- صفحهٔ مقالات: فهرست و خط زمانی ---------- */
.list-head { margin-bottom: 2.25rem; }
.list-status { margin: .5rem 0 0; color: var(--ink-soft); font-weight: 600; }
.list-status a { color: var(--teal-ink); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.timeline { position: relative; padding-inline-start: 2.4rem; }
.timeline::before {
  content: ""; position: absolute; inset-inline-start: .6rem; top: .9rem; bottom: .5rem; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--aqua), rgba(31, 182, 193, .35) 70%, rgba(31, 182, 193, 0));
}
.tl-group + .tl-group { margin-top: 2.75rem; }
.tl-year { position: relative; display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; font-size: 1.65rem; font-weight: 900; color: var(--night); }
.tl-dot {
  position: absolute; top: 50%; inset-inline-start: calc(-2.4rem + .6rem + 1px - 8px); width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 5px rgba(63, 216, 213, .2), 0 0 18px var(--aqua);
}
.tl-count { font-size: .82rem; font-weight: 700; color: var(--ink-soft); padding: .05rem .7rem; border-radius: 999px; background: var(--mist); border: 1px solid var(--line-day); }
.pub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.empty-state { padding: 2.5rem 2rem; border-radius: var(--radius); background: var(--mist); border: 1px dashed rgba(31, 182, 193, .5); text-align: center; }
.empty-state p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- کارت مقاله ---------- */
.pub-card {
  height: 100%; display: flex; flex-direction: column; gap: .6rem; padding: 1.35rem 1.45rem; overflow: hidden;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line-day);
  box-shadow: 0 12px 34px -26px rgba(11, 38, 68, .45);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.pub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(31, 182, 193, .45); }
.pub-card.has-badge { border-color: rgba(31, 182, 193, .4); }
.pub-card.has-badge::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(to left, var(--aqua), var(--light), var(--teal)); }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.pub-kind, .pub-badge, .pub-year { font-size: .78rem; font-weight: 800; line-height: 1.9; padding: 0 .7rem; border-radius: 999px; }
.pub-kind--journal { background: rgba(31, 182, 193, .15); color: var(--teal-ink); }
.pub-kind--conference { background: rgba(18, 64, 123, .1); color: var(--blue); }
.pub-kind--preprint { border: 1px dashed var(--teal-ink); color: var(--teal-ink); }
.pub-kind--domestic { background: var(--night); color: var(--light); }
.pub-year { padding: 0 .2rem; color: var(--ink-soft); }
.pub-badge { position: relative; overflow: hidden; color: var(--night); background: linear-gradient(120deg, var(--light), var(--aqua)); box-shadow: 0 0 16px -3px rgba(63, 216, 213, .8); }
.pub-badge::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .85) 50%, transparent 75%);
  animation: badge-shine 6s ease-in-out infinite;
}
@keyframes badge-shine { 0%, 65% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.pub-title { margin: 0; font-size: 1.03rem; font-weight: 750; line-height: 1.65; letter-spacing: 0; color: var(--night); text-align: left; overflow-wrap: anywhere; }
.pub-title-fa { margin: -.2rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.pub-venue { margin: 0; font-size: .88rem; line-height: 1.8; color: var(--ink-soft); text-align: left; }
.pub-venue-name { font-weight: 700; color: var(--blue); }
.pub-venue-detail { white-space: nowrap; }
.pub-venue-detail::before { content: "·"; margin-inline: .45rem; color: var(--teal); font-weight: 900; }
.pub-industry { margin: 0; padding: .55rem .85rem; border-radius: 12px; font-size: .9rem; line-height: 1.85; background: var(--mist); border-inline-start: 3px solid var(--aqua); }
.pub-industry strong { color: var(--teal-ink); font-weight: 800; }
.pub-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.pub-tags a { display: inline-block; padding: 0 .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.9; color: var(--ink-soft); border: 1px solid var(--line-day); transition: .25s; }
.pub-tags a:hover { color: var(--teal-ink); border-color: var(--teal); background: rgba(31, 182, 193, .08); }
.pub-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .3rem; padding-top: .2rem; font-weight: 800; font-size: .92rem; color: var(--teal-ink); }
.pub-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.pub-card--compact { padding: 1.2rem 1.3rem; }
.pub-card--compact .pub-title { font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- پژوهش‌های همکاری‌شده ---------- */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.research-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line-day); }
.research-icon { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--night); background: linear-gradient(135deg, var(--light), rgba(63, 216, 213, .55)); }
.research-card h3 { font-size: 1rem; line-height: 1.75; }
.research-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 0; font-size: .8rem; }
.research-meta span { font-weight: 800; color: var(--ink-soft); }
.research-meta a { padding: 0 .6rem; border-radius: 999px; border: 1px solid var(--line-day); color: var(--ink-soft); }
.research-meta a:hover { color: var(--teal-ink); border-color: var(--teal); }

/* ---------- صفحهٔ تماس ---------- */
.contact-hero .contact-grid { margin-top: 2.5rem; position: relative; z-index: 2; }
.contact-details { padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.75rem; align-items: start; }
.contact-layout.no-map { grid-template-columns: 1fr; }
.address-card--day { margin-top: 0; flex-wrap: wrap; background: var(--mist); border-color: rgba(31, 182, 193, .55); }
.address-card--day .address-text { flex: 1 1 240px; }
.address-card--day .address-text strong { color: var(--teal-ink); }
.address-card--day .address-text p { color: var(--ink); }
.registry { margin: 1.1rem 0 0; display: grid; gap: .55rem; padding: 1.2rem 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-day); box-shadow: var(--shadow); }
.registry div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--line-day); }
.registry div:last-child { padding-bottom: 0; border-bottom: 0; }
.registry dt { color: var(--ink-soft); }
.registry dd { margin: 0; font-weight: 700; text-align: end; }
.map-frame {
  position: relative; height: 360px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--night), var(--blue));
  box-shadow: 0 0 0 1px rgba(63, 216, 213, .4), 0 0 50px -12px rgba(63, 216, 213, .6), var(--shadow);
}
.map-frame iframe { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 2.2rem; color: var(--on-night-soft); font-weight: 600; }
.map-fallback svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-fallback span { position: relative; }
.map-pin { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 2.8s ease-in-out infinite; }
.map-route { margin-top: 1rem; }

/* ---------- صفحهٔ حوزه: مقالات این حوزه ---------- */
.area-pubs-block { margin-top: 3.25rem; }
.area-pubs-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.2rem; }
.area-pubs-head h2 { font-size: 1.5rem; }
.area-pubs-head .link-more { margin-top: 0; color: var(--teal-ink); }
.area-pubs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

/* ---------- Footer ---------- */
.footer-title { display: block; margin-bottom: .2rem; color: var(--light); font-size: .95rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .others-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: .6rem;
    background: radial-gradient(600px 400px at 50% 20%, rgba(18, 64, 123, .9), transparent), var(--night-deep);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .main-nav a { font-size: 1.35rem; padding: .6rem 1.4rem; color: var(--light); }
  .main-nav .nav-cta { margin: 1rem 0 0; }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .hero-grid, .page-hero-grid, .about-grid, .lost-inner { grid-template-columns: 1fr; }
  .hero { text-align: start; }
  .hero-art { order: -1; }
  .hero-lighthouse { width: min(62vw, 260px); }
  .hero-sweep { left: calc(50% - 1200px); top: calc(22% - 1200px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-day); }
  .steps { grid-template-columns: 1fr 1fr; padding-top: 2rem; row-gap: 3rem; }
  .voyage-path, .voyage-start, .voyage-end { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .float-call { display: grid; }
  .lost-art { order: -1; }
}
@media (max-width: 640px) {
  .area-grid, .service-grid, .industry-grid, .ps-cards, .applications ul { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .others-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .address-card { flex-direction: column; align-items: flex-start; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .brand-text strong { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat { padding: 1.3rem .8rem; }
}
@media (max-width: 420px) {
  .industry-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-sweep { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .illus-draw { stroke-dashoffset: 0; }
}

/* ---------- نسخهٔ دوم: واکنش‌گرا ---------- */
@media (max-width: 1100px) {
  .research-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .summary-grid, .contact-layout { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .main-nav a[aria-current="page"]:not(.nav-cta) { box-shadow: inset 0 -2px 0 var(--aqua); background: transparent; border-radius: 0; }
}
@media (max-width: 760px) {
  .pub-grid, .area-pubs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .filter-grid, .research-grid { grid-template-columns: 1fr; }
  .filter-card { flex-direction: row; }
  .filter-media { width: 104px; flex: none; aspect-ratio: auto; }
  .filter-body { padding: .8rem 1rem .9rem; }
  .filter-title { font-size: 1rem; }
  .filter-blurb { font-size: .85rem; line-height: 1.7; }
  .timeline { padding-inline-start: 1.6rem; }
  .timeline::before { inset-inline-start: .3rem; }
  .tl-dot { inset-inline-start: calc(-1.6rem + .3rem + 1px - 7px); width: 14px; height: 14px; margin-top: -7px; }
  .tl-year { font-size: 1.4rem; }
  .pub-card { padding: 1.15rem 1.15rem; }
  .summary-card { padding: 1.1rem 1.1rem; }
  .chart-card { padding: 1.2rem .9rem 1rem; }
  .chart-head { padding-inline: .3rem; }
  .chart-value { font-size: 20px; }
  .chart-year { font-size: 18px; }
  .chart-now, .chart-avg text { font-size: 15px; }
  .map-frame { height: 280px; }
  .registry { padding: 1rem 1.1rem; }
  .registry div { flex-direction: column; gap: 0; }
  .registry dd { text-align: start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
}

/* ---------- نسخهٔ دوم: کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-slogan::after, .pub-badge::after, .map-pin, .page-hero--compact h1 { animation: none !important; }
  .pub-badge::after { display: none; }
  .js .chart-card:not(.is-visible) .chart-bar { transform: none; }
  .js .chart-card:not(.is-visible) .chart-value,
  .js .chart-card:not(.is-visible) .chart-avg { opacity: 1; }
}

/* ---------- نسخهٔ سوم: بنیان‌گذاران (۳ ستون؛ تبلت ۲+۱؛ موبایل ۱) ---------- */
@media (max-width: 1000px) {
  .founder { flex: 0 1 calc(50% - .5rem); }
}
@media (max-width: 560px) {
  .founder { flex-basis: 100%; }
  .founders { padding: 1.5rem 1.1rem; }
  .avatar { width: 72px; height: 72px; font-size: 1.4rem; }
}

/* ==========================================================================
   نسخهٔ چهارم: صفحهٔ «سرگذشت تیم»
   ========================================================================== */
:root {
  --amber: #F2B544;          /* کهربایی ملایم: پروژهٔ شخصی */
  --amber-ink: #835400;
  --sky: #5AB2F0;            /* آبی آسمانی: پروژهٔ کاربردی */
  --sky-ink: #1A5C96;
  --gantt-bg: #0A2341;
}

/* ---------- ناوبری داخل صفحه ---------- */
.team-anchors { padding-block: 1.75rem 0; }
.anchor-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.anchor-nav a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line-day); background: #fff; color: var(--night); font-weight: 700; font-size: .95rem;
  box-shadow: 0 8px 24px -18px rgba(11, 38, 68, .5); transition: transform .3s var(--ease), border-color .25s, color .25s;
}
.anchor-nav a .icon { color: var(--teal-ink); }
.anchor-nav a:hover { border-color: var(--teal); color: var(--teal-ink); transform: translateY(-2px); }
.team-anchors + .team-members, .team-anchors + .team-projects { padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }

/* ---------- اعضای تیم ---------- */
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.member-grid > li { min-width: 0; }
.member-card {
  height: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.7rem 1.2rem 1.35rem;
  text-align: center; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-day);
  box-shadow: 0 12px 34px -26px rgba(11, 38, 68, .45);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(31, 182, 193, .45); }
.member-card .avatar { width: 96px; height: 96px; font-size: 2.2rem; }
.member-card.is-current .avatar {
  box-shadow: 0 0 0 3px rgba(63, 216, 213, .6), 0 0 0 9px rgba(63, 216, 213, .12), 0 0 30px 2px rgba(63, 216, 213, .45);
  animation: member-glow 4.5s ease-in-out infinite alternate;
}
@keyframes member-glow {
  to { box-shadow: 0 0 0 3px rgba(63, 216, 213, .8), 0 0 0 12px rgba(63, 216, 213, .07), 0 0 40px 6px rgba(63, 216, 213, .55); }
}
.member-card.is-former { background: var(--mist); box-shadow: none; }
.member-card.is-former .avatar { opacity: .72; filter: grayscale(.6); box-shadow: 0 0 0 3px rgba(62, 86, 114, .16); }
.member-card.is-former .avatar:not(.avatar-photo) { background: linear-gradient(140deg, #D4E2EC, #AFC4D3); }
.member-body { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.member-name { font-size: 1.12rem; line-height: 1.6; }
.member-card.is-former .member-name { color: var(--ink); }
.member-role { margin: 0; color: var(--teal-ink); font-weight: 700; font-size: .92rem; line-height: 1.7; }
.member-card.is-former .member-role { color: var(--ink-soft); }
.member-years {
  margin: .1rem 0 0; padding: 0 .8rem; border-radius: 999px; font-size: .86rem; font-weight: 800; line-height: 1.9;
  color: var(--teal-ink); background: rgba(63, 216, 213, .12); border: 1px solid rgba(31, 182, 193, .35);
}
.member-card.is-former .member-years { color: var(--ink-soft); background: #fff; border-color: var(--line-day); }
.member-badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: 0 .75rem; border-radius: 999px;
  font-size: .78rem; font-weight: 800; line-height: 1.9; color: var(--night);
  background: linear-gradient(120deg, var(--light), var(--aqua)); box-shadow: 0 0 14px -4px rgba(63, 216, 213, .8);
}
.member-badge .icon { width: .95rem; height: .95rem; }
.member-bio { margin: .35rem 0 0; font-size: .9rem; line-height: 1.85; color: var(--ink-soft); }
.member-link {
  margin-top: auto; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%;
  color: var(--teal-ink); border: 1px solid var(--line-day); background: #fff; transition: .25s;
}
.member-link:hover { color: var(--night); background: var(--aqua); border-color: var(--aqua); }

/* ---------- سال‌به‌سال ---------- */
.team-timeline-grid { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: clamp(1.75rem, 3vw, 3rem); align-items: start; }
.team-years.timeline::before { top: .8rem; }
.team-years .tl-year { margin-bottom: .45rem; font-size: 1.45rem; color: var(--light); }
.team-years .tl-group + .tl-group { margin-top: 1.6rem; }
.yr-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem; margin-top: .45rem; }
.yr-label { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 800; color: var(--aqua); }
.yr-row--leave .yr-label { color: var(--on-night-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { padding: 0 .8rem; border-radius: 999px; font-size: .86rem; font-weight: 700; line-height: 1.95; }
.chip--join { color: var(--night); background: linear-gradient(120deg, var(--light), var(--aqua)); box-shadow: 0 0 14px -5px rgba(63, 216, 213, .9); }
.chip--leave { color: var(--on-night-soft); background: rgba(181, 204, 221, .1); border: 1px dashed rgba(181, 204, 221, .45); }

/* ---------- نمودار خط‌زمانی (Gantt) ---------- */
.gantt-card {
  margin: 0; min-width: 0; padding: 1.5rem 1.5rem 1.2rem; border-radius: var(--radius); position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(165deg, #10325C, var(--gantt-bg) 60%); border: 1px solid var(--line-night); box-shadow: var(--shadow-night);
}
.gantt-card::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(420px 220px at 100% 0, rgba(63, 216, 213, .14), transparent 70%); }
.gantt-card .chart-head h3 { font-size: 1.25rem; }
.gantt-hint { display: none; }
.gantt-scroll {
  margin-top: 1rem; overflow-x: auto; overscroll-behavior-x: contain; border-radius: 16px;
  background: var(--gantt-bg); border: 1px solid var(--line-night);
}
.gantt {
  --names-w: 170px;
  display: grid; grid-template-columns: var(--names-w) minmax(0, 1fr);
  min-width: calc(var(--names-w) + var(--cols) * 44px + 20px); padding-inline-end: 20px;
}
.gantt-names {
  position: sticky; inset-inline-start: 0; z-index: 2; padding-top: var(--header-h); background: var(--gantt-bg);
  border-inline-end: 1px solid var(--line-night); box-shadow: -12px 0 16px -14px rgba(0, 0, 0, .8);
}
.gantt-names li {
  height: var(--row-h); display: flex; align-items: center; gap: .3rem; padding-inline: .9rem .55rem;
  font-size: .9rem; font-weight: 700; color: var(--light); white-space: nowrap;
}
.gantt-names li.is-odd { background: rgba(233, 255, 253, .035); }
.gantt-names li.is-former { color: var(--on-night-soft); font-weight: 600; }
.gantt-name {
  min-width: 0; overflow: hidden; white-space: normal; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.gantt-founder { flex: none; display: inline-flex; color: var(--aqua); }
.gantt-founder .icon { width: 1rem; height: 1rem; }
.gantt-plot { display: block; width: 100%; max-width: none; overflow: visible; direction: ltr; }
.gantt-now-col { fill: rgba(63, 216, 213, .07); }
.gantt-stripe { fill: rgba(233, 255, 253, .035); }
.gantt-grid { stroke: rgba(233, 255, 253, .08); stroke-width: 1; }
.gantt-axis { stroke: rgba(233, 255, 253, .22); stroke-width: 1; }
.gantt-year { fill: var(--on-night-soft); font-size: 13px; font-weight: 600; }
.gantt-year.is-current { fill: var(--aqua); font-weight: 800; }
.gantt-bar { transform-box: fill-box; transform-origin: 100% 50%; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.gantt-row.is-current .gantt-bar { fill: url(#gantt-now-fill); }
.gantt-row.is-former .gantt-bar { fill: rgba(181, 204, 221, .28); stroke: rgba(181, 204, 221, .4); stroke-width: 1; }
.gantt-tip { fill: #fff; filter: drop-shadow(0 0 5px rgba(63, 216, 213, .95)); }
.gantt-halo { fill: var(--aqua); fill-opacity: .2; transform-box: fill-box; transform-origin: center; animation: tip-pulse 2.8s ease-in-out infinite; }
@keyframes tip-pulse { 0%, 100% { transform: scale(.75); fill-opacity: .12; } 50% { transform: scale(1.15); fill-opacity: .32; } }
.gantt-now { fill: var(--aqua); font-size: 10.5px; font-weight: 700; }
.gantt-tip, .gantt-halo, .gantt-now { transition: opacity .5s; transition-delay: calc(var(--i, 0) * 110ms + .9s); }
.js .gantt-card:not(.is-visible) .gantt-bar { transform: scaleX(0); }
.js .gantt-card:not(.is-visible) .gantt-tip,
.js .gantt-card:not(.is-visible) .gantt-halo,
.js .gantt-card:not(.is-visible) .gantt-now { opacity: 0; }
.gantt-legend { display: flex; flex-wrap: wrap; gap: .45rem 1.3rem; margin-top: .9rem; font-size: .85rem; font-weight: 600; color: var(--on-night-soft); }
.gantt-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.gantt-legend .icon { color: var(--aqua); }
.swatch { width: 28px; height: 10px; border-radius: 6px; flex: none; }
.swatch--current { background: linear-gradient(to left, var(--teal), var(--aqua) 70%, var(--light)); box-shadow: 0 0 10px rgba(63, 216, 213, .7); }
.swatch--former { background: rgba(181, 204, 221, .28); border: 1px solid rgba(181, 204, 221, .4); }

/* ---------- پروژه‌ها ---------- */
.kind-filter { display: flex; flex-wrap: wrap; gap: .55rem; }
.kind-chip {
  display: inline-flex; align-items: center; gap: .45rem; padding-block: .35rem; padding-inline: 1rem .45rem;
  border-radius: 999px; border: 1px solid var(--line-day); background: #fff; color: var(--night); font-weight: 700;
  transition: border-color .25s, background .25s, color .25s, box-shadow .25s;
}
.kind-chip:hover { border-color: var(--teal); }
.kind-count { min-width: 1.85rem; height: 1.85rem; padding-inline: .35rem; display: grid; place-items: center; border-radius: 999px; font-size: .82rem; background: var(--mist); }
.kind-chip--personal .icon { color: var(--amber-ink); }
.kind-chip--research .icon { color: var(--teal-ink); }
.kind-chip--applied .icon { color: var(--sky-ink); }
.kind-chip.is-active { background: var(--night); border-color: var(--night); color: var(--light); box-shadow: 0 0 0 3px rgba(63, 216, 213, .35), 0 0 24px -6px rgba(63, 216, 213, .7); }
.kind-chip.is-active .icon { color: var(--aqua); }
.kind-chip.is-active .kind-count { background: var(--aqua); color: var(--night); }
.kind-chip.is-empty:not(.is-active) { opacity: .6; }
.team-projects .list-status { margin: 1rem 0 2rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.project-grid > div { min-width: 0; }
.project-card {
  --kind-accent: linear-gradient(to left, var(--aqua), var(--teal));
  height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line-day); box-shadow: 0 12px 34px -26px rgba(11, 38, 68, .45);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.project-card::before { content: ""; position: absolute; z-index: 1; inset-inline: 0; top: 0; height: 3px; background: var(--kind-accent); }
.project-card--personal { --kind-accent: linear-gradient(to left, var(--amber), #FFE2A0); }
.project-card--applied { --kind-accent: linear-gradient(to left, var(--sky), #BFE3FF); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(31, 182, 193, .45); }
.project-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body { flex: 1; display: flex; flex-direction: column; gap: .6rem; padding: 1.3rem 1.35rem 1.25rem; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; }
.project-kind { display: inline-flex; align-items: center; gap: .3rem; padding: 0 .7rem; border-radius: 999px; font-size: .78rem; font-weight: 800; line-height: 1.9; }
.project-kind .icon { width: .95rem; height: .95rem; }
.project-kind--personal { color: var(--amber-ink); background: rgba(242, 181, 68, .2); }
.project-kind--research { color: var(--teal-ink); background: rgba(31, 182, 193, .15); }
.project-kind--applied { color: var(--sky-ink); background: rgba(90, 178, 240, .17); }
.project-years { font-size: .86rem; font-weight: 800; color: var(--ink-soft); }
.project-title { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.7; color: var(--night); }
.project-desc { margin: 0; font-size: .92rem; line-height: 1.85; color: var(--ink-soft); }
.people { display: flex; flex-wrap: wrap; gap: .35rem; }
.person {
  display: inline-flex; align-items: center; gap: .4rem; padding-block: .15rem; padding-inline: .2rem .75rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700; line-height: 1.6; background: var(--mist); border: 1px solid var(--line-day);
}
.person-avatar {
  width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  font-size: .8rem; font-weight: 850; color: var(--night);
  background: conic-gradient(from 210deg, var(--aqua), var(--light), var(--teal), var(--aqua));
}
.person.is-former { color: var(--ink-soft); }
.person.is-former .person-avatar { opacity: .75; filter: grayscale(.6); }
.project-body .pub-link { margin-top: auto; }

/* ---------- صفحهٔ مقالات: لینک به سرگذشت تیم ---------- */
.research-more { margin: 1.6rem 0 0; }
.research-more .link-more { color: var(--teal-ink); }

/* ---------- نسخهٔ چهارم: واکنش‌گرا ---------- */
@media (min-width: 1101px) {
  .gantt-card { position: sticky; top: calc(var(--header-h) + 1.25rem); }
}
@media (max-width: 1100px) {
  .team-timeline-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gantt-card { padding: 1.2rem .85rem 1rem; }
  .gantt-card .chart-head { padding-inline: .3rem; }
  .gantt-hint { display: block; margin: .45rem .3rem 0; font-size: .82rem; color: var(--on-night-soft); }
  .gantt { --names-w: 112px; }
  .gantt-names li { padding-inline: .6rem .35rem; font-size: .82rem; }
  .gantt-legend { padding-inline: .3rem; }
  .team-years .tl-year { font-size: 1.3rem; }
  .kind-chip { padding-inline: .8rem .4rem; font-size: .92rem; }
}
@media (max-width: 520px) {
  .member-grid { grid-template-columns: 1fr; }
  .member-card { position: relative; flex-direction: row; align-items: flex-start; gap: 1rem; padding: 1.15rem 1.1rem; text-align: start; }
  .member-card .avatar { width: 72px; height: 72px; font-size: 1.6rem; }
  .member-body { align-items: flex-start; gap: .3rem; }
  .member-name { padding-inline-end: 2.6rem; }
  .member-link { position: absolute; top: 1rem; inset-inline-end: 1rem; margin: 0; }
  .anchor-nav { gap: .4rem; }
  .anchor-nav a { padding: .4rem .75rem; font-size: .86rem; gap: .3rem; }
}

/* ---------- نسخهٔ چهارم: کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
  .member-card.is-current .avatar, .gantt-halo { animation: none !important; }
  .js .gantt-card:not(.is-visible) .gantt-bar { transform: none; }
  .js .gantt-card:not(.is-visible) .gantt-tip,
  .js .gantt-card:not(.is-visible) .gantt-halo,
  .js .gantt-card:not(.is-visible) .gantt-now { opacity: 1; }
}
