:root {
  --color-primary: #E86818;
  --color-primary-rgb: 232, 104, 24;
  --color-primary-hover: #D4560D;
  --color-secondary: #101B35;
  --color-secondary-rgb: 16, 27, 53;
  --color-secondary-surface: #192847;
  --color-surface: #F4E7DC;
  --color-heading: #111827;
  --color-text: #566070;
  --color-on-dark: #F8FAFC;
  --color-on-dark-muted: #AEB8CC;
  --color-accent: #2A9D8F;
  --color-service-card: #A8B7A3;
  --hero-base: #101B35;
  --hero-teal: #3c2924;
  --hero-violet: #192847;
}

html {
  scroll-behavior: auto;
}

/* Reliable mobile navigation for the static export. */
.ayham-mobile-menu {
  display: none;
}

@media (max-width: 767px) {
  html.mobile-menu-open,
  html.mobile-menu-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .ayham-mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 480ms;
  }

  .ayham-mobile-menu.is-open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .ayham-mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(5, 10, 24, 0.72);
    opacity: 0;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: opacity 320ms ease, backdrop-filter 420ms ease;
  }

  .ayham-mobile-menu.is-open .ayham-mobile-menu__backdrop {
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .ayham-mobile-menu__panel {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    max-height: calc(100dvh - 96px);
    overflow: auto;
    padding: 18px;
    color: #fff;
    background:
      radial-gradient(circle at 85% 0%, rgba(251, 103, 3, 0.18), transparent 34%),
      rgba(17, 30, 61, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(5, 10, 24, 0.42);
    opacity: 0;
    transform: translate3d(0, -18px, 0) scale(0.97);
    transform-origin: top center;
    transition: opacity 260ms ease, transform 420ms cubic-bezier(.16, 1, .3, 1);
  }

  .ayham-mobile-menu.is-open .ayham-mobile-menu__panel {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .ayham-mobile-menu__links {
    display: grid;
    gap: 5px;
  }

  .ayham-mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 55px;
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: color 180ms ease, background 180ms ease,
      opacity 280ms ease calc(var(--menu-index) * 35ms + 100ms),
      transform 380ms cubic-bezier(.16, 1, .3, 1) calc(var(--menu-index) * 35ms + 100ms);
  }

  .ayham-mobile-menu.is-open .ayham-mobile-menu__link {
    opacity: 1;
    transform: translateY(0);
  }

  .ayham-mobile-menu__link:active,
  .ayham-mobile-menu__link:focus-visible {
    color: #E86818;
    background: rgba(255, 255, 255, 0.07);
    outline: none;
  }

  .ayham-mobile-menu__number {
    direction: ltr;
    color: #E86818;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  [dir="rtl"] .ayham-mobile-menu__number {
    order: 2;
  }

  .ayham-mobile-menu__actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .ayham-mobile-menu__language,
  .ayham-mobile-menu__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
  }

  .ayham-mobile-menu__language {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ayham-mobile-menu__contact {
    color: #101B35;
    background: #E86818;
    border: 2px solid #101B35;
    box-shadow: 3px 3px 0 #101B35;
  }

  .ayham-mobile-menu__toggle {
    position: relative;
    z-index: 2;
  }

  .ayham-mobile-menu__toggle span {
    transform-origin: center;
  }

  .ayham-mobile-menu__toggle.is-open span:nth-child(1) {
    width: 18px !important;
    transform: translateY(7px) rotate(45deg) !important;
  }

  .ayham-mobile-menu__toggle.is-open span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
  }

  .ayham-mobile-menu__toggle.is-open span:nth-child(3) {
    width: 18px !important;
    transform: translateY(-7px) rotate(-45deg) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ayham-mobile-menu *,
  .ayham-mobile-menu__toggle span {
    transition-duration: 0.01ms !important;
  }
}

/* Meeting booking card */
.booking-card {
  padding: clamp(24px, 4vw, 40px) !important;
  color: var(--color-secondary);
}

.booking-head {
  margin-bottom: 28px;
}

.booking-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  margin-bottom: 12px;
  color: var(--color-secondary);
  background: rgba(var(--color-primary-rgb), 0.14);
  border: 1px solid rgba(var(--color-primary-rgb), 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.booking-title {
  margin: 0 0 8px;
  color: var(--color-secondary);
  font-family: "TAN Headline", "Ahmed Serif", serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.35;
}

.ar-rtl .booking-title {
  font-family: "Ahmed Serif", serif;
}

.booking-intro {
  max-width: 620px;
  margin: 0;
  color: rgba(var(--color-secondary-rgb), 0.66);
  font-size: 14px;
  line-height: 1.8;
}

.booking-form {
  display: grid;
  gap: 20px;
}

.booking-field {
  display: grid;
  gap: 8px;
}

.booking-field label,
.booking-times-head strong,
.booking-details-title {
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 800;
}

.booking-field input,
.booking-field textarea {
  width: 100%;
  box-sizing: border-box;
  color: var(--color-secondary);
  background: #f7f7f7;
  border: 2px solid #e8e8e8;
  border-radius: 13px;
  outline: none;
  font: inherit;
  font-size: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.booking-field input {
  height: 50px;
  padding: 0 15px;
}

.booking-field textarea {
  min-height: 96px;
  padding: 13px 15px;
  resize: vertical;
  line-height: 1.6;
}

.booking-field input:focus,
.booking-field textarea:focus {
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.1);
}

.booking-times-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}

.booking-times-head > div:first-child {
  display: grid;
  gap: 3px;
}

.booking-times-head span {
  color: rgba(var(--color-secondary-rgb), 0.54);
  font-size: 10px;
}

.booking-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.booking-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.booking-legend i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.booking-legend .is-available {
  background: #22a95a;
  box-shadow: 0 0 0 3px rgba(34, 169, 90, 0.13);
}

.booking-legend .is-booked {
  background: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12);
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 70px;
}

.booking-slot {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 66px;
  padding: 8px;
  border-radius: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.booking-slot strong {
  direction: ltr;
  font-size: 15px;
}

.booking-slot span {
  font-size: 9px;
  font-weight: 700;
}

.booking-slot.is-available {
  color: #146c3a;
  background: #eaf8f0;
  border: 1.5px solid #8ed8ae;
}

.booking-slot.is-available:hover,
.booking-slot.is-available:focus-visible {
  transform: translateY(-2px);
  border-color: #22a95a;
  box-shadow: 0 7px 18px rgba(34, 169, 90, 0.16);
  outline: none;
}

.booking-slot.is-available.is-selected {
  color: #fff;
  background: #199b50;
  border-color: #10763b;
  box-shadow: 3px 3px 0 #0e6534;
}

.booking-slot.is-booked {
  color: #a9282d;
  background: #fff0f0;
  border: 1.5px solid #f0a5a8;
  cursor: not-allowed;
  opacity: 0.74;
}

.booking-loading {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 70px;
  margin: 0;
  color: rgba(var(--color-secondary-rgb), 0.55);
  background: #f7f7f7;
  border: 1px dashed #d9dde6;
  border-radius: 14px;
  font-size: 12px;
}

.booking-loading.is-error {
  color: #a9282d;
  background: #fff0f0;
  border-color: #f0a5a8;
}

.booking-selected {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  color: var(--color-secondary);
  background: rgba(var(--color-primary-rgb), 0.09);
  border: 1px solid rgba(var(--color-primary-rgb), 0.24);
  border-radius: 13px;
  font-size: 11px;
}

.booking-selected:not([hidden]) {
  display: flex;
}

.booking-selected strong {
  color: var(--color-primary);
  font-size: 12px;
}

.booking-details-title {
  padding-top: 4px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e9e9e9;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.booking-feedback {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

.booking-feedback.is-success,
.booking-feedback.is-warning,
.booking-feedback.is-error {
  display: block;
}

.booking-feedback.is-success {
  color: #146c3a;
  background: #eaf8f0;
  border: 1px solid #8ed8ae;
}

.booking-feedback.is-warning {
  color: #825007;
  background: #fff5df;
  border: 1px solid #f0ce85;
}

.booking-feedback.is-error {
  color: #a9282d;
  background: #fff0f0;
  border: 1px solid #f0a5a8;
}

.booking-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  color: var(--color-secondary);
  background: var(--color-primary);
  border: 2px solid var(--color-secondary);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--color-secondary);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.booking-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-submit:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 5px 7px 0 var(--color-secondary);
}

.booking-submit:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.booking-submit.is-loading svg {
  animation: bookingPulse 900ms ease-in-out infinite alternate;
}

@keyframes bookingPulse {
  to { transform: scale(0.78); opacity: 0.45; }
}

@media (max-width: 640px) {
  .booking-times-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-legend {
    justify-content: flex-start;
  }

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

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

  .booking-selected:not([hidden]) {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* 2026 editorial palette: role-based surfaces and readable text. */
body {
  background: var(--color-secondary);
  color: var(--color-on-dark);
}

main > section:nth-child(even) {
  background-color: var(--color-secondary-surface) !important;
}

main > section:nth-child(odd) {
  background-color: var(--color-secondary) !important;
}

#about [style*="background:#fff"],
#services [style*="background:#fff"],
#projects .proj-item,
#projects .proj-item-ar,
#experience .experience-reveal-panel,
#certifications .cert-card,
#certifications .cert-card-ar,
#contact [style*="background:#fff"],
.booking-card {
  background: var(--color-surface) !important;
}

#about [style*="background:#fff"] h2,
#about [style*="background:#fff"] h3,
#services [style*="background:#fff"] h2,
#services [style*="background:#fff"] h3,
#projects .proj-item h2,
#projects .proj-item h3,
#projects .proj-item-ar h2,
#projects .proj-item-ar h3,
#experience .experience-reveal-panel h2,
#experience .experience-reveal-panel h3,
#certifications .cert-card h2,
#certifications .cert-card h3,
#certifications .cert-card-ar h2,
#certifications .cert-card-ar h3,
#contact [style*="background:#fff"] h2,
#contact [style*="background:#fff"] h3,
.booking-card h3,
.booking-card strong,
.booking-card label {
  color: var(--color-heading) !important;
}

#about [style*="background:#fff"] p,
#services [style*="background:#fff"] p,
#projects .proj-item p,
#projects .proj-item-ar p,
#experience .experience-reveal-panel p,
#certifications .cert-card p,
#certifications .cert-card-ar p,
#contact [style*="background:#fff"] p,
.booking-card .booking-intro {
  color: var(--color-text) !important;
}

[style*="color:#fff"] {
  color: var(--color-on-dark) !important;
}

main > section:not(#about):not(#services):not(#projects):not(#experience):not(#certifications):not(#contact) p[style*="rgba(255,255,255"] {
  color: var(--color-on-dark-muted) !important;
}

[style*="background:#E86818"]:is(a, button):hover,
[style*="background: #E86818"]:is(a, button):hover,
.custom-service-cta:hover,
.demo-project-cta:hover,
.booking-submit:not(:disabled):hover {
  background: var(--color-primary-hover) !important;
}

.booking-legend .is-available {
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.13);
}

.booking-slot.is-available {
  color: #17685f;
  background: #e8f6f4;
  border-color: #89cec6;
}

.booking-slot.is-available:hover,
.booking-slot.is-available:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 7px 18px rgba(42, 157, 143, 0.18);
}

.booking-slot.is-available.is-selected {
  color: var(--color-on-dark);
  background: var(--color-accent);
  border-color: #207f74;
  box-shadow: 3px 3px 0 #17685f;
}

/* Only the orange service cards use the soft sage treatment. */
#services div.rounded-\[24px\].p-8.md\:p-14[style*="background:#E86818"] {
  background: var(--color-service-card) !important;
  color: var(--color-secondary) !important;
}

#services div.rounded-\[24px\].p-8.md\:p-14[style*="background:#E86818"] .custom-service-label,
#services div.rounded-\[24px\].p-8.md\:p-14[style*="background:#E86818"] .custom-service-title,
#services div.rounded-\[24px\].p-8.md\:p-14[style*="background:#E86818"] .custom-service-lead,
#services div.rounded-\[24px\].p-8.md\:p-14[style*="background:#E86818"] .custom-service-description,
#services div.rounded-\[24px\].p-8.md\:p-14[style*="background:#E86818"] .custom-service-list,
#services div.rounded-\[24px\].p-8.md\:p-14[style*="background:#E86818"] .custom-service-list span,
#services div.rounded-\[24px\].p-8.md\:p-14[style*="background:#E86818"] .custom-service-closing {
  color: var(--color-secondary) !important;
}

.footer-social-svg {
  display: block;
  width: 17px;
  height: 17px;
  color: var(--color-secondary);
}

/* The AI chat component may be mounted again by React after page load. */
.askahmed-window,
button[aria-label*="open chat" i],
button[style*="width:60px"][style*="height:60px"][style*="background:#E86818"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Shared wavy backdrop for the first (hero) section on both languages. */
main > section:first-child {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(var(--color-primary-rgb), 0.035), transparent 42%),
    linear-gradient(180deg, #111e3d 0%, var(--hero-base) 100%) !important;
}

main > section:first-child::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -24%;
  left: -12%;
  width: 124%;
  height: 77%;
  pointer-events: none;
  transform-origin: 50% 0%;
  border-radius: 0 0 48% 52% / 0 0 25% 31%;
  background:
    radial-gradient(ellipse at 52% 16%, rgba(var(--color-primary-rgb), 0.1), transparent 27%),
    radial-gradient(ellipse at 46% 70%, rgba(var(--color-primary-rgb), 0.48), transparent 52%),
    linear-gradient(108deg, var(--color-secondary) 0%, #173448 31%, var(--hero-teal) 54%, #172b43 76%, var(--hero-violet) 100%);
  filter: saturate(112%);
  box-shadow: 0 42px 100px rgba(var(--color-primary-rgb), 0.12);
  animation: heroGradientWave 11s ease-in-out infinite alternate;
}

main > section:first-child::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -19%;
  left: -17%;
  width: 134%;
  height: 70%;
  pointer-events: none;
  transform-origin: 50% 0%;
  border-radius: 0 0 54% 46% / 0 0 18% 27%;
  background:
    radial-gradient(ellipse at 43% 74%, rgba(var(--color-primary-rgb), 0.22), transparent 54%),
    radial-gradient(ellipse at 78% 64%, rgba(33, 22, 66, 0.3), transparent 48%);
  filter: blur(30px);
  animation: heroGradientWaveSoft 15s ease-in-out infinite alternate-reverse;
}

@keyframes heroGradientWave {
  0% {
    transform: translate3d(-2.5%, -1%, 0) rotate(-1.4deg) scaleX(1.02);
    border-radius: 0 0 48% 52% / 0 0 25% 31%;
  }
  48% {
    transform: translate3d(1.5%, 3.5%, 0) rotate(1deg) scaleX(1.07);
    border-radius: 0 0 56% 44% / 0 0 34% 20%;
  }
  100% {
    transform: translate3d(-1%, 7%, 0) rotate(-0.5deg) scaleX(1.035);
    border-radius: 0 0 43% 57% / 0 0 20% 36%;
  }
}

@keyframes heroGradientWaveSoft {
  0% {
    transform: translate3d(3%, 1%, 0) scaleX(1.04);
    opacity: 0.72;
  }
  100% {
    transform: translate3d(-4%, 10%, 0) scaleX(1.12);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  main > section:first-child::before,
  main > section:first-child::after {
    animation: none;
  }
}

.projects-reveal-ready .proj-header-ar,
.projects-reveal-ready .proj-header {
  opacity: 0 !important;
  transform: translate3d(0, 34px, 0);
  filter: blur(6px);
  transition:
    opacity 720ms cubic-bezier(.2,.75,.2,1),
    transform 900ms cubic-bezier(.16,1,.3,1),
    filter 650ms ease;
  will-change: opacity, transform, filter;
}

.projects-reveal-ready .proj-item-ar,
.projects-reveal-ready .proj-item {
  opacity: 0 !important;
  transform: translate3d(0, 58px, 0) scale(.985);
  filter: blur(7px);
  transition:
    opacity 760ms cubic-bezier(.2,.75,.2,1) var(--project-reveal-delay, 0ms),
    transform 980ms cubic-bezier(.16,1,.3,1) var(--project-reveal-delay, 0ms),
    filter 680ms ease var(--project-reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.projects-reveal-ready .proj-header-ar.is-revealed,
.projects-reveal-ready .proj-header.is-revealed,
.projects-reveal-ready .proj-item-ar.is-revealed,
.projects-reveal-ready .proj-item.is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .projects-reveal-ready .proj-header-ar,
  .projects-reveal-ready .proj-header,
  .projects-reveal-ready .proj-item-ar,
  .projects-reveal-ready .proj-item {
    transition-duration: 0.01ms !important;
    filter: none !important;
  }
}

.experience-reveal-ready .exp-card-ar,
.experience-reveal-ready .exp-card {
  opacity: 1 !important;
}

.experience-reveal-ready .experience-reveal-panel {
  opacity: 0;
  transform: translate3d(0, 48px, 0) scale(.985);
  filter: blur(7px);
  transition:
    opacity 720ms cubic-bezier(.2,.75,.2,1) var(--experience-reveal-delay, 0ms),
    transform 920ms cubic-bezier(.16,1,.3,1) var(--experience-reveal-delay, 0ms),
    filter 650ms ease var(--experience-reveal-delay, 0ms),
    box-shadow 300ms ease;
  will-change: opacity, transform, filter;
}

.experience-reveal-ready .experience-reveal-point {
  opacity: 0;
  transform: scale(.15);
  filter: blur(4px);
  transition:
    opacity 480ms ease calc(var(--experience-reveal-delay, 0ms) + 150ms),
    transform 720ms cubic-bezier(.34,1.56,.64,1) calc(var(--experience-reveal-delay, 0ms) + 120ms),
    filter 420ms ease calc(var(--experience-reveal-delay, 0ms) + 120ms),
    box-shadow 600ms ease calc(var(--experience-reveal-delay, 0ms) + 180ms);
  will-change: opacity, transform, filter;
}

.experience-reveal-ready .is-revealed .experience-reveal-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.experience-reveal-ready .is-revealed .experience-reveal-point {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  box-shadow:
    0 0 0 5px rgba(var(--color-primary-rgb), .1),
    0 0 22px rgba(var(--color-primary-rgb), .45);
}

@media (prefers-reduced-motion: reduce) {
  .experience-reveal-ready .experience-reveal-panel,
  .experience-reveal-ready .experience-reveal-point {
    transition-duration: 0.01ms !important;
    filter: none !important;
  }
}

.custom-service-copy {
  color: var(--color-secondary);
  max-width: 680px;
}

.custom-service-main {
  grid-column: 1 / -1 !important;
  width: 100%;
}

.custom-service-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  opacity: .5;
}

.custom-service-title {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.35;
}

.custom-service-lead {
  margin-bottom: 10px;
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  font-weight: 800;
  line-height: 1.75;
}

.custom-service-description,
.custom-service-closing {
  font-size: .94rem;
  line-height: 1.75;
  opacity: .7;
}

.custom-service-list {
  display: grid;
  gap: 5px;
  margin: 10px 0 14px;
  padding: 0;
  list-style: none;
}

.custom-service-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.55;
}

.custom-service-list li > span:first-child {
  color: #19984a;
  font-weight: 900;
}

.custom-service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 42px;
  padding: 0 22px;
  border: 2px solid var(--color-secondary);
  border-radius: 999px;
  background: var(--color-secondary);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  box-shadow: 3px 3px 0 rgba(var(--color-secondary-rgb), .22);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.custom-service-cta:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 rgba(var(--color-secondary-rgb), .2);
}

@media (max-width: 767px) {
  .custom-service-description,
  .custom-service-closing,
  .custom-service-list li {
    font-size: .78rem;
  }

  .custom-service-title {
    margin-bottom: 10px;
    font-size: 1.45rem;
  }

  .custom-service-lead {
    margin-bottom: 6px;
    font-size: .86rem;
  }

  .custom-service-list {
    gap: 2px;
    margin: 6px 0 8px;
  }

  .custom-service-closing {
    display: none;
  }

  .custom-service-cta {
    margin-top: 10px;
    min-height: 36px;
  }
}

.demo-project-visual {
  position: relative;
  display: flex;
  min-height: 500px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 25%, rgba(232,104,24,.52), transparent 28%),
    linear-gradient(145deg, #101a35 0%, var(--color-secondary) 62%, #253d78 100%) !important;
  isolation: isolate;
}

.demo-project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .12;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 22px 22px;
}

.demo-project-visual strong {
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(7rem, 16vw, 12rem);
  font-weight: 400;
  line-height: 1;
  opacity: .88;
  text-shadow: 0 12px 50px rgba(0,0,0,.22);
}

.demo-project-visual-label {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  backdrop-filter: blur(8px);
}

.demo-project-shape {
  position: absolute;
  z-index: -1;
  border: 2px solid rgba(232,104,24,.72);
}

.demo-project-shape-one {
  width: 190px;
  height: 190px;
  border-radius: 42% 58% 62% 38%;
  transform: translate(-110px, 90px) rotate(24deg);
}

.demo-project-shape-two {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  transform: translate(120px, -105px);
  background: rgba(232,104,24,.1);
}

.demo-project-content {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.2rem) !important;
  color: var(--color-secondary) !important;
}

.demo-project-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(var(--color-primary-rgb), .13);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
}

.demo-project-title {
  margin-bottom: 16px;
  color: var(--color-secondary);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.35;
}

.demo-project-description {
  max-width: 580px;
  margin-bottom: 24px;
  color: rgba(var(--color-secondary-rgb), .65);
  font-size: .95rem;
  line-height: 1.8;
}

.demo-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.demo-project-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(var(--color-secondary-rgb), .1);
  border-radius: 10px;
  background: #f4f4f5;
  font-size: 11px;
  font-weight: 700;
}

.demo-project-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 20px;
  border: 2px solid var(--color-secondary);
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 3px 3px 0 var(--color-secondary);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.demo-project-cta:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--color-secondary);
}

@media (max-width: 767px) {
  .demo-project-visual {
    min-height: 280px !important;
  }

  .demo-project-content {
    padding: 28px 24px 34px !important;
  }
}

.demo-certificate-card {
  color: var(--color-secondary);
}

.demo-certificate {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.demo-certificate-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.demo-certificate-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--color-secondary);
  border-radius: 13px;
  font-size: 24px;
  font-weight: 900;
}

.demo-certificate-provider,
.demo-certificate-type {
  display: block;
}

.demo-certificate-provider {
  font-size: 12px;
  font-weight: 850;
}

.demo-certificate-type {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  opacity: .5;
}

.demo-certificate-title {
  margin-bottom: 11px;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.4;
}

.demo-certificate-description {
  margin-bottom: 18px;
  font-size: .86rem;
  line-height: 1.75;
  opacity: .66;
}

.demo-certificate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.demo-certificate-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(var(--color-secondary-rgb), .12);
  border-radius: 999px;
  background: rgba(var(--color-secondary-rgb), .06);
  font-size: 10px;
  font-weight: 750;
}

.demo-certificate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--color-secondary-rgb), .12);
}

.demo-certificate-footer code {
  font-size: 10px;
  font-weight: 800;
}

.demo-certificate-footer span {
  font-size: 9px;
  font-weight: 700;
  opacity: .52;
}

@media (max-width: 768px) {
  main > section:first-child::before {
    top: -11%;
    left: -34%;
    width: 168%;
    height: 62%;
  }

  main > section:first-child::after {
    top: -7%;
    left: -40%;
    width: 180%;
    height: 56%;
  }
}

.difference-trigger {
  display: inline-block;
  position: relative;
  z-index: 3;
  cursor: pointer;
  color: var(--color-primary);
  -webkit-text-fill-color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.1em;
  text-decoration-color: rgba(var(--color-primary-rgb), 0.38);
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
  user-select: none;
}

.difference-trigger:hover,
.difference-trigger:focus-visible {
  color: #ff8a3d;
  -webkit-text-fill-color: #ff8a3d;
  transform: translateY(-0.035em);
  text-shadow: 0 0 34px rgba(var(--color-primary-rgb), 0.3);
  outline: none;
}

.difference-trigger[aria-pressed="true"] {
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-decoration-color: var(--color-primary);
}

.difference-stage {
  height: 450px !important;
  position: relative !important;
  overflow: hidden !important;
  direction: ltr;
  margin-top: -10px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(var(--color-primary-rgb), 0.045), transparent 54%);
}

.difference-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--pill-bg);
  color: var(--pill-color);
  font: 700 14px/1.1 system-ui, -apple-system, "Segoe UI", sans-serif;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  will-change: transform;
  user-select: none;
}

.difference-stage.is-arranged .difference-pill {
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22);
}

@media (max-width: 700px) {
  .difference-stage {
    height: 540px !important;
  }

  .difference-pill {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .difference-pill {
    transition-duration: 0.01ms !important;
  }
}

.how-work-reveal-ready .hiw-step-ar,
.how-work-reveal-ready .hiw-step {
  opacity: 0 !important;
  transform: translate3d(0, 48px, 0) scale(0.985);
  filter: blur(7px);
  transition:
    opacity 760ms cubic-bezier(.2,.75,.2,1) var(--reveal-delay, 0ms),
    transform 880ms cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms),
    filter 680ms ease var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.how-work-reveal-ready .hiw-step-ar.is-revealed,
.how-work-reveal-ready .hiw-step.is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.how-work-reveal-ready .hiw-num-ar,
.how-work-reveal-ready .hiw-num {
  transform: scale(0.72) translateY(12px);
  opacity: 0;
  filter: blur(5px);
  transition:
    opacity 600ms ease calc(var(--reveal-delay, 0ms) + 120ms),
    transform 820ms cubic-bezier(.16,1,.3,1) calc(var(--reveal-delay, 0ms) + 90ms),
    filter 560ms ease calc(var(--reveal-delay, 0ms) + 100ms),
    text-shadow 500ms ease;
}

.how-work-reveal-ready .is-revealed .hiw-num-ar,
.how-work-reveal-ready .is-revealed .hiw-num {
  transform: scale(1) translateY(0);
  opacity: 1;
  filter: blur(0);
  text-shadow: 0 0 28px rgba(var(--color-primary-rgb), 0.22);
}

.how-work-neon-line {
  z-index: 3;
  transform-origin: top center !important;
  background: linear-gradient(
    to bottom,
    rgba(var(--color-primary-rgb), 0.2),
    var(--color-primary) 12%,
    #ff9b59 58%,
    var(--color-primary)
  ) !important;
  box-shadow:
    0 0 5px rgba(var(--color-primary-rgb), 0.9),
    0 0 14px rgba(var(--color-primary-rgb), 0.52),
    0 0 28px rgba(var(--color-primary-rgb), 0.22);
  will-change: transform;
}

.how-work-neon-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff8a3d;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transform: translateX(-50%);
  box-shadow:
    0 0 8px rgba(var(--color-primary-rgb), 1),
    0 0 22px rgba(var(--color-primary-rgb), 0.75),
    0 0 38px rgba(var(--color-primary-rgb), 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .how-work-reveal-ready .hiw-step-ar,
  .how-work-reveal-ready .hiw-step,
  .how-work-reveal-ready .hiw-num-ar,
  .how-work-reveal-ready .hiw-num {
    transition-duration: 0.01ms !important;
    filter: none !important;
  }
}
