/* Font setup: local TheSansArab files from fonts/sans font/. */
@font-face {
  font-family: "TheSansArab";
  src: url("fonts/sans font/TheSansArab-Plain.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TheSansArab";
  src: url("fonts/sans font/TheSansArab-SemiBold.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TheSansArab";
  src: url("fonts/sans font/TheSansArab-Bold.ttf") format("truetype");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TheSansArab";
  src: url("fonts/sans font/TheSansArab-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Base styles */
:root {
  --color-bg: #201e1e;
  --color-surface: #242222;
  --color-surface-2: #2b2929;
  --color-text: #fefefe;
  --color-black: #201e1e;
  --color-charcoal: #252323;
  --color-metal: #818891;
  --color-metal-dark: #2b3030;
  --color-white: var(--color-text);
  --color-muted: rgba(255, 255, 255, 0.68);
  --teal-primary: #1a7a6e;
  --teal-hover: #2aa090;
  --teal-surface: #0a1a1a;
  --color-teal: var(--teal-primary);
  --color-teal-hover: var(--teal-hover);
  --color-teal-soft: rgba(26, 122, 110, 0.24);
  --color-teal-faint: rgba(26, 122, 110, 0.12);
  --border-teal-soft: rgba(26, 122, 110, 0.22);
  --container-width: 1180px;
  --header-height: 68px;
  --focus-ring: 0 0 0 3px rgba(26, 122, 110, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

main section[id] {
  scroll-margin-top: 90px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "TheSansArab", Cairo, Tajawal, sans-serif;
  color: var(--color-white);
  background: var(--color-black);
  line-height: 1.7;
  overflow-x: clip;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-teal-hover);
  outline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(14px);
  transition: all 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(26, 122, 110, 0.12);
  background: var(--color-black);
}

.header-content {
  width: 100%;
  min-height: var(--header-height);
  margin-inline: 0;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  transition: min-height 0.3s ease;
}

.site-header.is-scrolled .header-content {
  min-height: 56px;
}

.site-header .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 4px 0;
  direction: ltr;
  color: var(--color-white);
  text-align: left;
  border: 0;
  border-radius: 0;
  transition: all 0.3s ease;
}

.site-header .brand-logo__mark {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(26, 122, 110, 0.1);
  transition: all 0.3s ease;
}

.site-header .brand-logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0.92) saturate(0.94);
}

.site-header .brand-logo__divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0.25;
  transition: all 0.3s ease;
}

.site-header .brand-logo__text,
.site-header .brand-logo__wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  line-height: 1;
}

.site-header .brand-logo__name,
.site-header .brand-logo__category {
  display: block;
  transition: all 0.3s ease;
}

.site-header .brand-logo__name {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.site-header .brand-logo__category {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 4px;
  white-space: nowrap;
}

.site-header .brand-logo {
  opacity: 0.88;
}

.site-header .brand-logo:hover,
.site-header .brand-logo:focus-visible {
  opacity: 1;
}

.site-header .brand-logo:hover .brand-logo__mark,
.site-header .brand-logo:focus-visible .brand-logo__mark {
  background: rgba(26, 122, 110, 0.14);
  filter: brightness(1.03);
}

.site-header.is-scrolled .brand-logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.site-header.is-scrolled .brand-logo__divider {
  height: 24px;
}

.site-header.is-scrolled .brand-logo__name {
  font-size: 13px;
}

.site-header.is-scrolled .brand-logo__category {
  font-size: 8px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
  color: var(--color-white);
  text-align: left;
  transition: all 0.3s ease;
}

.brand-logo__mark {
  display: grid;
  place-items: center;
  font-weight: 900;
  line-height: 1;
  transition: all 0.3s ease;
}

.brand-logo__divider {
  width: 1px;
  transition: all 0.3s ease;
}

.brand-logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  line-height: 1;
}

.brand-logo__name,
.brand-logo__category {
  display: block;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.brand-logo--footer {
  gap: 9px;
  min-height: 52px;
  padding: 4px 0;
  border-color: transparent;
  opacity: 0.88;
}

.brand-logo--footer .brand-logo__mark {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(26, 122, 110, 0.1);
}

.brand-logo--footer .brand-logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0.92) saturate(0.94);
}

.brand-logo--footer .brand-logo__divider {
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0.25;
}

.brand-logo--footer .brand-logo__name {
  font-size: 15px;
  color: #ffffff;
}

.brand-logo--footer .brand-logo__category {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 4px;
}

.brand-logo--footer .brand-logo__wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  line-height: 1;
}

.brand-logo--footer:hover,
.brand-logo--footer:focus-visible {
  background: transparent;
  border-color: transparent;
  opacity: 1;
}

.brand-logo--footer:hover .brand-logo__mark,
.brand-logo--footer:focus-visible .brand-logo__mark {
  background: rgba(26, 122, 110, 0.14);
  filter: brightness(1.03);
}

.brand-logo--footer:hover .brand-logo__divider,
.brand-logo--footer:focus-visible .brand-logo__divider {
  background: rgba(26, 122, 110, 0.18);
}

.brand-logo--footer:hover .brand-logo__name,
.brand-logo--footer:focus-visible .brand-logo__name {
  color: #ffffff;
}

.brand-logo--footer:hover .brand-logo__category,
.brand-logo--footer:focus-visible .brand-logo__category {
  color: rgba(255, 255, 255, 0.4);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  padding-block: 8px;
  transition: all 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -6px;
  height: 2px;
  background: var(--teal-primary);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-white);
  transition: color 0.15s ease;
}

.main-nav a.is-active {
  color: var(--color-white);
}

.main-nav a.is-active::after {
  transform: scaleX(1);
}

.main-nav .nav-cta {
  padding: 6px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--color-white);
  background: var(--teal-primary);
  font-size: 12px;
  font-weight: 700;
}

.main-nav .nav-cta.is-active {
  color: var(--color-white);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  color: var(--color-white);
  background: var(--teal-hover);
  box-shadow: 0 8px 22px rgba(26, 122, 110, 0.18);
  transform: scale(1.02);
}

.site-header.is-scrolled .main-nav .nav-cta {
  color: var(--teal-primary);
  border-color: rgba(26, 122, 110, 0.4);
  background: transparent;
  font-size: 11px;
  padding: 6px 14px;
  font-weight: 600;
}

.site-header.is-scrolled .main-nav .nav-cta.is-active {
  color: var(--teal-primary);
}

.site-header.is-scrolled .main-nav .nav-cta:hover,
.site-header.is-scrolled .main-nav .nav-cta:focus-visible {
  color: var(--color-white);
  background: var(--teal-primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-block: calc(var(--header-height) + 78px) 84px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 62% 38%, rgba(13, 37, 37, 0.85) 0%, #201e1e 65%),
    linear-gradient(135deg, #201e1e 0%, #252323 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.09;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px);
  background-size: 34px 34px, 47px 47px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(32, 30, 30, 0.92) 5%,
    rgba(32, 30, 30, 0.7) 35%,
    rgba(32, 30, 30, 0.2) 70%,
    rgba(32, 30, 30, 0.05) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-height) - 162px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(44px, 5.5vw, 82px);
}

.hero-copy {
  max-width: 650px;
  text-align: start;
}

.eyebrow {
  width: fit-content;
  margin-block-end: 16px;
  margin-inline: 0;
  padding: 7px 14px;
  color: var(--teal-primary);
  border: 1px solid rgba(26, 122, 110, 0.34);
  border-radius: 4px;
  background: rgba(26, 122, 110, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin-block: 0 20px;
  margin-inline: 0;
  max-width: 650px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.32;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.hero h1 span {
  display: inline;
  color: var(--teal-primary);
  font-size: 1.04em;
  font-weight: 900;
  vertical-align: baseline;
  text-shadow: 0 0 22px rgba(26, 122, 110, 0.16);
}

.hero-description {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.96rem;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  min-height: 54px;
  padding: 15px 40px;
  color: var(--color-white);
  border-radius: 8px;
  background: var(--teal-primary);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24), 0 10px 28px rgba(26, 122, 110, 0.12);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--teal-hover);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28), 0 12px 32px rgba(42, 160, 144, 0.16);
}

.btn-secondary {
  min-height: 48px;
  color: var(--color-white);
  padding: 11px 24px;
  border-color: rgba(26, 122, 110, 0.76);
  background: rgba(26, 122, 110, 0.1);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-teal-hover);
  background: rgba(26, 122, 110, 0.09);
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero-visual {
  min-width: 0;
  max-width: 460px;
  justify-self: center;
  align-self: center;
  width: 100%;
  transform: translateY(6px);
}

.hero-brand-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 460px;
  min-height: auto;
  margin-inline: auto;
  padding: clamp(10px, 2vw, 22px) 0;
  overflow: visible;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-brand-visual:hover {
  transform: translateY(-3px);
}

.hero-brand-visual::after {
  display: none;
}

.hero-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(355px, 68vw);
  max-height: 430px;
  overflow: visible;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(26, 122, 110, 0.2), transparent 62%),
    radial-gradient(circle, rgba(0, 0, 0, 0.42), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-logo-wrap img {
  max-width: 100%;
  max-height: 430px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  object-position: center center;
  filter:
    brightness(0.94)
    drop-shadow(0 8px 48px rgba(0, 0, 0, 0.55))
    drop-shadow(0 24px 60px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 34px rgba(26, 122, 110, 0.14));
}

.process-badges {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  margin: 14px auto 0;
  padding: 8px 12px;
  border: 1px solid rgba(26, 122, 110, 0.22);
  border-radius: 8px;
  background: rgba(10, 26, 26, 0.7);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
}

.process-badges span {
  position: relative;
  flex: 0 0 auto;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.process-badges span:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block: 24%;
  inset-inline-end: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(26, 122, 110, 0.38), transparent);
}

.process-badges strong {
  color: var(--teal-primary);
  font-size: 0.8rem;
  font-weight: 900;
}

/* Trust bar */
.trust-bar {
  position: relative;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, #201e1e, #252323);
}

.trust-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  position: relative;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.trust-item:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, transparent, rgba(26, 122, 110, 0.58), transparent);
}

.trust-item strong {
  color: var(--color-teal-hover);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1;
}

.trust-item span {
  color: var(--color-muted);
  font-size: 0.98rem;
  font-weight: 800;
}

/* Services section */
.services-section {
  position: relative;
  padding-block: 88px 96px;
  background:
    radial-gradient(circle at 86% 18%, rgba(26, 122, 110, 0.11), transparent 30%),
    linear-gradient(135deg, #201e1e 0%, #252323 52%, #201e1e 100%);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.2;
  font-weight: 900;
}

.section-heading p:last-child {
  margin: 0;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  line-height: 1.7;
  font-weight: 600;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 224px;
  padding: 24px;
  border: 1px solid rgba(254, 254, 254, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(254, 254, 254, 0.055), rgba(254, 254, 254, 0.025)),
    #242222;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transition:
    transform 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 280ms ease,
    box-shadow 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 320ms ease;

  /* Scroll-triggered fade-in: hidden by default */
  opacity: 0;
  transform: translateY(32px);
}

/* Staggered reveal — driven by --card-index set in JS */
.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 280ms ease,
    box-shadow 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 320ms ease;
  transition-delay: calc(var(--card-index, 0) * 100ms);
}

/* Hover - lift with a subtle teal glow. */
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(26, 122, 110, 0.45);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35),
    0 0 34px rgba(26, 122, 110, 0.1);
  background:
    linear-gradient(180deg, rgba(254, 254, 254, 0.07), rgba(254, 254, 254, 0.03)),
    #242222;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--color-white);
  border-radius: 10px;
  background: var(--teal-primary);
  box-shadow: 0 10px 24px rgba(26, 122, 110, 0.18);
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 320ms ease;
}

.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 28px rgba(26, 122, 110, 0.28);
}

.service-card h3 {
  margin: 0 0 14px;
  color: var(--color-white);
  font-size: 1.28rem;
  line-height: 1.35;
  font-weight: 900;
  transition: color 280ms ease;
}

.service-card h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--teal-primary), transparent);
  opacity: 0.72;
  transition: width 280ms ease, opacity 280ms ease;
}

.service-card:hover h3,
.service-card:focus-within h3 {
  color: var(--color-teal-hover);
}

.service-card:hover h3::after,
.service-card:focus-within h3::after {
  width: 54px;
  opacity: 1;
}

.service-card p {
  margin: 0;
  color: rgba(254, 254, 254, 0.74);
  font-size: 0.98rem;
  line-height: 1.75;
  font-weight: 600;
}

/* Selected works and portfolio */
.gold-divider {
  width: 60px;
  height: 2px;
  display: block;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--color-teal), transparent);
}

.selected-works {
  position: relative;
  padding-block: 104px;
  background:
    radial-gradient(circle at 18% 20%, rgba(26, 122, 110, 0.08), transparent 28%),
    var(--color-bg);
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}

.selected-works__heading {
  margin-bottom: 34px;
}

.selected-works-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.portfolio-listing .projects-grid {
  gap: 18px;
}

.selected-works__actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

.selected-work-card,
.project-card {
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.selected-work-card a,
.project-card a {
  height: 100%;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border-teal-soft);
  border-radius: 10px;
  color: var(--color-white);
  background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.selected-work-card a:hover,
.selected-work-card a:focus-visible,
.project-card a:hover,
.project-card a:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(26, 122, 110, 0.46);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(26, 122, 110, 0.13);
  outline: none;
}

.selected-work-card a:focus-visible,
.project-card a:focus-visible {
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(26, 122, 110, 0.13),
    var(--focus-ring);
}

.selected-work-card__media,
.project-card__media {
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  background: var(--color-surface);
}

.selected-work-card__media img,
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85) saturate(0.7);
  transform: scale(1);
  transition: filter 300ms ease, transform 420ms ease;
}

.selected-work-card a:hover img,
.selected-work-card a:focus-visible img,
.project-card a:hover img,
.project-card a:focus-visible img {
  filter: brightness(1) saturate(1);
  transform: scale(1.025);
}

.selected-work-card__content,
.project-card__content {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
}

.selected-work-card__meta,
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.selected-work-card__meta span,
.project-card__meta span {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(26, 122, 110, 0.22);
  border-radius: 999px;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 800;
}

.selected-work-card strong,
.project-card strong {
  color: var(--color-white);
  font-size: clamp(1.15rem, 1.5vw, 1.28rem);
  line-height: 1.3;
  font-weight: 900;
}

.selected-work-card__button,
.project-card__button {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid rgba(26, 122, 110, 0.34);
  border-radius: 6px;
  color: var(--color-teal-hover);
  background: rgba(26, 122, 110, 0.08);
  font-size: 0.88rem;
  font-weight: 900;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.selected-work-card a:hover .selected-work-card__button,
.selected-work-card a:focus-visible .selected-work-card__button,
.project-card a:hover .project-card__button,
.project-card a:focus-visible .project-card__button {
  color: var(--color-white);
  border-color: var(--color-teal-hover);
  background: var(--color-teal-hover);
}

.portfolio-page {
  background: var(--color-bg);
}

.portfolio-hero {
  min-height: min(50vh, 460px);
  display: grid;
  align-items: end;
  padding-block: calc(var(--header-height) + 70px) 72px;
  background:
    radial-gradient(circle at 20% 26%, rgba(26, 122, 110, 0.16), transparent 32%),
    linear-gradient(135deg, #201e1e 0%, #242222 52%, #201e1e 100%);
}

.portfolio-hero__content {
  max-width: 760px;
}

.portfolio-hero h1 {
  margin: 0 0 14px;
  color: var(--color-white);
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1.1;
  font-weight: 900;
}

.portfolio-hero p:last-child {
  max-width: 640px;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
  font-weight: 700;
}

.portfolio-listing {
  padding-block: 0 64px;
  background: var(--color-bg);
}

.filter-bar {
  padding-block: 18px;
  margin-bottom: 42px;
  border-block: 1px solid rgba(26, 122, 110, 0.08);
  background: rgba(32, 30, 30, 0.9);
  backdrop-filter: blur(14px);
}

.filter-bar__scroll {
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.filter-bar__scroll::-webkit-scrollbar {
  display: none;
}

.filter-bar button {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid rgba(26, 122, 110, 0.18);
  border-radius: 999px;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.filter-count {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 7px;
  border-radius: 999px;
  color: rgba(254, 254, 254, 0.78);
  background: rgba(10, 26, 26, 0.72);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 900;
}

.filter-bar button:hover,
.filter-bar button:focus-visible,
.filter-bar button.is-active {
  color: var(--color-white);
  border-color: var(--color-teal-hover);
  background: linear-gradient(135deg, var(--color-teal-hover), var(--color-teal));
  outline: none;
}

.filter-bar button:hover .filter-count,
.filter-bar button:focus-visible .filter-count,
.filter-bar button.is-active .filter-count {
  color: var(--color-bg);
  background: rgba(254, 254, 254, 0.88);
}

.filter-bar button:hover,
.filter-bar button:focus-visible {
  transform: translateY(-1px);
}

.filter-bar button:focus-visible {
  box-shadow: var(--focus-ring);
}

.project-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms ease;
}

.project-card.is-hiding {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.project-card[hidden] {
  display: none;
}

.gallery-card a {
  position: relative;
  background: linear-gradient(180deg, rgba(254, 254, 254, 0.05), rgba(254, 254, 254, 0.018));
  border-color: rgba(254, 254, 254, 0.075);
}

.gallery-card a:hover,
.gallery-card a:focus-visible {
  border-color: rgba(42, 160, 144, 0.48);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.36),
    0 0 34px rgba(26, 122, 110, 0.13);
}

.gallery-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--teal-surface);
}

.gallery-card__media img {
  object-fit: cover;
  object-position: center center;
}

.gallery-card__media::before,
.gallery-card__media::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.gallery-card__media::before {
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 26, 26, 0.08), rgba(10, 26, 26, 0.5));
  opacity: 0;
  transition: opacity 260ms ease;
}

.gallery-card__media::after {
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 1;
  height: 52%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
  opacity: 0.86;
  transition: opacity 260ms ease;
}

.gallery-card__category {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(42, 160, 144, 0.28);
  border-radius: 999px;
  color: var(--color-white);
  background: rgba(10, 26, 26, 0.76);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 900;
}

.gallery-card__content {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 2;
  gap: 7px;
  padding: 16px;
}

.gallery-card__project {
  width: fit-content;
  color: var(--color-teal-hover);
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 900;
}

.gallery-card__content strong {
  max-width: 90%;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.gallery-card__button {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease, color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.gallery-card a:hover .gallery-card__media::before,
.gallery-card a:focus-visible .gallery-card__media::before,
.gallery-card a:hover .gallery-card__media::after,
.gallery-card a:focus-visible .gallery-card__media::after {
  opacity: 1;
}

.gallery-card a:hover .gallery-card__button,
.gallery-card a:focus-visible .gallery-card__button {
  opacity: 1;
  transform: translateY(0);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 8, 8, 0.82);
  cursor: pointer;
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: calc(100vh - 56px);
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(42, 160, 144, 0.24);
  border-radius: 12px;
  background: var(--color-bg);
  box-shadow:
    0 32px 88px rgba(0, 0, 0, 0.58),
    0 0 46px rgba(26, 122, 110, 0.12);
}

.gallery-lightbox__close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(254, 254, 254, 0.12);
  border-radius: 999px;
  color: var(--color-white);
  background: rgba(10, 26, 26, 0.78);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible {
  border-color: var(--color-teal-hover);
  background: var(--color-teal);
  outline: none;
}

.gallery-lightbox__close:focus-visible {
  box-shadow: var(--focus-ring);
}

.gallery-lightbox__image {
  width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  background: #0a0a0a;
}

.gallery-lightbox__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 18px 20px;
  color: var(--color-white);
}

.gallery-lightbox__category,
.gallery-lightbox__project {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
}

.gallery-lightbox__category {
  color: var(--color-white);
  background: var(--color-teal);
}

.gallery-lightbox__project {
  color: var(--color-teal-hover);
  background: rgba(42, 160, 144, 0.1);
}

.gallery-lightbox__title {
  flex: 1 1 100%;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
}

body.is-lightbox-open {
  overflow: hidden;
}

.thank-you-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 22%, rgba(26, 122, 110, 0.14), transparent 34%),
    linear-gradient(135deg, var(--color-black), var(--color-surface));
}

.thank-you-section {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-block: calc(var(--header-height) + 74px) 80px;
}

.thank-you-content {
  max-width: 760px;
}

.thank-you-content h1 {
  margin: 0 0 18px;
  color: var(--color-white);
  font-size: clamp(2.25rem, 5vw, 4.1rem);
  line-height: 1.25;
  font-weight: 900;
}

.thank-you-content p:not(.section-kicker) {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.8;
  font-weight: 600;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.cta-section {
  padding-block: 88px;
  background:
    radial-gradient(circle at 70% 32%, rgba(26, 122, 110, 0.13), transparent 30%),
    var(--color-bg);
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.cta-section__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px;
  border: 1px solid rgba(26, 122, 110, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(26, 122, 110, 0.09), transparent 48%),
    var(--color-surface);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.cta-section h2 {
  margin: 0 0 10px;
  color: var(--color-white);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.2;
  font-weight: 900;
}

.cta-section p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
/* About storytelling section */
.about-story-section {
  position: relative;
  padding-block: 92px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(26, 122, 110, 0.12), transparent 32%),
    radial-gradient(circle at 18% 78%, rgba(26, 122, 110, 0.08), transparent 34%),
    linear-gradient(135deg, #201e1e 0%, #252323 54%, #201e1e 100%);
}

.about-story-section::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(26, 122, 110, 0.42), transparent);
}

.about-story {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
  padding-inline-start: 32px;
  border-inline-start: 2px solid rgba(26, 122, 110, 0.5);
  animation: aboutStoryFadeUp 680ms ease both;
}

.about-story::before {
  content: "“";
  position: absolute;
  inset-inline-start: 26px;
  inset-block-start: -34px;
  color: rgba(26, 122, 110, 0.16);
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  font-weight: 900;
  pointer-events: none;
}

.about-story .section-kicker {
  margin-bottom: 18px;
}

.about-story h2 {
  margin: 0 0 34px;
  font-size: clamp(2.25rem, 4.8vw, 4.4rem);
  line-height: 1.2;
  font-weight: 900;
}

.story-text {
  position: relative;
  max-width: 680px;
}

.story-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.14rem, 1.85vw, 1.48rem);
  line-height: 1.95;
  font-weight: 600;
}

.story-text p:not(:last-child) {
  margin-bottom: 22px;
}

.story-text span {
  color: var(--color-teal);
  font-weight: 900;
  text-shadow: 0 0 18px rgba(26, 122, 110, 0.12);
  transition: color 260ms ease, text-shadow 260ms ease;
}

@keyframes aboutStoryFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .about-story {
    animation: aboutStoryFadeUp 680ms ease both;
    animation-timeline: view();
    animation-range: entry 12% cover 34%;
  }
}

/* Clients logos section */
.clients-section {
  position: relative;
  padding: 56px 0;
  overflow: hidden;
  border-top: 1px solid rgba(26, 122, 110, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% 0%, rgba(26, 122, 110, 0.06), transparent 34%),
    #201e1e;
}

.clients-header {
  margin-bottom: 28px;
  padding: 0 var(--section-padding-x, 40px);
  text-align: center;
  direction: rtl;
}

.clients-eyebrow {
  margin: 0 0 8px;
  color: var(--color-teal, #1d9e75);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

.clients-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.34);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0px,
    black 48px,
    black calc(100% - 48px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0px,
    black 48px,
    black calc(100% - 48px),
    transparent 100%
  );
}

.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  direction: ltr;
  animation: clientsMarquee 50s linear infinite;
  will-change: transform;
}

.clients-set {
  display: flex;
  align-items: center;
  gap: 56px;
  flex: 0 0 auto;
  direction: ltr;
  padding-inline-end: 56px;
}

.client-logo {
  --logo-scale: 1;
  --logo-hover-scale: 1.02;
  flex: 0 0 auto;
  width: 150px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  max-width: 140px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.82;
  filter: grayscale(1) brightness(1.35) contrast(0.88);
  transform: scale(var(--logo-scale));
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
}

.client-logo:hover img {
  opacity: 0.95;
  filter: grayscale(1) brightness(1.45) contrast(0.9);
  transform: scale(var(--logo-hover-scale));
}

.client-logo.logo-large {
  --logo-scale: 1.18;
  --logo-hover-scale: 1.2;
}

.client-logo.logo-xlarge {
  --logo-scale: 1.35;
  --logo-hover-scale: 1.37;
}

.client-logo.logo-dim img {
  opacity: 0.9;
  filter: grayscale(1) brightness(1.55) contrast(0.9);
}

.client-logo.logo-dim:hover img {
  opacity: 0.95;
  filter: grayscale(1) brightness(1.6) contrast(0.9);
}

.client-logo.logo-strong img {
  opacity: 0.75;
  filter: grayscale(1) brightness(1.2) contrast(0.85);
}

.client-logo.logo-strong:hover img {
  opacity: 0.88;
  filter: grayscale(1) brightness(1.28) contrast(0.86);
}

.clients-marquee:hover .clients-track {
  animation-play-state: running;
}

@keyframes clientsMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Contact / Quote section */
.contact-section {
  position: relative;
  padding-block: 96px;
  background:
    radial-gradient(circle at 12% 20%, rgba(26, 122, 110, 0.1), transparent 30%),
    linear-gradient(135deg, #201e1e 0%, #252323 58%, #201e1e 100%);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 58px 58px;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: 56px;
  align-items: start;
}

.contact-intro {
  max-width: 470px;
}

.section-kicker {
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 14px;
  color: var(--color-teal-hover);
  border: 1px solid rgba(26, 122, 110, 0.34);
  border-radius: 4px;
  background: rgba(26, 122, 110, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-intro h2 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.2;
  font-weight: 900;
}

.contact-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  line-height: 1.7;
  font-weight: 600;
}

.official-email {
  margin-top: 34px;
  padding: 18px;
  border: 1px solid rgba(26, 122, 110, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.official-email span {
  display: block;
  margin-bottom: 6px;
  color: var(--color-metal);
  font-size: 0.9rem;
  font-weight: 800;
}

.official-email a {
  color: var(--color-teal-hover);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.quote-form {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--color-white);
  font-weight: 800;
}

.quote-form label + label,
.quote-form .form-grid + label {
  margin-top: 18px;
}

.quote-form span {
  font-size: 0.95rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: var(--color-white);
  background: rgba(32, 30, 30, 0.72);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.quote-form input,
.quote-form select {
  min-height: 52px;
  padding: 0 14px;
}

.quote-form textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

.quote-form select {
  appearance: none;
  direction: rtl;
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  background-color: #201e1e;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-teal-hover) 50%),
    linear-gradient(135deg, var(--color-teal-hover) 50%, transparent 50%);
  background-position:
    left 18px center,
    left 12px center;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-inline: 14px 42px;
  cursor: pointer;
}

.quote-form option {
  color: rgba(255, 255, 255, 0.95);
  background: #201e1e;
}

.quote-form option:hover,
.quote-form option:focus {
  color: var(--color-teal-hover);
  background: rgba(26, 122, 110, 0.15);
}

.quote-form option:checked {
  color: var(--color-teal-hover);
  background: linear-gradient(135deg, rgba(26, 122, 110, 0.22), rgba(26, 122, 110, 0.18));
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: rgba(26, 122, 110, 0.82);
  background: rgba(32, 30, 30, 0.88);
  box-shadow: var(--focus-ring);
}

.form-submit {
  margin-top: 22px;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 1.6em;
  margin: 14px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 800;
}

.form-status.is-success {
  color: var(--color-teal-hover);
}

.form-status.is-error {
  color: #ffb4a8;
}

/* Footer */
.site-footer {
  position: relative;
  background:
    radial-gradient(circle at 84% 0%, rgba(26, 122, 110, 0.1), transparent 30%),
    linear-gradient(90deg, rgba(26, 122, 110, 0.045), transparent 42%),
    #201e1e;
}

.footer-gold-rule {
  height: 2px;
  background: linear-gradient(to left, transparent, rgba(26, 122, 110, 0.25) 20%, rgba(26, 122, 110, 0.45) 50%, rgba(26, 122, 110, 0.25) 80%, transparent);
}

.footer-cta {
  background: #242222;
  border-bottom: 1px solid rgba(26, 122, 110, 0.12);
}

.footer-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 30px;
}

.footer-cta h2 {
  margin: 0 0 8px;
  color: var(--color-white);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.35;
  font-weight: 900;
}

.footer-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 600;
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
}

.footer-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease, color 260ms ease;
}

.footer-btn:hover,
.footer-btn:focus-visible {
  transform: translateY(-2px);
}

.footer-btn-primary {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-teal-hover), var(--color-teal));
}

.footer-btn-secondary {
  color: var(--color-white);
  border-color: rgba(26, 122, 110, 0.45);
  background: rgba(255, 255, 255, 0.025);
}

.footer-btn-secondary:hover,
.footer-btn-secondary:focus-visible {
  color: var(--color-teal-hover);
  border-color: var(--color-teal-hover);
  background: rgba(26, 122, 110, 0.08);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr 1fr;
  gap: 56px;
  align-items: start;
  padding-block: 52px 46px;
}

.footer-brand {
  position: relative;
  padding-inline-start: 0;
}

.footer-brand p {
  max-width: 470px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.02rem;
  line-height: 1.85;
  font-weight: 600;
}

.footer-brand p span {
  color: var(--color-teal-hover);
  font-weight: 900;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.footer-socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 260ms ease, background 260ms ease, color 260ms ease, transform 260ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--color-teal-hover);
  border-color: var(--color-teal-hover);
  background: rgba(26, 122, 110, 0.08);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links h2,
.footer-contact h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--color-teal-hover);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  direction: ltr;
}

.footer-links h2::after,
.footer-contact h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(26, 122, 110, 0.2);
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
  transition: color 300ms ease, transform 300ms ease, border-color 300ms ease;
}

.footer-links a i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--color-teal-hover);
  opacity: 0;
  transform: translateX(0);
  transition: opacity 300ms ease, transform 300ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-white);
  border-bottom-color: rgba(26, 122, 110, 0.15);
  transform: translateX(-4px);
}

.footer-links a:hover i,
.footer-links a:focus-visible i {
  opacity: 1;
  transform: translateX(-4px);
}

.footer-contact-item {
  display: grid;
  gap: 5px;
  padding-block: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-contact-item span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.82rem;
  font-weight: 800;
}

.footer-contact-item a,
.footer-contact-item p {
  width: fit-content;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  overflow-wrap: anywhere;
  border-bottom: 1px solid transparent;
  transition: color 300ms ease, border-color 300ms ease, text-shadow 300ms ease;
}

.footer-contact-item a:hover,
.footer-contact-item a:focus-visible {
  color: var(--color-teal-hover);
  border-bottom-color: rgba(26, 122, 110, 0.48);
  text-shadow: 0 0 18px rgba(26, 122, 110, 0.16);
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.35);
}

.footer-base p {
  margin: 0;
  color: rgba(255, 255, 255, 0.28);
  font-size: 11px;
  font-weight: 600;
  direction: ltr;
}

.footer-base p span {
  color: rgba(26, 122, 110, 0.72);
}

.footer-policy-links {
  display: flex;
  gap: 16px;
}

.footer-policy-links p {
  margin: 0;
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 700;
}

/* Mobile layout */
@media (max-width: 900px) {
  :root {
    --header-height: 56px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    inset-inline: 16px;
    inset-block-start: 62px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    color: var(--color-white);
    background: rgba(32, 30, 30, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav .nav-cta {
    justify-content: center;
    margin-top: 8px;
    min-height: 44px;
    text-align: center;
  }

  .main-nav a::after {
    inset-inline: 12px;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding-block: calc(var(--header-height) + 62px) 58px;
  }

  .hero-content {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-actions {
    align-items: flex-start;
  }

  .hero-brand-visual {
    max-width: 420px;
    margin-inline: auto;
  }

  .hero-visual {
    transform: none;
  }

  .trust-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2)::after {
    display: none;
  }

  .services-section {
    padding-block: 72px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selected-works {
    padding-block: 78px;
  }

  .selected-works-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-listing .projects-grid {
    gap: 14px;
  }

  .filter-bar__scroll {
    justify-content: flex-start;
  }

  .cta-section__content {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-section__actions {
    justify-content: flex-start;
  }

  .about-story-section {
    padding-block: 72px;
  }

  .about-story {
    max-width: 700px;
  }

  .clients-section {
    padding-block: 50px;
  }

  .clients-set {
    gap: 44px;
    padding-inline-end: 44px;
  }

  .client-logo img {
    max-width: 120px;
    max-height: 36px;
  }

  .contact-section {
    padding-block: 72px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-intro {
    max-width: 680px;
  }

  .footer-cta-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 768px) {
  .header-content {
    min-height: 56px;
    justify-content: space-between;
    gap: 0;
    padding-inline: 16px;
  }

  .site-header.is-scrolled .header-content {
    min-height: 56px;
  }

  .site-header .brand-logo {
    order: 1;
    margin-inline: 0;
    min-height: 56px;
    padding: 6px 0;
  }

  .site-header .brand-logo__mark {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  .site-header .brand-logo__divider,
  .site-header .brand-logo__text,
  .site-header .brand-logo__wordmark {
    display: none;
  }

  .main-nav {
    inset-block-start: 58px;
  }

  .menu-toggle {
    order: 2;
    margin-inline: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    margin-left: -30px;
    margin-right: 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, var(--container-width));
  }

  .section-heading h2,
  .contact-intro h2 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
    line-height: 1.25;
    overflow-wrap: break-word;
  }

  .section-heading p:last-child,
  .contact-intro p {
    font-size: 1rem;
  }

  .hero h1 {
    margin-block-end: 18px;
    font-size: clamp(1.85rem, 8.2vw, 2.55rem);
    line-height: 1.38;
    letter-spacing: 0;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 34rem;
  }

  .hero {
    padding-block: calc(var(--header-height) + 46px) 46px;
  }

  .hero-content {
    gap: 28px;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 30px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 18px;
  }

  .hero-brand-visual {
    max-width: 320px;
    padding-block: 0;
  }

  .hero-logo-wrap {
    width: min(260px, 70vw);
    max-height: 310px;
  }

  .hero-logo-wrap img {
    max-height: 310px;
    width: 100%;
  }

  .process-badges {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
  }

  .process-badges span {
    min-width: 0;
    min-height: 44px;
    padding-inline: 6px;
    font-size: 0.78rem;
    white-space: normal;
  }

  .trust-content {
    grid-template-columns: 1fr;
  }

  .trust-item {
    min-height: 72px;
  }

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

  .services-section {
    padding-block: 58px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 20px;
  }

  .service-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
  }

  .selected-works {
    padding-block: 62px;
  }

  .selected-works__heading {
    margin-bottom: 30px;
  }

  .selected-works-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .selected-works__actions {
    margin-top: 26px;
  }

  .portfolio-hero {
    min-height: auto;
    padding-block: calc(var(--header-height) + 48px) 44px;
  }

  .portfolio-hero h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
    line-height: 1.18;
    overflow-wrap: break-word;
  }

  .portfolio-hero p:last-child {
    font-size: 1rem;
  }

  .portfolio-listing {
    padding-block-end: 44px;
  }

  .filter-bar {
    overflow: hidden;
    margin-bottom: 28px;
  }

  .filter-bar__scroll {
    gap: 8px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }

  .filter-bar button {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 0.84rem;
  }

  .filter-count {
    min-width: 20px;
    height: 20px;
    padding-inline: 6px;
  }

  .selected-work-card__content,
  .project-card__content {
    padding: 18px;
  }

  .gallery-card__content {
    padding: 16px;
  }

  .gallery-card__button {
    opacity: 1;
    transform: none;
  }

  .gallery-lightbox {
    padding: 16px;
  }

  .gallery-lightbox__dialog {
    max-height: calc(100vh - 32px);
    border-radius: 10px;
  }

  .gallery-lightbox__image {
    max-height: calc(100vh - 170px);
  }

  .cta-section {
    padding-block: 58px;
  }

  .cta-section__content {
    padding: 24px;
  }

  .cta-section__actions {
    width: 100%;
  }

  .about-story-section {
    padding-block: 54px;
  }

  .about-story {
    padding-inline-start: 18px;
  }

  .about-story h2 {
    margin-bottom: 24px;
    font-size: clamp(1.95rem, 8.4vw, 2.75rem);
    overflow-wrap: break-word;
  }

  .story-text p {
    font-size: 1.02rem;
    line-height: 1.85;
  }

  .story-text p:not(:last-child) {
    margin-bottom: 18px;
  }

  .clients-section {
    padding-block: 44px;
  }

  .clients-header {
    margin-bottom: 24px;
    padding-inline: 24px;
  }

  .clients-set {
    gap: 36px;
    padding-inline-end: 36px;
  }

  .client-logo {
    width: 110px;
    height: 40px;
  }

  .client-logo img {
    max-width: 100px;
    max-height: 32px;
  }

  .contact-section {
    padding-block: 58px;
  }

  .quote-form {
    padding: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-submit {
    width: 100%;
  }

  .footer-cta-content {
    padding-block: 26px;
  }

  .footer-cta-actions {
    width: 100%;
    justify-content: stretch;
  }

  .footer-btn {
    flex: 1 1 100%;
    min-height: 46px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 38px;
  }

  .footer-base {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    text-align: center;
  }

  .footer-policy-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-socials a {
    width: 44px;
    height: 44px;
  }

  .footer-links a {
    min-height: 44px;
  }

  .footer-contact-item a,
  .footer-contact-item p {
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .header-content {
    padding-inline: 16px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7.8vw, 2.25rem);
  }

  .hero-logo-wrap {
    width: min(240px, 68vw);
  }

  .process-badges {
    padding: 7px;
  }

  .process-badges span {
    gap: 5px;
    padding-inline: 4px;
    font-size: 0.74rem;
  }

  .clients-set {
    gap: 28px;
    padding-inline-end: 28px;
  }

  .client-logo {
    width: 96px;
  }

  .client-logo img {
    max-width: 88px;
  }
}

/* Accessibility: skip animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .service-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card.is-visible {
    transition: none;
    transition-delay: 0ms;
  }

  .selected-work-card,
  .selected-work-card__media img,
  .project-card,
  .project-card__media img,
  .client-logo img,
  .client-logo {
    transform: none;
    transition: none !important;
  }

  .clients-track {
    flex-wrap: wrap;
    width: 100%;
  }

  .clients-set {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 24px;
    padding: 0 32px;
  }

  .clients-set-duplicate {
    display: none;
  }

  .clients-marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .about-story {
    animation: none;
  }
}
