/* Creativity — component styles. Every value comes from tokens.css; motion values are listed in the README. */

:root {
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-press: 200ms;
  --dur-reveal: 700ms;
  --rise: 20px;
}

/* ---------- Base ---------- */
.ct, .ct * { box-sizing: border-box; }
.ct {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg-100);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:where(.ct) img { display: block; max-width: 100%; }
:where(.ct) a { color: inherit; text-decoration: none; }
:where(.ct) p { margin: 0; }
:where(.ct) :is(h1, h2, h3, h4) { margin: 0; font-weight: 500; }
:where(.ct) :is(b, strong) { font-weight: 500; }
.ct :focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--little-border-radius); }
.ct .on-dark :focus-visible, .ct-dark :focus-visible { outline-color: var(--sky); }
.ct:lang(ar) { --font-sans: var(--font-sans-ar); }
.ct:lang(ar), .ct:lang(ar) * { letter-spacing: 0 !important; }
.ct-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ct-container { width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter-desktop)); margin: 0 auto; padding: 0 var(--gutter-desktop); }
.ct-section { padding: var(--space-12) 0; }
/* Menu links land each section just below the floating nav (nav top offset + solid bar height) */
html { scroll-padding-top: var(--space-12); }
@media (max-width: 899px) { html { scroll-padding-top: calc(12px + 76px); } }
.ct-section--alt { background: var(--bg-200); }

.ct-muted { color: var(--ink-muted); }
.ct-ghost { color: var(--ink-ghost); }

/* Type scale — responsive steps on top of the token classes */
.t-hero { text-wrap: balance; }
.t-section, .t-statement { text-wrap: balance; }
.t-label { text-transform: uppercase; }
@media (max-width: 1023px) {
  .t-hero { font-size: 60px; }
  .t-section { font-size: 42px; }
  .t-stat { font-size: 52px; }
}
@media (max-width: 639px) {
  .ct-container { padding: 0 var(--gutter-mobile); }
  .ct-section { padding: var(--space-6) 0; }
  .t-hero { font-size: 44px; line-height: 1.04; }
  .t-section { font-size: 34px; }
  .t-statement { font-size: 28px; }
  .t-card-title { font-size: 22px; }
  .t-stat { font-size: 44px; }
  .t-body-lg { font-size: 17px; }
}

/* ---------- Buttons ---------- */
.ct-btn {
  --btn-bg: var(--midnight); --btn-fg: var(--on-dark); --btn-bd: transparent;
  display: inline-flex; align-items: center; gap: 14px;
  height: var(--control-height); padding-block: 0; padding-inline: 24px 6px;
  border-radius: var(--little-border-radius); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 500 15px/1 var(--font-sans); letter-spacing: 0;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-press) var(--ease-out), color var(--dur-press) var(--ease-out), border-color var(--dur-press) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.ct-btn:not(:has(.ct-btn__arrow)) { padding: 0 24px; }
.ct-btn__arrow {
  width: 38px; height: 38px; border-radius: calc(var(--little-border-radius) - 3px);
  display: grid; place-items: center; flex: none;
  background: var(--on-dark); color: var(--midnight);
  transition: transform var(--dur-press) var(--ease-out);
}
.ct-btn__arrow svg { width: 16px; height: 16px; transition: transform var(--dur-press) var(--ease-out); }
.ct-btn:hover { --btn-bg: var(--midnight-hover); }
.ct-btn:hover .ct-btn__arrow svg { transform: translateX(3px); }
.ct-btn:active { transform: scale(.98); }
.ct-btn[disabled], .ct-btn[aria-disabled="true"] { --btn-bg: var(--surface-card); --btn-fg: var(--ink-muted); cursor: not-allowed; transform: none; }
.ct-btn[disabled] .ct-btn__arrow, .ct-btn[aria-disabled="true"] .ct-btn__arrow { background: var(--border); color: var(--ink-muted); }

.ct-btn--secondary { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--border); }
.ct-btn--secondary .ct-btn__arrow { background: var(--midnight); color: var(--on-dark); }
.ct-btn--secondary:hover { --btn-bg: var(--sky-100); --btn-bd: var(--sky-100); }

.ct-btn--light { --btn-bg: var(--on-dark); --btn-fg: var(--midnight); }
.ct-btn--light .ct-btn__arrow { background: var(--midnight); color: var(--on-dark); }
.ct-btn--light:hover { --btn-bg: var(--sky-100); }

.ct-btn--glass { --btn-bg: rgba(255,255,255,.12); --btn-fg: var(--on-dark); --btn-bd: rgba(255,255,255,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ct-btn--glass:hover { --btn-bg: rgba(255,255,255,.22); }

.ct-btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }

/* Circular arrow button (carousel nav) */
.ct-icon-btn {
  width: 52px; height: 52px; border-radius: var(--little-border-radius);
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface-white); color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-press) var(--ease-out), color var(--dur-press) var(--ease-out), border-color var(--dur-press) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.ct-icon-btn svg { width: 18px; height: 18px; transition: transform var(--dur-press) var(--ease-out); }
.ct-icon-btn:hover { background: var(--midnight); border-color: var(--midnight); color: var(--on-dark); }
.ct-icon-btn[data-dir="next"]:hover svg { transform: translateX(2px); }
.ct-icon-btn[data-dir="prev"]:hover svg { transform: translateX(-2px); }
.ct-icon-btn:active { transform: scale(.95); }
.ct-icon-btn[disabled] { opacity: .4; cursor: not-allowed; background: var(--surface-white); color: var(--ink); border-color: var(--border); }

/* ---------- Tags / eyebrows ---------- */
.ct-tag {
  width: fit-content;
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px; border-radius: var(--little-border-radius);
  background: var(--surface-card); color: var(--ink-muted);
  font: 500 12px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase;
}
.ct-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.ct-tag--plain::before { display: none; }
.ct-tag--on-photo { background: rgba(255,255,255,.14); color: var(--on-dark); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ct-tag--on-photo::before, .ct-tag--dark::before { background: var(--sky); }
.ct-tag--dark { background: rgba(255,255,255,.08); color: var(--on-dark-muted); }

/* ---------- Navigation ---------- */
.ct-nav { position: sticky; top: 0; z-index: 50; height: 0; }
.ct-nav__bar {
  position: absolute; left: 0; right: 0; top: 16px;
  margin: 0 auto; width: calc(100% - 32px); max-width: calc(var(--content-max) + 48px);
  height: var(--nav-height); padding-block: 0; padding-inline: 24px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-radius: var(--little-border-radius); border: 1px solid transparent;
  color: var(--on-dark);
  transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out), color 400ms var(--ease-out), box-shadow 400ms var(--ease-out), height 400ms var(--ease-out);
}
.ct-nav__logo { position: relative; display: block; height: 88px; width: 251px; flex: none; transition: height 400ms var(--ease-out), width 400ms var(--ease-out); }
.ct-nav__logo img { position: absolute; inset: 0; height: 100%; width: auto; transition: opacity 400ms var(--ease-out); }
.ct-nav__logo .is-color { opacity: 0; }
.ct-nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 4px; border-radius: var(--little-border-radius); background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out); }
.ct-nav__links a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--little-border-radius); font: 400 14px/1 var(--font-sans); opacity: .88; transition: background-color var(--dur-press), opacity var(--dur-press); }
.ct-nav__links a:hover, .ct-nav__links a[aria-current="page"] { opacity: 1; background: rgba(255,255,255,.16); }
.ct-nav__menu { display: none; }

.ct-nav.is-solid .ct-nav__bar { background: rgba(250,250,248,.86); border-color: var(--border); color: var(--ink); box-shadow: var(--shadow-soft); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); height: 80px; }
.ct-nav.is-solid .ct-nav__logo { height: 68px; width: 194px; }
.ct-nav.is-solid .ct-nav__logo .is-white { opacity: 0; }
.ct-nav.is-solid .ct-nav__logo .is-color { opacity: 1; }
.ct-nav.is-solid .ct-nav__links { background: transparent; border-color: transparent; }
.ct-nav.is-solid .ct-nav__links a:hover, .ct-nav.is-solid .ct-nav__links a[aria-current="page"] { background: var(--surface-card); }
.ct-nav.is-solid .ct-btn--light { --btn-bg: var(--midnight); --btn-fg: var(--on-dark); }
.ct-nav.is-solid .ct-btn--light .ct-btn__arrow { background: var(--on-dark); color: var(--midnight); }

.ct-nav--light .ct-nav__bar { color: var(--ink); }
.ct-nav--light .ct-nav__logo .is-white { opacity: 0; }
.ct-nav--light .ct-nav__logo .is-color { opacity: 1; }
.ct-nav:not(.is-solid) .ct-nav__logo .is-white { opacity: 1; }
.ct-nav:not(.is-solid) .ct-nav__logo .is-color { opacity: 0; }
.ct-nav--light .ct-nav__links { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.85); }
.ct-nav--light .ct-nav__links a:hover, .ct-nav--light .ct-nav__links a[aria-current="page"] { background: var(--surface-white); }
.ct-nav--light .ct-btn--light { --btn-bg: var(--midnight); --btn-fg: var(--on-dark); }
.ct-nav--light .ct-btn--light .ct-btn__arrow { background: var(--on-dark); color: var(--midnight); }

@media (max-width: 899px) {
  .ct-nav__links, .ct-nav__cta { display: none; }
  .ct-nav__menu { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--little-border-radius); border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: inherit; cursor: pointer; }
  .ct-nav.is-solid .ct-nav__menu, .ct-nav--light .ct-nav__menu { border-color: var(--border); background: var(--surface-white); }
  .ct-nav__logo, .ct-nav.is-solid .ct-nav__logo { height: 60px; width: 171px; }
  .ct-nav__bar { height: 76px; top: 12px; width: calc(100% - 24px); padding-inline: 18px 8px; }
}

/* ---------- Hero: exactly one viewport tall; full-bleed photo under a midnight shade, white copy centred ---------- */
.ct-hero { height: 100vh; height: 100svh; background: var(--midnight); border-bottom: 1px solid var(--border); }
.ct-hero__frame {
  position: relative; overflow: hidden; isolation: isolate; height: 100%;
  color: var(--on-dark); background: var(--midnight);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ct-hero__media { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.ct-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* dark blue shade: even wash for the copy, a little deeper at the bottom for the facts strip */
.ct-hero__scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,26,53,.62) 0%, rgba(8,26,53,.55) 45%, rgba(8,26,53,.85) 100%); }
/* centred between the nav and the facts strip */
.ct-hero__content { padding: calc(var(--nav-height) + 16px) var(--gutter-desktop) 80px; width: 100%; max-width: 980px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ct-hero__badge { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding-inline: 4px 12px; border-radius: var(--little-border-radius); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--on-dark); font: 500 13px/1 var(--font-sans); }
.ct-hero__badge b { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: calc(var(--little-border-radius) - 3px); background: var(--sky); color: var(--midnight); font-weight: 500; }
.ct-hero__title { margin: 24px 0 20px; max-width: 24ch; line-height: 1.2; }
.ct-hero__lead { max-width: 560px; color: var(--on-dark-muted); }
.ct-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.ct-hero__foot { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 calc(var(--gutter-desktop) + var(--space-3)); padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.28); display: flex; justify-content: space-between; align-items: center; gap: 24px; color: rgba(255,255,255,.9); }
.ct-hero__facts { display: flex; gap: 40px; flex-wrap: wrap; }
.ct-hero__facts span { display: flex; align-items: center; gap: 10px; }
.ct-hero__facts span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.ct-hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.ct-hero__scroll i { width: 1px; height: 36px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.ct-hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--on-dark); animation: ct-scroll 2.2s var(--ease-out) infinite; }
@keyframes ct-scroll { to { top: 100%; } }
@media (max-width: 639px) {
  .ct-hero__content { padding: 96px 20px 24px; }
  .ct-hero__badge { font-size: 12px; }
  .ct-hero__actions { margin-top: 24px; }
  .ct-hero__foot { display: none; }
  .ct-hero__media img { object-position: 40% 60%; }
}

/* ---------- About ---------- */
.ct-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-12); align-items: center; }
.ct-about__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.ct-about__text { max-width: 480px; }
.ct-about__media { position: relative; aspect-ratio: 5 / 4.4; border-radius: var(--radius-card); overflow: hidden; background: var(--surface-card); }
.ct-parallax { position: absolute; inset: -8% 0; will-change: transform; }
.ct-parallax img { width: 100%; height: 100%; object-fit: cover; }
.ct-about__badge { position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 20px 22px; border-radius: var(--radius-image); background: rgba(250,250,248,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ct-about__badge strong { display: block; font: 500 22px/1.2 var(--font-sans); letter-spacing: -.01em; }
@media (max-width: 899px) { .ct-about { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ---------- Services (layout fixed: icon + general copy left, card carousel + arrows right) ---------- */
.ct-services { background: var(--tint, var(--bg-200)); transition: background-color 800ms var(--ease-out); overflow: hidden; }
.ct-services__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: var(--space-8); align-items: stretch; }
.ct-services__intro { display: flex; flex-direction: column; }
.ct-services__icon { position: relative; width: 112px; height: 112px; border-radius: var(--radius-card); background: var(--surface-white); color: var(--primary); display: grid; place-items: center; box-shadow: var(--shadow-soft); }
.ct-services__icon svg { position: absolute; width: 48px; height: 48px; opacity: 0; transform: translateY(8px) scale(.92); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.ct-services__icon svg.is-active { opacity: 1; transform: none; }
.ct-services__copy { margin-top: var(--space-6); padding-inline-start: var(--space-12); display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.ct-services__current { margin-top: auto; padding-top: var(--space-6); padding-inline-start: var(--space-12); display: flex; align-items: baseline; gap: 16px; color: var(--ink-muted); }
.ct-services__current b { font: 400 40px/1 var(--font-sans); letter-spacing: -.03em; color: var(--ink); min-width: 1.6em; }
.ct-services__current [data-name] { font: 500 15px/1.3 var(--font-sans); color: var(--ink); }
.ct-services__stage { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ct-carousel { position: relative; overflow: hidden; touch-action: pan-y; padding: 8px 0 16px; margin: -8px 0 -16px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.ct-carousel__track { display: flex; gap: 20px; transition: transform 700ms var(--ease-out); will-change: transform; }
.ct-carousel__track.is-dragging { transition: none; }
.ct-carousel__nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ct-carousel__dots { display: flex; gap: 6px; margin-inline-end: auto; padding-inline-start: 4px; }
.ct-carousel__dots button { width: 24px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.ct-carousel__dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; border-radius: 2px; background: var(--border); transition: background-color 300ms, transform 300ms; }
.ct-carousel__dots button[aria-current="true"]::after { background: var(--primary); }

.ct-service-card {
  flex: 0 0 clamp(300px, 62%, 460px);
  display: flex; flex-direction: column;
  padding: 12px; border-radius: var(--radius-card);
  background: var(--surface-white); color: var(--ink);
  opacity: .55; transform: scale(.94); transform-origin: center;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
  user-select: none;
}
.ct-service-card.is-active { opacity: 1; transform: none; box-shadow: var(--shadow-soft); }
.ct-service-card__media { aspect-ratio: 4 / 3.1; border-radius: var(--radius-image); overflow: hidden; background: var(--surface-card); }
.ct-service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); pointer-events: none; }
.ct-service-card:hover .ct-service-card__media img { transform: scale(1.04); }
.ct-service-card__body { padding: 20px 12px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ct-service-card__index { font: 500 12px/1 var(--font-sans); letter-spacing: .12em; color: var(--ink-muted); }
.ct-service-card__text { color: var(--ink-muted); }
.ct-service-card__cta { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1 var(--font-sans); color: var(--ink); min-height: 44px; }
.ct-service-card__cta span { width: 32px; height: 32px; border-radius: calc(var(--little-border-radius) - 3px); display: grid; place-items: center; background: var(--midnight); color: var(--on-dark); transition: transform var(--dur-press) var(--ease-out); }
.ct-service-card__cta svg { width: 14px; height: 14px; }
.ct-service-card__cta:hover span { transform: translateX(3px); }

@media (max-width: 1023px) {
  .ct-services__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .ct-services__copy, .ct-services__current { padding-inline-start: 0; }
  .ct-services__current { display: none; }
  .ct-services__icon { width: 88px; height: 88px; }
  .ct-services__icon svg { width: 38px; height: 38px; }
  .ct-service-card { flex-basis: min(86%, 440px); }
}

/* ---------- Process (How we work) ---------- */
.ct-process__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: var(--space-8); }
.ct-process__head > div { max-width: 620px; display: flex; flex-direction: column; gap: 20px; }
.ct-process__steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 20px; }
.ct-process__steps svg.ct-process__path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; color: var(--secondary); }
.ct-process__path path { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-dasharray: 4 6; }
.ct-process__path .arrow { stroke-dasharray: none; }
/* Arrow motion: each connector draws in as a solid line, its head pops, then it turns into dashes that keep flowing forward */
.ct-process__path g { transition: color 400ms var(--ease-out); }
.ct-process__path g.is-active { color: var(--primary); }
.ct-process__path g.is-active path { stroke-width: 1.75; }
.ct-process__path .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ct-process__path .flow, .ct-process__path .arrow { opacity: 0; }
.ct-process__steps.is-play .ct-process__path .draw { animation: ct-draw 480ms var(--ease-out) forwards, ct-out 240ms var(--ease-out) forwards; animation-delay: calc(560ms + var(--i) * 280ms), calc(1240ms + var(--i) * 280ms); }
.ct-process__steps.is-play .ct-process__path .flow { animation: ct-fade 240ms var(--ease-out) forwards, ct-flow 1.12s linear infinite; animation-delay: calc(1240ms + var(--i) * 280ms), 0s; }
.ct-process__steps.is-play .ct-process__path .arrow { animation: ct-fade 240ms var(--ease-out) forwards; animation-delay: calc(960ms + var(--i) * 280ms); }
.ct-process__steps.is-done .ct-process__path .draw { animation: none; opacity: 0; }
.ct-process__steps.is-done .ct-process__path .flow { animation: ct-flow 1.12s linear infinite; opacity: 1; }
.ct-process__steps.is-done .ct-process__path .arrow { animation: none; opacity: 1; }
.ct-process__steps.is-done .ct-process__path g.is-active .flow { animation-duration: .56s; }
@keyframes ct-draw { to { stroke-dashoffset: 0; } }
@keyframes ct-out { to { opacity: 0; } }
@keyframes ct-fade { to { opacity: 1; } }
@keyframes ct-flow { to { stroke-dashoffset: -20; } }
.ct-step { position: relative; z-index: 1; padding: 24px; border-radius: var(--radius-card); background: var(--bg-100); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; min-height: 200px; transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out), transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.ct-section--alt .ct-step { background: var(--surface-white); border-color: transparent; }
.ct-process__steps > .ct-step:nth-of-type(odd) { grid-row: 1; }
.ct-process__steps > .ct-step:nth-of-type(even) { grid-row: 2; margin-top: 40px; }
.ct-process__steps > .ct-step:nth-of-type(1) { grid-column: 1; }
.ct-process__steps > .ct-step:nth-of-type(2) { grid-column: 2; }
.ct-process__steps > .ct-step:nth-of-type(3) { grid-column: 3; }
.ct-process__steps > .ct-step:nth-of-type(4) { grid-column: 4; }
.ct-process__steps > .ct-step:nth-of-type(5) { grid-column: 5; }
.ct-step__num { display: flex; align-items: center; justify-content: space-between; font: 500 12px/1 var(--font-sans); letter-spacing: .12em; color: var(--ink-muted); }
.ct-step__num i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--secondary); transition: background-color 400ms, border-color 400ms; }
.ct-step h3 { font: 500 22px/1.2 var(--font-sans); letter-spacing: -.012em; margin-top: auto; }
.ct-step p { color: var(--ink-muted); font-size: 15px; line-height: 1.55; }
.ct-step:hover, .ct-step.is-current { background: var(--midnight); border-color: var(--midnight); color: var(--on-dark); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ct-step:hover p, .ct-step.is-current p, .ct-step:hover .ct-step__num, .ct-step.is-current .ct-step__num { color: var(--on-dark-muted); }
.ct-step:hover .ct-step__num i, .ct-step.is-current .ct-step__num i { background: var(--sky); border-color: var(--sky); }
@media (max-width: 1023px) {
  .ct-process__head { flex-direction: column; align-items: flex-start; margin-bottom: var(--space-6); }
  .ct-process__steps { grid-template-columns: 1fr; gap: 12px; padding-inline-start: 28px; }
  .ct-process__steps::before { content: ""; position: absolute; inset-inline-start: 6px; top: 12px; bottom: 12px; width: 1px; background: var(--border); transform: scaleY(0); transform-origin: top; transition: transform 1400ms var(--ease-out) 300ms; }
  .ct-process__steps.is-play::before { transform: none; }
  .ct-process__steps svg.ct-process__path { display: none; }
  .ct-process__steps > .ct-step:nth-of-type(n) { grid-column: 1; grid-row: auto; margin-top: 0; min-height: 0; }
  .ct-process__steps .ct-step::before { content: ""; position: absolute; inset-inline-start: -27px; top: 28px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-200); border: 1.5px solid var(--secondary); transition: background-color 400ms, border-color 400ms; }
  .ct-process__steps .ct-step.is-current::before { background: var(--primary); border-color: var(--primary); }
  .ct-step h3 { margin-top: 4px; }
}

/* ---------- Section heading (centered) ---------- */
.ct-head-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 720px; margin: 0 auto var(--space-6); }
.ct-head-center p { max-width: 560px; }

/* ---------- Bento (Why choose us) ---------- */
.ct-bento { display: grid; grid-template-columns: 1.05fr 1.15fr .95fr; grid-template-rows: auto auto; gap: 20px; }
.ct-bento-card { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--surface-card); padding: 16px; display: flex; flex-direction: column; min-height: 260px; transition: box-shadow 500ms var(--ease-out), transform 500ms var(--ease-out); }
.ct-bento-card__media { border-radius: var(--radius-image); overflow: hidden; background: var(--bg-200); }
.ct-bento-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.ct-bento-card:hover .ct-bento-card__media img { transform: scale(1.04); }
.ct-bento-card__body { padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.ct-bento-card__title { font: 500 26px/1.22 var(--font-sans); letter-spacing: -.016em; max-width: 22ch; }
.ct-bento-card__title .ct-ghost { transition: color 900ms var(--ease-out); }

.ct-bento-card--tall { grid-row: span 2; }
.ct-bento-card--tall .ct-bento-card__media { aspect-ratio: 1 / 1; flex: 1; min-height: 260px; }
.ct-bento-card--tall .ct-bento-card__body { margin-top: auto; padding-top: 28px; }

.ct-bento-card--photo { padding: 0; }
.ct-bento-card--photo .ct-bento-card__media { position: absolute; inset: 0; border-radius: 0; }
.ct-bento-card--photo .ct-bento-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface-card) 18%, rgba(233,234,235,.0) 62%); }
.ct-bento-card--photo .ct-bento-card__body { position: relative; margin-top: auto; padding: 32px; }

.ct-bento-card--stat { justify-content: space-between; padding: 32px; }
.ct-bento-card--navy { background: var(--midnight); color: var(--on-dark); }
.ct-bento-card--navy .ct-muted { color: var(--on-dark-muted); }
.ct-bento-card__stat { font: 400 88px/0.9 var(--font-sans); letter-spacing: -.05em; }
.ct-bento-card__stat sup { font-size: .35em; letter-spacing: 0; vertical-align: top; margin-left: 4px; color: var(--sky); }
.ct-bento-card__mark { position: absolute; inset-inline-end: -18px; top: -10px; width: 180px; opacity: .18; color: var(--sky); }

.ct-bento-card--wide { grid-column: span 2; flex-direction: row; align-items: stretch; padding: 0; min-height: 280px; }
.ct-bento-card--wide .ct-bento-card__body { padding: 32px; justify-content: flex-end; flex: 1 1 52%; }
.ct-bento-card--wide .ct-bento-card__media { flex: 1 1 48%; border-radius: 0; position: relative; }
.ct-bento-card--wide .ct-bento-card__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--surface-card) 0%, rgba(233,234,235,0) 40%); }
.ct-bento-card:hover { box-shadow: var(--shadow-lift); }
@media (max-width: 1023px) {
  .ct-bento { grid-template-columns: 1fr 1fr; }
  .ct-bento-card--tall { grid-row: auto; grid-column: span 2; }
  .ct-bento-card--tall .ct-bento-card__media { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
}
@media (max-width: 639px) {
  .ct-bento { grid-template-columns: 1fr; gap: 16px; }
  .ct-bento-card--tall, .ct-bento-card--wide { grid-column: auto; }
  .ct-bento-card--wide { flex-direction: column-reverse; }
  .ct-bento-card--wide .ct-bento-card__media { aspect-ratio: 16 / 10; flex: none; }
  .ct-bento-card--wide .ct-bento-card__media::before { background: linear-gradient(0deg, var(--surface-card) 0%, rgba(233,234,235,0) 40%); }
  .ct-bento-card__title { font-size: 22px; }
  .ct-bento-card__stat { font-size: 72px; }
}

/* ---------- Clients / partners grid ---------- */
.ct-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.ct-logos li { list-style: none; display: grid; place-items: center; height: 112px; border-bottom: 1px solid var(--border); color: var(--ink); text-align: center; transition: color 300ms; }
.ct-logos { margin: 0; padding: 0; }
.ct-logos .ct-wordmark { font: 500 22px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; opacity: .78; transition: opacity 300ms; }
.ct-logos .ct-wordmark small { display: block; margin-top: 8px; font: 400 12px/1 var(--font-sans); letter-spacing: .1em; color: var(--ink-muted); }
.ct-logos li:hover .ct-wordmark { opacity: 1; }
.ct-logos img { max-height: 48px; max-width: 70%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter 300ms, opacity 300ms; }
.ct-logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 899px) { .ct-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; } .ct-logos li { height: 88px; } .ct-logos .ct-wordmark { font-size: 17px; } }

/* ---------- Stats band ---------- */
.ct-stats { background: var(--midnight); color: var(--on-dark); position: relative; overflow: hidden; }
.ct-stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ct-stat { padding-block: 8px; padding-inline: 0 32px; display: flex; flex-direction: column; gap: 16px; }
.ct-stat + .ct-stat { padding-inline-start: 32px; border-inline-start: 1px solid rgba(255,255,255,.14); }
.ct-stat__value { font-variant-numeric: tabular-nums; }
.ct-stat__value sup { font-size: .4em; color: var(--sky); vertical-align: top; margin-left: 2px; letter-spacing: 0; }
.ct-stat__label { color: var(--on-dark-muted); max-width: 22ch; }
.ct-stats__intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: var(--space-6); }
.ct-stats__intro p { max-width: 420px; color: var(--on-dark-muted); }
.ct-stats__chevrons { position: absolute; right: -40px; top: -40px; width: 360px; color: rgba(169,205,221,.07); pointer-events: none; }
@media (max-width: 899px) {
  .ct-stats__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .ct-stat:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .ct-stats__intro { flex-direction: column; align-items: flex-start; }
}

/* ---------- Projects ---------- */
.ct-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: var(--space-6); }
.ct-section-head > div { max-width: 640px; display: flex; flex-direction: column; gap: 20px; }
.ct-section-head > .ct-section-head__aside { max-width: 520px; align-items: flex-start; }
.ct-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.ct-project { display: flex; flex-direction: column; gap: 18px; color: var(--ink); }
.ct-project__media { position: relative; overflow: hidden; border-radius: var(--radius-card); aspect-ratio: 4 / 3; background: var(--surface-card); }
.ct-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.ct-project__media .ct-tag { position: absolute; inset-inline-start: 16px; top: 16px; }
.ct-project__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ct-project__row p { color: var(--ink-muted); margin-top: 6px; max-width: 46ch; }
.ct-project__go { flex: none; width: 44px; height: 44px; border-radius: var(--little-border-radius); border: 1px solid var(--border); display: grid; place-items: center; transition: background-color var(--dur-press), color var(--dur-press), border-color var(--dur-press); }
.ct-project__go svg { width: 16px; height: 16px; transition: transform var(--dur-press) var(--ease-out); }
.ct-project:hover .ct-project__media img { transform: scale(1.04); }
.ct-project:hover .ct-project__go { background: var(--midnight); border-color: var(--midnight); color: var(--on-dark); }
.ct-project:hover .ct-project__go svg { transform: translate(2px, -2px); }
.ct-project--lg { grid-column: span 2; }
.ct-project--lg .ct-project__media { aspect-ratio: auto; flex: 1; min-height: 360px; }
.ct-project--tall .ct-project__media { aspect-ratio: auto; flex: 1; }
@media (max-width: 1023px) { .ct-section-head { flex-direction: column; align-items: flex-start; } .ct-projects { grid-template-columns: 1fr 1fr; } .ct-project--lg { grid-column: span 2; } .ct-project--lg .ct-project__media { min-height: 320px; } }
@media (max-width: 639px) { .ct-projects { grid-template-columns: 1fr; gap: 28px; } .ct-project--lg { grid-column: auto; } .ct-project--lg .ct-project__media, .ct-project--tall .ct-project__media { aspect-ratio: 4 / 3; min-height: 0; flex: none; } }

/* ---------- One-screen sections (Why us, Our projects): on desktop the section fills exactly the space under the nav ---------- */
@media (min-width: 1024px) {
  .ct-section--fit { height: calc(100vh - var(--space-12)); height: calc(100svh - var(--space-12)); min-height: 640px; padding-block: var(--space-6); }
  .ct-section--fit > .ct-container { height: 100%; display: flex; flex-direction: column; }
  .ct-section--fit :is(.ct-head-center, .ct-section-head) { flex: none; margin-bottom: var(--space-4); }
  .ct-section--fit .ct-head-center p { max-width: 720px; }
  .ct-section--fit :is(.ct-bento, .ct-projects) { flex: 1; min-height: 0; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .ct-section--fit .ct-bento-card, .ct-section--fit .ct-bento-card--wide { min-height: 0; }
  .ct-section--fit .ct-bento-card__title { font-size: 22px; }
  .ct-section--fit .ct-bento-card--stat { padding: var(--space-3); }
  .ct-section--fit .ct-bento-card__body { gap: var(--space-2); }
  .ct-section--fit .ct-bento-card--photo .ct-bento-card__media::after { background: linear-gradient(0deg, var(--surface-card) 45%, rgba(233,234,235,0) 90%); }
  .ct-section--fit .ct-bento-card--tall .ct-bento-card__media { aspect-ratio: auto; min-height: 0; }
  .ct-section--fit .ct-projects { gap: 20px; }
  .ct-section--fit .ct-project { min-height: 0; gap: 12px; }
  .ct-section--fit .ct-project__media, .ct-section--fit .ct-project--lg .ct-project__media { aspect-ratio: auto; flex: 1; min-height: 0; }
  .ct-section--fit .ct-project__row p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .ct-section--fit .ct-project__row > div { min-width: 0; }
}
/* short laptop screens: the stat tile is the tightest, so it gives up some padding and size */
@media (min-width: 1024px) and (max-height: 820px) {
  .ct-section--fit .ct-bento-card--stat { padding: var(--space-3); }
  .ct-section--fit .ct-bento-card__stat { font-size: 64px; }
  .ct-section--fit .ct-bento-card--stat .t-caption { max-width: none !important; margin-top: var(--space-1) !important; }
  /* the Why us copy can't fit in ~670px without cutting text, so here that section grows to its content */
  .ct-section--fit:has(.ct-bento) { height: auto; }
  .ct-section--fit .ct-bento { grid-template-rows: auto auto; }
  .ct-section--fit .ct-bento-card__media { position: relative; }
  .ct-section--fit .ct-bento-card--photo .ct-bento-card__media { position: absolute; }
  .ct-section--fit .ct-bento-card__media img { position: absolute; inset: 0; }
  .ct-section--fit .ct-bento-card--tall .ct-bento-card__media { flex: 1; height: 0; min-height: 200px; }
  .ct-section--fit .ct-bento-card--photo { min-height: 220px; }
}

/* ---------- Contact ---------- */
.ct-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-12); align-items: start; }
.ct-contact__intro { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 120px; }
.ct-contact__list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--border); }
.ct-contact__list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--border); }
.ct-contact__list span { color: var(--ink-muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.ct-contact__list a, .ct-contact__list b { font-weight: 500; font-size: 17px; }
.ct-contact__list a:hover { color: var(--primary); }
.ct-form { background: var(--surface-white); border-radius: var(--radius-card); padding: var(--space-6); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; box-shadow: var(--shadow-soft); }
.ct-field { display: flex; flex-direction: column; gap: 8px; }
.ct-field--full { grid-column: 1 / -1; }
.ct-field label { font: 500 13px/1.3 var(--font-sans); color: var(--ink); }
.ct-field label i { font-style: normal; color: var(--ink-muted); font-weight: 400; }
.ct-input { width: 100%; height: var(--control-height); padding: 0 16px; border: 1px solid var(--border); border-radius: var(--little-border-radius); background: var(--bg-100); color: var(--ink); font: 400 16px/1.4 var(--font-sans); transition: border-color var(--dur-press), background-color var(--dur-press), box-shadow var(--dur-press); appearance: none; }
textarea.ct-input { height: 140px; padding: 14px 16px; resize: vertical; }
select.ct-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2317191c' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 40px; }
[dir="rtl"] select.ct-input { background-position: left 16px center; }
.ct-input::placeholder { color: var(--ink-muted); }
.ct-input:hover { border-color: var(--secondary); }
.ct .ct-input:focus-visible, .ct-input:focus { outline: none; border-color: var(--primary); background: var(--surface-white); box-shadow: 0 0 0 3px rgba(0,59,92,.18); }
.ct-form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
@media (max-width: 899px) { .ct-contact { grid-template-columns: 1fr; gap: var(--space-6); } .ct-contact__intro { position: static; } }
@media (max-width: 639px) { .ct-form { grid-template-columns: 1fr; padding: 24px; } }

.ct-footer { background: var(--midnight); color: var(--on-dark); padding: var(--space-8) 0 var(--space-6); }
.ct-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: var(--space-8); border-bottom: 1px solid rgba(255,255,255,.14); }
.ct-footer__logo { height: 72px; width: auto; }
.ct-footer h4 { font: 500 12px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 20px; }
.ct-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ct-footer ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--on-dark); opacity: .9; transition: opacity var(--dur-press), color var(--dur-press); }
.ct-footer ul a:hover { color: var(--sky); opacity: 1; }
.ct-footer__about { color: var(--on-dark-muted); max-width: 320px; margin-top: 24px; }
.ct-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: var(--space-4); color: var(--on-dark-muted); font-size: 13px; }
@media (max-width: 899px) { .ct-footer__top { grid-template-columns: 1fr 1fr; } .ct-footer__top > :first-child { grid-column: span 2; } .ct-footer__bottom { flex-direction: column; } }

/* ---------- Page shell ---------- */
.ct-page { height: 100vh; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
.ct-sheet { position: fixed; inset: 0; z-index: 60; background: var(--bg-100); padding: 96px 20px 32px; display: flex; flex-direction: column; gap: 8px; opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease-out), visibility 300ms; }
.ct-sheet.is-open { opacity: 1; visibility: visible; }
.ct-sheet a { font: 500 32px/1.2 var(--font-sans); letter-spacing: -.02em; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ct-sheet .ct-btn { margin-top: auto; justify-content: space-between; }
.ct-sheet__close { position: absolute; top: 20px; inset-inline-end: 20px; width: 48px; height: 48px; border-radius: var(--little-border-radius); border: 1px solid var(--border); background: var(--surface-white); display: grid; place-items: center; cursor: pointer; }
.ct-watermark { position: absolute; overflow: hidden; pointer-events: none; direction: ltr; }
.ct-watermark img { height: 100%; width: auto; max-width: none; }

/* ---------- Motion ---------- */
.ct-reveal { opacity: 0; transform: translateY(var(--rise)); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: var(--d, 0ms); }
.ct-reveal.is-in { opacity: 1; transform: none; }
.ct-mask { clip-path: inset(18% 0 0 0 round var(--radius-card)); transition: clip-path 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }
.ct-mask img { transform: scale(1.12); transition: transform 1400ms var(--ease-out); }
.ct-mask.is-in { clip-path: inset(0 0 0 0 round var(--radius-card)); }
.ct-mask.is-in img { transform: scale(1); }
.ct-project:hover .ct-mask.is-in img { transform: scale(1.04); }
.ct-words .w { color: var(--ink-ghost); transition: color 500ms var(--ease-out); }
.ct-words .w.is-on { color: var(--ink); }
.no-js .ct-reveal, .no-js .ct-mask { opacity: 1; transform: none; clip-path: none; }

@media (prefers-reduced-motion: reduce) {
  .ct *, .ct *::before, .ct *::after { transition-duration: 1ms !important; animation: none !important; }
  .ct-reveal { opacity: 1; transform: none; }
  .ct-mask, .ct-mask.is-in { clip-path: none; }
  .ct-mask img { transform: none; }
  .ct-words .w { color: var(--ink); }
  .ct-hero__media, .ct-parallax { transform: none !important; }
  .ct-process__path .draw { opacity: 0; }
  .ct-process__path .flow, .ct-process__path .arrow { opacity: 1; }
  .ct-process__steps::before { transform: none; }
}

/* ---------- Scroll progress ---------- */
.ct-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
[dir="rtl"] .ct-progress { transform-origin: 100% 50%; }

/* ---------- RTL: mirror directional arrows and the horizontal fades ---------- */
[dir="rtl"] :is(.ct-btn__arrow, .ct-service-card__cta span, .ct-icon-btn, .ct-project__go) svg { scale: -1 1; }
[dir="rtl"] .ct-bento-card--wide .ct-bento-card__media::before { background: linear-gradient(270deg, var(--surface-card) 0%, rgba(233,234,235,0) 40%); }
@media (max-width: 639px) { [dir="rtl"] .ct-bento-card--wide .ct-bento-card__media::before { background: linear-gradient(0deg, var(--surface-card) 0%, rgba(233,234,235,0) 40%); } }

/* ---------- Floating actions: language (bottom left) and WhatsApp (bottom right) ---------- */
.ct-float {
  position: fixed; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 55;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; padding: 0;
  border: 0; border-radius: var(--little-border-radius); box-shadow: var(--shadow-lift);
  font: 500 17px/1 var(--font-sans-ar); cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-press) var(--ease-out);
}
.ct-float:hover { transform: translateY(-2px); }
.ct-float:active { transform: scale(.96); }
.ct-float--lang { left: 16px; background: var(--midnight); color: var(--on-dark); }
.ct-float--lang:hover { background: var(--midnight-hover); }
.ct-float--wa { right: 16px; background: var(--whatsapp); color: var(--on-dark); }
.ct-float--wa svg { width: 26px; height: 26px; }


/* ---------- Logo 2026-10 (wide lockup, ratio ~4.8:1) ---------- */
.ct-nav__logo { height: 62px; width: 300px; }
.ct-nav.is-solid .ct-nav__logo { height: 50px; width: 242px; }
@media (max-width: 899px) {
  .ct-nav__logo, .ct-nav.is-solid .ct-nav__logo { height: 44px; width: 213px; }
}
.ct-footer__logo { height: 56px; width: auto; max-width: 100%; }

/* Arabic: no tracking (it breaks letter joins) */
.ct:lang(ar), .ct:lang(ar) * { letter-spacing: 0 !important; }

/* Contact form: reCAPTCHA + status */
.ct-recaptcha { grid-column: 1 / -1; margin: 4px 0 8px; min-height: 78px; }
.ct-form__status { grid-column: 1 / -1; margin-top: 12px; }
.ct-form__status:empty { display: none; }

/* Mobile: long email/links wrap; no sideways page sway */
.ct-contact__list a, .ct-contact__list li { overflow-wrap: anywhere; min-width: 0; }
body { overflow-x: clip; }
.ct-contact__intro, .ct-form { min-width: 0; }
@media (max-width: 400px) {
  .ct-recaptcha { max-width: 100%; overflow: hidden; min-height: 64px; }
  .ct-recaptcha > div { transform: scale(.8); transform-origin: 0 0; }
  .ct:lang(ar) .ct-recaptcha > div { transform-origin: 100% 0; }
}
.ct-footer__top > * { min-width: 0; }
@media (max-width: 380px) {
  .ct-nav__logo, .ct-nav.is-solid .ct-nav__logo { height: 36px; width: 174px; }
  .ct-carousel__dots button { width: 14px; }
}

/* ---------- Profile button + popup ---------- */
.ct-nav__actions { display: flex; align-items: center; gap: 10px; }
.ct-sheet [data-profile-open] { margin-bottom: 10px; }
.ct-profile { border: 0; padding: 0; width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border-radius: var(--little-border-radius); background: var(--surface-white); color: var(--ink); box-shadow: var(--shadow-lift); font-family: var(--font-sans); }
.ct-profile::backdrop { background: rgb(8 26 53 / .6); backdrop-filter: blur(4px); }
.ct-profile__inner { display: grid; gap: 16px; padding: 24px; }
.ct-profile__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ct-profile__title { margin: 0 0 4px; font: 500 22px/1.3 var(--font-sans); color: var(--midnight); }
.ct-profile__x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.ct-profile__x:hover { background: var(--bg-200); }
.ct-profile__frame { width: 100%; height: min(60vh, 560px); border: 1px solid var(--border); border-radius: 8px; background: var(--bg-200); }
.ct-profile__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .ct-profile__frame { display: none; } .ct-profile__inner { padding: 20px; } }

/* 900–1199px: nav is too wide for logo + links + 2 buttons → use the menu sheet */
@media (min-width: 900px) and (max-width: 1199px) {
  .ct-nav__links, .ct-nav__actions { display: none; }
  .ct-nav__menu { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--little-border-radius); border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: inherit; cursor: pointer; }
  .ct-nav.is-solid .ct-nav__menu, .ct-nav--light .ct-nav__menu { border-color: var(--border); background: var(--surface-white); }
}
