/* ==========================================================================
   MOHAMED FERGANY - ARCHITECTURAL PORTFOLIO
   Design System: Sharp Brutalist Minimalism & Architectural Hierarchy
   Colors: Solid Pitch Black (#070000), Pure White (#F5F5F5), Crimson (#B80000)
   Typography: Zalando Sans / IBM Plex Sans Arabic
   ========================================================================== */

@font-face {
  font-family: 'Zalando Sans';
  src: url('../assets/fonts/ZalandoSans-Variable.woff2') format('woff2-variations'),
       url('../assets/fonts/ZalandoSans-Variable.woff2') format('woff2'),
       url('../assets/fonts/ZalandoSans-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --color-black: #070000;
  --color-dark-panel: #0E0202;
  --color-card: #120303;
  --color-red: #B80000;
  --color-red-bright: #E50914;
  --color-white: #FFFFFF;
  --color-white-pure: #FFFFFF;
  --color-muted: rgba(255, 255, 255, 0.65);
  --color-border: #220606;
  --color-border-sharp: #3D0808;
  --color-border-active: #B80000;
  
  --font-en: 'Zalando Sans', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', sans-serif;
  --font-mono: 'Zalando Sans', sans-serif;
  
  --transition-sharp: 0.18s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0; /* Strict sharp architectural feel */
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
}

img, a, button, .cs-image-frame, .cert-preview-frame, .cs-hero-cover {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
}

html {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-black);
  color: var(--color-white);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   SHARP RED SQUARE CURSOR (BRAND #B80000 - FIXED & CONSTANT EVERYWHERE)
   ========================================================================== */
html, body,
*, *::before, *::after,
a, button, [role="button"], input, textarea, select,
.cs-nav-item, .cs-mobile-pill, .cs-image-frame, .cs-hero-cover,
.project-card-sharp, .btn-sharp-red, .btn-sharp-outline, .social-sharp-btn,
.nav-bar-btn, .modal-close-sharp, .cs-lightbox-close-btn, .cs-cta-btn,
.filter-chip, .btn-view-case, .btn-behance-direct, .credential-link-sharp {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Crect x='1' y='1' width='12' height='12' fill='%23B80000' stroke='%23000000' stroke-width='1.2'/%3E%3C/svg%3E") 7 7, auto !important;
}

::selection {
  background-color: var(--color-red);
  color: var(--color-white-pure);
}

/* ==========================================================================
   BRUTALIST SHARP GEOMETRIC SCROLLBAR (100% RECTANGULAR, NO ROUNDED CORNERS)
   Palette: Pitch Black (#070000) & Crimson Red (#B80000)
   ========================================================================== */

/* WebKit & Blink Engine (Chrome, Edge, Brave, Opera, Safari) */
::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.modal-content-box::-webkit-scrollbar,
textarea::-webkit-scrollbar {
  width: 12px !important;
  height: 12px !important;
  background-color: #070000;
}

::-webkit-scrollbar-button,
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button,
.modal-content-box::-webkit-scrollbar-button,
textarea::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.modal-content-box::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
  background: #070000 !important;
  border-left: 1px solid var(--color-border-sharp);
  border-radius: 0px !important;
}

::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.modal-content-box::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
  background-color: var(--color-red) !important;
  min-height: 80px !important;
  border-radius: 0px !important;
  -webkit-border-radius: 0px !important;
  border: none !important;
  box-shadow: none !important;
}

::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.modal-content-box::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-red-bright) !important;
}

::-webkit-scrollbar-corner,
.modal-content-box::-webkit-scrollbar-corner {
  background: #070000 !important;
}

/* Precision Textarea Scrollbar (Strict Flat Sharp Rectangle) */
.sharp-textarea::-webkit-scrollbar {
  width: 8px;
  background-color: #050000;
}

.sharp-textarea::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.sharp-textarea::-webkit-scrollbar-track {
  background: #050000 !important;
  border-left: 1px solid var(--color-border-sharp);
  border-radius: 0px !important;
}

.sharp-textarea::-webkit-scrollbar-thumb {
  background-color: var(--color-red) !important;
  border-radius: 0px !important;
  -webkit-border-radius: 0px !important;
  border: none !important;
}

.sharp-textarea::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-red-bright) !important;
}

.sharp-textarea::-webkit-resizer {
  background-color: #070000;
  border-right: 2px solid var(--color-red);
  border-bottom: 2px solid var(--color-red);
}

/* ==========================================================================
   TOP ARCHITECTURAL MODULAR BARS (EDGE-TO-EDGE AT THE VERY TOP)
   ========================================================================== */
.top-header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-black);
  border-bottom: 1px solid var(--color-border-sharp);
  padding-top: env(safe-area-inset-top, 0px);
}

.modular-grid-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  height: 64px;
}

.nav-bar-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background-color: var(--color-black);
  border: none;
  border-right: 1px solid var(--color-border-sharp);
  color: var(--color-muted);
  cursor: pointer;
  font-family: var(--font-en);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition-sharp);
  outline: none;
}

.nav-bar-btn:last-child {
  border-right: none;
}

.nav-bar-btn:hover {
  background-color: #160303;
  color: var(--color-white);
}

/* Active State Inversion: Solid Red with Pure White Text */
.nav-bar-btn.active {
  background-color: var(--color-red) !important;
  color: var(--color-white-pure) !important;
  font-weight: 800;
}

.nav-bar-btn .bar-idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.65;
}

.nav-bar-btn.active .bar-idx {
  opacity: 0.9;
  color: var(--color-white-pure);
}

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */
.main-wrapper {
  margin-top: calc(64px + env(safe-area-inset-top, 0px)); /* Offset for the top bar + safe-area */
  min-height: calc(100vh - 64px - env(safe-area-inset-top, 0px));
  width: 100%;
}

.content-section {
  display: none;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
}

.content-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   VIEW 01: HOME (HERO SECTION)
   ========================================================================== */
.hero-editorial-container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  min-height: calc(100vh - 64px);
  border-bottom: 1px solid var(--color-border-sharp);
}

.hero-left-editorial {
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--color-border-sharp);
}

.hero-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: var(--color-red);
  margin-bottom: 30px;
  text-transform: uppercase;
}

.hero-title-group {
  margin: auto 0;
}

.hero-name-interactive {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--color-black);
  -webkit-text-stroke: 1.5px var(--color-white-pure);
  text-stroke: 1.5px var(--color-white-pure);
  paint-order: stroke fill;
  text-transform: uppercase;
  margin-bottom: 22px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-name-interactive:hover {
  -webkit-text-stroke-color: var(--color-red);
}

.hero-name-interactive.is-filled {
  color: var(--color-red) !important;
  -webkit-text-stroke: 1.5px var(--color-red) !important;
  text-shadow: 0 0 25px rgba(184, 0, 0, 0.45);
}

.hero-main-statement {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--color-white-pure);
  text-transform: uppercase;
  margin-bottom: 44px;
}

.hero-main-statement span.highlight {
  color: var(--color-red);
  display: inline;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta-row .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 56px;
  padding: 0 32px;
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-sharp);
  text-align: center;
}

.btn-sharp-red {
  background-color: var(--color-red);
  color: var(--color-white-pure);
  border: 1px solid var(--color-red);
}

.btn-sharp-red:hover {
  background-color: var(--color-red-bright);
  border-color: var(--color-red-bright);
}

.btn-sharp-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-border-sharp);
}

.btn-sharp-outline:hover {
  border-color: var(--color-red);
  background-color: var(--color-dark-panel);
  color: var(--color-white-pure);
}

/* HERO RIGHT: CINEMATIC SHARP PHOTO CANVAS */
.hero-right-visual {
  position: relative;
  background-color: #030000;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.08) brightness(0.96);
  transition: transform 0.6s ease;
}

.hero-portrait-img:hover {
  transform: scale(1.02);
}

/* STATS BAR (SHARP 5-COLUMN STRIP) */
.sharp-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--color-border-sharp);
}

.sharp-stat-cell {
  padding: 28px 20px;
  border-right: 1px solid var(--color-border-sharp);
  display: flex;
  flex-direction: column;
}

.sharp-stat-cell:last-child {
  border-right: none;
}

.sharp-stat-num {
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 10px;
}

.sharp-stat-label {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-white-pure);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sharp-stat-sub {
  font-size: 0.76rem;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   VIEW 02: PORTFOLIO (WORKS)
   ========================================================================== */
.section-full-container {
  padding: 60px 80px;
}

.section-head-sharp {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-sharp);
  margin-bottom: 40px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-red);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-main-heading {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--color-white-pure);
  text-transform: uppercase;
}

/* Filter Strip */
.portfolio-filters-sharp {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 20px;
  background-color: var(--color-black);
  border: 1px solid var(--color-border-sharp);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition-sharp);
}

.filter-chip:hover {
  color: var(--color-white);
  border-color: var(--color-red);
}

.filter-chip.active {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white-pure);
}

/* Portfolio Grid */
.sharp-project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.project-box {
  background-color: var(--color-black);
  border: 1px solid var(--color-border-sharp);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.project-box:hover {
  border-color: var(--color-red) !important;
  box-shadow: 0 0 25px rgba(184, 0, 0, 0.25);
}

.project-box:hover .project-box-title {
  color: var(--color-red) !important;
}

.project-cover-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: #030000;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-sharp);
}

.project-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-box:hover .project-cover-img {
  transform: scale(1.03);
}

.project-tag-corner {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-black);
  border: 1px solid var(--color-border-sharp);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-red);
  text-transform: uppercase;
}

.project-box-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-box-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-white-pure);
  margin-bottom: 12px;
  line-height: 1.25;
  transition: color 0.25s ease;
}

.project-box-desc {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.project-box-skills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.skill-tag-sharp {
  padding: 4px 10px;
  background-color: var(--color-dark-panel);
  border: 1px solid var(--color-border-sharp);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #C0BBBB;
}

.project-action-row {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-sharp);
}

/* Primary CTA: Case Details (Solid Red) */
.btn-view-case {
  flex: 1;
  height: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  background-color: var(--color-red);
  color: var(--color-white-pure);
  border: 1px solid var(--color-red);
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  transition: var(--transition-sharp);
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
}

.btn-view-case:hover {
  background-color: var(--color-red-bright);
  border-color: var(--color-red-bright);
  color: var(--color-white-pure);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

/* Secondary CTA: Behance Direct (Sharp Pure Black Outline) */
.btn-behance-direct {
  flex: 1;
  height: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  background-color: var(--color-black);
  color: var(--color-white);
  border: 1px solid var(--color-border-sharp);
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-sizing: border-box;
  transition: var(--transition-sharp);
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
}

.btn-behance-direct:hover {
  border-color: var(--color-red);
  color: var(--color-white-pure);
  background-color: var(--color-red);
}

/* ==========================================================================
   VIEW 03: IDENTITY — DEDICATED CV / RESUME SHOWCASE BANNER
   ========================================================================== */
.cv-banner-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background-color: var(--color-black);
  border: 1px solid var(--color-border-sharp);
  padding: 28px 36px;
  margin-bottom: 32px;
  box-sizing: border-box;
  transition: var(--transition-sharp);
}

.cv-banner-card:hover {
  border-color: var(--color-red);
  box-shadow: 0 0 25px rgba(184, 0, 0, 0.15);
}

.cv-banner-info {
  flex: 1;
}

.cv-banner-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--color-white-pure);
  letter-spacing: -0.3px;
  margin: 0 0 6px 0;
}

.cv-format-sub {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
}

.cv-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cv-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  width: 172px; /* Exactly equal width for both CTA buttons */
  padding: 0 16px;
  font-family: var(--font-en);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  transition: var(--transition-sharp);
}

.btn-cv-action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
}

.btn-cv-view {
  background-color: var(--color-red);
  border: 1px solid var(--color-red);
  color: var(--color-white-pure);
}

.btn-cv-view:hover {
  background-color: var(--color-red-bright);
  border-color: var(--color-red-bright);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.btn-cv-download {
  background-color: transparent;
  border: 1px solid var(--color-border-sharp);
  color: var(--color-white);
}

.btn-cv-download:hover {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white-pure);
  box-shadow: 0 0 15px rgba(184, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .cv-banner-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 20px;
  }
  .cv-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  .btn-cv-action {
    width: 100%;
  }
}

/* ==========================================================================
   VIEW 03: IDENTITY (REAL STORY, ARSENAL, EXPERIENCE, EDUCATION)
   ========================================================================== */
.identity-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  align-items: stretch;
}

.identity-left-col,
.identity-right-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.identity-left-col .sharp-card-box,
.identity-right-col .sharp-card-box {
  height: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   FULL-WIDTH DESIGN PHILOSOPHY & APPROACH
   ========================================================================== */
.philosophy-full-card {
  background-color: var(--color-black);
  border: 1px solid var(--color-border-sharp);
  padding: 36px;
  margin-bottom: 50px;
  transition: var(--transition-sharp);
}

.philosophy-full-card:hover {
  border-color: var(--color-red);
}

.philosophy-card-head {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-sharp);
}

.philosophy-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white-pure);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.process-six-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.process-step-cell {
  background-color: var(--color-dark-panel);
  border: 1px solid var(--color-border-sharp);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-sharp);
}

.process-step-cell:hover {
  border-color: var(--color-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.step-cell-idx {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-red);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.step-cell-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-white-pure);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-cell-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-cell-list li {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  word-break: normal;
  hyphens: manual;
}

.step-cell-list li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: var(--color-red);
  margin-top: 6px;
  flex-shrink: 0;
}

.process-step-cell:hover .step-cell-list li::before {
  background-color: var(--color-red-bright);
}

.sharp-card-box {
  background-color: var(--color-black);
  border: 1px solid var(--color-border-sharp);
  padding: 36px;
}

.story-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-white-pure);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border-sharp);
  padding-bottom: 16px;
}

.story-body p {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
  margin-bottom: 20px;
}

.story-body p:last-child {
  margin-bottom: 0;
}

.story-body p strong {
  color: var(--color-white-pure);
  font-weight: 700;
}

.story-body p em {
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
}

.story-body .story-punchline {
  color: var(--color-white-pure);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.2px;
  border-left: 2px solid var(--color-red);
  padding-left: 16px;
  margin-top: 26px;
  margin-bottom: 0;
}

.skills-cloud-sharp {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill-sharp {
  padding: 8px 14px;
  background-color: var(--color-dark-panel);
  border: 1px solid var(--color-border-sharp);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
  transition: var(--transition-sharp);
}

.skill-pill-sharp:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

/* Timeline of Real Experience */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  border-left: 2px solid var(--color-border-sharp);
  padding-left: 20px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  background-color: var(--color-red);
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-white-pure);
  margin-bottom: 4px;
}

.timeline-company {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.timeline-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.timeline-credential-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 208px;
  height: 38px;
  flex: 0 0 208px;
  padding: 0 10px;
  background-color: var(--color-black);
  border: 1px solid var(--color-border-sharp);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: var(--transition-sharp);
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  white-space: nowrap;
}

.timeline-credential-badge svg {
  width: 12px;
  height: 12px;
  stroke: var(--color-muted);
  transition: var(--transition-sharp);
  flex-shrink: 0;
}

.timeline-credential-badge:hover {
  border-color: var(--color-red);
  color: var(--color-white-pure);
  background-color: rgba(184, 0, 0, 0.08);
}

.timeline-credential-badge:hover svg {
  stroke: var(--color-red);
}

@media (max-width: 540px) {
  .timeline-credential-badge {
    width: 100%;
    flex: 1 1 100%;
  }
}



/* ==========================================================================
   THREE-PILLAR SKILLS, TOOLS & MINDSET ARSENAL
   ========================================================================== */
.skills-three-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 30px;
}

.pillar-card {
  background-color: var(--color-black);
  border: 1px solid var(--color-border-sharp);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-sharp);
}

.pillar-card:hover {
  border-color: var(--color-red);
}

.pillar-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border-sharp);
}

.pillar-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white-pure);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pillar-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.skill-group {
  display: flex;
  flex-direction: column;
}

.skill-group-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-group-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.skill-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tag {
  background-color: var(--color-dark-panel);
  border: 1px solid var(--color-border-sharp);
  color: #DCD6D6;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  line-height: 1.35;
  transition: var(--transition-sharp);
}

.skill-tag:hover {
  border-color: var(--color-red);
  color: var(--color-white-pure);
  background-color: #120303;
}

.tools-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tool-badge-item {
  background-color: #0A0202;
  border: 1px solid var(--color-border-sharp);
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-white-pure);
  transition: var(--transition-sharp);
  white-space: nowrap;
}

.tool-badge-item:hover {
  border-color: var(--color-red);
  background-color: #160404;
  transform: translateY(-1px);
}

.tool-icon-box {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon-box svg {
  width: 17px;
  height: 17px;
  max-width: 17px;
  max-height: 17px;
  display: block;
  fill: var(--color-white-pure);
  color: var(--color-white-pure);
  transition: var(--transition-sharp);
}

.tool-badge-item:hover .tool-icon-box svg {
  fill: var(--color-red);
  color: var(--color-red);
}

.tool-brand-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* ==========================================================================
   EDUCATION & FOUNDATIONS (DEDICATED SECTION)
   ========================================================================== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 24px;
  margin-bottom: 20px;
}

.education-box {
  background-color: var(--color-black);
  border: 1px solid var(--color-border-sharp);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-sharp);
}

.education-box:hover {
  border-color: var(--color-red);
}

.education-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-white-pure);
  margin-bottom: 6px;
}

.education-sub {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
  letter-spacing: 0.4px;
}

.education-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin-bottom: 24px;
  flex: 1;
}

.education-box .credential-link-sharp {
  width: 100%;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 13px 18px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.credential-link-sharp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background-color: var(--color-dark-panel);
  border: 1px solid var(--color-border-sharp);
  color: var(--color-white-pure);
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition-sharp);
  white-space: nowrap;
}

.credential-link-sharp:hover {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white-pure);
}

.education-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.education-logo-wrap {
  width: 52px;
  height: 52px;
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.education-inst-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   LANGUAGES (ARABIC & ENGLISH WITH OFFICIAL FLAGS)
   ========================================================================== */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 24px;
  margin-bottom: 20px;
}

.language-card {
  background-color: var(--color-black);
  border: 1px solid var(--color-border-sharp);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-sharp);
}

.language-card:hover {
  border-color: var(--color-red);
}

.lang-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.lang-flag-wrap {
  width: 44px;
  height: 28px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background-color: transparent;
}

.lang-flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white-pure);
  line-height: 1.2;
}

.lang-native-label {
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 6px;
}

.lang-level {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.lang-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin: 0;
}

/* Certifications Grid (4 items per row) */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.credential-box {
  background-color: var(--color-black);
  border: 1px solid var(--color-border-sharp);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-sharp);
}

.credential-box:hover {
  border-color: var(--color-red);
}

.cert-preview-frame {
  width: 100%;
  height: 160px;
  background-color: #050000;
  border: 1px solid var(--color-border-sharp);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-sharp);
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  outline: none !important;
}

.cert-preview-frame:hover {
  border-color: var(--color-red);
}

.cert-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}

.cert-preview-frame:hover img {
  transform: scale(1.04);
}

.cert-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #0A0202;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px;
  text-align: center;
}

.cert-preview-placeholder i {
  color: var(--color-red);
  width: 24px;
  height: 24px;
}

.cert-preview-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(7, 0, 0, 0.9);
  border: 1px solid var(--color-border-sharp);
  color: var(--color-white-pure);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cert-preview-frame:hover .cert-preview-zoom-hint {
  opacity: 1;
}

.credential-top-info {
  margin-bottom: 20px;
}

.credential-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-white-pure);
  margin-bottom: 6px;
  line-height: 1.35;
}

.credential-issuer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  font-weight: 700;
}

.credential-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
  letter-spacing: 0.5px;
  word-break: break-all;
}

.btn-credential-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background-color: var(--color-dark-panel);
  border: 1px solid var(--color-border-sharp);
  color: var(--color-white-pure);
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition-sharp);
  box-sizing: border-box;
}

.btn-credential-verify:hover {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white-pure);
}

/* ==========================================================================
   VIEW 04: CONTACT (DIRECT CHANNELS & INQUIRY)
   ========================================================================== */
.contact-editorial-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-border-sharp);
  background-color: var(--color-black);
}

.contact-left-col {
  padding: 60px;
  border-right: 1px solid var(--color-border-sharp);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-hero-statement {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--color-white-pure);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.contact-hero-statement span {
  color: var(--color-red);
}

.contact-lead-p {
  font-size: 1.05rem;
  color: #B5B0B0;
  line-height: 1.7;
  margin-bottom: 36px;
}

.direct-link-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.direct-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background-color: var(--color-dark-panel);
  border: 1px solid var(--color-border-sharp);
  text-decoration: none;
  color: var(--color-white);
  transition: var(--transition-sharp);
}

.direct-action-card:hover {
  border-color: var(--color-red);
  background-color: #170303;
}

.direct-card-info {
  display: flex;
  flex-direction: column;
}

.direct-card-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.direct-card-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-white-pure);
}

/* Social Grid Bar */
/* Social Grid Bar (Strict 3x2 Architectural Matrix) */
.social-links-sharp-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.social-sharp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  width: 100%;
  background-color: #0A0202;
  border: 1px solid var(--color-border-sharp);
  color: var(--color-white-pure);
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-sharp);
}

.social-icon-box {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon-box svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: block;
  fill: currentColor;
  color: var(--color-white-pure);
  transition: var(--transition-sharp);
}

.social-sharp-btn:hover {
  border-color: var(--color-red);
  background-color: #160404;
  color: var(--color-white-pure);
}

.social-sharp-btn:hover .social-icon-box svg {
  color: var(--color-red);
}

/* Right Form */
.contact-right-col {
  padding: 60px;
}

.sharp-form-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white-pure);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-sharp);
}

.contact-right-col form {
  position: relative;
}

.sharp-form-group {
  position: relative;
  margin-bottom: 22px;
}

.sharp-form-group:nth-child(1) { z-index: 5; }
.sharp-form-group:nth-child(2) { z-index: 6; }
.sharp-form-group:nth-child(3) { z-index: 50; } /* Product Scope */
.sharp-form-group:nth-child(4) { z-index: 40; } /* Budget Range */
.sharp-form-group:nth-child(5) { z-index: 10; } /* Project Objective */
.form-btn-actions { z-index: 5; position: relative; }

.sharp-form-group.dropdown-active,
.sharp-form-group:has(.custom-sharp-dropdown.open) {
  z-index: 9999 !important;
}

.sharp-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sharp-input,
.sharp-select,
.sharp-textarea {
  width: 100%;
  padding: 0 20px;
  background-color: #060101;
  border: 1px solid var(--color-border-sharp);
  color: var(--color-white-pure);
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 500;
  outline: none;
  border-radius: 0 !important;
  transition: var(--transition-sharp);
}

.sharp-input {
  height: 58px;
}

.sharp-select-wrapper {
  position: relative;
  width: 100%;
}

.sharp-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 58px;
  padding: 0 48px 0 20px;
  cursor: pointer;
}

.select-arrow-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: var(--transition-sharp);
}

.sharp-select-wrapper:focus-within .select-arrow-icon {
  color: var(--color-red);
}

.sharp-input:focus,
.sharp-select:focus,
.sharp-textarea:focus {
  border-color: var(--color-red);
  background-color: #0c0202;
  box-shadow: 0 0 16px rgba(184, 0, 0, 0.35);
}

.sharp-textarea {
  min-height: 150px;
  padding: 18px 20px;
  resize: vertical;
}

/* Custom Brutalist Sharp Dropdown */
.custom-sharp-dropdown {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-dropdown-trigger {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background-color: #060101;
  border: 1px solid var(--color-border-sharp);
  color: var(--color-white-pure);
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-radius: 0 !important;
  outline: none;
  transition: var(--transition-sharp);
  position: relative;
}

.custom-dropdown-trigger:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: #090202;
}

.custom-sharp-dropdown.open .custom-dropdown-trigger,
.custom-dropdown-trigger:focus {
  border-color: var(--color-red);
  background-color: #0c0202;
  box-shadow: 0 0 16px rgba(184, 0, 0, 0.35);
}

.custom-dropdown-value {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-white-pure);
}

.custom-dropdown-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 12px;
  flex-shrink: 0;
}

.custom-sharp-dropdown.open .custom-dropdown-arrow {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 10001 !important;
  background: #070000 !important;
  background-color: #070000 !important;
  border: 1px solid var(--color-red) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.98), 0 0 30px rgba(184, 0, 0, 0.45) !important;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0 !important;
}

.custom-sharp-dropdown.open .custom-dropdown-menu {
  display: flex;
  animation: dropdownOpenFade 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownOpenFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #070000 !important;
  background-color: #070000 !important;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-en);
  font-size: 1.02rem;
  font-weight: 500;
  cursor: pointer;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
  user-select: none;
}

.custom-dropdown-option:last-child {
  border-bottom: none;
}

.custom-dropdown-option:hover {
  background: #1a0303 !important;
  background-color: #1a0303 !important;
  color: var(--color-white-pure) !important;
  border-left-color: var(--color-red) !important;
  padding-left: 24px;
}

.custom-dropdown-option.active {
  background: #250505 !important;
  background-color: #250505 !important;
  color: var(--color-white-pure) !important;
  font-weight: 700;
  border-left-color: var(--color-red) !important;
}

.custom-dropdown-option .option-check {
  font-size: 0.65rem;
  color: var(--color-red);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 12px;
}

.custom-dropdown-option.active .option-check {
  opacity: 1;
  transform: scale(1);
}

.custom-dropdown-option:hover .option-check {
  opacity: 0.8;
}

.form-btn-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.form-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  font-family: var(--font-en);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-sharp);
  white-space: nowrap;
}

.form-action-btn i,
.form-action-btn svg {
  flex-shrink: 0;
}

.btn-sharp-submit {
  width: 100%;
  padding: 18px;
  background-color: var(--color-red);
  border: 1px solid var(--color-red);
  color: var(--color-white-pure);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-sharp);
}

.btn-sharp-submit:hover {
  background-color: var(--color-red-bright);
}

/* ==========================================================================
   CASE STUDY MODAL (SHARP & MINIMAL)
   ========================================================================== */
.modal-overlay-sharp {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 0, 0, 0.98);
  z-index: 2000;
  display: none;
  opacity: 0;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  transition: opacity 0.2s ease;
}

.modal-overlay-sharp.active {
  display: flex;
  opacity: 1;
}

.modal-content-box {
  background-color: var(--color-black);
  border: 1px solid var(--color-red);
  max-width: 1380px;
  width: 95vw;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 0 50px rgba(184, 0, 0, 0.35);
  transform-origin: center top;
}

.modal-overlay-sharp.active .modal-content-box {
  animation: archModalExpand 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes archModalExpand {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(-20px);
    clip-path: inset(12% 0 12% 0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

.modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 36px;
  border-bottom: 1px solid var(--color-border-sharp);
  background-color: var(--color-dark-panel);
  position: sticky;
  top: 0;
  z-index: 50;
}

.modal-title-sharp {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-white-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  margin: 0;
}

.cs-lightbox-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 36px;
  border-bottom: 1px solid transparent;
  pointer-events: none;
  z-index: 5010;
  box-sizing: border-box;
}

.modal-close-sharp,
.cs-lightbox-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  background-color: var(--color-black);
  border: 1px solid var(--color-red);
  color: var(--color-white-pure);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  margin-left: auto;
  transition: var(--transition-sharp);
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
  box-sizing: border-box;
  pointer-events: auto;
  position: static;
}

.modal-close-sharp:hover,
.cs-lightbox-close-btn:hover {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white-pure);
  box-shadow: 0 0 15px rgba(184, 0, 0, 0.6);
}

.modal-close-sharp svg,
.cs-lightbox-close-btn svg,
.modal-close-sharp i,
.cs-lightbox-close-btn i {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  stroke-width: 2.2px !important;
  flex-shrink: 0;
  transition: none !important;
  transform: none !important;
  display: block;
}

.modal-close-sharp:active,
.cs-lightbox-close-btn:active,
.modal-close-sharp:focus,
.cs-lightbox-close-btn:focus {
  transform: none !important;
  outline: none !important;
}

.modal-close-sharp:active svg,
.cs-lightbox-close-btn:active svg,
.modal-close-sharp:focus svg,
.cs-lightbox-close-btn:focus svg,
.modal-close-sharp:hover svg,
.cs-lightbox-close-btn:hover svg {
  width: 14px !important;
  height: 14px !important;
  transform: none !important;
}

.modal-inner-body {
  padding: 0;
}

.modal-banner-frame {
  width: 100%;
  height: 400px;
  background-color: #030000;
  border-bottom: 1px solid var(--color-border-sharp);
  margin-bottom: 32px;
  overflow: hidden;
}

.modal-banner-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
  padding: 0 36px;
}

.modal-text-pane {
  background-color: var(--color-dark-panel);
  border: 1px solid var(--color-border-sharp);
  padding: 24px;
}

.modal-pane-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-red);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.modal-pane-p {
  font-size: 0.95rem;
  color: #C0BBBB;
  line-height: 1.7;
}

/* ==========================================================================
   DEEP CASE STUDY ARCHITECTURAL SYSTEM (ATHAR & PRODUCT SHOWCASES)
   ========================================================================== */
.cs-wrap {
  width: 100%;
  color: var(--color-white);
}

.cs-hero-cover {
  width: 100%;
  border-bottom: 1px solid var(--color-border-sharp);
  background-color: #040000;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-sharp);
}

.cs-hero-cover:hover {
  border-color: var(--color-red);
}

.cs-hero-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   CASE STUDY ARCHITECTURAL TWO-COLUMN LAYOUT & SIDEBAR NAVIGATION
   -------------------------------------------------------------------------- */
.cs-body-layout {
  display: flex !important;
  direction: ltr !important; /* Unified LTR direction for all projects: sidebar always on left */
  align-items: flex-start;
  width: 100%;
  position: relative;
}

.cs-sidebar-nav {
  width: 270px;
  flex-shrink: 0;
  position: sticky;
  top: 70px;
  align-self: flex-start;
  max-height: calc(92vh - 70px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-red) transparent;
  background-color: #050101;
  padding: 16px 12px;
  box-sizing: border-box;
  z-index: 30;
  border-right: 1px solid var(--color-border-sharp) !important;
  border-left: none !important;
  direction: ltr !important;
}

.cs-sidebar-inner {
  display: flex;
  flex-direction: column;
}

.cs-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid transparent;
  border-left: 3px solid transparent !important;
  border-right: none !important;
  transition: var(--transition-sharp);
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  direction: ltr !important;
  text-align: left !important;
}

.cs-nav-item:hover {
  background-color: rgba(184, 0, 0, 0.08);
  border-color: rgba(184, 0, 0, 0.25);
}

.cs-nav-item.active {
  background-color: rgba(184, 0, 0, 0.16);
  border-color: rgba(184, 0, 0, 0.5);
  border-left-color: var(--color-red) !important;
}

.cs-nav-num {
  font-family: var(--font-mono) !important;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--color-muted);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.cs-nav-item.active .cs-nav-num {
  color: var(--color-red-bright);
}

.cs-nav-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.cs-wrap[dir="rtl"] .cs-nav-label {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

.cs-wrap[dir="ltr"] .cs-nav-label {
  font-family: var(--font-en) !important;
}

.cs-nav-item.active .cs-nav-label {
  color: var(--color-white-pure);
  font-weight: 700;
}

.cs-main-column {
  flex: 1;
  min-width: 0;
  padding-bottom: 0;
}

/* Mobile Chapter Navigation (Sticky Horizontal Pill Strip - Hidden on Desktop) */
.cs-mobile-nav {
  display: none;
  direction: ltr !important;
}

/* Universal Arabic Typography Enforcement for RTL Case Studies */
[dir="rtl"],
[lang="ar"],
.cs-wrap[dir="rtl"],
.cs-wrap[dir="rtl"] p,
.cs-wrap[dir="rtl"] h1,
.cs-wrap[dir="rtl"] h2,
.cs-wrap[dir="rtl"] h3,
.cs-wrap[dir="rtl"] .cs-arabic-title,
.cs-wrap[dir="rtl"] .cs-arabic-tagline,
.cs-wrap[dir="rtl"] .cs-lead-text,
.cs-wrap[dir="rtl"] .cs-chap-title-ar,
.cs-wrap[dir="rtl"] .cs-chap-p,
.cs-wrap[dir="rtl"] .cs-stat-desc-ar,
.cs-wrap[dir="rtl"] .cs-solution-title,
.cs-wrap[dir="rtl"] .cs-solution-desc,
.cs-wrap[dir="rtl"] .cs-spec-label,
.cs-wrap[dir="rtl"] .cs-spec-val {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

/* LTR English Case Studies Typography & Layout (e.g. AURA) */
.cs-wrap[dir="ltr"],
.cs-wrap[dir="ltr"] p,
.cs-wrap[dir="ltr"] h1,
.cs-wrap[dir="ltr"] h2,
.cs-wrap[dir="ltr"] h3,
.cs-wrap[dir="ltr"] .cs-title-en,
.cs-wrap[dir="ltr"] .cs-tagline-en,
.cs-wrap[dir="ltr"] .cs-lead-text,
.cs-wrap[dir="ltr"] .cs-chap-title-en,
.cs-wrap[dir="ltr"] .cs-chap-p,
.cs-wrap[dir="ltr"] .cs-spec-label,
.cs-wrap[dir="ltr"] .cs-spec-val {
  font-family: var(--font-en) !important;
}

.cs-wrap[dir="ltr"] .cs-header-pane,
.cs-wrap[dir="ltr"] .cs-chapter {
  text-align: left;
  direction: ltr;
}

.cs-wrap[dir="ltr"] .cs-spec-row {
  direction: ltr;
}

.cs-title-en {
  font-family: var(--font-en) !important;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-white-pure);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.cs-tagline-en {
  font-family: var(--font-en) !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.cs-chap-title-en {
  font-family: var(--font-en) !important;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-white-pure);
  letter-spacing: -0.3px;
}

.cs-header-pane {
  padding: 40px 36px;
  background-color: #0B0202;
  border-bottom: 1px solid var(--color-border-sharp);
  text-align: right;
  direction: rtl;
}

.cs-eyebrow-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--color-black);
  border: 1px solid var(--color-border-sharp);
  border-left: 3px solid var(--color-red);
  color: var(--color-white-pure);
  font-family: var(--font-mono) !important;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  direction: ltr;
}

.cs-main-heading-wrap {
  margin-bottom: 24px;
}

.cs-arabic-title {
  font-family: var(--font-ar) !important;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-white-pure);
  line-height: 1.15;
  margin-bottom: 8px;
}

.cs-arabic-tagline {
  font-family: var(--font-ar) !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.cs-lead-text {
  font-family: var(--font-ar) !important;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #D8D2D2;
  max-width: 900px;
}

/* Architectural Case Specs Table (Single-line Rows) */
.cs-specs-table {
  margin-top: 28px;
  border: 1px solid var(--color-border-sharp);
  background-color: var(--color-black);
}

.cs-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--color-border-sharp);
  direction: rtl;
}

.cs-spec-row:last-child {
  border-bottom: none;
}

.cs-spec-label {
  font-family: var(--font-ar) !important;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}

.cs-spec-val {
  font-family: var(--font-ar) !important;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-white-pure);
  white-space: nowrap;
}

/* Video Mockup Showcase */
.cs-video-section {
  padding: 36px;
  background-color: #050000;
  border-bottom: 1px solid var(--color-border-sharp);
}

.cs-video-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background-color: #000;
  border: 1px solid var(--color-border-sharp);
  overflow: hidden;
}

.cs-video-card video {
  width: 100%;
  height: auto;
  display: block;
  background-color: #000;
}

/* Chapters & Editorial Sections */
.cs-chapter {
  padding: 48px 36px;
  border-bottom: 1px solid var(--color-border-sharp);
  text-align: right;
  direction: rtl;
  scroll-margin-top: 76px;
}

.cs-chapter:nth-child(even) {
  background-color: #070101;
}

.cs-chapter-head {
  margin-bottom: 24px;
}

.cs-chap-idx {
  font-family: var(--font-mono) !important;
  font-size: 0.78rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  direction: ltr;
  text-align: left;
}

.cs-chap-title-ar {
  font-family: var(--font-ar) !important;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-white-pure);
}

.cs-chap-p {
  font-family: var(--font-ar) !important;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #D2CCCC;
  margin-bottom: 24px;
}

/* Image Frames & Zoom */
.cs-image-frame {
  margin: 20px 0;
  background-color: #040000;
  border: 1px solid var(--color-border-sharp);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition-sharp);
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  outline: none !important;
}

.cs-image-frame:hover {
  border-color: var(--color-red);
}

.cs-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-img-zoom-hint {
  display: none !important;
}

/* Two-column and Three-column Image Grids */
.cs-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.cs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

/* Stat & Survey Metric Cards */
.cs-stats-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.cs-stat-box {
  padding: 24px;
  background-color: var(--color-dark-panel);
  border: 1px solid var(--color-border-sharp);
  border-top: 3px solid var(--color-red);
}

.cs-stat-big-num {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 10px;
}

.cs-stat-desc-ar {
  font-family: var(--font-ar);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-white);
}

/* Solutions Matrix */
.cs-solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}

.cs-solution-card {
  padding: 22px;
  background-color: #080101;
  border: 1px solid var(--color-border-sharp);
  border-right: 3px solid var(--color-red);
  text-align: right;
  direction: rtl;
}

.cs-solution-title {
  font-family: var(--font-ar);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white-pure);
  margin-bottom: 8px;
}

.cs-solution-desc {
  font-family: var(--font-ar);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-muted);
}

/* Case Study Sticky Footer */
.cs-footer-actions {
  padding: 28px 36px;
  background-color: var(--color-dark-panel);
  border-top: 1px solid var(--color-border-sharp);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  direction: ltr;
}

.cs-cta-btn {
  flex: 1;
  min-height: 52px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-en) !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-sharp);
  box-sizing: border-box;
}

.cs-cta-primary {
  background-color: var(--color-red);
  border: 1px solid var(--color-red);
  color: var(--color-white-pure);
}

.cs-cta-primary:hover {
  background-color: var(--color-red-bright);
  border-color: var(--color-red-bright);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

/* Secondary CTA matching the CLOSE button style */
.cs-cta-secondary {
  background-color: transparent;
  border: 1px solid var(--color-border-sharp);
  color: var(--color-white);
}

.cs-cta-secondary:hover {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white-pure);
}

/* Lightbox Fullscreen Preview */
.cs-lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 0, 0, 0.97);
  z-index: 5000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: max(80px, calc(env(safe-area-inset-top, 0px) + 65px));
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  cursor: default;
  user-select: none;
  overscroll-behavior-y: contain !important;
  touch-action: pan-x pan-y pinch-zoom !important;
}

.cs-lightbox-overlay.active {
  display: flex;
}

.cs-lightbox-overlay img {
  max-width: 94vw;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  object-fit: contain;
  border: 1px solid var(--color-red);
  box-shadow: 0 0 60px rgba(184, 0, 0, 0.5);
  cursor: default;
  pointer-events: auto;
  margin: auto;
  touch-action: pan-x pan-y pinch-zoom !important;
}


/* Toast */
.sharp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-dark-panel);
  border: 1px solid var(--color-red);
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white-pure);
  z-index: 3000;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sharp-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   Brutalist Architectural Hierarchy: Desktop -> Tablet -> Mobile (390px iPhone)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TABLET & COMPACT DESKTOP (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-editorial-container {
    display: flex;
    flex-direction: column;
    border-bottom: none;
  }
  .hero-left-editorial {
    display: contents;
  }
  .hero-meta-top {
    order: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    border-bottom: 1px solid var(--color-border-sharp);
    margin-bottom: 0;
    font-size: 0.76rem;
    letter-spacing: 1px;
    width: 100%;
    background-color: var(--color-black);
    box-sizing: border-box;
  }
  .hero-right-visual {
    order: 2;
    height: 480px;
    border-top: none;
    border-bottom: 1px solid var(--color-border-sharp);
    border-right: none;
    width: 100%;
  }
  .hero-title-group {
    order: 3;
    padding: 44px 32px;
    border-bottom: 1px solid var(--color-border-sharp);
    width: 100%;
    box-sizing: border-box;
  }
  .sharp-stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .sharp-stat-cell:nth-child(3) {
    border-right: none;
  }
  .sharp-stat-cell:nth-child(n+4) {
    border-top: 1px solid var(--color-border-sharp);
  }
  .section-full-container {
    padding: 44px 28px;
  }
  .sharp-project-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .identity-editorial-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .skills-three-pillars-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .process-six-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
  .languages-grid {
    grid-template-columns: 1fr;
  }
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-editorial-layout {
    grid-template-columns: 1fr;
  }
  .contact-left-col {
    padding: 40px 28px;
    border-right: none;
    border-bottom: 1px solid var(--color-border-sharp);
  }
  .contact-right-col {
    padding: 40px 28px;
  }
}

/* --------------------------------------------------------------------------
   2. SMALL TABLET & PHABLETS (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .sharp-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .sharp-stat-cell:nth-child(2n) {
    border-right: none;
  }
  .sharp-stat-cell:nth-child(n+3) {
    border-top: 1px solid var(--color-border-sharp);
  }
  .sharp-stat-cell:last-child {
    grid-column: span 2;
    border-right: none;
  }
  .cv-banner-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 18px;
  }
  .cv-banner-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  /* Hide intrusive scrollbars on mobile */
  ::-webkit-scrollbar,
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  .modal-content-box::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  html,
  body,
  .modal-content-box {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .modal-overlay-sharp {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: #030000 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    overflow: hidden !important;
    overscroll-behavior-y: contain !important;
    z-index: 2500 !important;
  }
  .modal-content-box {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100% !important;
    max-height: 100dvh !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain !important;
    background-color: #040000 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .modal-top-bar,
  .cs-lightbox-top-bar {
    padding: 14px 24px;
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    flex-shrink: 0;
    box-sizing: border-box;
  }
  .cs-header-pane {
    padding: 32px 24px;
  }
  .cs-chapter {
    padding: 36px 24px;
    scroll-margin-top: 110px;
  }
  .cs-video-section {
    padding: 24px;
  }
  .cs-footer-actions {
    padding: 24px;
  }
  .cs-sidebar-nav {
    display: none !important;
  }
  .cs-body-layout {
    display: block !important;
  }
  .cs-mobile-nav {
    display: block;
    position: sticky;
    top: calc(52px + env(safe-area-inset-top, 0px));
    z-index: 45;
    background-color: rgba(6, 1, 1, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-sharp);
    padding: 8px 14px;
    box-sizing: border-box;
    direction: ltr !important;
  }
  .cs-mobile-nav-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 4px 2px;
    direction: ltr !important;
    scroll-behavior: smooth;
  }
  .cs-mobile-nav-track::-webkit-scrollbar {
    display: none;
  }
  .cs-mobile-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    background-color: #0b0202;
    border: 1px solid var(--color-border-sharp);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition-sharp);
    -webkit-tap-highlight-color: transparent;
    border-radius: 0;
    direction: ltr !important;
    touch-action: pan-x;
    user-select: none;
  }
  .cs-wrap[dir="rtl"] .cs-mobile-pill {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  }
  .cs-wrap[dir="ltr"] .cs-mobile-pill {
    font-family: var(--font-en) !important;
  }
  .cs-mobile-pill:hover {
    border-color: rgba(184, 0, 0, 0.6);
    color: var(--color-white-pure);
    background-color: rgba(184, 0, 0, 0.1);
  }
  .cs-mobile-pill.active {
    background-color: rgba(184, 0, 0, 0.24);
    border-color: var(--color-red);
    color: var(--color-white-pure);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(184, 0, 0, 0.4);
  }
  .cs-mobile-pill .pill-num {
    font-family: var(--font-mono) !important;
    font-size: 0.74rem;
    color: var(--color-red);
    font-weight: 800;
    letter-spacing: 0.5px;
  }
  .modal-inner-body {
    flex: 1 1 auto;
    padding-bottom: max(40px, calc(env(safe-area-inset-bottom, 0px) + 30px));
  }
  .modal-details-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
}

/* --------------------------------------------------------------------------
   3. MOBILE LANDSCAPE & PHONES (<= 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .modular-grid-nav {
    height: 52px;
  }
  .nav-bar-btn {
    padding: 0 4px;
    font-size: 0.74rem;
    letter-spacing: 0.4px;
    justify-content: center;
    text-align: center;
  }
  .nav-bar-btn .bar-idx {
    display: none;
  }
  .main-wrapper {
    margin-top: calc(52px + env(safe-area-inset-top, 0px));
    min-height: calc(100vh - 52px - env(safe-area-inset-top, 0px));
  }
  .section-full-container {
    padding: 36px 18px;
  }
  .hero-meta-top {
    padding: 14px 16px;
    font-size: 0.69rem;
    letter-spacing: 0.6px;
  }
  .hero-right-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 480px;
  }
  .hero-portrait-img {
    object-position: center 20%;
  }
  .hero-title-group {
    padding: 32px 18px 36px 18px;
  }
  .hero-name-interactive {
    font-size: 1.95rem;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
  }
  .hero-main-statement {
    font-size: 2.1rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 30px;
  }
  .hero-sub-statement {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-cta-row .hero-btn {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 20px;
    font-size: 0.88rem;
  }
  .sharp-stats-bar {
    grid-template-columns: 1fr;
  }
  .sharp-stat-cell {
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid var(--color-border-sharp);
    padding: 22px 18px;
  }
  .sharp-stat-cell:last-child {
    border-bottom: none;
    grid-column: auto;
  }
  .sharp-stat-num {
    font-size: 2.3rem;
  }
  .sharp-stat-label {
    font-size: 0.92rem;
  }
  .sharp-stat-sub {
    font-size: 0.75rem;
    white-space: normal;
  }
  .section-head-sharp {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 18px;
  }
  .section-main-heading {
    font-size: 2.1rem;
  }
  .filter-strip {
    gap: 8px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-chip {
    padding: 8px 16px;
    font-size: 0.76rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .project-box-body {
    padding: 24px 18px;
  }
  .project-box-title {
    font-size: 1.4rem;
  }
  .project-box-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 20px;
  }
  .project-action-row {
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
  }
  .btn-view-case,
  .btn-behance-direct {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    justify-content: center;
    font-size: 0.82rem;
    box-sizing: border-box;
  }
  .process-six-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .process-step-cell {
    padding: 20px 16px;
  }
  .step-cell-title {
    font-size: 1rem;
  }
  .philosophy-full-card,
  .sharp-card-box {
    padding: 24px 18px;
    margin-bottom: 28px;
  }
  .story-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-white-pure);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 18px 0;
    padding: 0 0 12px 0;
    border-bottom: 1px solid var(--color-border-sharp);
  }
  .philosophy-card-head {
    margin: 0 0 18px 0;
    padding: 0 0 12px 0;
    border-bottom: 1px solid var(--color-border-sharp);
  }
  .philosophy-main-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-white-pure);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
  }
  .pillar-header {
    margin: 0 0 18px 0;
    padding: 0 0 12px 0;
    border-bottom: 1px solid var(--color-border-sharp);
  }
  .pillar-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-white-pure);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
  }
  .story-body p {
    font-size: 0.92rem;
    line-height: 1.7;
  }
  .skills-three-pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pillar-card {
    padding: 24px 18px;
  }
  .tool-badge-item {
    font-size: 0.72rem;
    padding: 7px 9px;
    gap: 7px;
    white-space: nowrap;
  }
  .education-sub {
    font-size: 0.73rem;
    letter-spacing: 0.3px;
  }
  .education-box .credential-link-sharp {
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cert-card {
    padding: 20px 16px;
  }
  .contact-left-col {
    padding: 32px 18px;
  }
  .contact-right-col {
    padding: 32px 18px;
  }
  .contact-hero-statement {
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
  }
  .contact-lead-p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .sharp-form-title {
    font-size: 1.35rem;
  }
  .direct-action-card {
    padding: 16px 18px;
  }
  .direct-card-value {
    font-size: 1rem;
    word-break: break-all;
  }
  .social-links-sharp-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .social-sharp-btn {
    height: 48px;
    font-size: 0.78rem;
  }
  .sharp-input,
  .custom-dropdown-trigger {
    height: 52px;
    padding: 0 16px;
    font-size: 16px !important; /* Fixes iOS Safari auto-zoom on input focus */
  }
  .sharp-select {
    height: 52px;
    padding: 0 44px 0 16px;
    font-size: 16px !important;
  }
  .sharp-textarea {
    font-size: 16px !important; /* Fixes iOS Safari auto-zoom on input focus */
    padding: 14px 16px;
  }
  .custom-dropdown-option {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  .form-btn-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .form-action-btn {
    width: 100%;
    height: 52px;
  }
  .cs-header-pane {
    padding: 24px 16px;
  }
  .cs-chapter {
    padding: 28px 16px;
    scroll-margin-top: 106px;
  }
  .cs-video-section {
    padding: 20px 16px;
  }
  .cs-arabic-title,
  .cs-title-en {
    font-size: 2rem;
    line-height: 1.2;
  }
  .cs-arabic-tagline,
  .cs-tagline-en {
    font-size: 1.1rem;
  }
  .cs-lead-text {
    font-size: 0.94rem;
    line-height: 1.75;
  }
  .cs-chap-title-ar,
  .cs-chap-title-en {
    font-size: 1.4rem;
  }
  .cs-spec-row {
    padding: 11px 14px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .cs-spec-label {
    font-size: 0.82rem;
  }
  .cs-spec-val {
    font-size: 0.86rem;
    white-space: normal;
    word-break: break-word;
  }
  .cs-footer-actions {
    flex-direction: column;
    padding: 20px 16px;
    gap: 12px;
  }
  .cs-footer-actions button,
  .cs-footer-actions a {
    width: 100%;
    height: 48px;
    justify-content: center;
  }
  .modal-top-bar,
  .cs-lightbox-top-bar {
    height: calc(52px + env(safe-area-inset-top, 0px));
    min-height: 52px;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top, 0px);
    gap: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }
  .modal-top-bar {
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border-sharp);
  }
  .cs-lightbox-top-bar {
    justify-content: flex-end;
    border-bottom: 1px solid transparent;
  }
  .modal-title-sharp {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    line-height: 1;
  }
  .modal-close-sharp,
  .cs-lightbox-close-btn {
    height: 36px;
    padding: 0 14px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 1px;
    gap: 7px;
    border: 1px solid var(--color-red);
    background-color: var(--color-black);
    color: var(--color-white-pure);
    position: static;
    margin: 0;
    margin-left: auto;
  }
  .cs-lightbox-overlay {
    padding-top: max(72px, calc(env(safe-area-inset-top, 0px) + 58px));
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
    padding-left: 14px;
    padding-right: 14px;
  }
  .cs-lightbox-overlay img {
    max-width: 95vw;
    max-height: calc(100vh - 105px);
    max-height: calc(100dvh - 105px);
  }
  .sharp-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 12px 16px;
    font-size: 0.78rem;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   4. ULTRA-FOCUSED SMARTPHONE (<= 480px)
   Specifically optimized for 390px (iPhone 13 / 14 / 15) down to 360px
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .modular-grid-nav {
    height: 48px;
  }
  .nav-bar-btn {
    padding: 0 2px;
    font-size: 0.69rem;
    letter-spacing: 0.3px;
  }
  .main-wrapper {
    margin-top: calc(48px + env(safe-area-inset-top, 0px));
    min-height: calc(100vh - 48px - env(safe-area-inset-top, 0px));
  }
  .section-full-container {
    padding: 28px 14px;
  }
  .hero-meta-top {
    padding: 12px 14px;
    font-size: 0.65rem;
    letter-spacing: 0.4px;
  }
  .hero-title-group {
    padding: 26px 14px 30px 14px;
  }
  .hero-name-interactive {
    font-size: 1.72rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
  }
  .hero-main-statement {
    font-size: 1.82rem;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 24px;
  }
  .hero-sub-statement {
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .hero-cta-row .hero-btn {
    height: 48px;
    font-size: 0.84rem;
    letter-spacing: 1px;
  }
  .hero-right-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 400px;
  }
  .hero-portrait-img {
    object-position: center 20%;
  }
  .sharp-stat-cell {
    padding: 18px 14px;
  }
  .sharp-stat-num {
    font-size: 2.1rem;
    margin-bottom: 4px;
  }
  .sharp-stat-label {
    font-size: 0.88rem;
  }
  .sharp-stat-sub {
    font-size: 0.72rem;
  }
  .section-head-sharp {
    margin-bottom: 22px;
    padding-bottom: 14px;
  }
  .section-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
  }
  .section-main-heading {
    font-size: 1.8rem;
  }
  .project-box-cover {
    height: 200px;
  }
  .project-box-body {
    padding: 18px 14px;
  }
  .project-box-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }
  .project-box-desc {
    font-size: 0.86rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .project-box-skills {
    gap: 6px;
    margin-bottom: 20px;
  }
  .skill-tag-sharp {
    padding: 3px 8px;
    font-size: 0.68rem;
  }
  .project-tag-corner {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 0.68rem;
  }
  .project-action-row {
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
  }
  .btn-view-case,
  .btn-behance-direct {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    justify-content: center;
    font-size: 0.82rem;
    box-sizing: border-box;
  }
  .cv-banner-card {
    padding: 18px 14px;
    gap: 14px;
    margin-bottom: 24px;
  }
  .cv-banner-title {
    font-size: 1.15rem;
  }
  .cv-format-sub {
    font-size: 0.75rem;
  }
  .btn-cv-action {
    height: 46px;
    font-size: 0.82rem;
  }
  .philosophy-full-card,
  .sharp-card-box {
    padding: 18px 14px;
    margin-bottom: 24px;
  }
  .story-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-white-pure);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--color-border-sharp);
  }
  .philosophy-card-head {
    margin: 0 0 16px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--color-border-sharp);
  }
  .philosophy-main-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-white-pure);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
  }
  .pillar-header {
    margin: 0 0 16px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--color-border-sharp);
  }
  .pillar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-white-pure);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
  }
  .process-step-cell {
    padding: 16px 14px;
  }
  .step-cell-idx {
    font-size: 0.75rem;
  }
  .step-cell-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }
  .step-cell-list {
    gap: 6px;
  }
  .step-cell-list li {
    font-size: 0.75rem;
    gap: 6px;
  }
  .pillar-card {
    padding: 18px 14px;
  }
  .pillar-title {
    font-size: 1.15rem;
  }
  .skill-group-title {
    font-size: 0.78rem;
  }
  .skill-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  .tool-badge-item {
    font-size: 0.68rem;
    padding: 6px 7px;
    gap: 6px;
    white-space: nowrap;
  }
  .tool-icon-box {
    width: 16px;
    height: 16px;
  }
  .tool-icon-box svg {
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
  }
  .education-sub {
    font-size: 0.7rem;
    letter-spacing: 0.2px;
  }
  .education-box .credential-link-sharp {
    font-size: 0.74rem;
    padding: 11px 14px;
    white-space: nowrap;
  }
  .cert-card {
    padding: 18px 14px;
  }
  .cert-title {
    font-size: 1.05rem;
  }
  .cert-meta {
    font-size: 0.72rem;
  }
  .contact-left-col,
  .contact-right-col {
    padding: 22px 14px;
  }
  .contact-hero-statement {
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
  }
  .contact-lead-p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  .sharp-form-title {
    font-size: 1.15rem;
  }
  .direct-action-card {
    padding: 14px;
  }
  .direct-card-label {
    font-size: 0.7rem;
  }
  .direct-card-value {
    font-size: 0.9rem;
  }
  .social-links-sharp-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .social-sharp-btn {
    height: 48px;
    font-size: 0.76rem;
    padding: 0 10px;
    gap: 8px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 0;
  }
  .cs-header-pane {
    padding: 20px 14px;
  }
  .cs-chapter {
    padding: 24px 14px;
  }
  .cs-video-section {
    padding: 16px 14px;
  }
  .cs-footer-actions {
    padding: 16px 14px;
  }
  .cs-mobile-nav {
    top: calc(48px + env(safe-area-inset-top, 0px));
    padding: 6px 12px;
  }
  .cs-mobile-pill {
    padding: 6px 11px;
    font-size: 0.72rem;
  }
  .modal-top-bar,
  .cs-lightbox-top-bar {
    height: calc(48px + env(safe-area-inset-top, 0px));
    min-height: 48px;
    padding: 0 14px;
    padding-top: env(safe-area-inset-top, 0px);
    gap: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }
  .modal-top-bar {
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border-sharp);
  }
  .cs-lightbox-top-bar {
    justify-content: flex-end;
    border-bottom: 1px solid transparent;
  }
  .modal-title-sharp {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    line-height: 1;
  }
  .modal-close-sharp,
  .cs-lightbox-close-btn {
    height: 36px;
    padding: 0 14px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 1px;
    gap: 7px;
    border: 1px solid var(--color-red);
    background-color: var(--color-black);
    color: var(--color-white-pure);
    position: static;
    margin: 0;
    margin-left: auto;
  }
  .cs-lightbox-overlay {
    padding-top: max(68px, calc(env(safe-area-inset-top, 0px) + 54px));
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
    padding-left: 10px;
    padding-right: 10px;
  }
  .cs-lightbox-overlay img {
    max-width: 96vw;
    max-height: calc(100vh - 98px);
    max-height: calc(100dvh - 98px);
    transition: opacity 0.2s ease-in-out;
  }
  .cs-header-pane {
    padding: 20px 14px;
  }
  .cs-arabic-title,
  .cs-title-en {
    font-size: 1.65rem;
  }
  .cs-arabic-tagline,
  .cs-tagline-en {
    font-size: 0.98rem;
  }
  .cs-lead-text {
    font-size: 0.88rem;
    line-height: 1.65;
  }
  .cs-chapter {
    padding: 22px 14px;
  }
  .cs-chap-title-ar,
  .cs-chap-title-en {
    font-size: 1.22rem;
  }
  .cs-chap-p {
    font-size: 0.88rem;
    line-height: 1.65;
  }
  .cs-video-section {
    padding: 16px 12px;
  }
  .cs-video-card {
    height: 240px;
  }
  .cs-spec-row {
    padding: 9px 12px;
  }
  .cs-spec-label {
    font-size: 0.78rem;
  }
  .cs-spec-val {
    font-size: 0.82rem;
  }
}


/* ==========================================================================
   ARCHITECTURAL DRAFTING & CONSTRUCTION SYSTEM
   Authentic architectural construction triggered on load & section switches.
   Sequence: Structural dividing lines & frames draw FIRST, inner content cascades SECOND.
   Boxes and buttons are completely stationary (zero translation).
   Strict site palette: #070000, #111111, #1f1f1f, #B80000, #FFFFFF.
   ========================================================================== */

/* Keyframe: Horizontal Structural Dividing Line Drawing (Left to Right) */
@keyframes archLineDrawH {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0.2;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* Keyframe: Architectural Box Frame & Vertical Divider Drawing (Top to Bottom, Stationary) */
@keyframes archBoxFrame {
  0% {
    clip-path: inset(0 0 100% 0);
    opacity: 0.15;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* Keyframe: Image Vertical Wipe (Downwards from top inside drawn frame) */
@keyframes archPhotoWipeDown {
  0% {
    clip-path: inset(0 0 100% 0);
    opacity: 0.1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* Keyframe: Inner Content Cascading (Typography, buttons, numbers, paragraphs) */
@keyframes archCascadeIn {
  0% {
    opacity: 0;
    transform: translateY(-14px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   1. HOME VIEW ARCHITECTURAL CONSTRUCTION
   -------------------------------------------------------------------------- */
/* Structural Grid Lines & Boxes: Draw FIRST */
#section-home.active .hero-editorial-container {
  animation: archBoxFrame 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

#section-home.active .hero-left-editorial {
  animation: archBoxFrame 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

#section-home.active .hero-right-visual {
  animation: archBoxFrame 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

#section-home.active .sharp-stats-bar {
  animation: archBoxFrame 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

#section-home.active .sharp-stat-cell {
  animation: archBoxFrame 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-home.active .sharp-stat-cell:nth-child(1) { animation-delay: 0.40s; }
#section-home.active .sharp-stat-cell:nth-child(2) { animation-delay: 0.50s; }
#section-home.active .sharp-stat-cell:nth-child(3) { animation-delay: 0.60s; }
#section-home.active .sharp-stat-cell:nth-child(4) { animation-delay: 0.70s; }
#section-home.active .sharp-stat-cell:nth-child(5) { animation-delay: 0.80s; }

/* Inner Content: Cascades SECOND after lines and frames are drawn */
#section-home.active .hero-meta-top {
  animation: archCascadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

#section-home.active .hero-name-interactive {
  animation: archCascadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

#section-home.active .hero-main-statement {
  animation: archCascadeIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
}

#section-home.active .hero-cta-row {
  animation: archCascadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
}

#section-home.active .hero-portrait-img {
  animation: archPhotoWipeDown 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.70s both;
}

#section-home.active .sharp-stat-num {
  animation: archCascadeIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-home.active .sharp-stat-cell:nth-child(1) .sharp-stat-num { animation-delay: 0.70s; }
#section-home.active .sharp-stat-cell:nth-child(2) .sharp-stat-num { animation-delay: 0.80s; }
#section-home.active .sharp-stat-cell:nth-child(3) .sharp-stat-num { animation-delay: 0.90s; }
#section-home.active .sharp-stat-cell:nth-child(4) .sharp-stat-num { animation-delay: 1.00s; }
#section-home.active .sharp-stat-cell:nth-child(5) .sharp-stat-num { animation-delay: 1.10s; }

#section-home.active .sharp-stat-label,
#section-home.active .sharp-stat-sub {
  animation: archCascadeIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-home.active .sharp-stat-cell:nth-child(1) .sharp-stat-label { animation-delay: 0.75s; }
#section-home.active .sharp-stat-cell:nth-child(2) .sharp-stat-label { animation-delay: 0.85s; }
#section-home.active .sharp-stat-cell:nth-child(3) .sharp-stat-label { animation-delay: 0.95s; }
#section-home.active .sharp-stat-cell:nth-child(4) .sharp-stat-label { animation-delay: 1.05s; }
#section-home.active .sharp-stat-cell:nth-child(5) .sharp-stat-label { animation-delay: 1.15s; }

/* --------------------------------------------------------------------------
   2. PORTFOLIO VIEW ARCHITECTURAL CONSTRUCTION
   -------------------------------------------------------------------------- */
/* Structural Lines & Card Frames: Draw FIRST */
#section-portfolio.active .section-head-sharp {
  animation: archLineDrawH 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

#section-portfolio.active .section-main-heading {
  animation: archCascadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

#section-portfolio.active .project-box {
  animation: archBoxFrame 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-portfolio.active .project-box:nth-child(1) { animation-delay: 0.15s; }
#section-portfolio.active .project-box:nth-child(2) { animation-delay: 0.35s; }
#section-portfolio.active .project-box:nth-child(3) { animation-delay: 0.55s; }
#section-portfolio.active .project-box:nth-child(4) { animation-delay: 0.75s; }

/* Inner Content: Cascades SECOND after card frame is drawn */
#section-portfolio.active .project-cover-img {
  animation: archPhotoWipeDown 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-portfolio.active .project-box:nth-child(1) .project-cover-img { animation-delay: 0.65s; }
#section-portfolio.active .project-box:nth-child(2) .project-cover-img { animation-delay: 0.85s; }
#section-portfolio.active .project-box:nth-child(3) .project-cover-img { animation-delay: 1.05s; }
#section-portfolio.active .project-box:nth-child(4) .project-cover-img { animation-delay: 1.25s; }

#section-portfolio.active .project-box-body {
  animation: archCascadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-portfolio.active .project-box:nth-child(1) .project-box-body { animation-delay: 0.75s; }
#section-portfolio.active .project-box:nth-child(2) .project-box-body { animation-delay: 0.95s; }
#section-portfolio.active .project-box:nth-child(3) .project-box-body { animation-delay: 1.15s; }
#section-portfolio.active .project-box:nth-child(4) .project-box-body { animation-delay: 1.35s; }

/* --------------------------------------------------------------------------
   3. IDENTITY VIEW ARCHITECTURAL CONSTRUCTION
   -------------------------------------------------------------------------- */
/* Structural Lines & Card Frames: Draw FIRST */
#section-identity.active .section-head-sharp {
  animation: archLineDrawH 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

#section-identity.active .section-main-heading {
  animation: archCascadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

#section-identity.active .cv-banner-card {
  animation: archBoxFrame 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.20s both;
}

#section-identity.active .sharp-card-box {
  animation: archBoxFrame 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-identity.active .identity-left-col .sharp-card-box { animation-delay: 0.25s; }
#section-identity.active .identity-right-col .sharp-card-box { animation-delay: 0.35s; }

/* Inner Content: Cascades SECOND after boxes are drawn */
#section-identity.active .story-heading {
  animation: archCascadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.50s both;
}

#section-identity.active .story-body p {
  animation: archCascadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-identity.active .story-body p:nth-child(1) { animation-delay: 0.58s; }
#section-identity.active .story-body p:nth-child(2) { animation-delay: 0.68s; }
#section-identity.active .story-body p:nth-child(3) { animation-delay: 0.78s; }
#section-identity.active .story-body p:nth-child(4) { animation-delay: 0.88s; }
#section-identity.active .story-body p:nth-child(5) { animation-delay: 0.98s; }
#section-identity.active .story-body p:nth-child(6) { animation-delay: 1.08s; }
#section-identity.active .story-body p:nth-child(7) { animation-delay: 1.18s; }
#section-identity.active .story-body p:nth-child(8) { animation-delay: 1.28s; }
#section-identity.active .story-body p:nth-child(9) { animation-delay: 1.36s; }
#section-identity.active .story-body p:nth-child(10) { animation-delay: 1.44s; }

#section-identity.active .timeline-item {
  animation: archCascadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-identity.active .timeline-item:nth-child(1) { animation-delay: 0.60s; }
#section-identity.active .timeline-item:nth-child(2) { animation-delay: 0.72s; }
#section-identity.active .timeline-item:nth-child(3) { animation-delay: 0.84s; }
#section-identity.active .timeline-item:nth-child(4) { animation-delay: 0.96s; }
#section-identity.active .timeline-item:nth-child(5) { animation-delay: 1.08s; }
#section-identity.active .timeline-item:nth-child(6) { animation-delay: 1.20s; }
#section-identity.active .timeline-item:nth-child(7) { animation-delay: 1.32s; }
#section-identity.active .timeline-item:nth-child(8) { animation-delay: 1.44s; }

#section-identity.active .philosophy-full-card {
  animation: archBoxFrame 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.50s both;
}

#section-identity.active .process-step-cell {
  animation: archCascadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-identity.active .process-step-cell:nth-child(1) { animation-delay: 0.68s; }
#section-identity.active .process-step-cell:nth-child(2) { animation-delay: 0.78s; }
#section-identity.active .process-step-cell:nth-child(3) { animation-delay: 0.88s; }
#section-identity.active .process-step-cell:nth-child(4) { animation-delay: 0.98s; }
#section-identity.active .process-step-cell:nth-child(5) { animation-delay: 1.08s; }
#section-identity.active .process-step-cell:nth-child(6) { animation-delay: 1.18s; }

#section-identity.active .pillar-card {
  animation: archBoxFrame 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-identity.active .pillar-card:nth-child(1) { animation-delay: 0.65s; }
#section-identity.active .pillar-card:nth-child(2) { animation-delay: 0.80s; }
#section-identity.active .pillar-card:nth-child(3) { animation-delay: 0.95s; }

#section-identity.active .credential-box {
  animation: archBoxFrame 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --------------------------------------------------------------------------
   4. CONTACT VIEW ARCHITECTURAL CONSTRUCTION
   -------------------------------------------------------------------------- */
/* Structural Lines & Layout Frames: Draw FIRST */
#section-contact.active .section-head-sharp {
  animation: archLineDrawH 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

#section-contact.active .section-main-heading {
  animation: archCascadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

#section-contact.active .contact-editorial-layout {
  animation: archBoxFrame 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

#section-contact.active .contact-left-col {
  animation: archBoxFrame 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

#section-contact.active .contact-right-col {
  animation: archBoxFrame 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

#section-contact.active .direct-action-card {
  animation: archBoxFrame 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-contact.active .direct-action-card:nth-child(1) { animation-delay: 0.35s; }
#section-contact.active .direct-action-card:nth-child(2) { animation-delay: 0.48s; }

/* Inner Content: Cascades SECOND after layout & frames are drawn */
#section-contact.active .contact-hero-statement {
  animation: archCascadeIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

#section-contact.active .contact-lead-p {
  animation: archCascadeIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.68s both;
}

#section-contact.active .social-sharp-btn {
  animation: archCascadeIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-contact.active .social-sharp-btn:nth-child(1) { animation-delay: 0.70s; }
#section-contact.active .social-sharp-btn:nth-child(2) { animation-delay: 0.80s; }
#section-contact.active .social-sharp-btn:nth-child(3) { animation-delay: 0.90s; }
#section-contact.active .social-sharp-btn:nth-child(4) { animation-delay: 1.00s; }
#section-contact.active .social-sharp-btn:nth-child(5) { animation-delay: 1.10s; }
#section-contact.active .social-sharp-btn:nth-child(6) { animation-delay: 1.20s; }

#section-contact.active .sharp-form-group {
  animation: archCascadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#section-contact.active .sharp-form-group:nth-child(1) { animation-delay: 0.60s; }
#section-contact.active .sharp-form-group:nth-child(2) { animation-delay: 0.75s; }
#section-contact.active .sharp-form-group:nth-child(3) { animation-delay: 0.90s; }
#section-contact.active .sharp-form-group:nth-child(4) { animation-delay: 1.05s; }
#section-contact.active .sharp-form-group:nth-child(5) { animation-delay: 1.20s; }

#section-contact.active .form-btn-actions {
  animation: archCascadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.30s both;
}
