/* ==========================================================================
   AHMED ALAYEH (أحمد اللايح) - OFFICIAL MULTI-PAGE PORTFOLIO
   Executive Luxury Brand Design System (Pure Modern CSS, Grid & Flexbox)
   Palette: Canvas #F6F6F7 • White #FFFFFF • Dark Obsidian #0D0F11 • Primary #111315
   Typography: Playfair Display • Plus Jakarta Sans • Cairo
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts Import (Playfair Display + Plus Jakarta Sans + Cairo)
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   2. Design Tokens & CSS Variables (Executive Luxury Specifications)
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces & Canvas */
  --bg-canvas: #F6F6F7;
  --bg-card: #FFFFFF;
  --bg-dark: #0D0F11;
  --bg-dark-elevated: #16191D;

  /* Actionables & Buttons */
  --btn-primary: #111315;
  --btn-primary-hover: #26292D;
  --btn-outline-border: #B0B5BB;
  --btn-outline-border-hover: #121417;

  /* Typography */
  --text-primary: #121417;
  --text-muted: #6B7280;
  --text-light-muted: #9CA3AF;
  --text-on-dark: #F3F4F6;
  --text-on-dark-muted: #9CA3AF;

  /* Structural Hairlines & Dividers */
  --border-hairline: #E5E7EB;
  --border-divider: #ECECEC;
  --border-quote-divider: #F0F0F0;
  --border-dark-subtle: rgba(255, 255, 255, 0.08);

  /* Typography Stacks */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family: var(--font-arabic);

  /* Editorial Letter-Spacing Standards */
  --tracking-brand: 2.5px;
  --tracking-eyebrow: 1.8px;
  --tracking-wide: 1px;
  --tracking-tight: -0.5px;

  /* Mapped Tokens for Comprehensive Site Harmony */
  --bg-page: var(--bg-canvas);
  --bg-surface: var(--bg-card);
  --bg-contrast: #FFFFFF;
  --border-subtle: var(--border-hairline);
  --border-dark: #D1D5DB;
  --accent-sand: #F3F4F6;
  --accent-sand-tint: #F9FAFB;
  --color-navy: var(--btn-primary);
  --color-navy-hover: var(--btn-primary-hover);
  --color-body: var(--text-muted);
  --color-muted: var(--text-light-muted);
  --color-eyebrow: var(--text-muted);

  /* Shadows & Elevations */
  --shadow-book: -8px 12px 24px rgba(18, 20, 23, 0.12);
  --shadow-subtle: 0 1px 3px rgba(18, 20, 23, 0.04), 0 1px 2px rgba(18, 20, 23, 0.02);
  --shadow-card-hover: 0 16px 36px -6px rgba(18, 20, 23, 0.08), 0 4px 14px -2px rgba(18, 20, 23, 0.03);
  --shadow-floating: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  --shadow-stacked: 0 16px 36px rgba(18, 20, 23, 0.1);

  --max-width: 1240px;
  --site-max-width: 1240px;
  --header-height: 76px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   3. Global Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  direction: rtl;
  text-align: right;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

::selection {
  background-color: var(--btn-primary);
  color: #FFFFFF;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   4. Typography (Editorial Luxury Standards)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.35rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
}

p {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.85;
}

.serif-number,
.metric-value {
  font-family: var(--font-serif);
}

/* --------------------------------------------------------------------------
   5. Containers & Section Structure
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

.section-padding {
  padding-top: clamp(4rem, 6vw, 6rem);
  padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
}

.bg-surface-contrast {
  background-color: var(--bg-canvas);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.page-intro-header {
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-hairline);
  text-align: center;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
}

.eyebrow,
.eyebrow-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: var(--tracking-eyebrow);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-title,
.page-title {
  margin-bottom: 0.9rem;
}

.section-divider {
  width: 48px;
  height: 2px;
  background-color: var(--btn-primary);
  margin: 0.8rem auto 1.2rem auto;
}

.section-description,
.page-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 840px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   6. Buttons & Links (Executive Specs)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-family);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--btn-primary);
  color: #FFFFFF;
  border-color: var(--btn-primary);
  box-shadow: 0 2px 6px rgba(17, 19, 21, 0.12);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(17, 19, 21, 0.18);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--btn-outline-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--btn-outline-border-hover);
  background-color: rgba(18, 20, 23, 0.03);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-sm,
.btn-connect {
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  border-radius: 3px;
  background-color: var(--btn-primary);
  color: #FFFFFF;
  border: 1px solid var(--btn-primary);
  text-transform: uppercase;
}

.btn-sm:hover,
.btn-connect:hover {
  background-color: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Card Action Link with Smooth Gap & Arrow Translation */
.card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  margin-top: auto;
  transition: gap 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-action-link .action-arrow {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-action-link:hover {
  gap: 9px;
  color: var(--btn-primary-hover);
}

.card-action-link:hover .action-arrow {
  transform: translateX(-3px); /* RTL moves left */
}

/* --------------------------------------------------------------------------
   7. Header & Navigation (Sticky Blur Navbar)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(246, 246, 247, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hairline);
  transition: var(--transition);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(18, 20, 23, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-monogram,
.brand-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  flex-shrink: 0;
}

.brand-monogram {
  background-color: var(--btn-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
}

.brand-avatar-img {
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--border-hairline);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: block;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--btn-outline-border);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 3px;
  cursor: pointer;
}

.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 2px solid var(--btn-primary);
  box-shadow: 0 16px 36px rgba(18, 20, 23, 0.1);
  padding: 1.25rem 1.5rem;
  z-index: 1001;
}

.mobile-nav-panel.active {
  display: block;
  animation: mobileNavSlide 0.22s ease-out;
}

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

.mobile-nav-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border-radius: 3px;
  border-bottom: 1px dashed var(--border-hairline);
  transition: var(--transition);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--text-primary);
  font-weight: 700;
  background-color: var(--bg-canvas);
  padding-right: 1.15rem;
  border-bottom-color: var(--btn-primary);
}

/* --------------------------------------------------------------------------
   8. Hero Section (Asymmetric Grid & Floating Badges)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: clamp(3rem, 5.5vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6.5vw, 6rem);
  position: relative;
  background-color: var(--bg-canvas);
}

/* Asymmetric Grid: 1.15fr Content / 0.85fr Visual */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: 1.35rem;
}

.hero-body-text {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.25rem;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* Right Visual Column: Portrait with Overlay and Floating Badges */
.hero-visual {
  position: relative;
  width: 100%;
}

.hero-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background-color: #E2E4E8;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-subtle);
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 25%;
  transition: transform var(--transition-smooth);
}

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

.hero-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 20, 23, 0) 65%,
    rgba(18, 20, 23, 0.4) 100%
  );
  pointer-events: none;
}

/* Floating Status / Credentials Badges */
.floating-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 4px;
  padding: 10px 16px;
  box-shadow: var(--shadow-floating);
  z-index: 10;
}

.floating-badge-top {
  top: 8%;
  left: -16px;
}

.floating-badge-bottom {
  bottom: 8%;
  right: -16px;
}

.badge-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}

.badge-meta {
  display: flex;
  flex-direction: column;
}

.badge-text-primary {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  line-height: 1.25;
}

.badge-text-secondary {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Full-Width Showcase for Hero Image */
.hero-wide-showcase {
  width: 100%;
  position: relative;
  margin-top: 3.5rem;
}

.hero-wide-frame {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  padding: 10px;
  border-radius: 4px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.hero-wide-frame:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-divider);
}

.hero-wide-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   8b. Horizontal Specialty Ticker Bar
   -------------------------------------------------------------------------- */
.specialty-ticker {
  width: 100%;
  background-color: var(--bg-canvas);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 1.15rem 0;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 3.5rem;
  animation: ticker-scroll-rtl 32s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-muted);
  white-space: nowrap;
}

.ticker-item::after {
  content: '•';
  color: var(--text-light-muted);
  font-size: 0.85rem;
}

@keyframes ticker-scroll-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

/* --------------------------------------------------------------------------
   9. 3-Column Split Cards Grid (1.15fr Text / 0.85fr Image)
   -------------------------------------------------------------------------- */
.cards-container,
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.card-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background-color: var(--bg-card);
  border: 1px solid var(--border-divider);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth),
              border-color var(--transition-smooth);
}

.card-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-hairline);
  box-shadow: var(--shadow-card-hover);
}

.card-text-area {
  display: flex;
  flex-direction: column;
  padding: 1.85rem 1.5rem;
  z-index: 1;
}

.card-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-description {
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-image-area {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 190px;
  overflow: hidden;
  background-color: #EDEDF0;
}

.card-image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.card-box:hover .card-image-area img {
  transform: scale(1.05);
}

/* Frosted Dark Floating Badge on Center / Featured Card */
.card-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(13, 15, 17, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 3px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Legacy Preview Card Harmonized */
.preview-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-divider);
  border-radius: 4px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.preview-card:hover {
  border-color: var(--border-hairline);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.preview-card-index {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light-muted);
  line-height: 1;
  margin-bottom: 1rem;
}

.preview-card:hover .preview-card-index {
  color: var(--btn-primary);
}

.preview-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.preview-card-text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.preview-card-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--btn-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  transition: gap var(--transition);
}

.preview-card-link:hover {
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   10. About Page (about.html)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.about-frame {
  max-width: 350px;
  margin: 0 auto;
}

.about-portrait-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 2px;
}

.editorial-article {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.paragraph-lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.95;
  border-right: 3px solid var(--color-navy);
  padding-right: 1rem;
}

/* --------------------------------------------------------------------------
   11. Works Page (works.html)
   -------------------------------------------------------------------------- */
.works-group {
  margin-bottom: 4rem;
}

.works-group:last-of-type {
  margin-bottom: 2rem;
}

.works-group-header {
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.6rem;
}

.works-group-title {
  color: var(--color-navy);
}

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

.single-book-grid {
  grid-template-columns: 1fr;
  max-width: 600px;
}

.book-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.book-card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.book-cover-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem;
  background-color: #F8F6F2;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  margin-bottom: 1.75rem;
}

/* Standing Book Volume Drop Shadow (Applied ONLY to books with authentic covers) */
.book-volume {
  max-height: 320px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 2px 5px 5px 2px;
  box-shadow: var(--shadow-book);
  transition: transform 0.3s ease;
}

.book-card:hover .book-volume {
  transform: scale(1.02) rotate(-1deg);
}

.book-info {
  display: flex;
  flex-direction: column;
}

.book-category-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-eyebrow);
  margin-bottom: 0.5rem;
}

.book-title {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.book-synopsis {
  font-size: 0.98rem;
  line-height: 1.85;
}

/* Strict Plain Text Cards for works without verified covers */
.text-only-card {
  justify-content: center;
  background-color: #FDFBF8;
  border: 1px solid var(--border-subtle);
  border-right: 4px solid var(--color-navy);
  padding: 2.75rem 2.25rem;
}

.text-only-card .book-title {
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

.text-only-card .book-synopsis {
  font-size: 1.05rem;
  line-height: 1.95;
}

/* Journalism Subsection inside Works */
.journalism-feature-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-right: 4px solid var(--color-navy);
  padding: 2.5rem;
  border-radius: 4px;
  margin-top: 2rem;
}

.journalism-feature-title {
  margin-bottom: 1rem;
  font-size: 1.45rem;
}

.journalism-feature-text {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 0.85rem;
}

.journalism-feature-text:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. Marketing & Projects Page (business.html)
   -------------------------------------------------------------------------- */
.editorial-focus-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-right: 4px solid var(--color-navy);
  padding: 2rem 2.5rem;
  border-radius: 4px;
  margin-bottom: 2.5rem;
}

.editorial-focus-text {
  font-size: 1.12rem;
  line-height: 1.95;
  color: var(--color-navy);
  font-weight: 500;
}

.editorial-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.editorial-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.editorial-card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.editorial-card-index {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--border-dark);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.editorial-card:hover .editorial-card-index {
  color: var(--color-navy);
}

.editorial-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.95rem;
}

.editorial-card-lead {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.editorial-card-lead:last-child {
  margin-bottom: 0;
}

.editorial-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
}

.editorial-list li {
  position: relative;
  padding-right: 1.25rem;
  font-size: 0.94rem;
  color: var(--color-body);
  line-height: 1.7;
}

.editorial-list li::before {
  content: '—';
  position: absolute;
  right: 0;
  color: var(--color-navy);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   13. Press Page (press.html)
   -------------------------------------------------------------------------- */
.press-subsection {
  margin-bottom: 3.5rem;
}

.press-subsection-title {
  margin-bottom: 1.75rem;
  font-size: 1.45rem;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.6rem;
}

.press-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.press-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.press-card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.press-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
}

.press-publisher {
  font-weight: 700;
  color: var(--color-navy);
}

.press-title {
  font-size: 1.18rem;
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.press-excerpt {
  font-size: 0.94rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.press-link-wrap {
  margin-top: auto;
}

.press-action-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid var(--color-navy);
  padding-bottom: 2px;
}

.press-action-link:hover {
  color: #000000;
  border-bottom-width: 2px;
}

/* Press Archive List */
.press-archive-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2.25rem;
  margin-bottom: 3.5rem;
}

.press-archive-intro {
  font-size: 1.05rem;
  margin-bottom: 1.35rem;
}

.press-archive-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.press-archive-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.archive-outlet {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.archive-headline {
  font-size: 0.94rem;
  color: var(--color-body);
}

.archive-link {
  font-size: 0.94rem;
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: underline;
}

.archive-link:hover {
  color: #000000;
}

.press-archive-note {
  font-size: 0.88rem;
  color: var(--color-muted);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 1rem;
}

/* Context Panels */
.press-context-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.press-context-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: 4px;
}

.context-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.context-card-body {
  font-size: 0.98rem;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   14. Contact Page (contact.html) - Dignified Hub (Zero Form)
   -------------------------------------------------------------------------- */
.contact-editorial-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: stretch;
}

.contact-hub-card,
.contact-scope-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
}

.contact-hub-heading {
  font-size: 1.35rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.6rem;
  color: var(--color-navy);
}

.contact-data-block {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.contact-data-label {
  font-size: 0.88rem;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-email-link {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
  direction: ltr;
  text-align: right;
  display: inline-block;
  letter-spacing: 0.02em;
}

.contact-email-link:hover {
  color: var(--color-navy-hover);
  text-decoration: underline;
}

/* Social links grid with SVG iconography */
.social-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.social-editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  padding: 0.75rem 1rem;
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  transition: var(--transition);
}

.social-editorial-link:hover {
  background-color: var(--accent-sand);
  border-color: var(--border-dark);
  transform: translateY(-1px);
}

.contact-social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

/* Editorial Scope List & Quote Box */
.editorial-scope-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.editorial-scope-list li {
  position: relative;
  padding-right: 1.35rem;
  font-size: 0.98rem;
  color: var(--color-body);
  line-height: 1.75;
}

.editorial-scope-list li::before {
  content: '—';
  position: absolute;
  right: 0;
  color: var(--color-navy);
  font-weight: 700;
}

.editorial-quote-box {
  margin-top: auto;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--border-subtle);
}

.quote-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.85;
  margin-bottom: 0.5rem;
}

.quote-author {
  font-size: 0.86rem;
  color: var(--color-muted);
  font-weight: 600;
  display: block;
}

/* --------------------------------------------------------------------------
   14b. Metrics & Executive Quote Strip
   -------------------------------------------------------------------------- */
.metrics-quote-section {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: clamp(3.5rem, 5.5vw, 5rem) 0;
}

.metrics-quote-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.metrics-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.metric-item {
  padding: 0.5rem 1.75rem;
  position: relative;
}

.metric-item:first-child {
  padding-right: 0;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: var(--border-quote-divider);
}

.metric-number {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Editorial Blockquote Block */
.quote-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(1.25rem, 3vw, 2.75rem);
  border-right: 1px solid var(--border-hairline);
}

.editorial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  position: relative;
}

.quote-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-author-name {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.quote-author-role {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   15. Dark Executive Footer (#0D0F11)
   -------------------------------------------------------------------------- */
.site-footer,
.footer {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding-top: clamp(4rem, 6vw, 5.5rem);
  padding-bottom: 3rem;
  border-top: 1px solid var(--border-dark-subtle);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark-subtle);
  width: 100%;
}

.footer-brand-column,
.footer-brand-block {
  display: flex;
  flex-direction: column;
  max-width: 340px;
}

.footer-brand-title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-brand);
  color: #FFFFFF;
  margin-bottom: 0.85rem;
  display: block;
}

.footer-brand-desc {
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.75rem;
}

/* Square Social Icon Boxes (background rgba(255,255,255,0.06)) */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 3px;
  color: var(--text-on-dark);
  font-size: 0.85rem;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              transform var(--transition-fast);
}

.social-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.social-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Footer Navigation Columns */
.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  transition: color var(--transition);
}

.footer-nav-link:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.76rem;
  color: var(--text-light-muted);
  width: 100%;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: var(--text-light-muted);
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--text-on-dark);
}

.copyright-text {
  font-size: 0.82rem;
  color: var(--text-light-muted);
}

/* --------------------------------------------------------------------------
   16. Scroll-To-Top Button
   -------------------------------------------------------------------------- */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 46px;
  height: 46px;
  background-color: var(--color-navy);
  color: #FFFFFF;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background-color: var(--color-navy-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   17. Comprehensive Multi-Device Responsive System
   Supports: Large 4K/QHD Screens, Laptops, Tablets (Landscape & Portrait),
             Phablets, Standard Phones & Compact/Fold Mobiles
   -------------------------------------------------------------------------- */

/* Large Desktop Displays (>= 1400px) */
@media (min-width: 1400px) {
  :root {
    --max-width: 1240px;
  }
}

/* Medium Laptops & Small Desktops (993px - 1180px) */
@media (max-width: 1180px) {
  .nav-desktop {
    gap: 1.15rem;
  }

  .nav-link {
    font-size: 0.88rem;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.72rem;
  }

  .preview-grid {
    gap: 1.25rem;
  }
}

/* Tablets (Portrait & Small Landscape) & iPads (769px - 992px) */
@media (max-width: 992px) {
  :root {
    --header-height: 74px;
  }

  /* Navigation & Header */
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand-avatar-img {
    width: 40px;
    height: 40px;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  /* Grid Layouts for Tablets (Maintains 2 columns for balance) */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
  }

  .hero-btn-group {
    justify-content: center;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .cards-container > .card-box:last-child {
    grid-column: span 2;
  }

  .metrics-quote-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .quote-block {
    padding-right: 0;
    border-right: none;
    border-top: 1px solid var(--border-hairline);
    padding-top: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }

  .footer-brand-column {
    grid-column: span 2;
    max-width: 100%;
  }

  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .editorial-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .press-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .press-archive-list {
    grid-template-columns: 1fr;
  }

  .press-context-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Page Specific Layouts */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-frame {
    max-width: 340px;
    margin: 0 auto;
  }

  .contact-editorial-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero-header-block {
    max-width: 100%;
    margin-bottom: 2.75rem;
  }
}

/* Phablets & Large Mobiles (576px - 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .page-intro-header {
    padding-top: 3.5rem;
    padding-bottom: 2.75rem;
  }

  /* Split Cards Collapse on Mobile */
  .cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cards-container > .card-box:last-child {
    grid-column: span 1;
  }

  .card-box {
    grid-template-columns: 1fr;
  }

  .card-image-area {
    min-height: 200px;
    order: -1;
  }

  .card-text-area {
    padding: 1.5rem 1.25rem;
  }

  /* Metrics Collapse on Mobile */
  .metrics-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .metric-item {
    padding: 0;
  }

  .metric-item::after {
    display: none;
  }

  /* Floating Badges on Small Screen */
  .floating-badge-top {
    top: 6px;
    left: 6px;
  }

  .floating-badge-bottom {
    bottom: 8px;
    right: 8px;
  }

  /* Footer on Mobile */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand-column {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Convert legacy grids to single column on mobile */
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .editorial-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .press-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-body-text {
    font-size: 1.1rem;
    line-height: 1.85;
  }

  .hero-metrics-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .metric-value {
    font-size: 1.35rem;
  }

  .metric-label {
    font-size: 0.78rem;
  }

  .preview-card {
    padding: 1.85rem 1.5rem;
  }

  .editorial-card {
    padding: 1.85rem 1.5rem;
  }

  .press-card {
    padding: 1.85rem 1.5rem;
  }

  .contact-hub-card,
  .contact-scope-card {
    padding: 2.25rem 1.75rem;
  }

  .social-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .footer-nav {
    gap: 1.25rem;
  }
}

/* Standard Smartphones (381px - 575px) */
@media (max-width: 575px) {
  :root {
    --header-height: 70px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-header-block {
    margin-bottom: 2rem;
  }

  .hero-main-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .hero-body-text {
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
  }

  .hero-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-btn-group .btn {
    width: 100%;
    text-align: center;
  }

  /* Metrics Stack on small mobile */
  .hero-metrics-strip {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-top: 1.25rem;
  }

  .metric-box {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-subtle);
    padding-bottom: 0.5rem;
  }

  .metric-value {
    font-size: 1.35rem;
  }

  .metric-label {
    font-size: 0.88rem;
    margin-top: 0;
  }

  .hero-wide-frame {
    padding: 8px;
  }

  /* Header adjustments */
  .brand-title {
    font-size: 0.92rem;
  }

  .brand-avatar-img {
    width: 38px;
    height: 38px;
  }

  .header-controls {
    gap: 0.5rem;
  }

  .header-controls .btn,
  .header-controls .btn-sm,
  .header-controls .btn-connect {
    display: none; /* Accessible inside mobile navigation drawer */
  }

  .lang-switcher {
    padding: 3px 5px;
    font-size: 0.72rem;
  }

  .menu-toggle {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
  }

  /* Section headers */
  .page-title {
    font-size: 1.85rem;
  }

  .page-lead {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .section-title {
    font-size: 1.65rem;
  }

  /* Cards & Items */
  .contact-hub-card,
  .contact-scope-card {
    padding: 1.5rem 1.25rem;
  }

  .contact-email-link {
    font-size: 1.15rem;
    word-break: break-all;
  }

  .social-links-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .social-editorial-link {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .book-volume {
    max-height: 270px;
  }

  .book-cover-container {
    padding: 1.25rem 0.75rem;
  }

  .text-only-card {
    padding: 1.75rem 1.35rem;
  }

  .stacked-frame-wrapper,
  .about-frame {
    max-width: 280px;
  }

  .stacked-frame-offset {
    top: 12px;
    right: 12px;
  }

  /* Footer */
  .site-footer {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .footer-inner {
    gap: 1.75rem;
  }

  .footer-brand-title {
    font-size: 1.25rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.85rem;
  }

  .scroll-top-btn {
    bottom: 1.25rem;
    left: 1.25rem;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

/* Compact & Small Phones (<= 380px - iPhone SE, Galaxy Fold cover) */
@media (max-width: 380px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .brand-title {
    font-size: 0.84rem;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-avatar-img {
    width: 34px;
    height: 34px;
  }

  .btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
  }

  .menu-toggle {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
  }

  .hero-main-title {
    font-size: 1.95rem;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .contact-email-link {
    font-size: 1rem;
  }

  .contact-hub-card,
  .contact-scope-card,
  .preview-card,
  .press-card,
  .editorial-card {
    padding: 1.25rem 1rem;
  }

  .stacked-frame-wrapper,
  .about-frame {
    max-width: 240px;
  }

  .book-volume {
    max-height: 230px;
  }
}

/* ==========================================================================
   BILINGUAL & MULTI-LANGUAGE SYSTEM STYLES (EN / AR)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

html[lang="en"] body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
html[lang="en"] .serif-font,
html[lang="en"] .hero-main-title,
html[lang="en"] .page-title,
html[lang="en"] .section-title,
html[lang="en"] .quote-text,
html[lang="en"] .card-title,
html[lang="en"] .book-title,
html[lang="en"] .metric-value {
  font-family: 'Playfair Display', Georgia, serif;
}

html[lang="ar"] body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}
html[lang="ar"] .serif-font,
html[lang="ar"] .hero-main-title,
html[lang="ar"] .page-title,
html[lang="ar"] .section-title,
html[lang="ar"] .quote-text,
html[lang="ar"] .card-title,
html[lang="ar"] .book-title {
  font-family: 'Amiri', 'Traditional Arabic', serif;
}

/* Sleek Bilingual Toggle in Header */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-right: 0.75rem;
  vertical-align: middle;
}

[dir="ltr"] .lang-switcher {
  margin-right: 0;
  margin-left: 0.75rem;
}

.lang-switcher:hover {
  border-color: var(--btn-outline-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.lang-opt {
  padding: 3px 9px;
  border-radius: 14px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  user-select: none;
}

.lang-opt.active {
  background: var(--btn-primary);
  color: #FFFFFF;
}

.lang-divider {
  color: var(--border-hairline);
  font-size: 0.7rem;
  margin: 0 2px;
}

/* ==========================================================================
   Comprehensive Bi-Directional (LTR / RTL) Layout & Alignment Rules
   ========================================================================== */

/* 1. LTR Overrides (English Mode) */
html[dir="ltr"],
[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

[dir="ltr"] .site-header .header-inner {
  flex-direction: row;
}

[dir="ltr"] .brand-wrapper {
  flex-direction: row;
  text-align: left;
}

[dir="ltr"] .brand-meta {
  text-align: left;
}

[dir="ltr"] .nav-desktop {
  margin-right: 0;
  margin-left: auto;
  flex-direction: row;
}

[dir="ltr"] .nav-link {
  text-align: left;
}

[dir="ltr"] .nav-link::after {
  right: auto;
  left: 0;
}

[dir="ltr"] .header-controls {
  flex-direction: row;
}

[dir="ltr"] .lang-switcher {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Page Headers & General Typography */
[dir="ltr"] .page-intro-header {
  text-align: center;
}

[dir="ltr"] .page-lead,
[dir="ltr"] .section-desc,
[dir="ltr"] .about-lead,
[dir="ltr"] .section-description {
  text-align: center;
}

/* Marketing & Ventures Page (business.html) */
[dir="ltr"] .editorial-focus-panel {
  border-right: 1px solid var(--border-hairline);
  border-left: 4px solid var(--btn-primary);
  text-align: left;
}

[dir="ltr"] .editorial-focus-text {
  text-align: left;
}

[dir="ltr"] .editorial-card {
  text-align: left;
}

[dir="ltr"] .editorial-card-index {
  text-align: left;
}

[dir="ltr"] .editorial-card-title,
[dir="ltr"] .editorial-card-lead {
  text-align: left;
}

/* Executive Biography Page (about.html) */
[dir="ltr"] .editorial-article {
  text-align: left;
}

[dir="ltr"] .editorial-article p {
  text-align: left;
}

[dir="ltr"] .paragraph-lead {
  border-right: none;
  border-left: 3px solid var(--btn-primary);
  padding-right: 0;
  padding-left: 1rem;
  text-align: left;
}

[dir="ltr"] .cred-card {
  text-align: left;
}

[dir="ltr"] .cred-card-title,
[dir="ltr"] .cred-card-desc {
  text-align: left;
}

[dir="ltr"] .about-quote-box,
[dir="ltr"] .editorial-quote-box {
  border-right: none;
  border-left: 3px solid var(--btn-primary);
  padding-right: 0;
  padding-left: 1.5rem;
  text-align: left;
}

[dir="ltr"] .quote-text,
[dir="ltr"] .quote-author {
  text-align: left;
}

/* Works & Publications Page (works.html) */
[dir="ltr"] .works-group-header {
  text-align: left;
}

[dir="ltr"] .works-group-title {
  text-align: left;
}

[dir="ltr"] .book-card {
  text-align: left;
}

[dir="ltr"] .book-info {
  text-align: left;
}

[dir="ltr"] .book-category-tag,
[dir="ltr"] .book-title,
[dir="ltr"] .book-synopsis {
  text-align: left;
}

[dir="ltr"] .text-only-card {
  border-right: 1px solid var(--border-subtle);
  border-left: 4px solid var(--btn-primary);
  text-align: left;
}

[dir="ltr"] .journalism-feature-box {
  border-right: 1px solid var(--border-subtle);
  border-left: 4px solid var(--btn-primary);
  text-align: left;
}

/* Press & Media Page (press.html) */
[dir="ltr"] .press-card {
  text-align: left;
}

[dir="ltr"] .press-meta-top {
  flex-direction: row;
  justify-content: space-between;
  text-align: left;
}

[dir="ltr"] .press-publisher,
[dir="ltr"] .press-title,
[dir="ltr"] .press-excerpt,
[dir="ltr"] .press-link-wrap {
  text-align: left;
}

[dir="ltr"] .press-action-link {
  justify-content: flex-start;
}

/* Contact Page (contact.html) */
[dir="ltr"] .contact-hub-card,
[dir="ltr"] .contact-scope-card {
  text-align: left;
}

[dir="ltr"] .contact-hub-heading {
  text-align: left;
}

[dir="ltr"] .contact-data-block {
  text-align: left;
}

[dir="ltr"] .social-editorial-link {
  justify-content: flex-start;
}

[dir="ltr"] .editorial-scope-list {
  padding-right: 0;
  padding-left: 1.25rem;
  text-align: left;
}

[dir="ltr"] .editorial-scope-list li {
  text-align: left;
}

/* Action Links & Arrows */
[dir="ltr"] .card-action-link {
  flex-direction: row;
}

[dir="ltr"] .card-action-link .action-arrow {
  transform: rotate(180deg);
}

[dir="ltr"] .card-action-link:hover .action-arrow {
  transform: rotate(180deg) translateX(-4px);
}

/* Footer LTR */
[dir="ltr"] .footer-top {
  text-align: left;
}

[dir="ltr"] .footer-brand-column,
[dir="ltr"] .footer-brand-block {
  text-align: left;
}

[dir="ltr"] .footer-brand-desc {
  text-align: left;
}

[dir="ltr"] .footer-heading {
  text-align: left;
}

[dir="ltr"] .footer-nav-list {
  text-align: left;
}

[dir="ltr"] .footer-nav-link {
  text-align: left;
}

[dir="ltr"] .footer-bottom {
  flex-direction: row;
  justify-content: space-between;
  text-align: left;
}

[dir="ltr"] .copyright-text {
  text-align: left;
}

[dir="ltr"] .footer-legal-links {
  flex-direction: row;
}

/* Mobile Drawer LTR */
[dir="ltr"] .mobile-nav-panel {
  left: 0;
  right: auto;
  text-align: left;
}

[dir="ltr"] .mobile-nav-items {
  text-align: left;
}

[dir="ltr"] .mobile-nav-item {
  text-align: left;
}

/* 2. RTL Enforcements (Arabic Mode) */
html[dir="rtl"],
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .brand-meta {
  text-align: right;
}

[dir="rtl"] .editorial-focus-panel {
  border-left: 1px solid var(--border-hairline);
  border-right: 4px solid var(--btn-primary);
  text-align: right;
}

[dir="rtl"] .editorial-focus-text {
  text-align: right;
}

[dir="rtl"] .editorial-card,
[dir="rtl"] .editorial-card-index,
[dir="rtl"] .editorial-card-title,
[dir="rtl"] .editorial-card-lead {
  text-align: right;
}

[dir="rtl"] .editorial-article,
[dir="rtl"] .editorial-article p,
[dir="rtl"] .cred-card,
[dir="rtl"] .cred-card-title,
[dir="rtl"] .cred-card-desc {
  text-align: right;
}

[dir="rtl"] .paragraph-lead,
[dir="rtl"] .about-quote-box,
[dir="rtl"] .editorial-quote-box {
  border-left: none;
  border-right: 3px solid var(--btn-primary);
  padding-left: 0;
  padding-right: 1.5rem;
  text-align: right;
}

[dir="rtl"] .works-group-header,
[dir="rtl"] .works-group-title,
[dir="rtl"] .book-card,
[dir="rtl"] .book-info,
[dir="rtl"] .book-category-tag,
[dir="rtl"] .book-title,
[dir="rtl"] .book-synopsis {
  text-align: right;
}

[dir="rtl"] .text-only-card,
[dir="rtl"] .journalism-feature-box {
  border-left: 1px solid var(--border-subtle);
  border-right: 4px solid var(--btn-primary);
  text-align: right;
}

[dir="rtl"] .press-card,
[dir="rtl"] .press-publisher,
[dir="rtl"] .press-title,
[dir="rtl"] .press-excerpt,
[dir="rtl"] .press-link-wrap {
  text-align: right;
}

[dir="rtl"] .contact-hub-card,
[dir="rtl"] .contact-scope-card,
[dir="rtl"] .contact-hub-heading,
[dir="rtl"] .contact-data-block,
[dir="rtl"] .quote-text,
[dir="rtl"] .quote-author {
  text-align: right;
}

[dir="rtl"] .editorial-scope-list {
  padding-left: 0;
  padding-right: 1.25rem;
  text-align: right;
}

[dir="rtl"] .editorial-scope-list li {
  text-align: right;
}

[dir="rtl"] .footer-top,
[dir="rtl"] .footer-brand-column,
[dir="rtl"] .footer-brand-desc,
[dir="rtl"] .footer-heading,
[dir="rtl"] .footer-nav-list,
[dir="rtl"] .footer-nav-link,
[dir="rtl"] .copyright-text {
  text-align: right;
}


