/*
Theme Name: Nazra Editorial
Theme URI: https://nazraeg.com
Author: Nazra (نظرة)
Author URI: https://nazraeg.com
Description: قالب تحريري ثقافي وسينمائي مخصّص لمنصة نظرة (nazraeg.com) مصمّم بأسلوب المطبوعات السنوية ثنائية اللون دون إضافات بناء صفحات ثقيلة.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: nazra
Tags: rtl-language-support, blog, custom-menu, featured-images
*/

/* ==========================================================================
   1. DESIGN TOKENS: THE PRINTED ANNUAL (COOL ARCHIVAL PAPER + CINEMA SLATE)
   ========================================================================== */
:root {
  /* Dark Cinema Masthead & Chapters */
  --dark-bg: #131519;
  --dark-surface: #1d2028;
  --dark-ink: #f4f5f7;
  --dark-muted: #a9afbc;

  /* Cool Archival Paper Reading Chapters (Zero yellow-cream) */
  --paper-bg: #f4f5f7;
  --paper-surface: #e7e9ee;
  --paper-ink: #131519;
  --paper-muted: #4b505c;

  /* Brand Signature Accent (from nazra-svg-yello-1.svg) */
  --accent: #f7931e;
  --accent-hover: #ffa438;
  --accent-ink: #131519;

  /* Default Contextual Tokens */
  --bg: var(--paper-bg);
  --surface: var(--paper-surface);
  --ink: var(--paper-ink);
  --muted: var(--paper-muted);

  /* Typography: Strictly Two Families (Dealt Latin + Paired Arabic) */
  --font-display: "Bodoni Moda", "Amiri", Georgia, serif;
  --font-text: "Jost", "IBM Plex Sans Arabic", Tahoma, sans-serif;

  /* Strictly Five Type Steps Across the Entire Page */
  --step-small: 0.875rem;                                /* 14px: badges, legal, captions */
  --step-body: 1.0625rem;                                /* 17px: all running copy & controls */
  --step-lead: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem); /* 20-24px: standfirst & article titles */
  --step-head: clamp(1.875rem, 1.45rem + 2.1vw, 3rem);   /* 30-48px: section headings */
  --step-display: clamp(2.5rem, 1.7rem + 4.5vw, 5.25rem);/* 40-84px: hero display title */

  /* Frame & 12-Column Grid */
  --margin: clamp(1.25rem, 2.5vw, 2.5rem);
  --gutter: clamp(1rem, 1.5vw, 1.5rem);
  --max-page: 1760px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   2. RESET & BROWSER SURFACES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--dark-bg);
  color: var(--paper-ink);
  scrollbar-color: var(--accent) var(--dark-bg);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--accent);
}

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

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

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.22em;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0;
  hyphens: none;
  text-wrap: balance;
}

p,
ul,
ol,
blockquote,
figure {
  margin: 0;
}

p {
  max-width: 64ch;
  text-wrap: pretty;
}

p + p {
  margin-top: 1.05em;
}

.screen-reader-text {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  right: var(--margin);
  z-index: 1000;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   3. COLOUR FIELDS & LAYOUT FRAME
   ========================================================================== */
.field-dark {
  --bg: var(--dark-bg);
  --surface: var(--dark-surface);
  --ink: var(--dark-ink);
  --muted: var(--dark-muted);
  background-color: var(--dark-bg);
  color: var(--dark-ink);
  color-scheme: dark;
}

.field-paper {
  --bg: var(--paper-bg);
  --surface: var(--paper-surface);
  --ink: var(--paper-ink);
  --muted: var(--paper-muted);
  background-color: var(--paper-bg);
  color: var(--paper-ink);
  color-scheme: light;
}

.field-stone {
  --bg: var(--paper-surface);
  --surface: var(--paper-bg);
  --ink: var(--paper-ink);
  --muted: var(--paper-muted);
  background-color: var(--paper-surface);
  color: var(--paper-ink);
  color-scheme: light;
}

.wrap {
  width: 100%;
  max-width: var(--max-page);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* Strict Two-Anchor RTL Editorial System:
   Anchor 1 (Right margin): .col-side (Columns 1-4)
   Anchor 2 (33.3% Axis):   .col-axis (Columns 5-12) */
.col-side {
  grid-column: 1 / 5;
}

.col-axis {
  grid-column: 5 / 13;
}

/* Buttons: Square-cornered, flat single fill */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background-color: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.btn:hover {
  background-color: var(--accent-hover);
  color: var(--accent-ink);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-ink {
  background-color: var(--ink);
  color: var(--bg);
}

.btn-ink:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.btn-surface {
  background-color: var(--surface);
  color: var(--ink);
}

.btn-surface:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
}

/* ==========================================================================
   4. SITE HEADER & NAVIGATION
   ========================================================================== */
.reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  z-index: 90;
  pointer-events: none;
  background: transparent;
}

.reading-progress__bar {
  height: 100%;
  width: 0%;
  background-color: var(--accent);
  transform-origin: right center;
}

.site-header {
  padding-block: 1.35rem;
  position: relative;
  z-index: 50;
}

.header-inner {
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-link:hover {
  color: var(--accent);
}

.brand-emblem {
  width: 44px;
  height: 46px;
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav a {
  font-size: var(--step-body);
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  padding-block: 0.3rem;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  background: var(--surface);
  color: var(--ink);
  border: 0;
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 600;
  cursor: pointer;
}

/* Mobile Full-Screen Sheet */
.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--dark-bg);
  color: var(--dark-ink);
  padding: var(--margin);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.mobile-sheet.is-open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-sheet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-sheet__close {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  background: var(--dark-surface);
  color: var(--dark-ink);
  border: 0;
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 600;
  cursor: pointer;
}

.mobile-sheet__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mobile-sheet__links a {
  font-family: var(--font-display);
  font-size: var(--step-head);
  font-weight: 700;
  text-decoration: none;
  color: var(--dark-ink);
}

.mobile-sheet__links a:hover {
  color: var(--accent);
}

.mobile-sheet__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step-small);
  color: var(--dark-muted);
}

/* ==========================================================================
   5. HERO: NARROW TALK, WIDE HEADLINE (RTL PRINTED ANNUAL)
   ========================================================================== */
.hero-annual {
  padding-top: clamp(1.5rem, 3.5vw, 3.5rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.hero-grid {
  align-items: start;
  row-gap: 2.5rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(0.5rem, 3.5vw, 4rem);
  gap: 2rem;
}

.hero-manifesto {
  font-size: var(--step-lead);
  line-height: 1.6;
  color: var(--ink);
  max-width: 28ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3.5vw, 3rem);
}

.hero-title {
  font-size: var(--step-display);
  line-height: 1.08;
  color: var(--ink);
  max-width: 15ch;
}

/* Masked Headline Signature Move (Active only when no-preference) */
.line-mask {
  display: block;
  overflow: hidden;
  padding-block: 0.08em;
}

.line-mask__inner {
  display: block;
}

.hero-stage {
  position: relative;
  width: 100%;
}

/* Keep native 16:9 ratio at all widths so baked calligraphy in image-1.png never clips */
.hero-frame {
  position: relative;
  overflow: hidden;
  background-color: var(--surface);
  aspect-ratio: 1640 / 924;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.6s var(--ease-out);
}

/* Solid Accent Stat Block Overlapping Corner per Blueprint */
.hero-stat-card {
  position: relative;
  z-index: 3;
  width: min(300px, 84%);
  margin-top: -2.75rem;
  margin-right: clamp(1rem, 2vw, 2rem);
  background-color: var(--accent);
  color: var(--accent-ink);
  padding: 1.15rem 1.4rem;
}

.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 1.05;
  color: var(--accent-ink);
}

.hero-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--step-body);
  font-weight: 600;
  color: var(--accent-ink);
}

/* ==========================================================================
   6. SECTION 1: SHOWCASE BAND OF UNEQUAL PANELS
   ========================================================================== */
.section-showcase {
  padding-top: clamp(2.5rem, 4.5vw, 4.5rem);
  padding-bottom: clamp(5rem, 8vw, 8.5rem);
}

.showcase-header {
  margin-bottom: clamp(2rem, 3.5vw, 3.5rem);
  align-items: end;
}

.section-heading {
  font-size: var(--step-head);
  line-height: 1.16;
  color: var(--ink);
  max-width: 18ch;
}

.section-side-note {
  font-size: var(--step-body);
  line-height: 1.62;
  color: var(--muted);
  max-width: 32ch;
}

.unequal-strip {
  display: flex;
  width: 100%;
  height: clamp(420px, 66svh, 680px);
  gap: 0;
}

.strip-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--dark-ink);
  background-color: var(--dark-surface);
  min-width: 0;
  transition: flex-grow 0.55s var(--ease-out);
}

.strip-panel:nth-child(1) { flex: 5 1 0%; }
.strip-panel:nth-child(2) { flex: 2 1 0%; }
.strip-panel:nth-child(3) { flex: 3 1 0%; }
.strip-panel:nth-child(4) { flex: 2 1 0%; }

@media (hover: hover) and (min-width: 960px) {
  .unequal-strip:hover .strip-panel {
    flex-grow: 1.8;
  }
  .unequal-strip .strip-panel:hover,
  .unequal-strip .strip-panel:focus-visible {
    flex-grow: 6;
  }
}

.strip-panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.65s var(--ease-out);
}

.strip-panel:hover .strip-panel__img {
  transform: scale(1.04);
}

/* Neutral scrim over photo text area only */
.strip-panel__scrim {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(1.25rem, 2vw, 2rem);
  padding-top: 4.5rem;
  background: linear-gradient(to top, rgba(19, 21, 25, 0.92) 0%, rgba(19, 21, 25, 0.55) 58%, rgba(19, 21, 25, 0) 100%); /* taste-skill-ignore */
}

.strip-panel__meta {
  display: block;
  font-size: var(--step-small);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.strip-panel__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 700;
  line-height: 1.32;
  color: var(--dark-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-caption {
  margin-top: 1.25rem;
  font-size: var(--step-body);
  color: var(--muted);
}

/* ==========================================================================
   7. SECTION 2: BANDED EDITORIAL INDEX WITH CATEGORY TABS
   ========================================================================== */
.section-index {
  padding-block: clamp(5rem, 9vw, 9.5rem);
}

.index-header {
  align-items: end;
  margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
}

.index-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cat-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cat-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0.8rem 1.15rem;
  background-color: var(--surface);
  color: var(--ink);
  text-decoration: none;
  border: 0;
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.cat-tab:hover {
  background-color: var(--ink);
  color: var(--bg);
}

.cat-tab.is-active,
.cat-tab[aria-selected="true"] {
  background-color: var(--ink);
  color: var(--bg);
}

.cat-tab__count {
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agenda-band {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 1.5rem;
  background-color: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.agenda-band:nth-child(even) {
  background-color: var(--bg);
}

.agenda-band:hover {
  background-color: var(--ink);
  color: var(--bg);
  transform: translateX(-4px);
}

.agenda-band:hover .agenda-band__excerpt,
.agenda-band:hover .agenda-band__meta {
  color: var(--dark-muted);
}

.agenda-band:hover .agenda-band__cat {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.agenda-band__thumb {
  width: 120px;
  height: 86px;
  overflow: hidden;
  background-color: var(--dark-surface);
  flex-shrink: 0;
}

.agenda-band__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agenda-band__body {
  min-width: 0;
}

.agenda-band__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.agenda-band__excerpt {
  display: block;
  font-size: var(--step-body);
  color: var(--muted);
  line-height: 1.58;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agenda-band__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  text-align: left;
  white-space: nowrap;
}

.agenda-band__cat {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background-color: var(--bg);
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 600;
}

.agenda-band:nth-child(even) .agenda-band__cat {
  background-color: var(--surface);
}

.agenda-band__meta {
  font-size: var(--step-small);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   8. SECTION 3: INTERACTIVE CINEMA VIEWFINDER (DARKROOM CHAPTER)
   ========================================================================== */
.section-lens {
  padding-block: clamp(5rem, 9vw, 9.5rem);
}

.lens-header {
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
  align-items: end;
}

.lens-workbench {
  align-items: stretch;
  row-gap: 2rem;
}

.lens-controls {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lens-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.75rem 1.1rem;
  background-color: var(--surface);
  color: var(--ink);
  border: 0;
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 500;
  text-align: right;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.lens-btn:hover {
  background-color: #282c38;
  color: var(--dark-ink);
}

.lens-btn.is-active,
.lens-btn[aria-pressed="true"] {
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.lens-btn__deg {
  font-size: var(--step-small);
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
  direction: ltr;
}

.lens-stage {
  background-color: var(--surface);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 440px;
}

.lens-viewport {
  position: relative;
  overflow: hidden;
  background-color: #0b0c0f;
  min-height: 300px;
}

.lens-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out), opacity 0.3s var(--ease-out);
}

.lens-details {
  padding: clamp(1.5rem, 2.8vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.lens-diagram-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lens-svg-diagram {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.lens-angle-name {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.lens-angle-en {
  margin-top: 0.25rem;
  font-size: var(--step-small);
  color: var(--accent);
  font-weight: 500;
}

.lens-angle-desc {
  font-size: var(--step-body);
  line-height: 1.68;
  color: var(--muted);
}

.lens-angle-effect {
  padding: 0.95rem 1.15rem;
  background-color: var(--bg);
  color: var(--ink);
  font-size: var(--step-body);
  line-height: 1.58;
}

/* ==========================================================================
   9. SECTION 4: STATEMENT DROP-CAP & STUDIO MARGIN-PHOTO ROWS
   ========================================================================== */
.section-about-studio {
  padding-block: clamp(5rem, 9vw, 9.5rem);
}

.dropcap-grid {
  align-items: start;
  margin-bottom: clamp(4.5rem, 8vw, 7.5rem);
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: var(--step-body);
  color: var(--muted);
}

.about-fact strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.dropcap-statement {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  line-height: 1.55;
  color: var(--ink);
  max-width: 48ch;
}

.dropcap-mark {
  float: right;
  width: 3.4em;
  height: 3.4em;
  margin-left: 0.7em;
  margin-bottom: 0.2em;
  background-color: var(--dark-bg);
  padding: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropcap-statement + .dropcap-sub {
  margin-top: 1.35rem;
  font-size: var(--step-body);
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

/* Studio Rows with Margin Photographs (Explicit Widths so Grid Items Never Collapse) */
.studio-rows-head {
  margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
}

.studio-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 5vw, 5rem);
}

.studio-row {
  align-items: start;
}

.studio-row__content {
  grid-column: 5 / 10;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.studio-row__title {
  font-size: var(--step-lead);
  line-height: 1.25;
}

.studio-row__title a {
  text-decoration: none;
}

.studio-row__text {
  font-size: var(--step-body);
  color: var(--muted);
  max-width: 44ch;
}

.studio-row__link {
  font-size: var(--step-body);
  font-weight: 600;
  color: var(--ink);
  align-self: flex-start;
}

.studio-row__media {
  grid-column: 10 / 13;
  justify-self: end;
  width: 100%;
}

.studio-row__media a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--dark-surface);
}

.studio-row:nth-child(1) .studio-row__media {
  max-width: 280px;
  aspect-ratio: 4 / 5;
}

.studio-row:nth-child(2) .studio-row__media {
  max-width: 330px;
  aspect-ratio: 3 / 2;
}

.studio-row:nth-child(3) .studio-row__media {
  max-width: 230px;
  aspect-ratio: 1 / 1;
}

.studio-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.studio-row__media a:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   10. SINGLE ARTICLE & ARCHIVE TEMPLATES
   ========================================================================== */
.article-masthead {
  padding-top: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 5.5vw, 5.5rem);
}

.article-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--step-body);
  color: var(--muted);
  padding-top: 0.5rem;
}

.article-cat-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 0.3rem 0.85rem;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-size: var(--step-small);
  font-weight: 600;
  text-decoration: none;
}

.article-cat-pill:hover {
  background-color: var(--accent-hover);
  color: var(--accent-ink);
}

.article-display-title {
  font-size: var(--step-head);
  line-height: 1.24;
  color: var(--ink);
  max-width: 24ch;
}

.article-standfirst {
  margin-top: 1.35rem;
  font-size: var(--step-lead);
  line-height: 1.62;
  color: var(--muted);
  max-width: 54ch;
}

.article-hero-media {
  margin-top: clamp(2rem, 3.5vw, 3.25rem);
  background-color: var(--surface);
  overflow: hidden;
  max-height: 620px;
}

.article-hero-media img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.article-body-section {
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
}

.article-sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.toc-box {
  background-color: var(--surface);
  padding: 1.35rem 1.5rem;
}

.toc-box__title {
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.toc-list a {
  font-size: var(--step-body);
  color: var(--muted);
  text-decoration: none;
  line-height: 1.45;
  display: block;
}

.toc-list a:hover,
.toc-list a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.share-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.share-box__label {
  font-size: var(--step-small);
  color: var(--muted);
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 0.95rem;
  background-color: var(--surface);
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.share-btn:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
}

/* Rich Prose Styling */
.prose {
  font-size: var(--step-body);
  line-height: 1.85;
  color: var(--ink);
  width: 100%;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  max-width: 65ch;
}

.prose > * + * {
  margin-top: 1.35em;
}

.prose h2 {
  font-size: var(--step-head);
  line-height: 1.28;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  scroll-margin-top: 2rem;
}

.prose h3 {
  font-size: var(--step-lead);
  line-height: 1.35;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.prose ul,
.prose ol {
  padding-right: 1.4rem;
  max-width: 62ch;
}

.prose li + li {
  margin-top: 0.6em;
}

.prose blockquote {
  background-color: var(--surface);
  padding: 1.5rem 1.75rem;
  margin-block: 1.8em;
  font-family: var(--font-display);
  font-size: var(--step-lead);
  line-height: 1.6;
  color: var(--ink);
}

.prose .credits-panel,
.prose .app-download-panel {
  background-color: var(--surface);
  padding: 1.4rem 1.6rem;
  margin-block: 1.6em;
}

.app-download-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.app-download-panel__info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-download-panel__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.app-download-panel__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.prose figure {
  margin-block: 1.8em;
}

.prose figure img {
  width: 100%;
  background-color: var(--surface);
}

.prose figcaption {
  margin-top: 0.6rem;
  font-size: var(--step-small);
  color: var(--muted);
}

.cinema-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-block: 1.6em;
}

.cinema-pair img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: zoom-in;
}

.cinema-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.65rem;
  margin-block: 1.6em;
}

.cinema-gallery a {
  display: block;
  overflow: hidden;
  background-color: var(--dark-bg);
  aspect-ratio: 16 / 10;
}

.cinema-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.cinema-gallery a:hover img {
  transform: scale(1.05);
}

.post-dossier-nav {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dossier-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem;
  background-color: var(--surface);
  text-decoration: none;
  color: var(--ink);
}

.dossier-card:hover {
  background-color: var(--ink);
  color: var(--bg);
}

.dossier-card__dir {
  font-size: var(--step-small);
  color: var(--muted);
}

.dossier-card:hover .dossier-card__dir {
  color: var(--accent);
}

.dossier-card__title {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 700;
  line-height: 1.35;
}

/* ==========================================================================
   11. COMMENTS & FORMS
   ========================================================================== */
.comments-area {
  margin-top: 4.5rem;
  padding-top: 3rem;
}

.comments-title,
.comment-reply-title {
  font-size: var(--step-head);
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-body {
  background-color: var(--surface);
  padding: 1.35rem 1.5rem;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-size: var(--step-small);
  color: var(--muted);
}

.comment-author .fn {
  font-weight: 600;
  color: var(--ink);
  font-style: normal;
}

.comment-author img {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field,
.comment-form p {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-field--full,
.comment-form-comment,
.comment-form-cookies-consent,
.form-submit {
  grid-column: 1 / -1;
}

.comment-form-cookies-consent {
  flex-direction: row !important;
  align-items: center;
  gap: 0.6rem !important;
}

label {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background-color: var(--surface);
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-text);
  font-size: var(--step-body);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.8rem;
  background-color: var(--accent);
  color: var(--accent-ink);
  border: 0;
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 600;
  cursor: pointer;
}

.comment-form input[type="submit"]:hover {
  background-color: var(--accent-hover);
}

/* ==========================================================================
   12. STUDIO PAGES, SEARCH & ARABIC SVG GENERATOR TOOL
   ========================================================================== */
.page-hero {
  padding-top: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

.service-catalog {
  padding-block: clamp(4.5rem, 8vw, 8rem);
}

.service-band {
  padding-block: clamp(2.5rem, 4.5vw, 4rem);
  align-items: start;
}

.service-band + .service-band {
  margin-top: 1.5rem;
}

.service-band--toned {
  background-color: var(--surface);
  padding-inline: clamp(1.25rem, 2.5vw, 2.5rem);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
  list-style: none;
  padding: 0;
}

.service-tags li {
  padding: 0.35rem 0.85rem;
  background-color: var(--bg);
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 500;
}

.service-band:not(.service-band--toned) .service-tags li {
  background-color: var(--surface);
}

.video-reels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.reel-frame {
  aspect-ratio: 16 / 9;
  background-color: #0b0c0f;
}

.reel-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.archive-search-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.75rem;
  max-width: 540px;
}

.archive-search-bar input[type="search"] {
  background-color: var(--surface);
}

.form-notice {
  padding: 1rem 1.25rem;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.svg-workbench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-block: 3.5rem;
}

.svg-panel {
  background-color: var(--surface);
  padding: 1.5rem;
}

.svg-panel + .svg-panel {
  margin-top: 1.25rem;
}

.svg-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.svg-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
}

.svg-preview-stage {
  position: sticky;
  top: 1.5rem;
  background-color: var(--surface);
  padding: 1.5rem;
}

.svg-canvas-box {
  min-height: 360px;
  background-color: #ffffff;
  color: #131519;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: auto;
  margin-block: 1rem 1.25rem;
}

.svg-canvas-box svg {
  max-width: 100%;
  max-height: 420px;
  height: auto;
}

.svg-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   13. MONUMENTAL CLOSING FOOTER
   ========================================================================== */
.site-footer {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(3rem, 6vw, 5rem);
}

.footer-columns {
  row-gap: 2.5rem;
}

.footer-col {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col__head {
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 600;
  color: var(--dark-ink);
  margin-bottom: 0.35rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a,
.footer-col p {
  font-size: var(--step-body);
  color: var(--dark-muted);
  text-decoration: none;
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-monument {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-monument-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-monument-ar {
  font-family: var(--font-display);
  font-size: var(--step-display);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.footer-monument-mark {
  width: clamp(64px, 7vw, 108px);
  height: auto;
  flex-shrink: 0;
}

.footer-monument-en {
  font-family: var(--font-display);
  font-size: var(--step-display);
  font-weight: 500;
  line-height: 1;
  color: var(--dark-ink);
  letter-spacing: -0.02em;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--step-small);
  color: var(--dark-muted);
}

/* Lightbox Modal */
.nazra-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background-color: rgba(13, 14, 18, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--margin);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

.nazra-lightbox.is-open {
  opacity: 1;
}

.nazra-lightbox__img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
}

.nazra-lightbox__close {
  position: absolute;
  top: var(--margin);
  left: var(--margin);
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   14. MOTION LAYER (STRICTLY SCOPED TO NO-PREFERENCE PER MOTION.MD §8)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.js-ready .hero-title .line-mask__inner {
    transform: translateY(108%);
    transition: transform 0.88s var(--ease-out);
  }

  html.js-ready .hero-title.is-revealed .line-mask:nth-child(2) .line-mask__inner {
    transition-delay: 0.11s;
  }

  html.js-ready .hero-title.is-revealed .line-mask__inner {
    transform: translateY(0);
  }

  html.js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }

  html.js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  html.js-ready [data-slide] {
    transform: translateY(20px);
    transition: transform 0.6s var(--ease-out);
  }

  html.js-ready [data-slide].is-visible {
    transform: translateY(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;
  }
}

/* ==========================================================================
   15. TABLET (<= 960px) & PHONE (390px SECOND COMPOSITION: ZERO SIDE-SCROLL)
   ========================================================================== */
@media (max-width: 960px) {
  .col-side,
  .col-axis,
  .studio-row__content,
  .studio-row__media {
    grid-column: 1 / -1;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .primary-nav,
  .header-cta-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .article-masthead .editorial-grid {
    display: flex;
    flex-direction: column;
  }

  .hero-main,
  .article-masthead .col-axis {
    order: 1;
    width: 100%;
  }

  .hero-side,
  .article-masthead .article-meta-stack {
    order: 2;
    padding-top: 0;
    width: 100%;
  }

  .article-masthead .article-meta-stack {
    margin-top: 1.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
  }

  .hero-manifesto {
    max-width: 48ch;
  }

  /* Unequal 2x2 Mosaic on Tablet/Phone */
  .unequal-strip {
    display: grid;
    grid-template-columns: repeat(100, minmax(0, 1fr));
    grid-template-rows: 1fr 1fr;
    height: 78svh;
    min-height: 520px;
  }

  .strip-panel:nth-child(1) { grid-column: 1 / 65; grid-row: 1; }
  .strip-panel:nth-child(2) { grid-column: 65 / 101; grid-row: 1; }
  .strip-panel:nth-child(3) { grid-column: 1 / 37; grid-row: 2; }
  .strip-panel:nth-child(4) { grid-column: 37 / 101; grid-row: 2; }

  /* Wrapped Grid Tabs (Zero horizontal side-scroll!) */
  .cat-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 1.25rem;
  }

  .cat-tab {
    min-height: 48px;
    padding: 0.65rem 0.9rem;
  }

  /* Wrapped 2-Column Lens Buttons (Zero horizontal side-scroll!) */
  .lens-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .lens-btn {
    min-height: 48px;
    padding: 0.65rem 0.85rem;
  }

  .lens-stage {
    grid-template-columns: 1fr;
  }

  .dropcap-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .about-facts {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .studio-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .studio-row:nth-child(1) .studio-row__media { max-width: 100%; align-self: stretch; }
  .studio-row:nth-child(2) .studio-row__media { max-width: 78%; align-self: flex-start; }
  .studio-row:nth-child(3) .studio-row__media { max-width: 64%; align-self: flex-end; }

  .article-sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .svg-workbench,
  .video-reels-grid,
  .post-dossier-nav,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .svg-preview-stage {
    position: static;
  }

  .footer-col {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .hero-stat-card {
    width: 86%;
    margin-top: -1.75rem;
    margin-right: 0.75rem;
    padding: 1rem 1.15rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .cat-tabs,
  .lens-controls {
    grid-template-columns: 1fr;
  }

  .agenda-band {
    grid-template-columns: 88px 1fr;
    gap: 1rem;
    padding: 1.15rem;
  }

  .agenda-band__thumb {
    width: 88px;
    height: 74px;
  }

  .agenda-band__aside {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .cinema-pair {
    grid-template-columns: 1fr;
  }

  .footer-col {
    grid-column: 1 / -1;
  }
}
