/* Flezpy portfolio — dark, cinematic */

:root {
  --ink: #e9eee9;
  --ink-soft: #9aa59c;
  --paper: #0b0d0c;
  --paper-deep: #121614;
  --paper-lift: #171c19;
  --line: rgba(233, 238, 233, 0.1);
  --accent: #3dd6a0;
  --accent-deep: #26b887;
  --accent-glow: rgba(61, 214, 160, 0.18);
  --mist: #7fd4b3;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
}

html.is-ar {
  --font-body: "IBM Plex Sans Arabic", "Figtree", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(
      1100px 520px at 8% -8%,
      rgba(61, 214, 160, 0.09),
      transparent 55%
    ),
    radial-gradient(
      800px 480px at 100% 12%,
      rgba(61, 214, 160, 0.05),
      transparent 50%
    ),
    linear-gradient(
      180deg,
      #0e1210 0%,
      var(--paper) 38%,
      #080a09 100%
    );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: auto -18% -28% auto;
  width: 48vw;
  height: 48vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(
    circle,
    rgba(61, 214, 160, 0.12),
    transparent 68%
  );
  filter: blur(8px);
  z-index: 0;
  animation: glowDrift 18s var(--ease) infinite alternate;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}

html.is-ar h1,
html.is-ar h2,
html.is-ar h3,
html.is-ar .logo,
html.is-ar .footer-brand,
html.is-ar .hero-brand {
  font-family: var(--font-body);
  letter-spacing: 0;
}

p {
  margin: 0;
}


/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(11, 13, 12, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.4s var(--ease),
    background 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 13, 12, 0.88);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  z-index: 60;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.logo:hover {
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 60;
}


/* =========================
   LANGUAGE
========================= */

.lang-dropdown {
  position: relative;
}

.lang-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.15rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: rgba(23, 28, 25, 0.85);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.lang-trigger:hover,
.lang-dropdown.is-open .lang-trigger {
  border-color: rgba(61, 214, 160, 0.45);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.lang-chevron {
  opacity: 0.7;
  transition: transform 0.3s var(--ease);
}

.lang-dropdown.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline-end: 0;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(18, 22, 20, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  z-index: 70;
  animation: dropIn 0.28s var(--ease-out) both;
}

.lang-option {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: start;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lang-option:hover {
  background: rgba(61, 214, 160, 0.1);
  color: var(--ink);
}

.lang-option.is-active {
  color: var(--ink);
  background: rgba(61, 214, 160, 0.14);
}

.lang-option-code {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}


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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-inline-start: auto;
}

.nav-panel,
.nav-links {
  display: contents;
}

.nav-index,
.nav-footnote {
  display: none;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--accent) !important;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--ink);
  margin-inline: auto;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}


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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  transition:
    transform 0.28s var(--ease),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.28s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #07110c;
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 14px 34px rgba(61, 214, 160, 0.28);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(233, 238, 233, 0.22);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(233, 238, 233, 0.04);
}


/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding:
    calc(var(--header-h) + 2rem)
    clamp(1.25rem, 4vw, 3rem)
    clamp(2.5rem, 6vw, 4.5rem);
  overflow: clip;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.08);
  filter: saturate(0.72) contrast(1.08) brightness(0.72);
  animation: heroZoom 22s var(--ease) forwards;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 10, 9, 0.42) 0%,
      rgba(8, 10, 9, 0.58) 42%,
      rgba(8, 10, 9, 0.92) 100%
    ),
    linear-gradient(
      90deg,
      rgba(8, 10, 9, 0.62) 0%,
      transparent 58%
    );
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  color: var(--ink);
}

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

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 1.35rem;
  background: linear-gradient(
    180deg,
    #ffffff 10%,
    #cfe8db 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: riseIn 1s var(--ease-out) both;
}

.hero-services {
  animation: riseIn 1s var(--ease-out) 0.16s both;
}

.hero-services-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(233, 238, 233, 0.5);
  margin-bottom: 0.85rem;
}

.hero-service-stage {
  position: relative;
  min-height: 8.75rem;
}

.hero-service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin: 0;
}

.hero-service[hidden] {
  display: none;
}

.hero-service.is-active {
  animation: serviceIn 0.75s var(--ease-out) both;
}

.hero-service.is-leaving {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  animation: serviceOut 0.4s ease both;
  pointer-events: none;
}

html[dir="rtl"] .hero-service.is-leaving {
  inset: 0 0 auto auto;
}

.hero-service-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--mist);
  padding-top: 0.35rem;
}

.hero-service-copy h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f4f8f5;
  margin-bottom: 0.45rem;
}

.hero-service-copy p {
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.55;
  color: rgba(233, 238, 233, 0.76);
  max-width: 34ch;
}

.hero-service-progress {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.hero-service-dot {
  appearance: none;
  width: 1.65rem;
  height: 0.2rem;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: rgba(233, 238, 233, 0.22);
  cursor: pointer;
  transition:
    background 0.3s ease,
    width 0.45s var(--ease),
    box-shadow 0.3s ease;
}

.hero-service-dot.is-active {
  width: 2.55rem;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.hero-service-dot:hover {
  background: rgba(233, 238, 233, 0.5);
}


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

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }

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

@keyframes serviceIn {
  from {
    opacity: 0;
    transform: translateY(16px) translateX(10px);
    filter: blur(4px);
  }

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

@keyframes serviceOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

html[dir="rtl"] .hero-service.is-active {
  animation-name: serviceInRtl;
}

@keyframes serviceInRtl {
  from {
    opacity: 0;
    transform: translateY(16px) translateX(-10px);
    filter: blur(4px);
  }

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

@keyframes heroZoom {
  from {
    transform: scale(1.12);
  }

  to {
    transform: scale(1);
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

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

@keyframes glowDrift {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 0.7;
  }

  to {
    transform: translate3d(-8%, 10%, 0);
    opacity: 1;
  }
}


/* =========================
   SHARED SECTIONS
========================= */

.section-intro {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-intro h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 0.65rem;
}

.section-intro p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.work,
.about,
.contact {
  position: relative;
  z-index: 1;
  padding:
    clamp(4rem, 10vw, 7rem)
    clamp(1.25rem, 4vw, 3rem);
}


/* =========================
   WORK
========================= */

.work {
  max-width: 1180px;
  margin-inline: auto;
}

.project {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  margin-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.project:last-child {
  margin-bottom: 0;
}

.project-visual {
  overflow: hidden;
  border-radius: 0.55rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.project-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition:
    transform 0.9s var(--ease-out),
    filter 0.7s ease;
  filter: saturate(0.88);
}

.project:hover .project-visual img {
  transform: scale(1.045);
  filter: saturate(1);
}

.project-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.project-copy h3 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.project-copy > p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  max-width: 38ch;
}

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

.project-meta li {
  position: relative;
  padding-inline-start: 1.1rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.project-meta li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 1px;
}

@media (min-width: 860px) {
  .project {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .project-alt {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .project-alt .project-visual {
    order: 2;
  }

  .project-alt .project-copy {
    order: 1;
  }
}


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

.about-grid {
  max-width: 1100px;
  margin-inline: auto;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.about-visual {
  overflow: hidden;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.85);
  transition:
    transform 0.9s var(--ease-out),
    filter 0.6s ease;
}

.about-visual:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}

.about-copy h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 40ch;
}

.about-stack {
  margin-top: 1.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink) !important;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}


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

.contact {
  width: 100%;
}

.contact-panel {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    radial-gradient(
      500px 180px at 50% 0%,
      var(--accent-glow),
      transparent 70%
    ),
    rgba(18, 22, 20, 0.65);
}

.contact-panel h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.contact-numbers {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.contact-numbers a {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    transform 0.25s var(--ease);
}

.contact-numbers a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}


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

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding:
    2rem
    clamp(1.25rem, 4vw, 3rem)
    2.5rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-note {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-top {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  transition: color 0.2s ease;
}

.footer-top:hover {
  color: #8aefc8;
}


/* =========================
   REVEAL ON SCROLL
========================= */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(8px);
  transition:
    opacity 0.8s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.8s var(--ease-out) var(--reveal-delay, 0ms),
    filter 0.8s var(--ease-out) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}


/* =========================
   MOBILE NAV
========================= */

@media (max-width: 760px) {

  .nav-toggle {
    display: flex;
    z-index: 60;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .site-header.is-nav-open {
    background: rgba(11, 13, 12, 0.98);
    border-bottom-color: var(--line);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    margin-inline-start: 0;
    display: block;
    z-index: 55;
    background:
      radial-gradient(
        900px 420px at 100% 0%,
        rgba(61, 214, 160, 0.12),
        transparent 55%
      ),
      linear-gradient(
        180deg,
        #101412 0%,
        var(--paper) 45%,
        #080a09 100%
      );
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition:
      opacity 0.35s var(--ease),
      visibility 0.35s var(--ease),
      transform 0.35s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding:
      1.5rem
      clamp(1.25rem, 5vw, 2rem)
      2rem;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
  }

  .nav-index {
    display: inline-block;
    width: 2.25rem;
    flex-shrink: 0;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--accent);
  }

  .site-nav a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 8vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ink);
    opacity: 0;
    transform: translateY(14px);
    transition:
      color 0.2s ease,
      opacity 0.4s var(--ease),
      transform 0.4s var(--ease);
  }

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

  .site-nav.is-open a {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav.is-open a:nth-child(1) {
    transition-delay: 0.06s;
  }

  .site-nav.is-open a:nth-child(2) {
    transition-delay: 0.12s;
  }

  .site-nav.is-open a:nth-child(3) {
    transition-delay: 0.18s;
  }

  .site-nav.is-open a:nth-child(4) {
    transition-delay: 0.24s;
  }

  .site-nav a:active {
    color: var(--accent);
  }

  .nav-cta {
    color: var(--ink) !important;
  }

  .nav-cta .nav-label {
    color: var(--accent);
  }

  .nav-footnote {
    display: block;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-soft);
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.4s var(--ease) 0.3s,
      transform 0.4s var(--ease) 0.3s;
  }

  .site-nav.is-open .nav-footnote {
    opacity: 1;
    transform: translateY(0);
  }

  .hero {
    align-items: end;
    min-height: 100svh;
  }

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


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

  .contact {
    width: 100%;
    padding:
      3.5rem
      1rem;
  }

  .contact-panel {
    width: 100%;
    max-width: 100%;
    padding:
      1.5rem
      1rem;
    border-radius: 0.8rem;
  }

  .contact-panel h2 {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
  }

  .contact-numbers {
    width: 100%;
    gap: 0.8rem;
  }

  .contact-numbers a {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.25rem 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 380px) {

  .contact {
    padding:
      3rem
      0.75rem;
  }

  .contact-panel {
    padding:
      1.25rem
      0.75rem;
  }

  .contact-panel h2 {
    font-size: 1.75rem;
  }

  .contact-numbers {
    gap: 0.6rem;
  }

  .contact-numbers a {
    font-size: 0.9rem;
  }
}


/* =========================
   FLOATING CHAT
========================= */

.float-dock {
  position: fixed;
  inset-inline-end: 1.15rem;
  bottom: 1.15rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.chat-panel {
  width: min(20.5rem, calc(100vw - 2.3rem));
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(16, 20, 18, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: dropIn 0.28s var(--ease-out) both;
}

.chat-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding:
    0.9rem
    0.95rem
    0.75rem;
  background:
    linear-gradient(
      180deg,
      rgba(61, 214, 160, 0.14),
      transparent
    );
  border-bottom: 1px solid var(--line);
}

.chat-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
}

.chat-panel-status {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--accent);
}

.chat-panel-close {
  appearance: none;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.chat-panel-close:hover {
  color: var(--ink);
  background: rgba(233, 238, 233, 0.06);
}

.chat-panel-body {
  padding: 0.95rem;
  min-height: 7.5rem;
}

.chat-bubble {
  max-width: 90%;
  padding:
    0.7rem
    0.85rem;
  border-radius:
    0.85rem
    0.85rem
    0.85rem
    0.2rem;
  background: rgba(61, 214, 160, 0.12);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

html[dir="rtl"] .chat-bubble {
  border-radius:
    0.85rem
    0.85rem
    0.2rem
    0.85rem;
}

.chat-panel-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
}

.chat-panel-form input {
  flex: 1;
  min-width: 0;
  min-height: 2.4rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(8, 10, 9, 0.7);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.chat-panel-form input:focus {
  outline: 2px solid var(--accent-glow);
  border-color: rgba(61, 214, 160, 0.5);
}

.chat-panel-form button {
  appearance: none;
  min-height: 2.4rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #07110c;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}


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

.float-btn {
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #07110c;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s ease;
}

.float-btn svg {
  width: 1.45rem;
  height: 1.45rem;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.04);
}

.float-chat {
  background: var(--ink);
  color: var(--paper);
}

.float-chat.is-open {
  background: var(--accent);
  color: #07110c;
}

.float-whatsapp {
  background: #25d366;
  color: #06210f;
}

.float-whatsapp:hover {
  box-shadow:
    0 14px 32px
    rgba(37, 211, 102, 0.35);
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-brand,
  .hero-services,
  .hero-service.is-active,
  .hero-service.is-leaving,
  .reveal,
  .btn,
  .site-nav,
  .site-nav a,
  .nav-footnote,
  .page-glow,
  .lang-menu,
  .chat-panel,
  .float-btn {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .site-nav.is-open a,
  .site-nav.is-open .nav-footnote {
    opacity: 1 !important;
    transform: none !important;
  }
}