/* ==========================================================================
   CURVE AGENCY — STYLESHEET
   Aesthetic: Ultra-High-End Creative Agency (SIFR-inspired luxury, massive clamp
   typography, generous whitespace, razor-thin lines, motion-led accents, full RTL).
   ========================================================================== */

:root {
  /* Colors — CURVE BRAND GUIDELINE: black #000000 + white + black/white opacity tints only.
     No chromatic accent is approved anywhere in the visual identity. */
  --bg-dark: #EDEDED;            /* approved light ground */
  --bg-surface: rgba(0, 0, 0, 0.02);
  --bg-card: rgba(0, 0, 0, 0.72);
  --bg-card-hover: #E5E5E5;
  --border-dim: rgba(0, 0, 0, 0.12);
  --border-light: rgba(0, 0, 0, 0.22);
  --border-hover: rgba(0, 0, 0, 0.55);

  --paper: #EDEDED;            /* aligned with the mockup ground */            /* approved light ground */
  --ink: #000000;              /* approved ink */
  --text-pure: #000000;
  --text-primary: #000000;
  --text-muted: #727272;    /* guideline 55% tint */
  --text-dim: #727272;

  /* the "accent" role is filled by pure black / pure white contrast — not a hue */
  --accent: #000000;
  --accent-glow: rgba(0, 0, 0, 0.16);
  --accent-hover: rgba(0, 0, 0, 0.86);

  /* Typography — guideline: Latin = Poppins (7 weights) · Arabic = RB family */
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic-display: 'RB', 'Cairo', 'Poppins', sans-serif;
  --font-arabic-sans: 'RB', 'Cairo', 'Poppins', sans-serif;

  /* Spacing */
  --container-max: 1400px;
  --container-pad: clamp(1.25rem, 4vw, 3.5rem);
  --section-pad-y: clamp(5rem, 11vw, 10.5rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* RTL Typography & Direction Overrides */
html[dir="rtl"] {
  font-family: var(--font-arabic-sans);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .section-headline,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .title-outline,
html[dir="rtl"] .title-solid,
html[dir="rtl"] .contact-giant-title {
  font-family: var(--font-arabic-display);
  letter-spacing: normal;
}

html[dir="rtl"] .btn-arrow {
  display: inline-block;
  transform: scaleX(-1);
}

/* Ambient Subtle Background Light */
.ambient-glow {
  position: fixed;
  top: -15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 60vh;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.02) 40%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  position: relative;
  z-index: 1;
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  position: relative;
  z-index: 1;
}

/* Section Header Structure */
.section-header {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-idx {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-idx::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background-color: var(--border-dim);
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-pure);
  max-width: 1050px;
}

.section-desc {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 750px;
  margin-top: 1.25rem;
  line-height: 1.7;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), padding var(--transition-normal), border-color var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.85rem 0;
  border-bottom-color: var(--border-dim);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-img {
  height: clamp(28px, 3.2vw, 34px);
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

.brand-location {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  padding-left: 0.85rem;
  border-left: 1px solid var(--border-dim);
  white-space: nowrap;
}

html[dir="rtl"] .brand-location {
  padding-left: 0;
  padding-right: 0.85rem;
  border-left: none;
  border-right: 1px solid var(--border-dim);
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(1rem, 2vw, 2rem);
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-pure);          /* header nav reads black */
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-pure);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: var(--border-light);
  color: var(--text-pure);
}

.lang-opt {
  transition: color var(--transition-fast);
}

.lang-opt.active {
  color: var(--text-pure);
  font-weight: 700;
}

.lang-divider {
  opacity: 0.3;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.btn-primary {
  background-color: var(--text-pure);
  color: var(--bg-dark);
  border: 1px solid var(--text-pure);
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-pure);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: var(--text-pure);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-dim);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  color: var(--text-pure);
  background-color: rgba(0, 0, 0, 0.03);
}

.btn-block {
  width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 110;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-pure);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.mobile-toggle.active .hamburger-bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(8, 8, 10, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  padding: 5rem var(--container-pad) 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--accent);
}

.mobile-menu-footer {
  border-top: 1px solid var(--border-dim);
  padding-top: 1.5rem;
}

.mobile-contact-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(7rem, 12vh, 9.5rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
  position: relative;
  overflow: hidden;
}

.hero-bg-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.38;
  filter: contrast(1.1) brightness(0.9);
  transform: scale(1.02);
  transition: transform 8s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.80) 70%, var(--bg-dark) 100%),
              radial-gradient(circle at 10% 50%, rgba(0, 0, 0, 0.90) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-tag-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-dim);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.tag-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9.8vw, 8.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.title-outline {
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.72);
  color: transparent;
  transition: -webkit-text-stroke var(--transition-fast);
}

.title-solid {
  color: var(--text-pure);
}

.hero-bottom-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 3rem;
  border-top: 1px solid var(--border-dim);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-lead-wrap {
  max-width: 680px;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  display: flex;
  justify-content: flex-end;
}

.scroll-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.scroll-link:hover {
  color: var(--text-pure);
}

.scroll-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 50px;
  height: 1px;
  background-color: var(--text-dim);
  transition: width var(--transition-fast), background-color var(--transition-fast);
}

.scroll-link:hover .scroll-line {
  width: 75px;
  background-color: var(--accent);
}

/* ==========================================================================
   SECTION 01: ABOUT US
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.about-card-main {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-text-content {
  padding: clamp(2rem, 4vw, 3.5rem);
}

.card-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.2rem;
}

.about-body-text {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--text-muted);      /* body copy under a heading = the 55% grey, like ABOUT CURVE */
  line-height: 1.75;
  font-weight: 400;
}

.about-visual-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: #000;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
  opacity: 0.85;
}

.about-card-main:hover .about-img {
  transform: scale(1.04);
}

.about-duo-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.card-dark {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.card-dark:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.card-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-pure);
}

.pill-dot.pill-accent {
  background-color: var(--accent);
}

.pill-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card-statement {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-pure);
  margin-bottom: 1rem;
}

.card-caption {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 02: SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 2.8vw, 2.75rem);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.service-card:hover {
  /* emphasis by inversion + lift — never by darkening the ground */
  background-color: #FFFFFF;
  border-color: #000000;
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

/* all six capability cards are identical — no card is singled out */

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.service-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.service-card:hover .service-num {
  color: var(--accent);
}

.service-tag-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-pure);
  margin-bottom: 0.4rem;
}

.service-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-items {
  list-style: none;
  border-top: 1px solid var(--border-dim);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-items li {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast);
}

.service-items li::before {
  content: '—';
  color: var(--accent);
  font-weight: 700;
}

.service-card:hover .service-items li {
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 03: PROCESS
   ========================================================================== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-step {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 2.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

.process-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.step-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-pure);
}

.process-step:hover .step-badge {
  background: var(--accent);
  border-color: var(--accent);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.35rem;
}

.step-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   SECTION 04: WHY CURVE
   ========================================================================== */
.why-layout-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: flex-start;
}

.why-left-content {
  position: sticky;
  top: 6rem;
}

.why-lead-text {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.why-road-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dim);
  background-color: #000;
}

.why-road-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
}

.why-cards-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all var(--transition-normal);
}

.why-card:hover {
  background-color: var(--bg-card);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

html[dir="rtl"] .why-card:hover {
  transform: translateX(-4px);
}

.why-card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-pure);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.why-card:hover .why-card-icon {
  background: rgba(0, 0, 0, 0.16);
  border-color: var(--accent);
  color: var(--accent);
}

.why-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.25rem;
}

.why-card-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.why-card-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 05: STATS & IMPACT
   ========================================================================== */
.stats-section {
  position: relative;
  overflow: hidden;
  background-color: #030304;
  padding-top: clamp(6rem, 12vw, 11rem);
  padding-bottom: clamp(6rem, 12vw, 11rem);
}

.stats-bg-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.stats-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.35;
  filter: contrast(1.2);
}

.stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.95) 85%);
}

.stats-inner {
  position: relative;
  z-index: 2;
}

.stats-header {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stats-header .section-idx {
  justify-content: center;
}

.stats-header .section-idx::after {
  display: none;
}

.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.stat-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3vw, 2.75rem) 1.5rem;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.stat-number-wrap {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-pure);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.stat-symbol {
  color: var(--accent);
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.stat-sublabel {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.stats-source-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-full);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.source-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.source-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 06: SELECTED WORK
   ========================================================================== */
.work-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.work-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-pure);
  border-color: var(--border-light);
}

.filter-btn.active {
  background: var(--text-pure);
  color: var(--bg-dark);
  border-color: var(--text-pure);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 3.5vw, 3rem);
}

.work-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.work-card.hidden {
  display: none;
}

.work-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-dim);
  margin-bottom: 1.5rem;
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-out);
}

.work-card:hover .work-img {
  transform: scale(1.035);
}

.work-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: var(--text-pure);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

html[dir="rtl"] .work-badge {
  right: auto;
  left: 1rem;
}

.work-info {
  display: flex;
  flex-direction: column;
}

.work-client {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-pure);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.work-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 07: CLIENTS & PARTNERS
   ========================================================================== */
.partners-showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background-color: var(--border-dim);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.partner-cell {
  background-color: var(--bg-dark);
  padding: 2.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
  min-height: 110px;
}

.partner-cell:hover {
  background-color: var(--bg-surface);
}

.partner-cell img {
  max-width: 130px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.65;
  transition: all var(--transition-fast);
}

.partner-cell:hover img {
  opacity: 1;
  transform: scale(1.08);
}

.partners-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.banner-text {
  max-width: 780px;
}

.banner-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 1rem;
}

.banner-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   SECTION 08: CONTACT
   ========================================================================== */
.contact-section {
  border-top: 1px solid var(--border-dim);
  background-color: var(--bg-dark);
}

.contact-top-row {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.contact-giant-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: flex-start;
}

.contact-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 3rem;
  border-top: 1px solid var(--border-dim);
  padding-top: 2rem;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.detail-val {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: var(--text-pure);
  line-height: 1.35;
}

.direct-link {
  text-decoration: none;
  transition: color var(--transition-fast);
}

.direct-link:hover {
  color: var(--accent);
}

.social-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--text-pure);
  color: var(--bg-dark);
  border-color: var(--text-pure);
  transform: translateY(-2px);
}

/* Interactive Form */
.form-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: clamp(2rem, 4vw, 3.5rem);
}

.form-header {
  margin-bottom: 2rem;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.5rem;
}

.form-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  color: var(--text-pure);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-hover);
  background-color: rgba(0, 0, 0, 0.04);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background-color: var(--bg-surface);
  color: var(--text-pure);
}

.form-err-msg {
  font-size: 0.75rem;
  color: var(--accent);
  display: none;
  margin-top: 0.2rem;
}

.form-group.has-error .form-err-msg {
  display: block;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--accent);
}

.form-footer {
  margin-top: 0.5rem;
}

.form-status-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-status-box.success {
  display: block;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.30);
  color: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-dim);
  padding: 3rem 0;
  background-color: #050507;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer-motto {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-meta-col {
  text-align: center;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-credit {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.footer-back-col {
  display: flex;
  justify-content: flex-end;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.back-to-top:hover {
  color: var(--text-pure);
}

/* ==========================================================================
   INTERSECTION REVEALS & ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .tag-pulse {
    animation: none;
  }
  .hero-bg-img {
    transition: none;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile Viewports)
   ========================================================================== */
@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-showcase-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .why-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .why-left-content {
    position: static;
  }

  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-bottom-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .partners-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-meta-col {
    text-align: left;
  }

  html[dir="rtl"] .footer-meta-col {
    text-align: right;
  }
}

/* Dedicated Polish for Small Mobile (390px iPhone & similar) */
@media (max-width: 440px) {
  :root {
    --container-pad: 1.25rem;
    --section-pad-y: 4.5rem;
  }

  .hero-title {
    font-size: 2.85rem;
  }

  .section-headline {
    font-size: 1.85rem;
  }

  .stats-counter-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1.75rem 1rem;
  }

  .partners-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-cell {
    padding: 1.5rem 1rem;
    min-height: 95px;
  }

  .btn {
    width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .form-container {
    padding: 1.5rem 1.2rem;
  }
}


/* ==========================================================================
   BRAND GUIDELINE COMPLIANCE — CURVE BRAND GUIDELINE (27 pages)
   · COLOR  : #000000 + white + black/white opacity tints only — no hue anywhere
   · TYPE   : Poppins (Latin, 7 weights) · RB family (Arabic) with Cairo fallback
   · PATTERN: rosette / double-hook / spandrel / 4-petal on a 45deg square lattice,
              arcs of one radius, solid fills, constant-weight channels
   · FLAT   : solid surfaces, hairline rules, no glow, no sheen gradient
   ========================================================================== */

/* --- PATTERN & ELEMENTS (the identity's signature device) ------------------ */
.brand-pattern {
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/curve-pattern.svg");
  background-size: 150px 150px;
  background-repeat: repeat;
  opacity: 0.055;
  transform: rotate(45deg);
  transform-origin: center center;
}

.brand-band {
  height: clamp(52px, 7vw, 84px);
  background-color: var(--bg-dark);
  background-image: url("assets/curve-pattern.svg");
  background-size: 68px 68px;
  background-repeat: repeat;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  opacity: 0.85;
}

.brand-band.invert {
  background-color: var(--paper);
  background-image: url("assets/curve-pattern-dark.svg");
  border-color: rgba(0, 0, 0, 0.12);
}

/* --- LOGO USAGE ----------------------------------------------------------- */
/* min web size 120 x 29.873 px · aspect preserved · no frame · clear space >= 1X */
.brand-logo { padding: 0.25rem 0; }
.logo-img { min-width: 120px; }
.footer-logo { width: 130px; height: auto; }

/* --- FEATURED STATE: removed — all six capability cards share one treatment -- */


/* --- BRAND IMAGERY: achromatic, motion-led (guideline p.16) ---------------- */
/* brand photography stays achromatic; the portfolio shows the client's own work
   in full colour at all times — no hover dependency. */
.hero-bg-img { filter: grayscale(1) contrast(1.1) brightness(0.9); }
.about-img { filter: grayscale(1) contrast(1.05); }
.stats-bg-img { filter: grayscale(1) contrast(1.2); }

.work-img {
  filter: none;
  transition: transform 0.8s var(--ease-out);
}

/* --- TYPOGRAPHY: RB (Arabic) — the approved Arabic family ------------------
   The guideline's RB files were never handed over; these declarations are ready
   and take effect the moment the woff2 files are dropped in assets/fonts/.
   Until then the stack falls back to Cairo, so nothing breaks. */
@font-face {
  font-family: 'RB';
  src: url('assets/fonts/RB-Light.woff2') format('woff2'),
       url('assets/fonts/RB-Light.woff') format('woff'),
       url('assets/fonts/RB-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RB';
  src: url('assets/fonts/RB-Regular.woff2') format('woff2'),
       url('assets/fonts/RB-Regular.woff') format('woff'),
       url('assets/fonts/RB-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RB';
  src: url('assets/fonts/RB-Bold.woff2') format('woff2'),
       url('assets/fonts/RB-Bold.woff') format('woff'),
       url('assets/fonts/RB-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   SIFR ALIGNMENT — 21 Sep 2026 (reference: sifrprofile.com + CURVE guideline PDF)
   Borrowed from the reference: 4-item nav · label-only section markers · much larger
   display type with tighter leading · plain-text filters · image-first, borderless,
   staggered work grid · a fully inverted contact section · ~190px type margins.
   NOT borrowed: the reference's chromatic accent — the CURVE guideline allows only
   black, white and opacity tints, so every emphasis is black/white contrast.
   ========================================================================== */

:root {
  --container-pad: clamp(1.5rem, 9.2vw, 11.875rem);   /* reference margin: 190px @1920 */
  --section-pad-y: clamp(6rem, 13vw, 13rem);
}

/* --- type scale ---------------------------------------------------------- */
.hero-title {
  font-size: clamp(3.4rem, 11.4vw, 13rem);   /* reference hero: 205-225px @1920 */
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.section-headline {
  font-size: clamp(2.4rem, 5.7vw, 7rem);     /* reference section type: 96-104px @1920 */
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 1200px;
}

.section-idx {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.section-desc { max-width: 780px; }

/* --- filters: plain text, no containers ---------------------------------- */
.filter-btn {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.15rem 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.filter-btn:hover { color: var(--text-pure); border: 0; }
.filter-btn.active {
  background: transparent;
  border: 0;
  color: var(--accent);
}
.work-filters { gap: clamp(1rem, 2.4vw, 2.25rem); }

/* --- work grid: image first, no frames, staggered rhythm ----------------- */
.work-visual {
  border: 0;
  border-radius: 0;
  background-color: transparent;
  aspect-ratio: 16 / 9;                       /* reference uses a cinematic ratio */
  margin-bottom: 1.75rem;
}
.work-card {
  background: transparent;
  border: 0;
  border-radius: 0;
}
.work-info { display: flex; flex-direction: column; gap: 0.45rem; }

/* the category label now sits under the image, as plain type */
.work-badge {
  position: static;
  inset: auto;
  display: inline-block;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.work-client { color: var(--text-pure); }
.work-title { margin-top: 0.15rem; }

@media (min-width: 900px) {
  .work-grid > .work-card:nth-child(even) { margin-top: clamp(2.5rem, 5vw, 5rem); }
  .work-grid { gap: clamp(2rem, 3vw, 3.25rem) clamp(1.5rem, 2vw, 2rem); }
}

/* --- contact section: full inversion to the light ground (reference device,
       executed in black/white instead of the reference's colour) ---------- */
.contact-section[data-ground="light"] {
  position: relative;
  background-color: var(--paper);
  color: #000000;
  overflow: hidden;
}
.contact-section[data-ground="light"] > .container { position: relative; z-index: 1; }

.contact-section[data-ground="light"] .section-idx,
.contact-section[data-ground="light"] .contact-lead,
.contact-section[data-ground="light"] .detail-label,
.contact-section[data-ground="light"] .social-label,
.contact-section[data-ground="light"] .form-desc { color: rgba(0, 0, 0, 0.62); }
.contact-section[data-ground="light"] .section-idx::after { background-color: rgba(0, 0, 0, 0.18); }
.contact-section[data-ground="light"] .detail-val,
.contact-section[data-ground="light"] .detail-val.direct-link { color: #000000; }
.contact-section[data-ground="light"] .title-outline {
  -webkit-text-stroke-color: rgba(0, 0, 0, 0.45);
  color: transparent;
}
.contact-section[data-ground="light"] .title-solid { color: #000000; }
.contact-section[data-ground="light"] .contact-details-list,
.contact-section[data-ground="light"] .contact-detail-item { border-color: rgba(0, 0, 0, 0.12); }
.contact-section[data-ground="light"] .social-btn {
  border-color: rgba(0, 0, 0, 0.22);
  color: rgba(0, 0, 0, 0.8);
  background: transparent;
}
.contact-section[data-ground="light"] .social-btn:hover {
  border-color: #000000;
  color: #000000;
}
.contact-section[data-ground="light"] .form-container {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.contact-section[data-ground="light"] .form-title { color: #000000; }
.contact-section[data-ground="light"] .form-group label { color: rgba(0, 0, 0, 0.6); }
.contact-section[data-ground="light"] .form-group input,
.contact-section[data-ground="light"] .form-group select,
.contact-section[data-ground="light"] .form-group textarea {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #000000;
}
.contact-section[data-ground="light"] .form-group input::placeholder,
.contact-section[data-ground="light"] .form-group textarea::placeholder { color: rgba(0, 0, 0, 0.35); }
.contact-section[data-ground="light"] .form-group input:focus,
.contact-section[data-ground="light"] .form-group select:focus,
.contact-section[data-ground="light"] .form-group textarea:focus {
  border-color: #000000;
  outline: 2px solid rgba(0, 0, 0, 0.18);
  outline-offset: 1px;
}
.contact-section[data-ground="light"] .form-group select { color: #000000; }
.contact-section[data-ground="light"] .form-group select option { background: #ffffff; color: #000000; }
.contact-section[data-ground="light"] .form-status-box {
  border-color: rgba(0, 0, 0, 0.25) !important;
  background: rgba(0, 0, 0, 0.05) !important;
  color: #000000 !important;
}
.contact-section[data-ground="light"] .form-err-msg { color: rgba(0, 0, 0, 0.75); }
.contact-section[data-ground="light"] .btn-primary {
  background-color: #FFFFFF;
  border-color: #000000;
  color: #000000;
}
.contact-section[data-ground="light"] .btn-primary:hover {
  background-color: #FFFFFF;
  border-color: #000000;
  color: #000000;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

/* --- links inherit the brand ink, never the user-agent link colour ------- */
a, a:visited { color: inherit; }
.brand-logo, .brand-logo:visited { color: var(--text-pure); }
.site-footer a, .site-footer a:visited { color: inherit; }


/* --- measured against the live reference (SIFR_DESIGN_NOTES + MEASURED_SPEC) ---
   reference viewport 1905px: content margin 193px (10.13vw) · hero cap 163px =>
   font 223-233px (11.7-12.2vw) · hero leading 190.5px (0.82-0.85) · stagger 18px */
:root { --container-pad: clamp(1.5rem, 10.1vw, 12.6rem); }
.hero-title { font-size: clamp(3.6rem, 11.9vw, 13.6rem); line-height: 0.85; }
.work-filters {
  width: 100%;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: clamp(0.75rem, 1.2vw, 1.25rem);
}
@media (min-width: 900px) {
  .work-grid > .work-card:nth-child(even) { margin-top: clamp(0.75rem, 1vw, 1.25rem); }  /* reference: 18px */
}


/* ==========================================================================
   LIGHT THEME
   Ground #EDEDED, black headings, #727272 secondary text — taken from the website
   mockup on page 23 of CURVE BRAND GUIDELINE (1).pdf (measured: #EDEDED = 86% of
   the mockup pixels, #727272 = its grey type, which is the guideline's 55% tint).
   Everything stays grayscale: no chromatic value is introduced anywhere.
   ========================================================================== */
.site-header { background-color: transparent; }
.site-header.scrolled {
  background-color: rgba(237, 237, 237, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(237, 237, 237, 0.45) 0%, rgba(237, 237, 237, 0.86) 68%, #EDEDED 100%);
}
.hero-bg-img { filter: grayscale(1) contrast(1.06) brightness(1.04); }
.site-footer { background-color: #E5E5E5; }
.mobile-menu { background-color: rgba(237, 237, 237, 0.98); }
/* the brand pattern band is gone — the page runs plain into the footer */
.brand-band { display: none; }
.partner-cell { background-color: #EDEDED; }
.partner-cell:hover { background-color: #E5E5E5; }
/* white logo/partner art on a dark ground must read as black on the light ground */
.logo-img, .footer-logo, .brand-logo img { filter: invert(1) grayscale(1); }
.partner-cell img { filter: invert(1) grayscale(1) opacity(0.72); transition: opacity var(--transition-fast); }
.partner-cell:hover img { opacity: 1; }
.logo-img.logo-light { opacity: 1; }
/* the contact section is no longer a special case — the whole site is light */
.contact-section[data-ground="light"] { background-color: #EDEDED; }
/* the contact ground is plain: its pattern veil and pinwheel were removed */
::-webkit-scrollbar-track { background: #E5E5E5; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.28); }
::selection { background: #000000; color: #EDEDED; }


/* --- legibility pass (measured): the 55% tint (#727272) is 4.11:1 on #EDEDED, which
       passes for large type but not for small labels — those use the 65% tint instead --- */
.section-idx, .detail-label, .social-label,
.service-num, .step-num, .stat-label, .card-caption, .mobile-contact-line,
.form-group label, .footer-link, .footer-note, .scroll-hint { color: #595959; }
/* header nav + the type directly under each work image read black; the work
   description (`.work-desc`) stays grey. */
.nav-link, .work-badge, .work-client { color: #000000; }
.form-container .form-group input::placeholder, .form-container .form-group textarea::placeholder,
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(0, 0, 0, 0.45); }
.title-outline { -webkit-text-stroke-color: rgba(0, 0, 0, 0.55); }


/* ==========================================================================
   OFFICIAL SVG ASSETS — 22 Sep 2026
   logo/logo-0٧.svg  -> the lockup (ink ratio 4.025)  -> header + footer, recoloured #000000
   logo/logo-0٨.svg  -> the mark  (ink ratio 0.972)   -> favicon
   PATTERN & ELEMENTS-01..06 -> the identity's geometric elements (arch, hook, pinwheel,
   rotor, corner) + the pattern sampler; all used as black artwork on the light ground.
   ========================================================================== */
/* the vector logo already carries the approved ink — no inversion needed */
.logo-vector, .logo-img.logo-vector, .footer-logo.logo-vector { filter: none; }
.logo-img.logo-vector { width: 132px; height: auto; }
.footer-logo.logo-vector { width: 130px; height: auto; }
@media (max-width: 640px) {
  .logo-img.logo-vector, .footer-logo.logo-vector { width: 124px; }   /* still >= the 120px minimum */
}

/* the official pattern sampler replaces the hand-made tile in the brand band */
.brand-band {
  position: relative; overflow: hidden;
  background-color: #E5E5E5;
  background-image: none;                    /* the official pattern rides on ::after */
}
.brand-band::after {
  content: ""; position: absolute; inset: -6% 0;
  background-image: url("assets/svg/pattern-tile.svg");   /* composed from the official elements */
  background-size: clamp(96px, 9vw, 128px) auto;
  background-repeat: repeat; background-position: center;
  opacity: 0.5; pointer-events: none;
}
/* hero: the rotor element, cropped large and ghosted — the guideline's own element */
.hero-section { position: relative; overflow: hidden; }
.hero-section::after {
  content: ""; position: absolute; right: -7vw; bottom: -12vw;
  width: 40vw; height: 40vw; z-index: 1; pointer-events: none;
  background: url("assets/svg/element-rotor.svg") center/contain no-repeat;
  opacity: 0.07;
}
/* contact: decoration removed — the ground is plain (see the light-theme block) */
/* the arch element marks the profile/vision statement */
.vision-marker, .card-statement::before {
  background-image: url("assets/svg/element-arch.svg");
  background-size: contain; background-repeat: no-repeat; background-position: center;
}


/* ==========================================================================
   HEADER, read out of the nav-strip exports (paner/panner-0١-0٢.svg and
   paner/panner-0٢.svg, 1920x112) — measured from the rendered strip:
     bar height 112/1920 = 5.83% of viewport width   -> 84px at 1440
     logo/left cluster starts at x=66  = 3.44% inset
     CTA button ends at x=1862         = 3.0% inset
     gap between nav items = 78px      = 4.06% of width
   So the header is near full-bleed while the page content keeps its 10.1vw margin,
   exactly like the ABOUT CURVE composition in the same asset set (text inset ~13%).
   ========================================================================== */
.site-header { padding: 1.38rem 0; }
.site-header .container.header-inner {
  padding-left: 3.4vw;
  padding-right: 3vw;
}
.site-header .nav-links { gap: clamp(1.6rem, 4vw, 4.2rem); }
@media (max-width: 900px) {
  .site-header .container.header-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
}


/* ==========================================================================
   SECTION TITLES — measured from the "ABOUT CURVE" composition
   (paner/panner-0١-0٣.svg, rendered 1600x900):
     "ABOUT CURVE"                              cap 54px = 3.38% of width · rgb(0,0,0)
     "WE SHAPE BRANDS THAT REFUSE TO STAND STILL." cap 38px = 2.38% of width · #727272
     -> title : tagline = 1.42 : 1, title BLACK and the line under it GREY
   So the section label IS the heading (big, black) and the statement under it is the
   grey line — the reverse of the old eyebrow + giant-black-headline hierarchy.
   ========================================================================== */
.section-idx {
  font-size: clamp(2.1rem, 4.8vw, 5.2rem) !important;
  font-weight: 700 !important;
  color: #000000 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.02 !important;
  text-transform: uppercase;
  margin-bottom: 1.1rem !important;
}
.section-headline,
.section-headline.light {
  font-size: clamp(1.3rem, 3.35vw, 3.05rem) !important;
  font-weight: 600 !important;
  color: #727272 !important;
  line-height: 1.16 !important;
  letter-spacing: -0.004em !important;
  max-width: 62ch;
}
.contact-giant-title { color: #727272 !important; }
.contact-giant-title .title-solid { color: #727272 !important; }
.contact-giant-title .title-outline { -webkit-text-stroke-color: rgba(114, 114, 114, 0.75) !important; }
.contact-section .section-idx { color: #000000 !important; }
@media (max-width: 700px) {
  .section-idx { font-size: clamp(1.75rem, 8vw, 2.6rem) !important; }
  .section-headline, .section-headline.light { font-size: clamp(1.05rem, 5vw, 1.5rem) !important; }
}


/* ==========================================================================
   HERO ARTWORK — the "IN MOTION" banner (paner/panner-0١.svg) replaces the typed
   headline. The artwork ships with a flat #efefef ground and embedded rasters, so it is
   rasterised at 2880x1620 and luminance-keyed to transparency (95.4% transparent) to sit
   over the hero photograph; the h1 keeps the text for screen readers.
   ========================================================================== */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hero-title-art {
  display: block !important;
  line-height: 0 !important;
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}
.hero-art {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  filter: none;
}
@media (max-width: 700px) {
  .hero-section {
    min-height: auto;                       /* the 100vh floor was the empty space he flagged */
    padding-top: 5rem;
    padding-bottom: 2rem;
    justify-content: flex-start;
  }
  /* let the artwork use the full width instead of the 10.1vw text margin */
  .hero-art { max-width: none; width: calc(100% + 2.5rem); margin-left: -1.25rem; }
  .hero-title-art { margin-bottom: 1.25rem; }
  .hero-bottom-grid { padding-top: 1rem; }
  .hero-lead { font-size: 1rem; line-height: 1.6; }
}

/* ==========================================================================
   DARK BAND — MARKET MOMENTUM (#stats): the one inverted section.
   Its ground is #030304 behind a dark photo overlay, so every line inside it
   reads WHITE instead of the page's black/grey ink. Scoped to .stats-section so the
   light sections keep their black headings.
   ========================================================================== */
.stats-section .section-idx,
.stats-section .section-idx.light { color: #FFFFFF !important; }
.stats-section .section-headline,
.stats-section .section-headline.light { color: #FFFFFF !important; }
.stats-section .section-desc,
.stats-section .section-desc.light { color: rgba(255, 255, 255, 0.75) !important; }

.stats-section .stat-number-wrap,
.stats-section .stat-number-wrap .stat-num { color: #FFFFFF; }
.stats-section .stat-symbol { color: #FFFFFF; }
.stats-section .stat-label { color: #FFFFFF; }
.stats-section .stat-sublabel { color: rgba(255, 255, 255, 0.70); }

.stats-section .stat-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.20);
}
.stats-section .stat-card:hover { border-color: rgba(255, 255, 255, 0.50); }
.stats-section .stats-source-bar {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.20);
}
.stats-section .source-tag { color: #FFFFFF; background: rgba(255, 255, 255, 0.16); }
.stats-section .source-text { color: rgba(255, 255, 255, 0.75); }

/* ==========================================================================
   BLACK NAV BAR — the top strip is solid black with white content.
   The header wordmark art is the black export, so it is inverted to white here;
   every control inside the bar switches to white for the dark ground.
   ========================================================================== */
.site-header,
.site-header.scrolled {
  background-color: #000000;
  border-bottom-color: rgba(255, 255, 255, 0.16);
}
.site-header .logo-img.logo-vector,
.site-header .brand-logo img { filter: invert(1) grayscale(1); }   /* white wordmark on the black bar */
.site-header .brand-location { color: rgba(255, 255, 255, 0.72); }
.site-header .nav-link { color: #FFFFFF; }
.site-header .nav-link:hover,
.site-header .nav-link.active { color: #FFFFFF; }
.site-header .nav-link::after { background-color: #FFFFFF; }
.site-header .lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
}
.site-header .lang-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #FFFFFF;
  color: #FFFFFF;
}
.site-header .lang-opt.active { color: #FFFFFF; }
.site-header .nav-cta { border-color: rgba(255, 255, 255, 0.5); color: #FFFFFF; }
.site-header .nav-cta:hover { background-color: #FFFFFF; border-color: #FFFFFF; color: #000000; }
.site-header .hamburger-bar { background-color: #FFFFFF; }

/* ==========================================================================
   HOVER LANGUAGE: movement only — never a colour or fill change.
   Hovering lifts the element and adds a soft shadow; every surface keeps its
   resting background, border and text colour, so nothing turns white and nothing
   darkens under the pointer.
   ========================================================================== */
.service-card:hover {
  background-color: var(--bg-surface);
  border-color: var(--border-dim);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
.why-card:hover {
  background-color: var(--bg-surface);
  border-color: var(--border-dim);
  transform: translateX(4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
html[dir="rtl"] .why-card:hover { transform: translateX(-4px); }
.why-card:hover .why-card-icon {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border-dim);
  color: var(--text-pure);
}
.btn-ghost:hover {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--text-pure);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}
.btn-outline:hover {
  background-color: transparent;
  border-color: var(--border-dim);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}
.partner-cell:hover { background-color: #EDEDED; }   /* the logo wall keeps its ground */

/* ==========================================================================
   BUTTONS: no black slabs. The primary action is a white button with a black
   hairline and black type, so the page keeps a light, even surface; the ghost
   variant keeps its transparent ground. Hierarchy comes from the border weight
   (2px black vs 1px grey), not from a block of ink.
   ========================================================================== */
.btn-primary {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.btn-primary:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}
