@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

@font-face {
  font-family: "Masmak";
  src: url("../fonts/Masmak.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F4EADA;
  --panel: rgba(244, 234, 218, .86);
  --panel-solid: #F4EADA;
  --panel-soft: rgba(35, 31, 32, .045);
  --text: #231f20;
  --muted: rgba(35, 31, 32, .68);
  --muted-2: rgba(35, 31, 32, .52);
  --ink: #231f20;
  --line: rgba(35, 31, 32, .18);
  --line-strong: rgba(35, 31, 32, .32);
  --shadow: 0 28px 80px rgba(35, 31, 32, .16);
  --radius: 28px;
  --font-body: "Noto Naskh Arabic", "Amiri", Tahoma, Arial, serif;
  --font-title: "Masmak", "Amiri", "Noto Naskh Arabic", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.noise { display: none !important; }

body.loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .55s ease, visibility .55s ease;
}

.page-loader::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(35,31,32,.1);
  border-top-color: rgba(35,31,32,.85);
  animation: loaderSpin 1s linear infinite;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: min(220px, 46vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(35,31,32,.12));
  position: relative;
  z-index: 1;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw;
  background: linear-gradient(to bottom, rgba(244,234,218,.96), rgba(244,234,218,.72), rgba(244,234,218,0));
  transition: .3s ease;
}
.site-header.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(244,234,218,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(35,31,32,.08);
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand-logo {
  width: 170px;
  height: 86px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(35,31,32,.08));
}
.brand-text {
  font-family: var(--font-title);
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  color: var(--text);
}
.main-nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 16px; }
.main-nav a { transition: .25s ease; }
.main-nav a:hover { color: var(--text); }
.menu-toggle { display: none; background: none; color: var(--text); border: 0; font-size: 28px; }

.section { padding: 120px 6vw; position: relative; }
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 60px;
  padding-top: 150px;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 78% 28%, rgba(244,234,218,.78), transparent 32%),
    linear-gradient(90deg, rgba(244,234,218,.94), rgba(244,234,218,.72), rgba(244,234,218,.96)),
    url("../img/hero-saudi.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: linear-gradient(to top, var(--bg), transparent);
}
.hero-content, .hero-card { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .6px;
  font-weight: 700;
}
h1, h2, h3, .year, .stat strong, .hero-card strong, .brand-mark, .founding-year, .point-year {
  font-family: var(--font-title);
  font-weight: 400;
}
h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 116px);
  line-height: .98;
  letter-spacing: -1px;
  color: var(--text);
}
h1 span {
  color: transparent;
  -webkit-text-stroke: 1.1px rgba(35,31,32,.88);
}
.hero-copy {
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 2;
  margin: 34px 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 700;
  transition: .28s ease;
}
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.ghost { color: var(--text); background: rgba(244,234,218,.38); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(35,31,32,.14); }
.hero-card {
  align-self: end;
  margin-bottom: 80px;
  padding: 32px;
  background: rgba(244,234,218,.78);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.card-label { color: var(--muted); font-size: 14px; font-weight: 700; }
.hero-card strong { display: block; margin: 10px 0; font-size: 34px; }
.hero-card p { color: var(--muted); line-height: 1.9; margin: 0; }
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: .45;
}
.orb-one { width: 260px; height: 260px; background: rgba(35,31,32,.10); right: 8vw; top: 18vh; }
.orb-two { width: 420px; height: 420px; background: rgba(35,31,32,.05); left: -140px; bottom: 20vh; }
.scroll-hint {
  position: absolute;
  z-index: 3;
  bottom: 42px;
  right: 6vw;
  color: var(--muted-2);
  font-size: 13px;
  writing-mode: vertical-rl;
}

.heritage-divider {
  padding: 0 6vw;
  height: 86px;
  display: flex;
  align-items: center;
}
.heritage-divider span {
  position: relative;
  display: block;
  width: 100%;
  height: 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(35,31,32,.02), rgba(35,31,32,.045), rgba(35,31,32,.02)),
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(35,31,32,.05) 72px 80px, transparent 80px 152px);
  overflow: hidden;
}
.heritage-divider span::before,
.heritage-divider span::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 22px;
  transform: translateY(-50%);
}
.heritage-divider span::before {
  background:
    radial-gradient(circle, rgba(35,31,32,.16) 0 2px, transparent 3px) center/56px 22px repeat-x,
    linear-gradient(90deg, transparent 0 5%, rgba(35,31,32,.10) 5% 5.6%, transparent 5.6% 11.2%, rgba(35,31,32,.10) 11.2% 11.8%, transparent 11.8% 100%);
  opacity: .75;
}
.heritage-divider span::after {
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(35,31,32,.06) 46% 54%, transparent 54% 100%) center/64px 100% repeat-x;
  opacity: .5;
}

.section-title {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 52px;
}
.section-title span { color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 14px; font-weight: 700; }
.section-title h2 { margin: 0; font-size: clamp(38px, 5vw, 76px); line-height: 1.05; }
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
}
.lead {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.75;
  color: var(--text);
}
.text-box {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}
.text-box h3, .service-card h3, .timeline-item h3, .point-card h3 { margin: 0 0 12px; color: var(--text); }
.text-box p, .service-card p, .timeline-item p, .contact-card p, .point-card p { color: var(--muted); line-height: 2; margin: 0; }

.dark-panel {
  background:
    linear-gradient(135deg, rgba(35,31,32,.07), transparent 35%),
    rgba(244,234,218,.58);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  min-height: 300px;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(244,234,218,.54);
  transition: .3s ease;
  box-shadow: 0 18px 54px rgba(35,31,32,.06);
}
.service-card:hover { background: rgba(35,31,32,.055); }
.service-card > span { color: var(--muted); display: block; margin-bottom: 45px; font-weight: 700; }

/* Founding timeline with rotating gear */
.founding-strip {
  padding-top: 92px;
  padding-bottom: 92px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(35,31,32,.045), transparent 24%, rgba(35,31,32,.03)),
    rgba(244,234,218,.74);
}
.founding-intro {
  max-width: 980px;
  margin: -24px 104px 36px 0;
}
.founding-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
  font-size: clamp(17px, 2vw, 22px);
}
.founding-dates-marquee {
  width: 100%;
  overflow: hidden;
  margin: 0 0 34px;
  padding: 8px 0;
  mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
}
.dates-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: datesMarquee 26s linear infinite;
}
.date-chip {
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(244,234,218,.78);
  color: var(--muted);
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(35,31,32,.05);
}
.date-chip.featured {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(35,31,32,.06);
}
@keyframes datesMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
.gear-stage {
  position: relative;
  min-height: 370px;
  display: grid;
  place-items: center;
  margin: 0 auto 34px;
}
.gear {
  position: absolute;
  border-radius: 50%;
  filter: drop-shadow(0 18px 38px rgba(35,31,32,.12));
}
.gear-lg {
  width: 280px;
  height: 280px;
  animation: gearSpin 22s linear infinite;
}
.gear-lg::before,
.gear-lg::after,
.gear-sm::before,
.gear-sm::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.gear-lg::before {
  inset: 0;
  background: repeating-conic-gradient(from 0deg, rgba(35,31,32,.18) 0 10deg, transparent 10deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 0 43%, #000 44% 68%, transparent 69%);
          mask: radial-gradient(circle, transparent 0 43%, #000 44% 68%, transparent 69%);
}
.gear-lg::after {
  inset: 34px;
  border: 1px solid var(--line-strong);
  background: rgba(244,234,218,.82);
}
.gear-sm {
  width: 138px;
  height: 138px;
  top: 38px;
  right: calc(50% - 190px);
  animation: gearSpinReverse 12s linear infinite;
}
.gear-sm::before {
  inset: 0;
  background: repeating-conic-gradient(from 0deg, rgba(35,31,32,.16) 0 12deg, transparent 12deg 28deg);
  -webkit-mask: radial-gradient(circle, transparent 0 40%, #000 41% 66%, transparent 67%);
          mask: radial-gradient(circle, transparent 0 40%, #000 41% 66%, transparent 67%);
}
.gear-sm::after {
  inset: 28px;
  background: rgba(244,234,218,.86);
  border: 1px solid var(--line);
}
@keyframes gearSpin {
  to { transform: rotate(360deg); }
}
@keyframes gearSpinReverse {
  to { transform: rotate(-360deg); }
}
.gear-core {
  position: relative;
  z-index: 2;
  width: min(360px, 88vw);
  padding: 34px 28px;
  border-radius: calc(var(--radius) + 6px);
  text-align: center;
  border: 1px solid var(--line-strong);
  background: rgba(244,234,218,.92);
  box-shadow: var(--shadow);
}
.gear-core strong {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1;
  margin-bottom: 10px;
}
.gear-core span {
  display: block;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  font-weight: 700;
}
.founding-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.point-card {
  min-height: 250px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(244,234,218,.72);
  box-shadow: 0 18px 58px rgba(35,31,32,.07);
  position: relative;
  overflow: hidden;
}
.point-card::before {
  content: "";
  position: absolute;
  inset: 16px 16px auto auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  opacity: .6;
}
.point-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(35,31,32,.06);
  color: var(--text);
  font-size: 24px;
}
.founding-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}
.founding-sources span { font-weight: 700; color: var(--text); }
.founding-sources a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244,234,218,.58);
}

/* richer content grid */
.portfolio-grid {
  display: grid;
  direction: ltr;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 18px;
}
.work-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(35,31,32,.05);
  border: 1px solid var(--line);
  box-shadow: 0 18px 58px rgba(35,31,32,.09);
  transition: none !important;
}
.work-card.tall { grid-row: span 2; }
.work-card.wide { grid-column: span 2; }
.work-visual {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: none !important;
  transition: none !important;
}
.work-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(244,234,218,.92), rgba(244,234,218,.18));
}
.work-card:hover .work-visual,
.work-card:hover,
.work-card:hover .work-info { transform: none !important; }
.work-info {
  position: absolute;
  right: 24px;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  direction: rtl;
  text-align: right;
}
.work-info small { color: var(--muted); font-weight: 700; }
.work-info h3 { margin: 6px 0 0; font-size: 30px; color: var(--text); }
.heritage { background-image: url("../img/heritage.jpg"); }
.places { background-image: url("../img/places.jpg"); }
.craft { background-image: url("../img/craft.jpg"); }
.people { background-image: url("../img/people.jpg"); }
.architecture { background-image: url("../img/places.jpg"); }
.attire { background-image: url("../img/heritage.jpg"); }
.maps { background-image: url("../img/statement.jpg"); }
.archive { background-image: url("../img/craft.jpg"); }
.oral { background-image: url("../img/people.jpg"); }
.markets { background-image: url("../img/places.jpg"); }

.statement {
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 6vw;
  background-image:
    linear-gradient(rgba(244,234,218,.86), rgba(244,234,218,.93)),
    url("../img/statement.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statement-inner { max-width: 980px; }
.statement-inner span { color: var(--muted); font-weight: 700; }
.statement-inner h2 { font-size: clamp(34px, 5vw, 70px); line-height: 1.45; margin: 18px 0 0; }

.timeline-list { max-width: 980px; margin-right: auto; display: grid; gap: 22px; }
.timeline-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 26px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(244,234,218,.62);
  border: 1px solid var(--line);
  box-shadow: 0 18px 58px rgba(35,31,32,.06);
}
.year { color: var(--text); font-size: 30px; font-weight: 700; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat {
  padding: 40px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244,234,218,.6);
}
.stat strong { display: block; color: var(--text); font-size: clamp(56px, 8vw, 110px); line-height: 1; }
.stat span { color: var(--muted); }
.contact-card {
  max-width: 980px;
  margin: auto;
  padding: clamp(36px, 7vw, 80px);
  border-radius: calc(var(--radius) + 14px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(35,31,32,.075), transparent 46%),
    rgba(244,234,218,.72);
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-card h2 { font-size: clamp(36px, 5vw, 68px); line-height: 1.35; margin: 0 0 22px; }
.contact-card .btn { margin-top: 28px; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 6vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(244,234,218,.72);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--text); font-weight: 700; }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }
.delay-3 { transition-delay: .32s; }

@media (max-width: 1200px) {
  .portfolio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .founding-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; margin-bottom: 30px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header { padding: 18px 5vw; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 92px;
    right: 5vw;
    left: 5vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 22px;
    background: rgba(244,234,218,.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .brand-logo { width: 128px; height: 64px; }
  .brand-text { font-size: 22px; }
  .section { padding: 90px 5vw; }
  .heritage-divider { padding: 0 5vw; height: 68px; }
  .hero { padding-top: 120px; background-attachment: scroll; }
  h1 { font-size: 56px; }
  .intro-grid, .service-grid, .stats, .founding-points { grid-template-columns: 1fr; }
  .section-title { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; direction: rtl; }
  .work-card.tall, .work-card.wide { grid-row: auto; grid-column: auto; }
  .statement { background-attachment: scroll; }
  .timeline-item { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .founding-intro { margin: -18px 0 28px; }
  .gear-stage { min-height: 300px; }
  .gear-lg { width: 220px; height: 220px; }
  .gear-sm { width: 100px; height: 100px; right: calc(50% - 145px); }
  .dates-track { animation-duration: 32s; }
}

@media (prefers-reduced-motion: reduce) {
  .dates-track,
  .gear-lg,
  .gear-sm,
  .page-loader::after,
  .reveal {
    animation: none !important;
    transition: none !important;
  }
}


/* =========================================================
   Final requested updates:
   - Animated line dividers instead of heritage strips
   - Horizontal card for "شخصيات صنعت الأثر"
   - Containers without visible borders, using drop shadows
========================================================= */

/* Hide old divider style if any remains */
.heritage-divider {
  display: none !important;
}

/* Animated moving line separator between sections */
.motion-divider {
  height: 78px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.motion-divider::before,
.motion-divider::after {
  content: "";
  position: absolute;
  right: 6vw;
  left: 6vw;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(35,31,32,.18),
    rgba(35,31,32,.06),
    rgba(35,31,32,.18),
    transparent
  );
}

.motion-divider::before {
  top: 24px;
}

.motion-divider::after {
  bottom: 24px;
}

.motion-divider span {
  position: relative;
  display: block;
  width: 100%;
  height: 34px;
  overflow: hidden;
}

.motion-divider span::before,
.motion-divider span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 220%;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(35,31,32,.13) 5% 5.5%, transparent 5.5% 11%),
    repeating-linear-gradient(90deg, transparent 0 64px, rgba(35,31,32,.09) 64px 66px, transparent 66px 128px);
  opacity: .75;
  animation: moveLines 18s linear infinite;
}

.motion-divider span::after {
  opacity: .35;
  transform: translateX(25%);
  animation-duration: 28s;
  animation-direction: reverse;
}

@keyframes moveLines {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* Remove visible borders from containers and rely on drop shadow */
.service-card,
.work-card,
.text-box,
.point-card,
.timeline-item,
.stat,
.contact-card,
.gear-core,
.date-chip,
.founding-sources a,
.hero-card {
  border: 0 !important;
  box-shadow: 0 26px 72px rgba(35,31,32,.12) !important;
}

.dark-panel {
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: inset 0 26px 70px rgba(35,31,32,.045), inset 0 -26px 70px rgba(35,31,32,.035);
}

.site-header.scrolled {
  border-bottom: 0 !important;
  box-shadow: 0 18px 52px rgba(35,31,32,.10);
}

.statement,
.site-footer {
  border: 0 !important;
}

/* Keep content cards richer and make "شخصيات صنعت الأثر" horizontal */
.work-card.wide .people,
.work-card.wide:has(.people) {
  min-height: 210px;
}

.work-card.wide .people {
  background-position: center;
}

@media (max-width: 760px) {
  .motion-divider {
    height: 60px;
    padding: 0 5vw;
  }

  .motion-divider::before,
  .motion-divider::after {
    right: 5vw;
    left: 5vw;
  }

  .motion-divider span {
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-divider span::before,
  .motion-divider span::after {
    animation: none !important;
  }
}


/* =========================================================
   Clean final fixes
   - حذف أرقام عناوين السكاشن
   - حذف الترس واستبداله بخلفية
   - جعل "شخصيات صنعت الأثر" عرضية والنص في المنتصف
   - حذف الصور/البطاقات المحددة من HTML
   - استخدام أسماء صور واضحة داخل assets/img
========================================================= */

/* حذف أرقام يمين السكاشن */
.section-title {
  grid-template-columns: 1fr !important;
}

.section-title > span {
  display: none !important;
}

/* خلفية بديلة لمكان الترس */
.gear-stage,
.gear,
.gear-lg,
.gear-sm,
.gear-core {
  display: none !important;
}

.founding-visual {
  position: relative;
  min-height: 430px;
  margin: 34px 0 42px;
  border-radius: calc(var(--radius) + 18px);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(244,234,218,.92), rgba(244,234,218,.68), rgba(244,234,218,.9)),
    url("../img/founding-visual-bg.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 32px 90px rgba(35,31,32,.16);
}

.founding-visual::before {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 50% 50%, rgba(244,234,218,.72), rgba(244,234,218,.22) 46%, transparent 70%);
  opacity: .95;
}

.founding-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(244,234,218,.9), transparent);
}

.founding-visual-content {
  position: relative;
  z-index: 2;
  width: min(520px, 86vw);
  min-height: 190px;
  padding: 36px 30px;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(244,234,218,.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  box-shadow: 0 26px 74px rgba(35,31,32,.13);
}

.founding-visual-content strong {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(58px, 8vw, 112px);
  line-height: .9;
  color: var(--text);
}

.founding-visual-content span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

/* أسماء الصور الجديدة داخل الفولدر */
.heritage { background-image: url("../img/content-founding.jpg") !important; }
.places { background-image: url("../img/content-places.jpg") !important; }
.craft { background-image: url("../img/content-crafts.jpg") !important; }
.architecture { background-image: url("../img/content-architecture.jpg") !important; }
.people { background-image: url("../img/content-people-impact.jpg") !important; }
.archive { background-image: url("../img/content-archive.jpg") !important; }
.attire { background-image: url("../img/content-attire-memory.jpg") !important; }

/* ضبط مسارات المحتوى بعد حذف البطاقات المحددة */
.portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: 230px !important;
  direction: rtl !important;
}

/* جعل بطاقة شخصيات صنعت الأثر عرضية والنص في المنتصف */
.people-card {
  grid-column: span 2 !important;
  grid-row: span 1 !important;
  min-height: 230px !important;
}

.people-card .work-info {
  inset: 0 !important;
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
  padding: 28px !important;
}

.people-card .work-info h3 {
  font-size: clamp(32px, 4vw, 52px) !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.people-card .work-visual {
  background-position: center !important;
}

.people-card .work-visual::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(244,234,218,.8), rgba(244,234,218,.35) 45%, rgba(244,234,218,.18)),
    linear-gradient(to top, rgba(244,234,218,.82), rgba(244,234,218,.10)) !important;
}

/* حاويات بدون خط بوردر، فقط دروب شادو */
.service-card,
.work-card,
.text-box,
.point-card,
.timeline-item,
.stat,
.contact-card,
.founding-visual-content,
.date-chip,
.founding-sources a,
.hero-card {
  border: 0 !important;
  box-shadow: 0 28px 76px rgba(35,31,32,.12) !important;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .people-card {
    grid-column: span 2 !important;
  }
}

@media (max-width: 760px) {
  .founding-visual {
    min-height: 320px;
    margin: 24px 0 34px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }

  .people-card {
    grid-column: auto !important;
  }
}
