@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("../fonts/NotoNaskhArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("../fonts/NotoNaskhArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/NotoSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/NotoSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("../fonts/Montserrat-Variable.ttf") format("truetype");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --espresso: #4b2e1b;
  --chestnut: #7a4e2e;
  --camel: #c9a37a;
  --almond: #ead9c6;
  --ivory: #f7efe6;
  --white: #f7efe6;
  --muted: #7a4e2e;
  --line: rgba(75, 46, 27, 0.24);
  --shell: min(1260px, calc(100% - 40px));
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--ivory);
  color: var(--espresso);
  font-family: "Noto Sans Arabic", Arial, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body, button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 1000;
  inset: 8px 8px auto auto;
  min-height: 44px;
  padding: 9px 18px;
  background: var(--ivory);
  color: var(--espresso);
  border: 2px solid var(--espresso);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand-lockup {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-lockup img { width: 52px; height: 52px; }
.brand-words { display: grid; direction: ltr; line-height: 1; }
.brand-words b {
  font: 700 1.16rem/0.95 "Playfair Display", Georgia, serif;
  letter-spacing: 0.1em;
}
.brand-words small {
  margin-top: 5px;
  font: 600 0.52rem/1 Montserrat, Arial, sans-serif;
  letter-spacing: 0.37em;
}
.menu-toggle {
  position: relative;
  min-width: 78px;
  min-height: 44px;
  padding: 7px 0 7px 27px;
  border: 0;
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
  font-weight: 700;
}
.menu-toggle i,
.menu-toggle i::before {
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, top 180ms ease;
}
.menu-toggle i::before { top: 6px; }
.menu-toggle[aria-expanded="true"] i { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::before { top: 0; transform: rotate(-90deg); }
.main-nav {
  display: grid;
  position: absolute;
  inset: var(--header-h) 0 auto;
  padding: 10px 20px 18px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
html.menu-ready .main-nav { display: none; }
html.menu-ready .main-nav.is-open { display: grid; }
.main-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero {
  display: grid;
  background: var(--ivory);
}
.hero-media {
  grid-row: 2;
  position: relative;
  min-height: clamp(320px, 68vw, 520px);
  overflow: hidden;
  background: var(--almond);
}
.hero-media > picture {
  display: block;
  position: absolute;
  inset: 0;
}
.hero-media > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid rgba(247, 239, 230, 0.14);
  pointer-events: none;
}
.hero-copy {
  grid-row: 1;
  padding: 56px max(20px, calc((100vw - 1260px) / 2)) 64px 20px;
  align-self: center;
}
.eyebrow,
.section-index {
  margin: 0 0 18px;
  color: var(--chestnut);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero h1,
.story h2,
.values h2,
.concept h2,
.branches h2,
.closing h2,
.error-page h1 {
  margin: 0;
  font-family: "Noto Naskh Arabic", Georgia, serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.hero h1 {
  max-width: 8.5ch;
  font-size: clamp(3.25rem, 12vw, 7.8rem);
}
.hero-body {
  max-width: 33rem;
  margin: 24px 0 25px;
  color: var(--chestnut);
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(1.13rem, 2vw, 1.45rem);
  line-height: 1.85;
}
.arrow-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 34px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-weight: 700;
}
.arrow-link b { font-family: Arial, sans-serif; transition: transform 180ms ease; }
.arrow-link:hover b { transform: translateX(-6px); }
.hero-note {
  display: flex;
  max-width: 28rem;
  gap: 9px;
  margin: 40px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.swing-tag {
  position: absolute;
  z-index: 3;
  left: clamp(18px, 6vw, 74px);
  bottom: 18px;
  width: 150px;
  height: 220px;
  transform-origin: 50% -30px;
  transform-style: preserve-3d;
  transition: transform 260ms ease;
  filter: drop-shadow(8px 12px 8px rgba(43, 24, 13, 0.22));
}
.swing-tag.tilt-left { transform: perspective(700px) rotate(-4deg) rotateY(-7deg); }
.swing-tag.tilt-right { transform: perspective(700px) rotate(4deg) rotateY(7deg); }
.tag-string {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: calc(100% - 16px);
  width: 1px;
  height: 95px;
  background: var(--espresso);
  transform: rotate(7deg);
  transform-origin: bottom;
}
.tag-paper {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 11px 12px;
  background: var(--camel);
  border: 1px solid rgba(75, 46, 27, 0.4);
  clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
}
.tag-paper::before {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% - 5px);
  width: 8px;
  height: 8px;
  border: 1px solid rgba(75, 46, 27, 0.65);
  border-radius: 50%;
  background: var(--ivory);
}
.tag-paper img { width: 107px; height: 107px; }
.tag-paper small {
  max-width: 100px;
  text-align: center;
  color: var(--espresso);
  font: 700 0.62rem/1.45 "Noto Sans Arabic", sans-serif;
}

.section-pad { padding-block: clamp(86px, 11vw, 150px); }
.story { background: var(--white); }
.story-layout { display: grid; gap: 42px; }
.story-copy { max-width: 44rem; }
.story h2,
.values h2,
.concept h2,
.branches h2 {
  font-size: clamp(2.85rem, 8vw, 6.5rem);
}
.story h2 { max-width: 9ch; }
.prose {
  max-width: 39rem;
  margin: 30px 0 0;
  white-space: pre-line;
  color: var(--chestnut);
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.95;
}
.story-figure { margin: 0; }
.story-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(0.12) saturate(0.88);
}
.story-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--espresso);
  color: var(--chestnut);
  font-size: 0.76rem;
}
.story-figure figcaption span:first-child {
  font: 700 0.76rem/1.7 "Noto Sans Arabic", sans-serif;
}
.story-aside {
  max-width: 23rem;
  margin: 0;
  padding-inline-start: 22px;
  border-inline-start: 1px solid var(--camel);
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1rem;
}

.values {
  padding-block: clamp(80px, 10vw, 130px);
  background: var(--almond);
  border-block: 1px solid var(--line);
}
.values-intro { display: grid; margin-bottom: 54px; }
.values-intro h2 { max-width: 10ch; }
.values-list {
  margin-block: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--espresso);
}
.values-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 15px;
  padding-block: 25px 28px;
  border-bottom: 1px solid var(--line);
}
.values-list li > span {
  padding-top: 7px;
  color: var(--chestnut);
  font: 600 0.65rem/1 Montserrat, sans-serif;
}
.values-list h3 {
  margin: 0;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.75rem;
  line-height: 1.35;
}
.values-list p { max-width: 28rem; margin: 4px 0 0; color: var(--chestnut); font-size: 0.87rem; }

.concept { background: var(--ivory); }
.concept-layout { display: grid; gap: 68px; }
.concept-heading h2 { max-width: 8ch; }
.concept-heading > p:last-child {
  max-width: 34rem;
  margin: 28px 0 0;
  color: var(--chestnut);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.14rem;
  line-height: 1.9;
}
.process-rail {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.process-rail::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 34px;
  right: 21px;
  width: 1px;
  background: var(--camel);
}
.process-rail li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  min-height: 190px;
}
.process-rail li:last-child { min-height: 0; }
.rail-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  width: 44px;
  height: 44px;
  background: var(--espresso);
  color: var(--ivory);
  border: 5px solid var(--ivory);
  outline: 1px solid var(--espresso);
  border-radius: 50%;
  font-family: "Noto Naskh Arabic", serif;
}
.step-verb { margin: 0 0 5px; color: var(--chestnut); font-size: 0.72rem; font-weight: 700; }
.process-rail h3 {
  margin: 0;
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.35;
}
.process-rail li div > p:last-child { max-width: 28rem; margin: 8px 0 0; color: var(--muted); }

.branches {
  padding-block: clamp(88px, 11vw, 145px);
  background: var(--espresso);
  color: var(--ivory);
}
.branches-layout { display: grid; gap: 55px; }
.branches-heading .section-index { color: var(--camel); }
.branches-heading h2 { max-width: 6ch; color: var(--ivory); }
.branches-heading > p:last-child { max-width: 23rem; margin: 25px 0 0; color: var(--almond); font-size: 0.87rem; }
.branch-list { border-top: 1px solid rgba(247, 239, 230, 0.42); }
.branch-row { border-bottom: 1px solid rgba(247, 239, 230, 0.3); }
.branch-row summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 13px;
  min-height: 102px;
  padding-block: 15px;
  cursor: pointer;
  list-style: none;
}
.branch-row summary::-webkit-details-marker { display: none; }
.branch-index { color: var(--camel); font: 500 0.64rem/1 Montserrat, sans-serif; }
.branch-name { display: grid; min-width: 0; }
.branch-name strong {
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  line-height: 1.2;
  transition: color 180ms ease;
}
.branch-name small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--almond);
  font: 500 0.68rem/1.5 Montserrat, sans-serif;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.branch-city { display: none; color: var(--almond); font-size: 0.88rem; }
.branch-city-muted { opacity: 0.58; }
.branch-toggle {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 239, 230, 0.45);
  border-radius: 50%;
}
.branch-toggle::before,
.branch-toggle::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 13px;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}
.branch-toggle::after { transform: rotate(90deg); }
.branch-row[open] .branch-toggle::after { transform: rotate(0); }
.branch-row summary:hover .branch-name strong { color: var(--camel); }
.branch-detail {
  display: grid;
  gap: 26px;
  padding: 0 45px 36px 0;
  color: var(--almond);
}
.branch-image img { width: 100%; max-height: 360px; object-fit: cover; }
.branch-contact { display: grid; gap: 14px; }
.branch-contact p { display: grid; margin: 0; }
.branch-contact p > span { color: var(--camel); font-size: 0.68rem; font-weight: 700; }
.branch-contact a { width: max-content; min-height: 44px; display: flex; align-items: center; }
.branch-links { display: flex; flex-wrap: wrap; gap: 8px 25px; }
.branch-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  text-underline-offset: 6px;
  font-weight: 700;
}
.branch-links a span { font: 400 0.9rem Arial, sans-serif; }
.empty { padding-block: 35px; }

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(90px, 12vw, 160px);
  background: var(--camel);
  color: var(--espresso);
}
.closing-pattern {
  position: absolute;
  z-index: -1;
  inset: 0 55% 0 0;
  background: url("../img/hanger-pattern.svg") repeat;
  background-size: 180px 132px;
  opacity: 0.85;
}
.closing-layout { display: grid; gap: 25px; }
.closing .section-index { color: var(--espresso); }
.closing h2 { max-width: 10ch; font-size: clamp(3rem, 9vw, 7.2rem); }
.closing-layout > div > p {
  max-width: 32rem;
  margin: 0 0 26px;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.15rem;
}
.button-dark {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 8px 22px;
  background: var(--espresso);
  color: var(--ivory);
  border: 1px solid var(--espresso);
  text-decoration: none;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}
.button-dark:hover { background: transparent; color: var(--espresso); }

.site-footer { padding: 68px 0 18px; background: var(--espresso); color: var(--ivory); }
.footer-main { display: grid; gap: 42px; }
.footer-mark {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.footer-mark img { width: 92px; height: 92px; }
.footer-mark > span { display: grid; direction: ltr; }
.footer-mark b { font: 700 1.6rem/1 "Playfair Display", serif; letter-spacing: 0.1em; }
.footer-mark small { margin-top: 6px; font: 600 0.58rem/1 Montserrat, sans-serif; letter-spacing: 0.4em; }
.footer-copy p { max-width: 25rem; margin: 0 0 18px; color: var(--almond); }
.footer-copy a { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; text-underline-offset: 5px; }
.social-links { display: grid; align-content: start; }
.social-links a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(247, 239, 230, 0.25);
  text-decoration: none;
}
.social-links a:first-child { border-top: 1px solid rgba(247, 239, 230, 0.25); }
.social-links a span { font: 400 0.9rem Arial, sans-serif; }
.footer-legal {
  display: grid;
  gap: 8px;
  margin-top: 55px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 239, 230, 0.2);
  color: rgba(247, 239, 230, 0.76);
  font-size: 0.72rem;
}
.footer-legal p { margin: 0; }
.footer-legal a { text-underline-offset: 3px; }
.footer-legal p:last-child { font-family: Montserrat, sans-serif; letter-spacing: 0.1em; }

.error-page {
  width: min(760px, calc(100% - 40px));
  min-height: 100svh;
  margin-inline: auto;
  padding-block: 14vh 60px;
}
.error-page h1 { max-width: 10ch; font-size: clamp(3rem, 10vw, 7rem); }
.error-page > p:not(.eyebrow) { max-width: 35rem; margin: 25px 0; color: var(--chestnut); }
.error-page .button { display: inline-flex; min-height: 48px; align-items: center; padding: 8px 20px; background: var(--espresso); color: var(--ivory); text-decoration: none; }

:focus-visible { outline: 3px solid var(--camel); outline-offset: 4px; }
html.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}
html.motion-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 700px) {
  :root { --shell: min(1260px, calc(100% - 72px)); }
  .story-layout { grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr); align-items: start; }
  .story-copy { padding-top: 30px; }
  .story-aside { grid-column: 1; margin-top: 0; }
  .story-figure { grid-column: 2; grid-row: 1 / span 2; }
  .values-intro { grid-template-columns: 0.65fr 1.35fr; align-items: start; }
  .values-intro h2 { grid-column: 2; }
  .values-list li { grid-template-columns: 56px minmax(0, 1fr); }
  .values-list li > div { display: grid; grid-template-columns: minmax(170px, 0.7fr) 1fr; align-items: start; gap: 30px; }
  .values-list h3 { font-size: 2rem; }
  .values-list p { margin-top: 8px; }
  .branch-row summary { grid-template-columns: 42px minmax(220px, 1.2fr) minmax(130px, 0.8fr) 46px; }
  .branch-city { display: block; }
  .branch-detail { grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr); padding-right: 55px; }
  .branch-image { grid-column: 1 / -1; }
  .branch-links { align-content: start; }
  .closing-layout { grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr); align-items: end; }
  .closing-layout .section-index { grid-column: 1 / -1; }
  .footer-main { grid-template-columns: 0.8fr 1fr 0.8fr; align-items: start; }
  .footer-legal { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 960px) {
  :root { --header-h: 90px; }
  .header-inner { min-height: var(--header-h); }
  .brand-lockup img { width: 60px; height: 60px; }
  .menu-toggle { display: none; }
  .main-nav,
  html.menu-ready .main-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
    padding: 0;
    background: transparent;
    border: 0;
  }
  .main-nav a { position: relative; min-height: 48px; border: 0; font-size: 0.84rem; }
  .main-nav a::after { content: ""; position: absolute; right: 0; bottom: 7px; width: 0; height: 1px; background: currentColor; transition: width 180ms ease; }
  .main-nav a:hover::after { width: 100%; }
  .hero {
    min-height: calc(100svh - var(--header-h));
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    direction: ltr;
  }
  .hero-media { grid-column: 1; grid-row: 1; min-height: 680px; }
  .hero-copy {
    grid-column: 2;
    grid-row: 1;
    padding: 70px max(42px, calc((100vw - 1260px) / 2)) 70px clamp(55px, 6vw, 105px);
    direction: rtl;
  }
  .hero h1 { font-size: clamp(4.8rem, 7.4vw, 8.5rem); }
  .swing-tag { left: auto; right: 28px; bottom: 6%; width: 160px; height: 236px; }
  .story-layout { grid-template-columns: minmax(330px, 0.75fr) minmax(450px, 1.25fr); gap: clamp(60px, 9vw, 130px); }
  .story-copy { padding-top: 70px; }
  .story-figure { margin-left: max(-36px, calc((1260px - 100vw) / 2)); }
  .story-figure img { aspect-ratio: 5 / 6; max-height: 760px; }
  .story-aside { margin-top: 0; }
  .values-intro { margin-bottom: 72px; }
  .values-list li { min-height: 110px; align-items: center; padding-block: 20px; }
  .concept-layout { grid-template-columns: minmax(310px, 0.8fr) minmax(430px, 1.2fr); gap: clamp(80px, 12vw, 180px); align-items: start; }
  .concept-heading { position: sticky; top: calc(var(--header-h) + 55px); }
  .process-rail li { min-height: 225px; }
  .branches-layout { grid-template-columns: minmax(245px, 0.63fr) minmax(0, 1.37fr); gap: clamp(70px, 10vw, 150px); align-items: start; }
  .branches-heading { position: sticky; top: calc(var(--header-h) + 55px); }
  .branch-row summary { min-height: 118px; }
  .branch-detail { padding-right: 56px; }
}

@media (max-width: 420px) {
  :root { --shell: calc(100% - 30px); }
  .menu-toggle { min-width: 74px; }
  .hero-copy { padding-inline: 15px; }
  .swing-tag { width: 124px; height: 185px; }
  .tag-paper img { width: 92px; height: 92px; }
  .story-figure figcaption { display: grid; gap: 1px; }
  .branch-detail { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.motion-ready .reveal { opacity: 1; transform: none; }
  .swing-tag,
  .swing-tag.tilt-left,
  .swing-tag.tilt-right { transform: none; }
}
