/* E-Logyc — SETIO palette + Stitch-inspired dark agency UI */

:root {
  --color-primary-green: #253232;
  --color-secondary-green: #7b8780;
  --color-secondary-green-light: #85948e;
  --color-tint-green: #9baa9e;
  --color-primary-grey: #222222;
  --color-tint-grey-01: #424242;
  --color-tint-grey-02: #969696;
  --color-tint-grey-03: #f1f2f2;
  --color-white: #ffffff;
  --color-sage: #b6c4be;
  --color-surface: #131313;
  --color-surface-low: #0d0f0f;
  --color-surface-container: #1d2424;
  --color-surface-high: #2a3433;
  --color-on-surface: #f1f2f2;
  --color-on-surface-muted: #95a49e;
  --color-on-primary: #263333;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-ar: "Cairo", "Plus Jakarta Sans", sans-serif;
  --font-serif-italic: "Instrument Serif", Georgia, serif;
  --container-max: 1920px;
  --pad-x: 1.5rem;
  --header-h: 5rem;
  --radius-sm: 0.125rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-pill: 9999px;
  --shadow-header: 0 1px 8px rgba(0, 0, 0, 0.12);
}

@media (min-width: 1024px) {
  :root {
    --pad-x: 4rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-on-surface);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

body.lang-ar {
  font-family: var(--font-ar);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.text-muted {
  color: var(--color-on-surface-muted);
}

/* Ambient backdrop */
.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ambient__blob {
  position: absolute;
  border-radius: 50%;
}

/* Matches reference HTML: GLOBAL LUMINOUS AMBIENT GLOW */
.ambient__blob--1 {
  left: -15%;
  top: -10%;
  width: 65vw;
  height: 120vh;
  background: linear-gradient(to bottom right, #1a2d29, #102422, rgba(12, 24, 23, 0.4));
  filter: blur(150px);
  opacity: 0.6;
}

.ambient__blob--2 {
  right: -10%;
  top: -15%;
  width: 75vw;
  height: 130vh;
  background: linear-gradient(to bottom left, #0f2122, #0b1717, #080d0d);
  filter: blur(140px);
  opacity: 0.55;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
}

.site-root {
  position: relative;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(19, 19, 19, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-header);
  border-bottom: 1px solid rgba(37, 50, 50, 0.45);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-on-surface);
}

.site-logo__img {
  display: block;
  height: 1.65rem;
  width: auto;
  max-width: min(11rem, 42vw);
  transition: opacity 0.2s ease;
}

.site-logo--footer .site-logo__img {
  height: 1.85rem;
  max-width: 12rem;
}

.site-logo:hover .site-logo__img {
  opacity: 0.88;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }
}

.site-nav__link {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-on-surface-muted);
  transition: color 0.2s, background 0.2s;
}

.site-nav__link:hover {
  color: var(--color-on-surface);
  background: var(--color-surface-high);
}

.site-nav__link--active {
  color: var(--color-sage);
  background: rgba(37, 50, 50, 0.85);
  border: 1px solid rgba(182, 196, 190, 0.25);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switch {
  display: none;
  align-items: center;
  padding: 0.2rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-container);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .lang-switch {
    display: flex;
  }
}

.lang-switch__btn {
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-pill);
  color: var(--color-on-surface-muted);
}

.lang-switch__btn--active {
  background: var(--color-surface-high);
  color: var(--color-on-surface);
}

.site-header__cta {
  display: none;
}

@media (min-width: 640px) {
  .site-header__cta {
    display: inline-flex;
  }
}

.site-header__portal {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-green);
  color: var(--color-sage);
  border: 1px solid rgba(123, 135, 128, 0.35);
}

@media (min-width: 768px) {
  .site-header__portal {
    display: inline-flex;
  }
}

.site-header__portal--disabled {
  opacity: 0.65;
  cursor: default;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(37, 50, 50, 0.4);
  cursor: pointer;
  color: var(--color-on-surface);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 1px;
}

.mobile-drawer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 15, 15, 0.98);
  padding: 1rem var(--pad-x) 1.5rem;
}

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

.mobile-drawer__list a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-drawer__cta {
  padding-top: 1rem;
}

.mobile-drawer__lang {
  padding-top: 0.5rem;
  font-size: 14px;
  color: var(--color-sage);
}

/* Main layout */
.site-main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

/* Typography */
.display {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--color-white);
}

.display .em {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(90deg, var(--color-sage), var(--color-tint-grey-03), var(--color-white));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(37, 50, 50, 0.5);
  border: 1px solid rgba(123, 135, 128, 0.3);
  color: var(--color-sage);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7b7;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--color-on-surface-muted);
  max-width: 42rem;
  line-height: 1.55;
  font-weight: 400;
}

.section {
  padding-block: 4rem;
}

html {
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

/* Home page: only the hero snaps (assets/js/home-snap.js, driven through Lenis).
   The hero fills the viewport and carries its own header padding; every other
   section keeps its natural height and scrolls freely. */
html.is-home-onepage {
  scroll-padding-top: 0;
}

/* Lenis (assets/js/site-smooth.js) drives wheel scrolling: no native smoothing on top */
html.lenis,
html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.home-section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.site-main--onepage {
  padding-top: 0;
}

.site-main--onepage .home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding-block: calc(var(--header-h) + 1.5rem) 2.5rem;
  scroll-margin-top: 0;
}

.site-main--onepage .home-hero .home-hero__inner {
  width: 100%;
}

.site-main--onepage .home-section--cta {
  padding-block: 2rem;
}

.section-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-hero__eyebrow {
  margin-inline: auto;
}

.section-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-hero__sub {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--color-on-surface-muted);
}

.services-tagline {
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--color-sage);
  margin: -1rem 0 2rem;
}

.home-section__foot {
  margin-top: 1.5rem;
  text-align: center;
}

#work {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.section-desc {
  color: var(--color-on-surface-muted);
  max-width: 36rem;
  margin: 0.5rem 0 0;
}

.section-head--center .section-desc {
  margin-inline: auto;
}

.page-hero {
  padding-block: 3rem 2.5rem;
  text-align: center;
}

.page-hero--left {
  text-align: start;
}

.page-hero .lede {
  margin-inline: auto;
}

.page-hero--left .lede {
  margin-inline: 0;
}

/* Home hero — layout; background is global .ambient (#131313 base) */
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(2rem, 8vh, 4rem);
  text-align: center;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.75rem, 4vh, 2.75rem);
}

.home-hero__tagline {
  margin: 0;
  font-size: clamp(0.65rem, 1.4vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.home-hero__headline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  width: 100%;
  max-width: 92vw;
  font-size: clamp(3rem, 10vw, 12rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-white);
}

@media (max-width: 767px) {
  .home-hero > .container.home-hero__inner {
    width: 90vw;
    max-width: 90vw;
    padding-inline: 0;
    box-sizing: border-box;
  }

  .home-hero__tagline {
    width: 100%;
    max-width: 100%;
    letter-spacing: 0.24em;
    font-size: clamp(0.58rem, 2.65vw, 0.72rem);
  }

  .home-hero__headline {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.75rem, 12vw, 4.75rem);
  }

  .home-hero__wordmark {
    width: 100%;
    max-width: 100%;
  }

  .home-hero__title {
    white-space: nowrap;
  }
}

.home-hero__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-hero__wordmark {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 0;
  cursor: crosshair;
  touch-action: none;
}

.home-hero__wordmark-canvas {
  display: block;
}

.home-hero__wordmark-readout {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(182, 196, 190, 0.75);
  white-space: nowrap;
}

.home-hero--wordmark .home-hero__title--visual {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: max-content;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.home-hero__title {
  display: inline-block;
  white-space: nowrap;
}

.home-hero__prefix {
  display: inline;
}

.home-hero__cycle {
  display: inline-block;
  min-width: 3.25ch;
  text-align: center;
  vertical-align: baseline;
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--color-white);
}

.home-hero__cycle [data-char] {
  display: inline-block;
}

.home-hero__period {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
}

.home-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.home-hero__cta:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.home-hero__cta-arrow {
  font-size: 0.9em;
  line-height: 1;
  opacity: 0.85;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 13px;
}

.btn--primary {
  background: var(--color-sage);
  color: var(--color-on-secondary-fixed, #131e19);
  box-shadow: 0 0 24px rgba(182, 196, 190, 0.25);
}

.btn--primary:hover {
  background: var(--color-white);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(30, 39, 38, 0.7);
  border-color: rgba(123, 135, 128, 0.35);
  color: var(--color-on-surface);
}

.btn--ghost:hover {
  border-color: rgba(182, 196, 190, 0.55);
  color: var(--color-sage);
}

.btn--dark {
  background: var(--color-primary-green);
  color: var(--color-sage);
  border-color: rgba(182, 196, 190, 0.3);
}

.btn--dark:hover {
  background: #2e3e3e;
  color: var(--color-white);
}

.text-link {
  color: var(--color-sage);
  font-weight: 600;
  font-size: 14px;
}

.text-link:hover {
  text-decoration: underline;
}

/* Cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.cards--3 {
  grid-template-columns: 1fr;
}

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

.cards--4 {
  grid-template-columns: 1fr;
}

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

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

.site-pjax-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  pointer-events: none;
  background: #131313;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.site-pjax-overlay--active {
  opacity: 0.35;
}

.card {
  background: rgba(29, 36, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  height: 100%;
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.card__body {
  margin: 0;
  color: var(--color-on-surface-muted);
  font-size: 14px;
}

.card__link {
  margin-top: 1rem;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-sage);
}

.card--pillar:hover {
  border-color: rgba(182, 196, 190, 0.35);
}

/* Process steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

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

.step {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(37, 50, 50, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step__num {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-secondary-green);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.step__title {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.step__text {
  margin: 0;
  font-size: 14px;
  color: var(--color-on-surface-muted);
}

/* Portfolio grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-bar button {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 35, 35, 0.6);
  color: var(--color-on-surface-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.filter-bar button[aria-pressed="true"] {
  background: var(--color-primary-green);
  color: var(--color-white);
  border-color: rgba(182, 196, 190, 0.4);
  box-shadow: 0 0 20px rgba(37, 50, 50, 0.5);
}

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

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

.project-card--link {
  display: flex;
  flex-direction: column;
  color: inherit;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease;
}

.project-card--link:hover {
  transform: translateY(-2px);
}

.project-card--link:hover .project-card__title {
  color: var(--color-sage);
}

.project-card--link:hover .project-card__media {
  border-color: rgba(182, 196, 190, 0.45);
}

.project-card__cta {
  margin-top: 0.35rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-sage);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-container);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

.project-card__media--image,
.project-card__media--video {
  background: var(--color-surface-container);
}

.project-card__media--hero {
  aspect-ratio: 16 / 9;
  margin-bottom: 0;
}

.project-card__img,
.project-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__video {
  pointer-events: none;
}

.project-card__media--demo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(37, 50, 50, 0.9), rgba(19, 19, 19, 0.95));
}

.project-card__demo-screen {
  width: 72%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(182, 196, 190, 0.2);
  background: rgba(13, 15, 15, 0.75);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card__demo-screen--large {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding: 1.5rem 2rem;
}

.project-card__demo-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(182, 196, 190, 0.35);
  width: 85%;
}

.project-card__demo-bar--short {
  width: 55%;
  opacity: 0.7;
}

.project-card__demo-block {
  display: block;
  margin-top: 0.5rem;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(37, 50, 50, 0.8), rgba(123, 135, 128, 0.25));
}

.project-detail {
  padding-block: 3rem 4rem;
}

.project-detail__facts {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.project-detail__facts li {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(37, 50, 50, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-detail__label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary-green);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.project-detail__hero {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(29, 36, 36, 0.5);
}

.project-detail__hero .project-card__media {
  margin-bottom: 0;
  aspect-ratio: 21 / 9;
  min-height: 240px;
}

.project-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

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

.project-gallery__img,
.project-gallery__video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-container);
}

.project-gallery__video {
  pointer-events: none;
}

.project-detail__section {
  margin-bottom: 2rem;
}

.project-detail__back {
  margin: 2rem 0 1rem;
}

.project-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 200, 100, 0.5);
  color: #ffc866;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.project-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.project-card__meta {
  margin: 0.25rem 0 0;
  font-size: 12px;
  color: var(--color-on-surface-muted);
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(123, 135, 128, 0.35);
  background: rgba(37, 50, 50, 0.2);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.team-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(29, 36, 36, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-card__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--color-primary-green);
  color: var(--color-sage);
  border: 1px solid rgba(182, 196, 190, 0.25);
  margin-bottom: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

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

.team-card__avatar--placeholder {
  opacity: 0.85;
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.team-card__photo-note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted, rgba(241, 242, 242, 0.55));
  line-height: 1.35;
}

.team-card__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.team-card__role {
  margin: 0.15rem 0 0.5rem;
  color: var(--color-sage);
  font-size: 14px;
  font-weight: 600;
}

.team-card__bio {
  margin: 0 0 1rem;
  font-size: 13px;
  color: var(--color-on-surface-muted);
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.pillar-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(182, 196, 190, 0.3);
  background: rgba(37, 50, 50, 0.4);
  color: var(--color-sage);
}

/* About */
.prose {
  max-width: 42rem;
  color: var(--color-on-surface-muted);
}

.prose p {
  margin: 0 0 1rem;
}

.beliefs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

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

.belief {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(37, 50, 50, 0.25);
}

.belief strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-on-surface);
}

.quote-block {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border-inline-start: 3px solid var(--color-sage);
  background: rgba(37, 50, 50, 0.35);
  margin-top: 2rem;
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-on-surface);
}

/* Services */
.service-block {
  padding-block: 3rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.service-block:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.service-list {
  margin: 1rem 0 1.5rem;
  padding-inline-start: 1.25rem;
  color: var(--color-on-surface-muted);
}

.service-list li {
  margin-bottom: 0.5rem;
}

.faq {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.faq strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-on-surface);
}

.faq p {
  margin: 0;
  color: var(--color-on-surface-muted);
  font-size: 14px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-on-surface-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--color-sage);
  font-weight: 700;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem 4rem;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-layout__meta {
  text-align: start;
}

.contact-about {
  margin: 0 0 0.75rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-on-surface);
}

.contact-about__founders {
  margin: 0;
  max-width: 34rem;
  font-size: 0.9rem;
  color: var(--color-on-surface-muted);
}

.contact-meta {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.contact-meta li {
  margin-bottom: 1rem;
}

.contact-meta span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary-green);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.form-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(29, 36, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid--2 {
  grid-template-columns: 1fr;
}

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

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field label span {
  color: var(--color-secondary-green-light);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(123, 135, 128, 0.35);
  background: rgba(13, 15, 15, 0.6);
  color: var(--color-on-surface);
  font-family: inherit;
  font-size: 14px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(182, 196, 190, 0.45);
  outline-offset: 1px;
}

.form-status {
  margin-top: 1rem;
  font-size: 14px;
  color: var(--color-sage);
}

.form-status--error {
  color: #ffb4ab;
}

/* CTA band */
.cta-band {
  margin-block: 1rem 4rem;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(37, 50, 50, 0.45);
  border: 1px solid rgba(182, 196, 190, 0.2);
  text-align: center;
}

.cta-band__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band__text {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--color-on-surface-muted);
}

.cta-band--split {
  text-align: start;
}

.cta-band__inner--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
}

.cta-band--split .cta-band__copy {
  flex: 1 1 16rem;
  min-width: min(100%, 18rem);
  max-width: 38rem;
}

.cta-band--split .cta-band__title {
  margin: 0 0 0.5rem;
}

.cta-band--split .cta-band__text {
  margin: 0;
  max-width: none;
  color: var(--color-on-surface-muted);
}

.cta-band__action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .cta-band__inner--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .cta-band__action {
    align-self: flex-start;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(13, 15, 15, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 3rem 1.5rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }
}

.site-footer__tagline {
  color: var(--color-sage);
  font-weight: 600;
  margin: 0.75rem 0 0.25rem;
}

.site-footer__built {
  margin: 0;
  font-size: 13px;
  color: var(--color-on-surface-muted);
}

.site-footer__col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-on-surface-muted);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.site-footer__links,
.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.site-footer__links li,
.site-footer__contact li {
  margin-bottom: 0.45rem;
}

.site-footer__links a:hover {
  color: var(--color-sage);
}

.site-footer__label {
  display: block;
  font-size: 11px;
  color: var(--color-secondary-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--color-on-surface-muted);
}

@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
  }
}

.site-footer__legal {
  display: flex;
  gap: 1rem;
}

.site-footer__legal a:hover {
  color: var(--color-sage);
}

/* RTL tweaks */
[dir="rtl"] .quote-block {
  border-inline-start: none;
  border-inline-end: 3px solid var(--color-sage);
}

[dir="rtl"] .check-list li {
  padding-inline-start: 0;
  padding-inline-end: 1.5rem;
}

[dir="rtl"] .check-list li::before {
  inset-inline-start: auto;
  inset-inline-end: 0;
}
