/* Ahmed Simary 2026 redesign: white canvas / petrol / copper / warm stone */
:root {
  --as-graphite: #101716;
  --as-graphite-2: #17201e;
  --as-petrol: #123b37;
  --as-petrol-deep: #092b29;
  --as-copper: #c77b4c;
  --as-copper-bright: #e29a68;
  --as-offwhite: #f2ede4;
  --as-mist: #cdd5cf;
  --as-muted: #aebbb4;
  --as-line: rgba(226, 154, 104, .24);
  --as-grid: rgba(242, 237, 228, .055);
  --as-radius: 24px;
  --as-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

html { color-scheme: dark; scroll-behavior: smooth; }
body {
  color: var(--as-offwhite);
  background:
    linear-gradient(var(--as-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--as-grid) 1px, transparent 1px),
    radial-gradient(circle at 85% 10%, rgba(22, 75, 69, .62), transparent 34rem),
    var(--as-graphite);
  background-size: 64px 64px, 64px 64px, auto, auto;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background: url('/assets/brand/as-nile-pattern.svg') center top / min(1100px, 100vw) auto repeat-y;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

::selection { color: var(--as-graphite); background: var(--as-copper-bright); }
:focus-visible { outline: 3px solid var(--as-copper-bright); outline-offset: 4px; }
a { color: inherit; }
p, h1, h2, h3, h4, .eyebrow, .scene-label, .role-meta, .role-title,
.case-title, .case-kicker, .case-role, .case-stats, .case-cta, .post-title,
.post-meta, .post-desc, .archive-kicker, .archive-stats, .related-title,
.related-sub, .metric-val, .metric-label, dt, dd { text-align: center; }
p, .sect-copy, .page-intro, .man-body { text-wrap: pretty; }
h1, h2, h3, .case-title, .post-title { text-wrap: balance; }
.article-body p, .article-body li, .privacy-body p, .privacy-body li,
.role-body li, .case-body li, .case-system li, .method-list li p,
.evidence-list li, .capability-list li { text-align: start; }

/* Frosted icon-led navigation */
.hdr {
  width: min(1380px, calc(100% - 32px));
  min-height: 76px;
  margin: 16px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--as-line);
  border-radius: 22px;
  background: rgba(10, 27, 25, .84);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .25);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.wm { color: var(--as-offwhite); letter-spacing: .09em; }
.wm::before {
  width: 44px;
  height: 44px;
  color: var(--as-copper-bright);
  border-color: var(--as-copper);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(199,123,76,.18), rgba(18,59,55,.75));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
}
.wm .ar-sig { color: var(--as-muted); }
.hdr-nav { gap: 12px; }
.menu { gap: 5px; }
.menu a, .lang-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--as-mist);
  border: 1px solid transparent;
  border-radius: 13px;
}
.menu a::before { color: var(--as-copper-bright); font-size: 14px; line-height: 1; }
.menu a[href="/"]::before, .menu a[href="/ar/"]::before { content: "⌂"; }
.menu a[href$="/work/"]::before { content: "◇"; }
.menu a[href$="/experience/"]::before { content: "↗"; }
.menu a[href$="/expertise/"]::before { content: "✦"; }
.menu a[href$="/insights/"]::before { content: "≋"; }
.menu a[href$="/cv/"]::before { content: "▤"; }
.menu a[href$="/contact/"]::before { content: "＋"; }
.menu a:hover, .menu a[aria-current="page"] {
  color: var(--as-offwhite);
  border-color: var(--as-line);
  background: rgba(242, 237, 228, .065);
}
.lang-toggle {
  color: var(--as-copper-bright);
  border-color: var(--as-line);
  background: rgba(199,123,76,.08);
}
.menu-btn { color: var(--as-offwhite); border-color: var(--as-line); background: var(--as-petrol-deep); }

/* Shared dark editorial surfaces */
.sect, .page-head, .article-head, .case-head, .err-page {
  width: min(1380px, calc(100% - 32px));
  margin-inline: auto;
}
.sect { padding-block: clamp(72px, 9vw, 136px); }
.page-head, .article-head, .case-head, .err-page {
  margin-top: 22px;
  padding: clamp(72px, 10vw, 150px) clamp(22px, 6vw, 92px);
  border: 1px solid var(--as-line);
  border-radius: var(--as-radius);
  background:
    radial-gradient(circle at 50% -10%, rgba(199,123,76,.18), transparent 35%),
    linear-gradient(145deg, rgba(18,59,55,.82), rgba(16,23,22,.94));
  box-shadow: var(--as-shadow);
}
.page-h1, .article-h1, .hero-h1, .sect-h, .closing-h {
  color: var(--as-offwhite);
  font-weight: 600;
  letter-spacing: -.035em;
}
.page-h1, .article-h1 { max-width: 17ch; margin-inline: auto; }
.page-intro, .hero-support, .sect-copy, .man-body, .article-proof {
  max-width: 66ch;
  margin-inline: auto;
  color: var(--as-mist);
  line-height: 1.8;
}
.eyebrow, .scene-label { color: var(--as-copper-bright); letter-spacing: .14em; }
.crumbs { justify-content: center; color: var(--as-muted); }
.crumbs a { color: var(--as-offwhite); }
.serif { color: var(--as-copper-bright); }

/* Hero: editorial copy beside an authentic image grid */
.hero {
  width: min(1380px, calc(100% - 32px));
  min-height: min(780px, calc(100svh - 118px));
  margin: 22px auto 0;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  border: 1px solid var(--as-line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18,59,55,.94), rgba(16,23,22,.96));
  box-shadow: var(--as-shadow);
  overflow: hidden;
}
.hero-inner { align-items: center; padding: clamp(48px, 6vw, 96px); }
.hero-h1 { max-width: 13ch; margin-inline: auto; font-size: clamp(46px, 5.5vw, 82px); }
.hero-line { white-space: normal; }
.hero-support { color: var(--as-mist); }
.hero-proof { color: var(--as-copper-bright); }
.hero-media { min-height: 100%; border-inline-start: 1px solid var(--as-line); background: var(--as-petrol-deep); }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(242,237,228,.3);
  border-radius: 20px;
  pointer-events: none;
}
.hero-art { filter: saturate(.78) contrast(1.08) brightness(.78); }
.hero-media::after { background: linear-gradient(90deg, rgba(16,23,22,.28), transparent 42%), linear-gradient(0deg, rgba(9,43,41,.72), transparent 38%); }

.btn {
  min-height: 50px;
  padding: 13px 19px;
  color: var(--as-offwhite);
  border: 1px solid var(--as-line);
  border-radius: 14px;
  background: rgba(242,237,228,.04);
}
.btn-primary { color: var(--as-graphite); border-color: var(--as-copper-bright); background: var(--as-copper-bright); }
.btn-primary:hover { color: var(--as-graphite); background: #f1ad7c; border-color: #f1ad7c; transform: translateY(-2px); }
.btn-ghost:hover { color: var(--as-offwhite); border-color: var(--as-copper-bright); background: rgba(199,123,76,.12); transform: translateY(-2px); }
.hero-ctas, .page-actions { justify-content: center; }

/* Grid language */
.metrics, .career-snapshot, .cv-metrics, .cv-details,
.home-expertise, .clients, .toolkit, .evidence-panel, .related-band,
.contact-grid, .cv-summary-grid, .about-grid, .manifesto {
  border: 1px solid var(--as-line);
  border-radius: var(--as-radius);
  background: rgba(18, 59, 55, .36);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.metrics { margin-top: 24px; }
.metrics-grid { border-color: var(--as-line); }
.metric { border-color: var(--as-line); background: rgba(242,237,228,.025); }
.metric-val { color: var(--as-copper-bright); }
.metric-label, .metrics-note { color: var(--as-muted); }

.case-cards, .post-grid, .post-grid-index, .expertise-grid, .related-grid,
.rec-grid, .rec-grid-page, .archive-list { gap: 18px; }
.case-card, .post-card, .expertise-card, .related-card, .archive-item, .rec,
.role, .method-list > li {
  color: var(--as-offwhite);
  border: 1px solid var(--as-line);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(24,52,48,.88), rgba(18,28,26,.96));
  box-shadow: 0 22px 60px rgba(0,0,0,.17);
}
.case-card { padding-bottom: 28px; }
.case-card:hover, .post-card:hover, .expertise-card:hover, .related-card:hover, .archive-item:hover {
  border-color: var(--as-copper-bright);
  box-shadow: 0 28px 80px rgba(0,0,0,.3);
  transform: translateY(-5px);
}
.case-media, .post-cover, .archive-thumb, .article-cover, .case-hero-media, .film {
  border-radius: 18px;
  overflow: hidden;
  background: var(--as-petrol-deep);
}
.case-media img, .post-cover img, .archive-thumb img, .article-cover img, .case-hero-media img {
  filter: saturate(.78) contrast(1.06) brightness(.88);
}
.case-kicker, .case-cta, .post-meta, .archive-kicker, .method-number { color: var(--as-copper-bright); }
.case-role, .case-stats, .post-desc, .archive-stats, .related-sub { color: var(--as-muted); }
.case-title, .post-title, .archive-link, .related-title { color: var(--as-offwhite); }
.tags span, .tags li, .cat {
  color: var(--as-mist);
  border-color: var(--as-line);
  background: rgba(242,237,228,.035);
}
.cat.is-active { color: var(--as-graphite); background: var(--as-copper-bright); }

/* Career and long-form readability */
.roles { max-width: 1040px; margin-inline: auto; }
.role { padding: clamp(26px, 4vw, 48px); }
.role::before { border-color: var(--as-copper); background: var(--as-petrol); }
.role-head { text-align: center; }
.role-head h2 { color: var(--as-offwhite); }
.role-title { color: var(--as-copper-bright); }
.role-meta { color: var(--as-muted); }
.role-body { max-width: 70ch; margin-inline: auto; }
.role-body p { max-width: 66ch; margin-inline: auto; color: var(--as-mist); }
.role-body li, .article-body, .privacy-body, .case-body, .case-system { color: var(--as-mist); }
.article-layout { gap: clamp(32px, 6vw, 88px); }
.article-body, .privacy-body { max-width: 74ch; }
.article-body h2, .article-body h3, .privacy-body h2 { color: var(--as-offwhite); text-align: start; }
.article-body a, .privacy-body a, .text-link, .related-feature { color: var(--as-copper-bright); }
.toc, .article-nav, .article-share { border-color: var(--as-line); background: rgba(18,59,55,.35); border-radius: 18px; }

.expertise-icon { color: var(--as-copper-bright); }
.home-expertise-grid { border-color: var(--as-line); }
.home-expertise-grid a { color: var(--as-offwhite); border-color: var(--as-line); background: rgba(242,237,228,.02); text-align: center; }
.home-expertise-grid a:hover { background: rgba(199,123,76,.1); }
.home-expertise-grid small { color: var(--as-muted); }
.disc h3, .method-list h3, .capability-list, .evidence-list { color: var(--as-offwhite); }
.disc > p, .method-list p { color: var(--as-muted); }

/* Contact */
.contact-grid { padding: clamp(28px, 5vw, 64px); }
.contact-form input, .contact-form textarea, .contact-form select {
  color: var(--as-offwhite);
  border-color: var(--as-line);
  border-radius: 12px;
  background: rgba(4,22,21,.65);
}
.contact-form label, .contact-side { color: var(--as-mist); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #80918a; }
.direct-list a { color: var(--as-offwhite); border-color: var(--as-line); }

/* Persistent direct contact dock */
.contact-dock {
  position: fixed;
  z-index: 60;
  inset-inline-end: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--as-line);
  border-radius: 18px;
  background: rgba(9,43,41,.92);
  box-shadow: 0 18px 55px rgba(0,0,0,.32);
  backdrop-filter: blur(16px);
}
.contact-dock a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--as-offwhite);
  border: 1px solid rgba(242,237,228,.12);
  border-radius: 13px;
  text-decoration: none;
  background: rgba(242,237,228,.04);
}
.contact-dock a:hover { color: var(--as-graphite); border-color: var(--as-copper-bright); background: var(--as-copper-bright); transform: translateY(-2px); }

/* Footer */
.ftr {
  width: min(1380px, calc(100% - 32px));
  margin: 24px auto 16px;
  color: var(--as-mist);
  border: 1px solid var(--as-line);
  border-radius: var(--as-radius);
  background: #0a2826;
}
.ftr-rule { background: var(--as-copper); }
.ftr-name, .ftr a { color: var(--as-offwhite); }
.ftr-base { border-color: var(--as-line); }
.fin { color: var(--as-copper-bright); }

/* Motion is restrained, element-specific and reversible */
.rv { transform: translateY(20px) scale(.992); filter: blur(3px); }
.rv.in { transform: none; filter: none; }
.case-card, .post-card, .expertise-card, .related-card, .archive-item,
.btn, .menu a, .contact-dock a { transition: transform .28s ease, border-color .28s ease, background-color .28s ease, box-shadow .28s ease, color .28s ease; }

@media (max-width: 1100px) {
  .hdr { min-height: 68px; border-radius: 18px; }
  .menu { background: rgba(9,43,41,.98); border-color: var(--as-line); }
  .menu a { justify-content: flex-start; color: var(--as-offwhite); }
  .hero { min-height: auto; }
  .hero-h1 { font-size: clamp(44px, 8vw, 68px); }
}

@media (max-width: 760px) {
  body { background-size: 40px 40px, 40px 40px, auto, auto; }
  .hdr, .hero, .sect, .page-head, .article-head, .case-head, .err-page, .ftr { width: calc(100% - 20px); }
  .hdr { margin-top: 10px; padding-inline: 10px; }
  .wm { font-size: 12px; grid-template-columns: 38px auto; }
  .wm::before { width: 38px; height: 38px; border-radius: 11px; }
  .hero { margin-top: 12px; grid-template-columns: 1fr; }
  .hero-inner { grid-column: 1; grid-row: 1; padding: 54px 22px 42px; }
  .hero-media { grid-column: 1; grid-row: 2; min-height: 410px; border-inline-start: 0; border-top: 1px solid var(--as-line); }
  .hero-media::before { inset: 10px; }
  .hero-h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-ctas, .page-actions { width: 100%; }
  .hero-ctas .btn, .page-actions .btn { width: 100%; }
  .page-head, .article-head, .case-head, .err-page { margin-top: 12px; padding-block: 64px; }
  .sect { padding-block: 64px; }
  .case-card, .role, .method-list > li { border-radius: 18px; }
  .contact-dock { inset-inline: 10px; bottom: 10px; justify-content: center; }
  .contact-dock a { flex: 1; max-width: 84px; }
  .ftr { margin-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv, .rv.in { opacity: 1 !important; transform: none !important; filter: none !important; }
  video { display: none; }
  .film-fallback { opacity: 1 !important; visibility: visible !important; }
}

/* Light editorial system -------------------------------------------------- */
:root {
  --as-paper: #ffffff;
  --as-paper-warm: #f8f6f1;
  --as-ink: #14211f;
  --as-ink-soft: #52615d;
  --as-line-light: rgba(18, 59, 55, .16);
  --as-shadow-light: 0 24px 70px rgba(20, 33, 31, .09);
}

html { color-scheme: light; }
body {
  color: var(--as-ink);
  background: var(--as-paper);
}
body::before { display: none; }
::selection { color: #fff; background: var(--as-petrol); }

.hdr {
  border-color: var(--as-line-light);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 48px rgba(20, 33, 31, .08);
}
.wm { color: var(--as-ink); }
.wm::before {
  color: #fff;
  border-color: var(--as-petrol);
  background: linear-gradient(145deg, var(--as-petrol), #1c5750);
  box-shadow: none;
}
.wm .ar-sig { color: var(--as-ink-soft); }
.menu a, .lang-toggle { color: var(--as-ink-soft); }
.menu a:hover, .menu a[aria-current="page"] {
  color: var(--as-petrol);
  border-color: var(--as-line-light);
  background: var(--as-paper-warm);
}
.lang-toggle {
  color: var(--as-petrol);
  border-color: var(--as-line-light);
  background: #fff;
}
.menu-btn { color: var(--as-petrol); border-color: var(--as-line-light); background: #fff; }

.page-head, .article-head, .case-head, .err-page {
  border-color: var(--as-line-light);
  background:
    radial-gradient(circle at 50% -20%, rgba(199,123,76,.12), transparent 38%),
    var(--as-paper-warm);
  box-shadow: var(--as-shadow-light);
}
.page-h1, .article-h1, .hero-h1, .sect-h, .closing-h { color: var(--as-ink); }
.page-intro, .hero-support, .sect-copy, .man-body, .article-proof { color: var(--as-ink-soft); }
.eyebrow, .scene-label { color: #a65b35; }
.crumbs { color: var(--as-ink-soft); }
.crumbs a { color: var(--as-ink); }
.serif { color: #a65b35; }

.hero {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  border-color: var(--as-line-light);
  background: #fff;
  box-shadow: var(--as-shadow-light);
}
.hero-inner {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: clamp(48px, 6vw, 96px);
}
.hero-media {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  min-height: 100%;
  border-color: var(--as-line-light);
  background: #ebe9e7;
}
.hero-media picture { position: absolute; inset: 0; }
.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  filter: saturate(.9) contrast(1.02) brightness(1.02);
}
.hero-media::before { border-color: rgba(255,255,255,.72); }
.hero-media::after {
  background: linear-gradient(90deg, rgba(20,33,31,.08), transparent 35%), linear-gradient(0deg, rgba(20,33,31,.12), transparent 32%);
}
.hero-support { color: var(--as-ink-soft); }
.hero-proof { color: #9a512e; }

.btn {
  color: var(--as-petrol);
  border-color: var(--as-line-light);
  background: #fff;
}
.btn-primary { color: #fff; border-color: var(--as-petrol); background: var(--as-petrol); }
.btn-primary:hover { color: #fff; border-color: #1c5750; background: #1c5750; }
.btn-ghost:hover { color: var(--as-petrol); border-color: var(--as-copper); background: #fff8f2; }

.metrics, .career-snapshot, .cv-metrics, .cv-details,
.home-expertise, .clients, .toolkit, .evidence-panel, .related-band,
.contact-grid, .cv-summary-grid, .about-grid, .manifesto {
  border-color: var(--as-line-light);
  background: var(--as-paper-warm);
  box-shadow: none;
}
.metrics-grid, .metric, .home-expertise-grid { border-color: var(--as-line-light); }
.metric { background: transparent; }
.metric-val { color: var(--as-petrol); }
.metric-label, .metrics-note { color: var(--as-ink-soft); }

.case-card, .post-card, .expertise-card, .related-card, .archive-item, .rec,
.role, .method-list > li {
  color: var(--as-ink);
  border-color: var(--as-line-light);
  background: #fff;
  box-shadow: 0 16px 46px rgba(20,33,31,.07);
}
.case-card:hover, .post-card:hover, .expertise-card:hover, .related-card:hover, .archive-item:hover {
  border-color: var(--as-copper);
  box-shadow: 0 22px 58px rgba(20,33,31,.11);
}
.case-media, .post-cover, .archive-thumb, .article-cover, .case-hero-media, .film { background: var(--as-paper-warm); }
.case-media img, .post-cover img, .archive-thumb img, .article-cover img, .case-hero-media img {
  filter: saturate(.88) contrast(1.03) brightness(.98);
}
.case-kicker, .case-cta, .post-meta, .archive-kicker, .method-number { color: #a65b35; }
.case-role, .case-stats, .post-desc, .archive-stats, .related-sub { color: var(--as-ink-soft); }
.case-title, .post-title, .archive-link, .related-title { color: var(--as-ink); }
.tags span, .tags li, .cat {
  color: var(--as-ink-soft);
  border-color: var(--as-line-light);
  background: var(--as-paper-warm);
}
.cat.is-active { color: #fff; background: var(--as-petrol); }

.role::before { border-color: var(--as-copper); background: #fff; }
.role-head h2, .disc h3, .method-list h3, .capability-list, .evidence-list { color: var(--as-ink); }
.role-title { color: #a65b35; }
.role-meta, .role-body p, .role-body li, .article-body, .privacy-body, .case-body, .case-system,
.disc > p, .method-list p { color: var(--as-ink-soft); }
.article-body h2, .article-body h3, .privacy-body h2 { color: var(--as-ink); }
.article-body a, .privacy-body a, .text-link, .related-feature { color: #99502d; }
.toc, .article-nav, .article-share { border-color: var(--as-line-light); background: var(--as-paper-warm); }
.expertise-icon { color: #a65b35; }
.home-expertise-grid a { color: var(--as-ink); border-color: var(--as-line-light); background: #fff; }
.home-expertise-grid a:hover { background: #fff8f2; }
.home-expertise-grid small { color: var(--as-ink-soft); }

.contact-form input, .contact-form textarea, .contact-form select {
  color: var(--as-ink);
  border-color: var(--as-line-light);
  background: #fff;
}
.contact-form label, .contact-side { color: var(--as-ink-soft); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #7b8783; }
.direct-list a { color: var(--as-ink); border-color: var(--as-line-light); }

.contact-dock {
  border-color: var(--as-line-light);
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 48px rgba(20,33,31,.14);
}
.contact-dock a { color: var(--as-petrol); border-color: var(--as-line-light); background: var(--as-paper-warm); }
.contact-dock a:hover { color: #fff; border-color: var(--as-petrol); background: var(--as-petrol); }

.ftr {
  color: var(--as-ink-soft);
  border-color: var(--as-line-light);
  background: var(--as-paper-warm);
}
.ftr-name, .ftr a { color: var(--as-ink); }
.ftr-base { border-color: var(--as-line-light); }
.fin { color: #a65b35; }

@media (max-width: 1100px) {
  .menu { background: rgba(255,255,255,.99); border-color: var(--as-line-light); }
  .menu a { color: var(--as-ink); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-inner {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 44px 18px 36px;
  }
  .hero-inner > * { max-width: 100%; }
  .hero-h1 { font-size: clamp(34px, 11vw, 46px); }
  .hero-line { display: block; white-space: normal; }
  .hero-media { grid-column: 1; grid-row: 1; width: 100%; min-width: 0; min-height: 350px; aspect-ratio: auto; border-top: 0; border-bottom: 1px solid var(--as-line-light); }
  .hero-art { object-position: 50% 30%; }
  [dir="rtl"] .hero-inner, [dir="rtl"] .hero-media { grid-column: 1; }
}

@media (max-width: 360px) {
  .hdr { width: calc(100% - 12px); gap: 6px; padding: 8px; }
  .wm { grid-template-columns: 34px auto; font-size: 11px; letter-spacing: .06em; }
  .wm::before { width: 34px; height: 34px; }
  .wm .ar-sig { display: none; }
  .hdr-nav { gap: 5px; }
  .lang-toggle, .menu-btn { min-height: 40px; padding: 7px 9px; font-size: 11px; }
}

/* UAE editorial theme — shared across every page ------------------------- */
body {
  background:
    radial-gradient(circle at 8% 12%, rgba(199,123,76,.055), transparent 24rem),
    radial-gradient(circle at 92% 32%, rgba(18,59,55,.045), transparent 28rem),
    var(--as-paper);
}
body::before {
  display: block;
  opacity: .035;
  background: url('/assets/brand/as-nile-pattern.svg') center top / min(1120px, 96vw) auto repeat-y;
  mask-image: linear-gradient(to bottom, #000 0 82%, transparent 100%);
}

.hdr, .hero, .sect, .page-head, .article-head, .case-head, .err-page, .ftr {
  width: min(1380px, calc(100% - 32px));
}
.hdr { border-radius: 18px; }
.wm { color: var(--as-copper); }
.wm .ar-sig { color: var(--as-petrol); }
.wm::before {
  color: #fff;
  border: 0;
  border-radius: 50% 50% 14px 14px;
  background: var(--as-petrol);
}

.hero, .page-head, .article-head, .case-head, .err-page,
.metrics, .career-snapshot, .cv-metrics, .cv-details,
.home-expertise, .clients, .toolkit, .evidence-panel, .related-band,
.contact-grid, .cv-summary-grid, .about-grid, .manifesto, .closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(18,59,55,.13);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(199,123,76,.12), transparent 34%),
    linear-gradient(135deg, #fff 0 56%, var(--as-paper-warm) 100%);
}
.page-head::before, .article-head::before, .case-head::before, .err-page::before,
.metrics::before, .career-snapshot::before, .home-expertise::before,
.clients::before, .toolkit::before, .related-band::before, .contact-grid::before,
.about-grid::before, .manifesto::before, .closing::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(180px, 24vw, 360px);
  aspect-ratio: 1;
  inset-inline-end: clamp(-130px, -8vw, -70px);
  top: clamp(-150px, -9vw, -80px);
  border: 1px solid rgba(199,123,76,.19);
  border-radius: 50% 50% 20px 20px;
  box-shadow: 0 0 0 28px rgba(199,123,76,.035), 0 0 0 56px rgba(18,59,55,.025);
  pointer-events: none;
}

.hero {
  min-height: min(740px, calc(100svh - 118px));
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  background:
    radial-gradient(circle at 14% 18%, rgba(199,123,76,.13), transparent 27rem),
    linear-gradient(135deg, #fff 0 62%, var(--as-paper-warm) 100%);
}
.hero-inner::before, .hero-inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(199,123,76,.16);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}
.hero-inner::before {
  width: clamp(190px, 24vw, 340px);
  height: clamp(260px, 34vw, 500px);
  inset-inline-start: clamp(-130px, -7vw, -70px);
  bottom: -150px;
}
.hero-inner::after {
  width: clamp(100px, 14vw, 210px);
  height: clamp(150px, 22vw, 320px);
  inset-inline-end: 4%;
  top: -100px;
  opacity: .52;
}
.hero-inner { z-index: 1; }
.hero-h1 { max-width: 14ch; }
.hero-media {
  border: 0;
  background: var(--as-paper-warm);
}
.hero-media picture { overflow: hidden; }
.hero-media::before, .hero-media::after, .hero-art-lines { display: none !important; }
.hero-art {
  object-position: 50% 50%;
  filter: none !important;
  animation: portrait-enter 900ms cubic-bezier(.2,.75,.2,1) both;
  transform-origin: center;
}
@keyframes portrait-enter {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}
[dir="rtl"] .hero-art { animation-name: portrait-enter-rtl; }
@keyframes portrait-enter-rtl {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

.film { border: 0; background: var(--as-paper-warm); }
.film-fallback {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: cover;
}
.film-fallback[src*="ahmed-simary-senior-account-events-manager-dubai"] { filter: none !important; }
.film-warm, .film-pause { display: none !important; }

.case-card, .post-card, .expertise-card, .related-card, .archive-item, .rec,
.role, .method-list > li, .home-expertise-grid a, .toc, .article-nav, .article-share {
  border-color: rgba(18,59,55,.13);
  box-shadow: 0 14px 42px rgba(20,33,31,.06);
}
.case-card:hover, .post-card:hover, .expertise-card:hover, .related-card:hover, .archive-item:hover {
  border-color: rgba(199,123,76,.72);
  box-shadow: 0 22px 58px rgba(20,33,31,.1);
}
.manifesto, .closing, .ftr {
  color: var(--as-ink-soft);
  background:
    radial-gradient(circle at 12% 15%, rgba(199,123,76,.12), transparent 26rem),
    var(--as-paper-warm);
}
.manifesto .sect-h, .closing .closing-h, .closing .closing-line,
.ftr-name, .ftr a { color: var(--as-ink); }
.ftr { border-color: rgba(18,59,55,.13); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); }
}

@media (max-width: 760px) {
  .hdr, .hero, .sect, .page-head, .article-head, .case-head, .err-page, .ftr { width: calc(100% - 20px); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-media { min-height: 390px; }
  .hero-art { object-position: 50% 42%; }
  .hero-inner::after { display: none; }
}

/* Lively editorial pass — typography, shape, rhythm and motion ----------- */
:root {
  --as-display: clamp(3.4rem, 6.2vw, 6.15rem);
  --as-section-title: clamp(2.5rem, 4.4vw, 4.65rem);
  --as-page-title: clamp(3rem, 5.2vw, 5.25rem);
  --as-copy: clamp(1.05rem, .35vw + .98rem, 1.25rem);
  --as-ease-out: cubic-bezier(.16, 1, .3, 1);
  --as-ease-spring: cubic-bezier(.2, .9, .25, 1.18);
}

body { font-size: clamp(1rem, .18vw + .96rem, 1.12rem); }
.hero-h1 {
  max-width: 12ch;
  margin-block: clamp(18px, 2vw, 30px);
  font-size: var(--as-display);
  font-weight: 650;
  line-height: .94;
  letter-spacing: -.058em;
}
.sect-h, .closing-h {
  max-width: 15ch;
  font-size: var(--as-section-title);
  font-weight: 610;
  line-height: .99;
  letter-spacing: -.047em;
}
.page-h1, .article-h1 {
  max-width: 16ch;
  font-size: var(--as-page-title);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -.048em;
}
.hero-support, .sect-copy, .page-intro, .man-body {
  font-size: var(--as-copy);
  line-height: 1.7;
}
.hero-support { max-width: 48ch; }

.eyebrow, .scene-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 9px;
  padding: 8px 12px;
  color: #9b512e;
  border: 1px solid rgba(199,123,76,.3);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 7px 22px rgba(20,33,31,.04);
  font-size: clamp(.67rem, .15vw + .64rem, .77rem);
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.2;
}
.eyebrow::before, .scene-label::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--as-copper);
  box-shadow: 0 0 0 4px rgba(199,123,76,.11);
}
.eyebrow::after { display: none; }
.section-intro-centred .eyebrow, .metrics > .eyebrow,
.home-expertise > .eyebrow, .career-snapshot > .eyebrow,
.clients > .eyebrow, section[aria-labelledby="rec-h"] > .eyebrow,
section[aria-labelledby="ins-h"] > .eyebrow { margin-inline: auto; }
.serif {
  position: relative;
  display: inline;
  color: var(--as-copper);
  font-style: normal;
  background: linear-gradient(transparent 76%, rgba(199,123,76,.16) 76%);
}

.hero-line { position: relative; display: block; }
.hero-line:last-child {
  color: var(--as-petrol);
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.hero-line:last-child::after {
  content: "";
  display: block;
  width: min(3.2em, 58%);
  height: .085em;
  margin: .11em auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--as-copper), rgba(199,123,76,.12));
}
.hero-proof {
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 30px;
  padding: 10px 14px;
  border-inline-start: 3px solid var(--as-copper);
  color: #8d482a;
  background: rgba(248,246,241,.74);
  font-size: .74rem;
  font-weight: 680;
  letter-spacing: .07em;
}
.hero-ctas { gap: 12px; }

.btn {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 9px 24px rgba(20,33,31,.06);
  transform: translateZ(0);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -70%;
  width: 44%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.36), transparent);
  transition: left 620ms var(--as-ease-out);
}
.btn:hover::before { left: 130%; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 15px 34px rgba(20,33,31,.11); }

.hdr { transition: transform .35s var(--as-ease-out), box-shadow .35s ease, border-color .35s ease; }
.hdr:hover { border-color: rgba(199,123,76,.34); box-shadow: 0 20px 58px rgba(20,33,31,.1); }
.menu a { position: relative; }
.menu a::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 99px;
  background: var(--as-copper);
  transform: scaleX(0);
  transition: transform .28s var(--as-ease-out);
}
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }

.hero-inner::before { animation: arch-drift 9s ease-in-out infinite alternate; }
.hero-inner::after { animation: arch-drift 12s ease-in-out -3s infinite alternate-reverse; }
@keyframes arch-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -16px, 0); }
}
.js .hero-line,
.js[dir="rtl"] .hero-h1,
.js .hero-inner > .scene-label,
.js .hero-support,
.js .hero-proof,
.js .hero-ctas {
  opacity: 0;
  animation: hero-copy-in 760ms var(--as-ease-out) forwards;
}
.js .hero-inner > .scene-label { animation-delay: 90ms; }
.js .hero-line:nth-child(1) { animation-delay: 180ms; }
.js .hero-line:nth-child(2) { animation-delay: 290ms; }
.js .hero-line:nth-child(3) { animation-delay: 400ms; }
.js[dir="rtl"] .hero-h1 { animation-delay: 210ms; }
.js .hero-support { animation-delay: 450ms; }
.js .hero-proof { animation-delay: 540ms; }
.js .hero-ctas { animation-delay: 620ms; }
@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-media { overflow: hidden; }
.hero-art { transition: transform 1.1s var(--as-ease-out); }
.hero:hover .hero-art { transform: scale(1.025); }

.sect { padding-block: clamp(78px, 9vw, 136px); }
.metrics, .home-expertise, .career-snapshot, .clients,
section[aria-labelledby="rec-h"], section[aria-labelledby="ins-h"] {
  padding-inline: clamp(22px, 5vw, 78px);
}
.metrics-grid {
  gap: 12px;
  border: 0;
}
.metric {
  min-height: 168px;
  padding: 26px 18px;
  border: 1px solid rgba(18,59,55,.11) !important;
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 34px rgba(20,33,31,.045);
  transition: transform .38s var(--as-ease-out), border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.metric:hover {
  z-index: 2;
  transform: translateY(-7px) rotate(-.35deg);
  border-color: rgba(199,123,76,.55) !important;
  background: #fff;
  box-shadow: 0 22px 46px rgba(20,33,31,.1);
}
.metric:nth-child(even):hover { transform: translateY(-7px) rotate(.35deg); }
.metric-val { font-size: clamp(2rem, 2.7vw, 3.1rem); font-weight: 680; letter-spacing: -.045em; }

.case-cards, .rec-grid, .post-grid, .post-grid-index { gap: clamp(16px, 2vw, 26px); }
.case-card, .post-card, .rec, .expertise-card, .related-card {
  overflow: hidden;
  border-radius: 24px;
}
.case-card:first-child { border-radius: 30px 30px 10px 30px; }
.case-card:nth-child(2) { margin-top: 0; border-radius: 30px 10px 30px 30px; }
.case-card:nth-child(3) { border-radius: 10px 30px 30px 30px; }
.case-media { border-radius: 0; }
.case-card:hover .case-media img, .post-card:hover .post-cover img { transform: scale(1.055); }
.case-title { font-size: clamp(1.55rem, 2vw, 2.25rem); line-height: 1.05; }

.disc-grid { align-items: center; }
.disc-cols { border-top: 0; }
.disc {
  margin-bottom: 12px;
  padding: 28px;
  border: 1px solid rgba(18,59,55,.12);
  border-radius: 20px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 10px 30px rgba(20,33,31,.035);
  transition: transform .35s var(--as-ease-out), border-color .3s ease, background-color .3s ease;
}
.disc:hover { transform: translateX(8px); border-color: rgba(199,123,76,.5); background: #fff; }
[dir="rtl"] .disc:hover { transform: translateX(-8px); }
.disc-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 12px 12px;
  color: #fff;
  background: var(--as-petrol);
}

.home-expertise-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  border: 0;
  background: transparent;
}
.home-expertise-grid > a,
.home-expertise-grid > a:last-child:nth-child(odd) {
  grid-column: span 3;
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(18,59,55,.12) !important;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 34px rgba(20,33,31,.045);
  transition: transform .38s var(--as-ease-out), border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.home-expertise-grid > a:nth-child(1), .home-expertise-grid > a:nth-child(5) { grid-column: span 6; }
.home-expertise-grid > a:hover {
  transform: translateY(-8px);
  border-color: rgba(199,123,76,.58) !important;
  background: #fff;
  box-shadow: 0 22px 48px rgba(20,33,31,.09);
}
.home-expertise-grid .expertise-icon { transition: transform .55s var(--as-ease-spring), color .3s ease; }
.home-expertise-grid a:hover .expertise-icon { color: var(--as-petrol); transform: rotate(-7deg) scale(1.14); }

.career-strip li {
  margin-bottom: 8px;
  padding: 24px 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: transform .32s var(--as-ease-out), background-color .3s ease, border-color .3s ease;
}
.career-strip li:hover {
  transform: translateX(8px);
  border-color: rgba(199,123,76,.25);
  background: rgba(255,255,255,.72);
}
[dir="rtl"] .career-strip li:hover { transform: translateX(-8px); }
.rec { position: relative; }
.rec::before {
  content: "“";
  position: absolute;
  inset-inline-end: 20px;
  top: 8px;
  color: rgba(199,123,76,.16);
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
}
.rec:nth-child(2) { transform: translateY(24px); }
.rec:hover { border-color: rgba(199,123,76,.55); box-shadow: 0 22px 50px rgba(20,33,31,.09); }

/* Philosophy: restored contrast for the light sand treatment */
.manifesto .eyebrow {
  color: #914827;
  border-color: rgba(199,123,76,.38);
  background: rgba(255,255,255,.82);
}
.manifesto .sect-h { color: var(--as-ink); }
.manifesto .man-body {
  color: #40514d;
  font-weight: 450;
  line-height: 1.78;
}
.manifesto .man-body:first-of-type {
  color: #263b37;
  font-size: clamp(1.12rem, .42vw + 1rem, 1.34rem);
}
.manifesto .pull {
  max-width: 38ch;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 22px 24px;
  color: var(--as-petrol);
  border-inline-start: 4px solid var(--as-copper);
  border-radius: 0 18px 18px 0;
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 42px rgba(20,33,31,.065);
  font-size: clamp(1.35rem, 1.5vw, 1.85rem);
  font-weight: 620;
  line-height: 1.42;
}
[dir="rtl"] .manifesto .pull { border-radius: 18px 0 0 18px; }

.post-cover { overflow: hidden; }
.post-card { transition: transform .38s var(--as-ease-out), box-shadow .3s ease; }
.post-card:hover { transform: translateY(-8px); box-shadow: 0 24px 54px rgba(20,33,31,.1); }
.post-title { font-size: clamp(1.4rem, 1.7vw, 1.9rem); }

.page-head, .article-head, .case-head, .err-page { min-height: clamp(390px, 46vw, 620px); display: flex; flex-direction: column; justify-content: center; }
.page-head::after, .article-head::after, .case-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(160px, 26vw, 380px);
  aspect-ratio: .72;
  inset-inline-start: clamp(-100px, -6vw, -50px);
  bottom: -46%;
  border: 1px solid rgba(18,59,55,.1);
  border-radius: 52% 52% 0 0;
}

.contact-form input, .contact-form textarea, .contact-form select {
  border-radius: 14px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--as-copper);
  box-shadow: 0 0 0 4px rgba(199,123,76,.1);
  transform: translateY(-1px);
}

.contact-dock { transition: transform .35s var(--as-ease-out), box-shadow .35s ease; }
.contact-dock:hover { transform: translateY(-4px); box-shadow: 0 24px 58px rgba(20,33,31,.17); }
.contact-dock a { transition: transform .3s var(--as-ease-spring), background-color .25s ease, color .25s ease; }
.contact-dock a:hover { transform: translateY(-4px) rotate(-4deg); }

/* Site-wide light-surface contrast normalization ------------------------- */
.skip {
  color: #fff;
  background: #854325;
}
.wm { color: #914827; }
.wm .ar-sig { color: var(--as-petrol); }
.expertise-index { color: #914827; font-weight: 700; }

.closing .eyebrow {
  color: #914827;
  border-color: rgba(199,123,76,.38);
  background: rgba(255,255,255,.84);
}
.closing .sect-copy, .closing-line { color: #40514d; }
.closing .btn-ghost {
  color: var(--as-petrol);
  border-color: rgba(18,59,55,.28);
  background: #fff;
}
.closing .btn-ghost:hover {
  color: #fff;
  border-color: var(--as-petrol);
  background: var(--as-petrol);
}

.ftr-line, .ftr-base { color: #52615d; }
.ftr .ar-sig { color: var(--as-petrol); }
.ftr .fin { color: #914827; }
.ftr-nav a:hover, .ftr-actions a:hover { color: var(--as-petrol); }

/* Responsive layout normalization --------------------------------------- */
.hero-inner, .hero-h1, .sect-h, .page-h1, .article-h1,
.metric, .case-card, .post-card, .rec, .expertise-card,
.home-expertise-grid > a, .role, .contact-grid > *, .about-grid > * {
  min-width: 0;
}
.hero-h1, .sect-h, .page-h1, .article-h1 { max-width: 100%; }
.metrics-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric-val, .metric-label { max-width: 100%; overflow-wrap: anywhere; }
.case-cards { align-items: stretch; }
.case-card { height: 100%; }
.article-body, .privacy-body, .case-body, .role-body,
.contact-side, .direct-list a { overflow-wrap: anywhere; }

@media (min-width: 1025px) {
  .featured-work .case-cards {
    grid-template-columns: minmax(0, 1.34fr) minmax(340px, .66fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .featured-work .case-card:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .featured-work .case-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .featured-work .case-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .featured-work .case-card:first-child .case-media {
    flex: 1 1 auto;
    min-height: clamp(460px, 42vw, 680px);
    aspect-ratio: auto;
  }
  .featured-work .case-card:nth-child(n + 2) .case-media {
    aspect-ratio: 16 / 8.5;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .featured-work .case-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-work .case-card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .featured-work .case-card:nth-child(n + 2) { grid-column: auto; grid-row: auto; }
  .featured-work .case-card:first-child .case-media { min-height: 0; aspect-ratio: 16 / 9; }
  .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@supports (animation-timeline: scroll()) {
  body::after {
    content: "";
    position: fixed;
    z-index: 100;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--as-petrol), var(--as-copper));
    animation: reading-progress linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes reading-progress { to { transform: scaleX(1); } }
}

@media (max-width: 1180px) {
  .home-expertise-grid > a,
  .home-expertise-grid > a:last-child:nth-child(odd) { grid-column: span 6; }
  .home-expertise-grid > a:nth-child(1), .home-expertise-grid > a:nth-child(5) { grid-column: span 6; }
}

@media (max-width: 760px) {
  :root {
    --as-display: clamp(2.1rem, 10.8vw, 4.15rem);
    --as-section-title: clamp(2rem, 9vw, 3.25rem);
    --as-page-title: clamp(2.3rem, 10vw, 3.8rem);
  }
  .hero-inner { padding: 48px 22px 42px; }
  .hero-inner, [dir="rtl"] .hero-inner { grid-column: 1; grid-row: 1; }
  .hero-h1 { line-height: .98; }
  .hero-line:last-child::after { margin-inline-start: 0; }
  [dir="rtl"] .hero-line:last-child::after { margin-inline: 0 0; }
  .eyebrow, .scene-label { padding: 7px 10px; font-size: .65rem; }
  .hero-proof { margin-inline: 0; text-align: start; }
  .hero-media, [dir="rtl"] .hero-media { grid-column: 1; grid-row: 2; min-height: 0; aspect-ratio: 5 / 4; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { min-width: 0; min-height: 142px; padding-inline: 12px; border-radius: 16px; }
  .metric-val { font-size: clamp(1.55rem, 8.5vw, 2.4rem); }
  .case-card:nth-child(2) { margin-top: 0; }
  .featured-work .case-cards { grid-template-columns: minmax(0, 1fr); }
  .featured-work .case-card:first-child,
  .featured-work .case-card:nth-child(n + 2) { grid-column: 1; grid-row: auto; }
  .disc { grid-template-columns: 42px minmax(0,1fr); padding: 22px 16px; }
  .disc:hover, [dir="rtl"] .disc:hover { transform: translateY(-4px); }
  .home-expertise-grid { grid-template-columns: 1fr; }
  .home-expertise-grid > a,
  .home-expertise-grid > a:last-child:nth-child(odd),
  .home-expertise-grid > a:nth-child(1),
  .home-expertise-grid > a:nth-child(5) { grid-column: 1; min-height: 190px; }
  .rec:nth-child(2) { transform: none; }
  .page-head, .article-head, .case-head, .err-page { min-height: 380px; }
  .contact-dock {
    inset-inline-start: auto;
    inset-inline-end: 12px;
    width: auto;
    padding: 6px;
  }
  .contact-dock a { flex: 0 0 auto; width: 42px; height: 42px; }
}

@media (max-width: 380px) {
  .hero-h1 { overflow-wrap: anywhere; }
  .metrics, .home-expertise, .career-snapshot, .clients,
  section[aria-labelledby="rec-h"], section[aria-labelledby="ins-h"] { padding-inline: 16px; }
  .metric { min-height: 132px; padding: 18px 9px; }
  .metric-label { font-size: .64rem; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art, .hero-inner::before, .hero-inner::after,
  .js .hero-line, .js[dir="rtl"] .hero-h1, .js .hero-inner > .scene-label,
  .js .hero-support, .js .hero-proof, .js .hero-ctas {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

@media print {
  body { color: #111; background: #fff; }
  .hdr, .ftr, .contact-dock, .hero-ctas, .page-actions { display: none !important; }
  .sect, .page-head, .role { width: 100%; color: #111; background: #fff; border-color: #ccc; box-shadow: none; }
  .page-h1, .sect-h, .role-head h2, .role-body, .role-body p { color: #111; }
}

/* Typography system v7 --------------------------------------------------
   A single responsive scale for every page, in both reading directions. */
:root {
  --type-face-latin: "Inter Display", Inter, Arial, sans-serif;
  --type-face-arabic: "Segoe UI", Tahoma, Arial, sans-serif;
  --type-hero: clamp(3.25rem, 5.35vw, 6rem);
  --type-page-title: clamp(2.85rem, 4.65vw, 5rem);
  --type-section-title: clamp(2.35rem, 3.85vw, 4.25rem);
  --type-card-title: clamp(1.5rem, 1.65vw, 2rem);
  --type-subheading: clamp(1.2rem, .72vw + 1rem, 1.5rem);
  --type-lead: clamp(1.0625rem, .26vw + 1rem, 1.25rem);
  --type-body: clamp(1rem, .13vw + .98rem, 1.125rem);
  --type-small: clamp(.9375rem, .08vw + .92rem, 1rem);
  --type-caption: .8125rem;
  --type-label: .75rem;
  --type-nav: .78125rem;
  --type-button: .8125rem;

  --leading-display: .96;
  --leading-title: 1.02;
  --leading-card: 1.16;
  --leading-lead: 1.68;
  --leading-body: 1.72;
  --leading-small: 1.58;
  --leading-label: 1.4;

  --type-weight-regular: 400;
  --type-weight-medium: 500;
  --type-weight-semibold: 600;
  --type-weight-bold: 700;

  /* Compatibility aliases for earlier components. */
  --as-display: var(--type-hero);
  --as-page-title: var(--type-page-title);
  --as-section-title: var(--type-section-title);
  --as-copy: var(--type-lead);
}

html { font-size: 100%; }
body {
  font-family: var(--type-face-latin);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}
html[lang="ar"] body { font-family: var(--type-face-arabic); }

.hero-h1 {
  font-size: var(--type-hero);
  line-height: var(--leading-display);
}
.page-h1, .article-h1 {
  font-size: var(--type-page-title);
  line-height: var(--leading-title);
}
.sect-h, .closing-h, .metrics > .sect-h {
  font-size: var(--type-section-title);
  line-height: var(--leading-title);
}
.case-title, .post-title, .archive-body h3, .expertise-card h2,
.role-head h2, .contact-form .sect-h {
  font-size: var(--type-card-title);
  line-height: var(--leading-card);
}
.disc h3, .method-list h3, .lead-list h3, .related-feature,
.cv-title, .cv-details h2, .article-body h2 {
  font-size: var(--type-subheading);
  line-height: 1.3;
}
.case-body h2 {
  font-size: 1rem;
  font-weight: var(--type-weight-bold);
  line-height: 1.45;
}
.article-body h3, .related-title, .home-expertise-grid strong,
.career-strip strong {
  font-size: 1.125rem;
  line-height: 1.35;
}

.hero-support, .sect-copy, .page-intro, .man-body, .article-proof,
.rec-quote, .closing-line {
  font-size: var(--type-lead);
  line-height: var(--leading-lead);
}
.article-body, .privacy-body, .case-body p, .case-system li,
.case-results li, .role-body p, .role-body li, .lead-list p,
.method-list p, .capability-list li, .evidence-list li,
.about-foot-grid p, .toolkit dd, .direct-list li, .type-list li,
.post-desc, .author-bio p, .assignment dd {
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.case-kicker, .case-role, .case-cta, .archive-kicker,
.related-sub, .role-title, .role-meta, .film-caption,
.home-expertise-grid small, .cv-metrics span, .about-langs,
.text-link, .sect-more, .article-proof span, .article-share a,
.article-nav-item, .toc a, .scenario-note, .metrics-note,
.ftr-line, .form-privacy, .form-status, .form-fallback,
.skip, .wm, .toolkit dt, .article-body th, .article-body td,
.case-hero-media figcaption {
  font-size: var(--type-small);
  line-height: var(--leading-small);
}

.eyebrow, .scene-label, .hero-proof, .metric-label,
.case-stats, .archive-stats, .post-meta, .tags span, .tags li,
.cat, .method-number, .expertise-index, .assignment dt,
.case-big-label, .rec-verified, .rec-who span, .toc h2,
.field label, .article-body caption {
  font-size: var(--type-label) !important;
  line-height: var(--leading-label);
}
.menu a, .lang-toggle, .menu-btn, .ftr-nav a, .ftr-actions a {
  font-size: var(--type-nav);
  line-height: var(--leading-label);
}
.btn {
  font-size: var(--type-button);
  line-height: 1.2;
}
.metric-val {
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 1;
}
.client-wall li {
  font-size: clamp(1.125rem, 1.2vw, 1.375rem);
  line-height: 1.55;
}
.rec-who {
  font-size: var(--type-small);
  line-height: var(--leading-small);
}
.ftr-base {
  font-size: var(--type-label);
  line-height: var(--leading-label);
}
.pull { line-height: 1.5; }
.role-head, .role-head h2 { min-width: 0; max-width: 100%; }

/* Long labels and translated copy must wrap within their own component. */
h1, h2, h3, h4,
.hero-h1, .page-h1, .article-h1, .sect-h, .closing-h,
.case-title, .post-title, .archive-link, .related-title,
.menu a, .btn, .client-wall li, .ftr a {
  overflow-wrap: anywhere;
}

[dir="rtl"] body { line-height: 1.86; }
[dir="rtl"] .hero-h1 { line-height: 1.16; letter-spacing: 0; }
[dir="rtl"] .page-h1, [dir="rtl"] .article-h1,
[dir="rtl"] .sect-h, [dir="rtl"] .closing-h {
  line-height: 1.25;
  letter-spacing: 0;
}
[dir="rtl"] .case-title, [dir="rtl"] .post-title,
[dir="rtl"] .archive-body h3, [dir="rtl"] .expertise-card h2,
[dir="rtl"] .role-head h2 { line-height: 1.38; }
[dir="rtl"] .hero-support, [dir="rtl"] .sect-copy,
[dir="rtl"] .page-intro, [dir="rtl"] .man-body,
[dir="rtl"] .article-body, [dir="rtl"] .privacy-body,
[dir="rtl"] .case-body p, [dir="rtl"] .role-body p,
[dir="rtl"] .role-body li { line-height: 1.95; }

@media (max-width: 760px) {
  :root {
    --type-hero: clamp(2.35rem, 11.1vw, 3.85rem);
    --type-page-title: clamp(2.25rem, 9.8vw, 3.45rem);
    --type-section-title: clamp(2rem, 8.6vw, 3rem);
    --type-card-title: clamp(1.4rem, 5.6vw, 1.75rem);
    --type-subheading: clamp(1.125rem, 4.6vw, 1.375rem);
    --type-lead: 1.0625rem;
    --type-body: 1rem;
    --type-small: .9375rem;
    --type-label: .75rem;
    --type-nav: .8125rem;
  }
  .hero-h1 { line-height: 1; letter-spacing: -.045em; }
  .page-h1, .article-h1 { line-height: 1.05; }
  .sect-h, .closing-h { line-height: 1.06; }
  .metrics-grid { grid-template-columns: minmax(0, 1fr); }
  .metric { min-height: 128px; }
  .metric-label { max-width: 28ch; }
  .expertise-grid { grid-template-columns: minmax(0, 1fr); }
  .expertise-card {
    min-height: auto;
    padding: 30px 22px;
  }
}

@media print {
  :root {
    --type-hero: 28pt;
    --type-page-title: 26pt;
    --type-section-title: 20pt;
    --type-card-title: 15pt;
    --type-body: 10.5pt;
  }
}

/* Layout polish v8 — philosophy flow, softer depth and clearer contact ----- */
:root {
  --as-shadow-light: 0 14px 40px rgba(20, 33, 31, .065);
}

.hdr {
  box-shadow: 0 8px 24px rgba(20, 33, 31, .055);
}
.case-card, .post-card, .expertise-card, .related-card, .archive-item, .rec,
.role, .method-list > li, .home-expertise-grid a, .toc, .article-nav, .article-share {
  box-shadow: 0 8px 26px rgba(20, 33, 31, .045);
}
.case-card:hover, .post-card:hover, .expertise-card:hover,
.related-card:hover, .archive-item:hover {
  box-shadow: 0 14px 36px rgba(20, 33, 31, .08);
}

.man-grid {
  align-items: center;
  gap: clamp(36px, 5vw, 78px);
}
.man-grid > div:first-child { min-width: 0; }
.manifesto .eyebrow,
.manifesto .sect-h,
.manifesto .man-body,
.manifesto .pull {
  margin-inline: 0;
  text-align: start;
}
.manifesto .man-body {
  max-width: 64ch;
}
.manifesto .pull {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 36ch;
  margin-top: clamp(30px, 3.5vw, 44px);
  padding: 22px 24px;
  border: 1px solid rgba(18, 59, 55, .13);
  border-inline-start: 4px solid var(--as-copper);
  border-radius: 0 14px 14px 0;
  background: #fff;
  box-shadow: none;
}
[dir="rtl"] .manifesto .pull {
  border-radius: 14px 0 0 14px;
}
.manifesto .film {
  border: 1px solid rgba(18, 59, 55, .13);
  box-shadow: none;
}

.ftr {
  margin-top: 24px;
  margin-bottom: 90px;
  padding: clamp(38px, 4vw, 58px) clamp(24px, 4vw, 56px) 28px;
  box-shadow: none;
}
.ftr-rule {
  margin-bottom: 34px;
  opacity: .7;
}
.ftr-grid {
  grid-template-columns: minmax(260px, 1.1fr) minmax(340px, 1fr) minmax(170px, .55fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.ftr p { text-align: start; }
.ftr-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  font-size: 1.125rem;
}
.ftr-name .ar-sig { margin: 0; }
.ftr-line { max-width: 38ch; }
.ftr-nav {
  gap: 2px clamp(20px, 3vw, 38px);
}
.ftr-nav a, .ftr-actions a {
  min-height: 38px;
}
.ftr-actions { gap: 2px; }
.ftr-base {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(18, 59, 55, .12);
}

.contact-dock {
  gap: 4px;
  padding: 5px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20, 33, 31, .1);
}
.contact-dock a {
  display: flex;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 11px;
}
.contact-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--as-petrol);
  font-size: .7rem;
  font-weight: 700;
}
.contact-label {
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .035em;
}
.contact-dock a:hover .contact-mark {
  color: var(--as-petrol);
  background: #fff;
}

@media (max-width: 1100px) {
  .ftr-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  }
  .ftr-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(18, 59, 55, .12);
  }
  .ftr-actions a {
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid rgba(18, 59, 55, .13);
    border-radius: 999px;
  }
}

@media (max-width: 760px) {
  .manifesto .sect-h { max-width: 13ch; }
  .manifesto .man-body { line-height: 1.72; }
  .manifesto .pull {
    width: 100%;
    max-width: none;
    padding: 20px;
    font-size: clamp(1.25rem, 5.6vw, 1.55rem);
    line-height: 1.42;
  }
  .man-film {
    width: min(100%, 420px);
    max-width: none;
    justify-self: center;
  }

  .ftr {
    margin-top: 16px;
    margin-bottom: 78px;
    padding: 32px 20px 26px;
    border-radius: 20px;
  }
  .ftr-rule { margin-bottom: 24px; }
  .ftr-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .ftr-name { font-size: 1rem; }
  .ftr-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
    border-top: 1px solid rgba(18, 59, 55, .12);
  }
  .ftr-nav a {
    min-height: 42px;
    border-bottom: 1px solid rgba(18, 59, 55, .09);
  }
  .ftr-actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 0;
    border-top: 0;
  }
  .ftr-actions a {
    justify-content: center;
    min-width: 0;
    text-align: center;
  }
  .ftr-actions a:last-child { grid-column: 1 / -1; }
  .ftr-base {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 24px;
  }

  .contact-dock {
    inset-inline: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
  }
  .contact-dock a {
    width: auto;
    max-width: none;
    min-width: 0;
    justify-content: center;
    padding-inline: 8px;
  }
}

@media (max-width: 390px) {
  .ftr-nav a { letter-spacing: 0; }
  .contact-dock a { gap: 5px; padding-inline: 5px; }
  .contact-label { font-size: .67rem; }
}

@media (max-width: 360px) {
  .ftr-nav { grid-template-columns: minmax(0, 1fr); }
}

/* Continuous branded backgrounds — white, warm stone and UAE geometry. */
body {
  background-color: var(--as-paper);
  background-image:
    linear-gradient(110deg, rgba(255,255,255,.86), rgba(242,237,228,.8)),
    url('/assets/brand/as-nile-pattern.svg');
  background-size: auto, 640px 640px;
}
body::before { display: none; }
:is(main section, .article-layout, .privacy-body, .err-page, .ftr) {
  background-color: var(--as-paper-warm);
  background-image:
    linear-gradient(110deg, rgba(255,255,255,.86) 12%, rgba(242,237,228,.76) 100%),
    url('/assets/brand/as-architectural-pattern.svg');
  background-size: auto, 640px 640px;
  background-position: center, right top;
  border-radius: var(--as-radius);
}
main section:nth-of-type(even) {
  background-image:
    linear-gradient(125deg, rgba(242,237,228,.87), rgba(255,255,255,.85) 76%),
    url('/assets/brand/as-nile-pattern.svg');
  background-position: center, left center;
}
.hero-inner {
  background-image:
    linear-gradient(110deg, rgba(255,255,255,.87), rgba(242,237,228,.8)),
    url('/assets/brand/as-architectural-pattern.svg');
  background-size: auto, 640px 640px;
}
.article-layout, .privacy-body, .case-body {
  background-image:
    linear-gradient(110deg, rgba(255,255,255,.94) 18%, rgba(242,237,228,.88)),
    url('/assets/brand/as-architectural-pattern.svg');
}
[dir="rtl"] :is(main section, .article-layout, .privacy-body, .err-page, .ftr) {
  background-position: center, left top;
}
@media (max-width: 760px) {
  :is(main section, .article-layout, .privacy-body, .err-page, .ftr, .hero-inner) {
    background-size: auto, 420px 420px;
  }
}
@media print {
  body, :is(main section, .article-layout, .privacy-body, .err-page, .ftr, .hero-inner) {
    background: #fff;
  }
}

/* Approved section artwork — one shared image per bilingual section. */
:is(main section, .article-layout, .privacy-body, .err-page, .ftr)[data-section-art] {
  background-color: var(--as-paper-warm);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.48) 0, rgba(255,255,255,.88) 180px, rgba(255,255,255,.97) 420px, #fff 820px),
    var(--section-art-image);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% auto;
  background-position: center, center top;
}
.hero[data-section-art] .hero-inner {
  background-color: var(--as-paper-warm);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.9) 240px, rgba(255,255,255,.97) 560px),
    var(--section-art-image);
  background-repeat: no-repeat;
  background-size: 100% 100%, auto 100%;
  background-position: center;
}
:is(.article-layout, .privacy-body, .case-body, .contact-grid)[data-section-art] {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.985) 640px, #fff 1000px),
    var(--section-art-image);
}
.ftr[data-section-art] {
  background-image:
    linear-gradient(180deg, rgba(248,246,241,.86), rgba(255,255,255,.98)),
    var(--section-art-image);
}
@media (max-width: 760px) {
  :is(main section, .article-layout, .privacy-body, .err-page, .ftr)[data-section-art] { background-size: 100% 100%, auto 340px; }
  .hero[data-section-art] .hero-inner { background-size: 100% 100%, auto 100%; }
}
@media print {
  :is(main section, .article-layout, .privacy-body, .err-page, .ftr)[data-section-art], .hero[data-section-art] .hero-inner { background: #fff !important; }
}
