/* ============================================
   SOLENCIA ENERGY — DESIGN SYSTEM
   Editorial-Tech · Desert Futurism
   ============================================ */

:root {
  /* Core Palette — Deep navy with solar warmth */
  --ink: #0A1628;
  --ink-deep: #050B15;
  --ink-soft: #15253D;
  --navy: #1E3A5F;
  --steel: #3D5A80;
  
  /* Solar Accents */
  --solar: #F4A017;
  --solar-bright: #FFB733;
  --solar-deep: #D17F00;
  --ember: #E85D3C;
  
  /* Neutrals — Desert palette */
  --sand: #F5EFE6;
  --sand-warm: #EDE3D0;
  --bone: #FAF7F2;
  --paper: #FFFFFF;
  --stone: #8B8578;
  --charcoal: #2C2C2C;
  
  /* Gradients */
  --grad-solar: linear-gradient(135deg, #F4A017 0%, #E85D3C 100%);
  --grad-deep: linear-gradient(180deg, #0A1628 0%, #1E3A5F 100%);
  --grad-dawn: linear-gradient(180deg, rgba(10,22,40,0.95) 0%, rgba(30,58,95,0.85) 60%, rgba(232,93,60,0.3) 100%);
  
  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter Tight', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  
  /* Spacing */
  --container: 1320px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  
  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
}

.serif {
  font-family: var(--font-display);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--solar);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--solar);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.h-mega {
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 300;
}

.h-xl {
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 400;
}

.h-lg {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 400;
}

.italic-accent {
  font-style: italic;
  font-weight: 300;
  color: var(--solar);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.4s var(--ease-out), padding 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  /* Default: subtle light background so nav never floats over arbitrary content */
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

/* Hero-mode overrides the default — used only when sitting on top of a hero */
.nav.hero-mode {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  padding: 0.875rem 0;
}

.nav-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav.hero-mode .nav-brand { color: var(--bone); }
.nav.scrolled .nav-brand { color: var(--ink); }

.nav-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  position: relative;
}

.nav-brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-solar);
  border-radius: 50%;
  opacity: 0.95;
}

.nav-brand-mark::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--ink);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  position: relative;
  transition: color 0.3s;
}

.nav.hero-mode .nav-menu a { color: rgba(250, 247, 242, 0.9); }
.nav.scrolled .nav-menu a { color: var(--ink); }

.nav-menu a:hover { color: var(--solar); }

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--solar);
  transition: width 0.3s var(--ease-out);
}

.nav-menu a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--solar);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--solar);
  transform: translateY(-1px);
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(10, 22, 40, 0.15);
  border-radius: 999px;
}

.nav.hero-mode .nav-lang { color: rgba(250, 247, 242, 0.8); border-color: rgba(250, 247, 242, 0.25); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}

.nav.hero-mode .nav-toggle span { background: var(--bone); }

@media (max-width: 960px) {
  .nav-menu, .nav-lang { display: none; }
  .nav-toggle { display: flex; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
}

.mobile-menu a:hover { color: var(--solar); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--solar-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(244, 160, 23, 0.4);
}

.btn-ghost {
  background: rgba(250, 247, 242, 0.08);
  color: var(--bone);
  border: 1px solid rgba(250, 247, 242, 0.25);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(250, 247, 242, 0.15);
  border-color: rgba(250, 247, 242, 0.5);
}

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

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

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
  transition: gap 0.3s;
}

.btn-arrow:hover { gap: 0.75rem; color: var(--solar); }

/* ============================================
   HERO — Editorial magazine style
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem 0 4rem;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--bone);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 21, 0.7) 0%, rgba(5, 11, 21, 0.3) 40%, rgba(5, 11, 21, 0.85) 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(244, 160, 23, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 160, 23, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  min-height: calc(100vh - 12rem);
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-self: center;
}

@media (min-width: 1024px) {
  .hero-main {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: end;
  }
}

.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--solar);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(244, 160, 23, 0.4);
  border-radius: 999px;
  background: rgba(244, 160, 23, 0.05);
  margin-bottom: 2rem;
  width: max-content;
  backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--solar);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--bone);
}

.hero-title .italic-accent {
  font-style: italic;
  font-weight: 300;
  color: var(--solar);
  font-variation-settings: "SOFT" 100;
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.75);
  max-width: 42ch;
  margin-top: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-meta {
  padding-left: 2rem;
  border-left: 1px solid rgba(250, 247, 242, 0.15);
}

@media (max-width: 1023px) {
  .hero-meta {
    padding-left: 0;
    border-left: 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 247, 242, 0.15);
  }
}

.hero-meta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.5);
  margin-bottom: 1rem;
}

.hero-meta-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(250, 247, 242, 0.9);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--solar), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   STATS BAR
   ============================================ */

.stats {
  background: var(--ink);
  color: var(--bone);
  padding: 3rem 0;
  border-top: 1px solid rgba(250, 247, 242, 0.08);
  border-bottom: 1px solid rgba(250, 247, 242, 0.08);
  position: relative;
}

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

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  position: relative;
  padding: 0 1.5rem;
}

.stat:not(:last-child) {
  border-right: 1px solid rgba(250, 247, 242, 0.08);
}

@media (max-width: 767px) {
  .stat:nth-child(2) { border-right: 0; }
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--bone);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}

.stat-num .unit {
  color: var(--solar);
  font-style: italic;
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.5);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .sec-head {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: end;
  }
}

.sec-head-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.sec-head-sub {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--steel);
  max-width: 50ch;
}

.sec-head-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--solar);
  margin-bottom: 1.25rem;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  background: var(--bone);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(10, 22, 40, 0.1);
  border: 1px solid rgba(10, 22, 40, 0.1);
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service {
  background: var(--bone);
  padding: 2.5rem 1.75rem 2.25rem;
  position: relative;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  overflow: hidden;
}

.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-deep);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}

.service:hover::before { transform: translateY(0); }
.service:hover * { color: var(--bone) !important; }
.service:hover .service-num { color: var(--solar) !important; }
.service:hover .service-icon { background: var(--solar); border-color: var(--solar); }
.service:hover .service-icon i { color: var(--ink); }

.service > * { position: relative; z-index: 1; transition: color 0.4s; }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--solar);
  margin-bottom: 1.25rem;
}

.service-icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.75rem;
  transition: all 0.4s;
}

.service-icon i {
  font-size: 1.375rem;
  color: var(--ink);
  transition: color 0.4s;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.875rem;
  color: var(--ink);
}

.service-desc {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--steel);
}

/* ============================================
   BENEFITS — Dark, dramatic
   ============================================ */

.benefits {
  background: var(--ink-deep);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.benefits::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(244, 160, 23, 0.15), transparent 50%);
  pointer-events: none;
}

.benefits-head .sec-head-title { color: var(--bone); }
.benefits-head .sec-head-sub { color: rgba(250, 247, 242, 0.6); }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

.benefit {
  position: relative;
  padding: 2.25rem 1.75rem 1.75rem;
  border: 1px solid rgba(250, 247, 242, 0.12);
  border-radius: 4px;
  transition: all 0.4s var(--ease-out);
  background: rgba(250, 247, 242, 0.02);
}

.benefit:hover {
  background: rgba(244, 160, 23, 0.08);
  border-color: var(--solar);
  transform: translateY(-4px);
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 300;
  line-height: 1;
  color: var(--solar);
  margin-bottom: 1.25rem;
  font-style: italic;
  letter-spacing: -0.02em;
}

.benefit-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.625rem;
  color: var(--bone);
  letter-spacing: -0.01em;
}

.benefit-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(250, 247, 242, 0.65);
}

.benefits-cta {
  text-align: center;
  margin-top: 4rem;
}

/* ============================================
   PROCESS
   ============================================ */

.process {
  background: var(--sand);
  position: relative;
}

.process-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .process-track { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .process-track::before {
    content: '';
    position: absolute;
    top: 31px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--solar) 15%, var(--solar) 85%, transparent);
    z-index: 0;
    opacity: 0.5;
  }
}

/* Mobile — vertical dashed connector */
@media (max-width: 767px) {
  .process-track {
    padding-left: 1.5rem;
    position: relative;
  }
  .process-track::before {
    content: '';
    position: absolute;
    left: calc(1.5rem + 31px);
    top: 32px;
    bottom: 32px;
    width: 1px;
    background: repeating-linear-gradient(to bottom, var(--solar) 0, var(--solar) 4px, transparent 4px, transparent 10px);
    opacity: 0.4;
    z-index: 0;
  }
  .process-step {
    padding: 0;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1.25rem;
    align-items: start;
  }
  .process-step-circle { margin-bottom: 0; }
  .process-step-title { margin-top: 1rem; }
}

.process-step {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.process-step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sand);
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  position: relative;
  transition: all 0.4s var(--ease-out);
}

.process-step:hover .process-step-circle {
  background: var(--solar);
  border-color: var(--solar);
  transform: scale(1.05);
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.process-step-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--steel);
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  background: var(--bone);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
}

.about-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.about-img-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--bone);
  padding: 1.125rem 1.5rem 1.25rem;
  max-width: 280px;
  box-shadow: 0 -2px 0 var(--solar);
}

.about-img-tag-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  font-style: italic;
  letter-spacing: -0.02em;
}

.about-img-tag-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 0.5rem;
}

.about-content .eyebrow { margin-bottom: 1.5rem; }

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.about-desc {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--steel);
  margin-bottom: 2rem;
}

.about-points {
  list-style: none;
  margin-bottom: 2.5rem;
}

.about-points li {
  padding: 1rem 0;
  border-top: 1px solid rgba(10, 22, 40, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.about-points li:last-child { border-bottom: 1px solid rgba(10, 22, 40, 0.1); }

.about-points li::before {
  content: counter(point, decimal-leading-zero);
  counter-increment: point;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--solar);
  min-width: 2rem;
}

.about-points { counter-reset: point; }

/* ============================================
   PROJECTS
   ============================================ */

.projects {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.projects-head .sec-head-title { color: var(--bone); }
.projects-head .sec-head-sub { color: rgba(250, 247, 242, 0.6); }

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

@media (min-width: 768px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  /* 6 cells in a 6-col grid: featured spans 4, then 2; second row has 3 cards at 2 cols each */
  .projects-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: auto;
  }
  .projects-grid > .project { grid-column: span 2; }
  .projects-grid > .project.featured { grid-column: span 4; grid-row: span 1; }
}

.project {
  position: relative;
  overflow: hidden;
  background: var(--ink-soft);
  aspect-ratio: 4/5;
  cursor: pointer;
}

.project.featured {
  aspect-ratio: 4/5;
}

@media (min-width: 1100px) {
  /* Featured is twice as wide so use a wider aspect ratio to match standard card height */
  .project.featured { aspect-ratio: 16/10; }
}

.project-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.project:hover .project-img img { transform: scale(1.05); }

.project-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 21, 0.1) 0%, rgba(5, 11, 21, 0.3) 50%, rgba(5, 11, 21, 0.9) 100%);
}

.project-body {
  position: absolute;
  inset: 0;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  color: var(--bone);
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--solar);
  background: rgba(5, 11, 21, 0.5);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 160, 23, 0.3);
  width: max-content;
}

.project-info .project-location {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.6);
  margin-bottom: 0.75rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--bone);
}

.project-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.7);
  margin-bottom: 1rem;
  max-width: 42ch;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(250, 247, 242, 0.3);
  transition: all 0.3s;
  width: max-content;
}

.project-link:hover {
  color: var(--solar);
  border-color: var(--solar);
  gap: 0.75rem;
}

.project.featured .project-title {
  font-size: 2.25rem;
  line-height: 1;
}

.project.featured .project-body {
  padding: 2.5rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials {
  background: var(--sand-warm);
  position: relative;
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial {
  padding: 2.5rem 2rem;
  background: var(--bone);
  position: relative;
  border-radius: 4px;
  transition: transform 0.4s var(--ease-out);
}

.testimonial:hover { transform: translateY(-6px); }

.testimonial-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--solar);
  line-height: 0.7;
  margin-bottom: 0.5rem;
  display: block;
  height: 1.5rem;
  overflow: visible;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(10, 22, 40, 0.1);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-solar);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.testimonial-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ============================================
   PARTNERS
   ============================================ */

.partners {
  background: var(--bone);
  padding: 5rem 0;
  border-top: 1px solid rgba(10, 22, 40, 0.08);
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
}

.partners-head {
  text-align: center;
  margin-bottom: 3rem;
}

.partners-head .sec-head-meta { margin-bottom: 1rem; }

.partners-head-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--ink);
}

.partners-marquee {
  overflow: hidden;
  position: relative;
  margin: 0 calc(-1 * var(--gutter));
}

.partners-marquee::before, .partners-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 10%;
  z-index: 2;
  pointer-events: none;
}

.partners-marquee::before { left: 0; background: linear-gradient(90deg, var(--bone), transparent); }
.partners-marquee::after { right: 0; background: linear-gradient(-90deg, var(--bone), transparent); }

.partners-track {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  animation: marquee 40s linear infinite;
  width: max-content;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.partner {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--steel);
  white-space: nowrap;
  opacity: 0.55;
  transition: opacity 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  gap: 1rem;
  letter-spacing: -0.01em;
}

/* Alternate weight/style for visual rhythm */
.partner:nth-child(4n+2) {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-size: 1.4rem;
}

.partner:nth-child(4n+4) {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.partner:hover { opacity: 1; color: var(--ink); }

.partner-sep {
  width: 6px;
  height: 6px;
  background: var(--solar);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  background: var(--ink-deep);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40vw;
  height: 100%;
  background: radial-gradient(ellipse at right, rgba(244, 160, 23, 0.12), transparent 70%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 6rem; }
}

.contact-info .eyebrow { color: var(--solar); }
.contact-info .eyebrow::before { background: var(--solar); }

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 1.5rem 0 1.5rem;
}

.contact-sub {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.65);
  margin-bottom: 3rem;
  max-width: 45ch;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
}

.contact-detail:last-child { border-bottom: 1px solid rgba(250, 247, 242, 0.1); }

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244, 160, 23, 0.4);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-detail-icon i {
  color: var(--solar);
  font-size: 1.125rem;
}

.contact-detail-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.5);
  margin-bottom: 0.25rem;
}

.contact-detail-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--bone);
}

.contact-form {
  background: rgba(250, 247, 242, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(250, 247, 242, 0.12);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.6);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid rgba(250, 247, 242, 0.18);
  border-radius: 4px;
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(250, 247, 242, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--solar);
  background: rgba(250, 247, 242, 0.1);
  box-shadow: 0 0 0 3px rgba(244, 160, 23, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23F4A017'><path fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option { background: var(--ink); color: var(--bone); }

.form-submit {
  width: 100%;
  padding: 1.125rem;
  background: var(--solar);
  color: var(--ink);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--solar-bright);
  transform: translateY(-1px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--ink-deep);
  color: var(--bone);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(250, 247, 242, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--bone);
}

.footer-brand-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.6);
  max-width: 36ch;
  margin-bottom: 2rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(250, 247, 242, 0.15);
  display: grid;
  place-items: center;
  color: rgba(250, 247, 242, 0.7);
  transition: all 0.3s;
}

.footer-social:hover {
  background: var(--solar);
  color: var(--ink);
  border-color: var(--solar);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--solar);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.9375rem;
  color: rgba(250, 247, 242, 0.7);
  transition: color 0.3s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 247, 242, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.4);
}

.footer-bottom a:hover { color: var(--solar); }

/* ============================================
   ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   SUB-PAGE HERO (for project-1mw, blog, quote)
   ============================================ */

.sub-hero {
  position: relative;
  min-height: 56vh;
  display: grid;
  align-items: end;
  padding: 9rem 0 4rem;
  background: var(--ink-deep);
  color: var(--bone);
  overflow: hidden;
}

@media (min-width: 768px) {
  .sub-hero { min-height: 65vh; padding: 10rem 0 4rem; }
}

.sub-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sub-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.sub-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 21, 0.7) 0%, rgba(5, 11, 21, 0.9) 100%);
}

.sub-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.sub-hero-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.6);
  margin-bottom: 2rem;
}

.sub-hero-breadcrumb span { color: var(--solar); }

.sub-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.sub-hero-sub {
  font-size: 1.125rem;
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.75);
  max-width: 50ch;
}

/* ============================================
   I18N — Language switcher & RTL support
   ============================================ */

/* Language switcher dropdown */
.nav-lang {
  position: relative;
  user-select: none;
}

.nav-lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 140px;
  background: var(--bone);
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 32px -8px rgba(10, 22, 40, 0.2);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s var(--ease-out);
  z-index: 200;
  font-family: var(--font-sans);
}

.nav-lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav.hero-mode .nav-lang-dropdown {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border-color: rgba(250, 247, 242, 0.15);
}

.nav-lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.2s;
  letter-spacing: -0.005em;
}

.nav.hero-mode .nav-lang-option { color: var(--bone); }

.nav-lang-option:hover {
  background: rgba(244, 160, 23, 0.12);
  color: var(--solar);
}

.nav.hero-mode .nav-lang-option:hover {
  background: rgba(244, 160, 23, 0.15);
  color: var(--solar);
}

.nav-lang-option-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--stone);
  letter-spacing: 0.1em;
}

.nav.hero-mode .nav-lang-option-code { color: rgba(250, 247, 242, 0.5); }

/* ----- RTL Support ----- */
body.rtl {
  direction: rtl;
}

body.rtl .eyebrow::before {
  /* Accent line flips */
  margin-left: 0.75rem;
  margin-right: 0;
}

body.rtl .hero-badge {
  flex-direction: row-reverse;
}

body.rtl .btn-primary i,
body.rtl .btn-ghost i,
body.rtl .btn-outline i,
body.rtl .nav-cta i,
body.rtl .project-link i,
body.rtl .blog-card-link i {
  transform: scaleX(-1);
}

body.rtl .service-num,
body.rtl .sec-head-meta,
body.rtl .tech-section-num,
body.rtl .project-spec-label {
  text-align: right;
}

body.rtl .sec-head {
  direction: rtl;
}

body.rtl .about-img-tag {
  left: auto;
  right: 0;
}

body.rtl .hero-scroll {
  direction: ltr; /* Keep scroll indicator horizontal */
}

body.rtl .stat:not(:last-child) {
  border-right: 0;
  border-left: 1px solid rgba(250, 247, 242, 0.08);
}

body.rtl .partners-marquee {
  /* Marquee continues to work, just animates the other way naturally */
}

body.rtl .about-points li::before {
  margin-left: 0;
  margin-right: 0;
}

body.rtl .footer-socials {
  flex-direction: row-reverse;
}

body.rtl .quote-progress {
  flex-direction: row-reverse;
}

body.rtl .contact-detail {
  flex-direction: row-reverse;
  text-align: right;
}

body.rtl .testimonial-author {
  flex-direction: row-reverse;
  text-align: right;
}

body.rtl .form-submit i,
body.rtl .quote-submit i {
  transform: scaleX(-1);
}

/* Arabic-specific typography tweak — Arabic needs more leading */
body.rtl .hero-title,
body.rtl .sec-head-title,
body.rtl .about-title,
body.rtl .contact-title,
body.rtl .project-cta-title,
body.rtl .sub-hero-title,
body.rtl .blog-featured-title {
  line-height: 1.25;
  letter-spacing: 0;
}

body.rtl .testimonial-text {
  line-height: 1.7;
}

body.rtl .hero-title .italic-accent,
body.rtl .italic-accent {
  /* Arabic doesn't have true italics; Fraunces fallback will substitute */
  font-style: normal;
  text-decoration: none;
}

/* Keep eyebrow mono tag readable in Arabic */
body.rtl .eyebrow,
body.rtl .sec-head-meta,
body.rtl .tech-section-num {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

/* Animated scroll-line flips to right side in hero */
body.rtl .hero-scroll {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}
