/* connect.yasserayed.com: hand-written, no framework.
   Redesign 2026-11-22 "Shenzhen Bay by day": cool paper, harbour-navy ink, brand cyan (#00e0d0) for actions.
   The hero is the bay itself: headline in the sky, skyline left clear, actions over the water. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700 800; font-display: swap; src: url(/fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/inter-tight.woff2) format("woff2"); }
@font-face { font-family: "Archivo fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"); font-weight: 700 800; size-adjust: 103.5%; }
@font-face { font-family: "Inter Tight fallback"; src: local("Arial"), local("ArialMT"), local("Roboto"), local("Roboto-Regular"); font-weight: 400 500; size-adjust: 96.5%; }

:root {
  --paper: #f6f9fc;
  --white: #ffffff;
  --sky: #e3eef8;
  --ink: #0e2a47;
  --text: #13263b;
  --muted: #4c5f72;
  --line: rgba(14, 42, 71, 0.12);
  --line-strong: rgba(14, 42, 71, 0.26);
  --cyan: #00e0d0;
  --cyan-ink: #04201f;
  --teal: #00756d;
  --danger: #c4372b;
  --display: "Archivo", "Archivo fallback", system-ui, sans-serif;
  --body: "Inter Tight", "Inter Tight fallback", system-ui, sans-serif;
  --wrap: 72rem;
  --gutter: 1.25rem;
  --header: 4rem;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 2.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 0.5rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.02em; color: var(--ink); }
h2 { font-size: clamp(1.85rem, 4.6vw, 2.9rem); max-width: 20ch; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--cyan); color: var(--cyan-ink); padding: 0.75rem 1rem; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.kicker { font: 500 0.95rem/1.3 var(--body); color: var(--teal); display: inline-block; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 40rem; }
.lead strong { color: var(--text); font-weight: 500; }

/* Buttons: pills, so they never read as cards */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.8rem 1.5rem; border-radius: 999px;
  font: 500 1rem/1.2 var(--body); text-align: center;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--cyan); color: var(--cyan-ink); }
.btn-primary:hover { background: #4cebe0; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-block { width: 100%; }
.link { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Header: white text over the sky, then solid paper once you scroll */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header); color: #fff; transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.site-header.scrolled { background: rgba(246, 249, 252, 0.92); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font: 800 1.05rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.brand img { width: 2.1rem; height: 2.1rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); }
.nav { display: none; gap: 1.75rem; }
.nav a { font: 500 0.92rem/1 var(--body); text-decoration: none; opacity: 0.82; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.site-header .btn { min-height: 2.5rem; padding: 0.55rem 1.1rem; font-size: 0.9rem; }
@media (min-width: 960px) { .nav { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.lang { font: 500 0.95rem/1 var(--body); text-decoration: none; padding: 0.5rem 0.1rem; opacity: 0.85; }
.lang:hover { opacity: 1; }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; background: linear-gradient(180deg, #0e2a47 0%, #3c78bb 34%, #4f8bcb 46%, #6f93bd 62%, #0e2a47 100%); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 8.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 17ch; margin-top: 0.9rem; text-wrap: balance; }
.hero .kicker { color: #fff; opacity: 0.92; }
.hero-tag { margin-top: 0.9rem; max-width: 34ch; font: 700 clamp(1.05rem, 2.6vw, 1.45rem)/1.3 var(--display); color: #d8fffb; text-wrap: balance; }
.hero .lead { color: #e6eef7; }
.hero .lead strong { color: #fff; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; max-width: 40rem; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.hero-facts div { padding: 0.9rem 0.75rem 0 0; }
.hero-facts b { display: block; font: 800 clamp(1.35rem, 4vw, 1.9rem)/1 var(--display); }
.hero-facts span { display: block; margin-top: 0.35rem; font-size: 0.82rem; line-height: 1.35; color: #d3deea; }

/* Phones and tablets: text on the sky colour, the bay as a band, actions on the water */
@media (max-width: 899px) {
  .hero-top { padding-top: calc(var(--header) + 1.25rem); padding-bottom: 0.5rem; }
  .hero-photo { display: block; aspect-ratio: 4 / 3; max-height: 62svh; width: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 80%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 80%, transparent 100%); }
  .hero-photo img { object-position: 50% 50%; }
  .hero-bottom { position: relative; padding-top: 2.5rem; padding-bottom: 2.5rem; margin-top: -2.5rem; background: linear-gradient(180deg, rgba(14, 42, 71, 0) 0, rgba(14, 42, 71, 0.85) 2.5rem, #0e2a47 5rem); }
  .hero { background: linear-gradient(180deg, #0e2a47 0%, #2f69ab 30%, #4f8bcb 42%, #7799c0 70%, #24476e 84%, #0e2a47 100%); }
}
@media (max-width: 479px) { .hero-cta .btn { width: 100%; } .hero .lead { font-size: 1rem; } }

/* Desktop: the photo fills the screen; headline in the sky, skyline clear, actions over the water */
@media (min-width: 900px) {
  .hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; background: #3f7cbf; }
  .hero-photo { position: absolute; inset: 0; z-index: -2; }
  .hero-photo img { object-position: 50% 58%; }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(14, 42, 71, 0.62) 0%, rgba(14, 42, 71, 0.18) 30%, rgba(14, 42, 71, 0) 44%, rgba(14, 42, 71, 0) 58%, rgba(14, 42, 71, 0.72) 80%, rgba(14, 42, 71, 0.94) 100%); }
  .hero-top { padding-top: calc(var(--header) + clamp(1rem, 3.5svh, 2.5rem)); }
  .hero { overflow: hidden; }
  .hero-photo { top: 4%; bottom: -4%; }
  .hero h1 { font-size: clamp(2.3rem, min(4vw, 6.6svh), 3.9rem); max-width: 30ch; text-shadow: 0 2px 24px rgba(14, 42, 71, 0.35); }
  .hero-tag { max-width: none; text-shadow: 0 1px 12px rgba(14, 42, 71, 0.4); }
  .hero-bottom { padding-bottom: clamp(1.75rem, 4svh, 3rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 3rem; align-items: end; }
  .hero-bottom .lead { grid-column: 1; }
  .hero-bottom .hero-cta { grid-column: 1; margin-top: 1.25rem; }
  .hero-bottom .hero-facts { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; min-width: 27rem; }
}

/* Load: one quiet entrance for the hero text, nothing else moves on its own */
@media (prefers-reduced-motion: no-preference) {
  .hero-top, .hero-bottom { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-bottom { animation-delay: 0.15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Sections */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.tint, #pricing { background: var(--sky); border-top: 0; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split-center { align-items: center; } }

.questions { display: grid; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.questions li { display: flex; gap: 0.9rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
.questions li::before { content: "?"; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--sky); color: var(--teal); font: 800 0.9rem/1.6rem var(--display); text-align: center; margin-top: 0.05rem; }

.media-frame { position: relative; background: var(--ink); overflow: hidden; border-radius: 4px; }
.media-frame video { width: 100%; height: 100%; object-fit: cover; }
.media-frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 0.9rem; background: linear-gradient(transparent, rgba(8, 22, 38, 0.82)); font-size: 0.78rem; color: #d3deea; }
.media-frame figcaption b { display: block; font: 700 1rem/1.25 var(--display); margin-top: 0.2rem; color: #fff; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-9x16 { aspect-ratio: 9 / 16; }

.pullout { margin-top: 1.75rem; padding: 1.4rem 1.5rem; border-left: 3px solid var(--cyan); background: var(--white); }
.pullout h3 { font-size: 1.3rem; }
.pullout p { margin-top: 0.6rem; color: var(--muted); }

/* About */
.about { display: grid; gap: 2rem; align-items: center; }
.about-photo { position: relative; max-width: 22rem; isolation: isolate; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.about-photo::after { content: ""; position: absolute; inset: -0.6rem; border-radius: 50%; border: 2px solid var(--cyan); z-index: -1; }
@media (min-width: 900px) { .about { grid-template-columns: 20rem 1fr; gap: 4.5rem; } }
@media (max-width: 899px) { .about-photo { width: min(11rem, 50vw); margin: 0.6rem 0 0.75rem 0.6rem; } .about { gap: 2rem; } }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; border-top: 2px solid var(--ink); }
.stats div { padding: 1rem 0.9rem 0 0; }
.stats b { display: block; font: 800 clamp(1.5rem, 4.5vw, 2.3rem)/1 var(--display); color: var(--ink); }
.stats span { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 479px) { .stats b { font-size: 1.35rem; } }
.example { margin-top: 1.75rem; color: var(--muted); padding-left: 1rem; border-left: 3px solid var(--line-strong); }
.example b { color: var(--text); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; }
.chips li { background: var(--sky); padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.88rem; color: var(--ink); }

/* Grids: one sheet split by hairlines, not floating cards */
.grid { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--paper); padding: 1.6rem 1.4rem 1.7rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
@media (min-width: 640px) { .card { padding: 1.6rem 1.6rem 1.8rem; } }
.card .num { display: none; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.card .tags li { font-size: 0.86rem; padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.grid-note { margin-top: 1.25rem; color: var(--muted); font-size: 0.95rem; }

/* Process: a real sequence, so it keeps its numbers */
.steps { display: grid; gap: 0; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.steps li { counter-increment: s; position: relative; padding: 1.4rem 0; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); display: block; font: 800 2.6rem/1 var(--display); color: var(--teal); margin-bottom: 0.9rem; }
.steps p { color: var(--muted); margin-top: 0.5rem; font-size: 0.98rem; }
@media (max-width: 899px) { .steps li { display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 0.75rem; border-top-width: 1px; } .steps li::before { grid-row: span 2; font-size: 1.9rem; margin: 0; } .steps p { margin-top: 0.3rem; } }

/* Dark band: the clips from China, and the last call to action */
.section.dark { background: var(--ink); color: #e6eef7; border-top: 0; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .kicker { color: var(--cyan); }
.section.dark .lead, .section.dark .on-ground-copy, .section.dark .fine, .section.dark .rail-hint { color: #a9bccf; }
.section.dark .on-ground-copy strong, .section.dark .lead strong { color: #fff; }
.section.dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.section.dark .btn-ghost:hover { border-color: #fff; }
.section.dark + .section { border-top: 0; }

/* Clips rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 1fr); gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; scrollbar-width: thin; }
.rail figure { margin: 0; scroll-snap-align: start; }
@media (max-width: 639px) { .rail { grid-auto-columns: 72%; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); } }
.rail-hint { margin-top: 0.75rem; font-size: 0.85rem; color: var(--muted); }
@media (min-width: 1100px) { .rail { grid-auto-columns: 1fr; overflow: visible; } .rail-hint { display: none; } }
.on-ground-copy { display: grid; gap: 1rem; color: var(--muted); max-width: 44rem; }
.on-ground-copy strong { color: var(--text); font-weight: 500; }

/* Offers */
.offers { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .offers { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.offer { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: 6px; padding: clamp(1.5rem, 4vw, 2.25rem); scroll-margin-top: calc(var(--header) + 1rem); box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(14, 42, 71, 0.35); }
.offer.featured { box-shadow: inset 0 0 0 2px var(--cyan), 0 24px 50px -30px rgba(0, 117, 109, 0.5); }
.offer .badge { position: absolute; top: -0.8rem; left: 1.5rem; background: var(--cyan); color: var(--cyan-ink); font: 500 0.82rem/1 var(--body); padding: 0.45rem 0.75rem; border-radius: 999px; }
.offer h3 { font-size: 1.45rem; }
.offer .for { color: var(--muted); margin-top: 0.5rem; font-size: 0.98rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem; margin: 1.3rem 0 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.price b { font: 800 3rem/1 var(--display); color: var(--ink); letter-spacing: -0.03em; }
.price span { font-size: 0.88rem; color: var(--muted); }
.ticks { display: grid; gap: 0.55rem; margin-bottom: 1.6rem; }
.ticks li { display: flex; gap: 0.7rem; font-size: 0.98rem; }
.ticks li::before { content: ""; flex: none; width: 0.85rem; height: 0.45rem; margin-top: 0.5rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.offer .spacer { flex: 1; }
.fine { margin-top: 0.85rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
.facts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.4rem; }
.facts-row div { background: var(--paper); border-radius: 4px; padding: 0.75rem; }
.facts-row span { display: block; font-size: 0.8rem; font-weight: 500; color: var(--teal); }
.facts-row p { font-size: 0.9rem; margin-top: 0.25rem; color: var(--text); }

/* Bigger projects */
.custom { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .custom { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.custom li { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.custom p { color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }
.custom .scope { flex: none; font-size: 0.85rem; color: var(--muted); white-space: nowrap; padding-top: 0.15rem; }
.custom .scope.price { color: var(--teal); font-weight: 500; text-align: right; display: block; margin: 0; padding-bottom: 0; border: 0; }
.custom .scope .link { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.custom-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.custom-cta p { color: var(--muted); font-size: 0.92rem; max-width: 30rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; font: 700 1.08rem/1.35 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--sky); color: var(--teal); font: 500 1.3rem/1.8rem var(--body); text-align: center; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--muted); max-width: 46rem; }

/* Library */
.library { display: grid; gap: 1.5rem; align-items: center; background: var(--sky); border-radius: 6px; padding: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 860px) { .library { grid-template-columns: 1fr auto; } }
.library h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); max-width: none; }
.library p { color: var(--muted); margin-top: 0.8rem; max-width: 40rem; }

/* Final CTA + footer */
.final { text-align: center; }
.final h2 { margin: 0.9rem auto 0; max-width: 18ch; }
.final .lead { margin: 1.1rem auto 0; }
.final .btn { margin-top: 2rem; }
.final .fine { margin-top: 1rem; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.final .contact-row .btn { margin-top: 0; }
.site-footer { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.75rem 0 calc(1.75rem + env(safe-area-inset-bottom)); }
.footer-copy { text-align: center; color: #a9bccf; font-size: 0.85rem; }

/* Mobile sticky booking bar */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line), 0 -10px 30px -20px rgba(14, 42, 71, 0.4); display: flex; align-items: center; gap: 0.75rem; transform: translateY(110%); transition: transform 0.3s; }
.sticky-cta.show { transform: none; }
.sticky-cta p { flex: 1; font-size: 0.8rem; line-height: 1.3; color: var(--muted); }
.sticky-cta p b { display: block; color: var(--ink); font-weight: 500; font-size: 0.92rem; }
.sticky-cta .btn { min-height: 2.75rem; padding: 0.55rem 1.2rem; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (max-width: 899px) { .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); } }

/* Sections no longer slide in on scroll (app.js still adds .in; harmless) */
.reveal { opacity: 1; transform: none; }

/* Order dialog */
dialog.order { width: min(36rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); margin: auto; padding: 0; background: var(--white); color: var(--text); border: 0; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(14, 42, 71, 0.5); }
dialog.order::backdrop { background: rgba(14, 42, 71, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.order-inner { padding: 1.5rem 1.25rem 1.25rem; }
@media (min-width: 640px) { .order-inner { padding: 2rem; } }
.order-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.order-head h2 { font-size: 1.45rem; }
.order-head p { margin-top: 0.4rem; font-size: 0.9rem; color: var(--muted); }
.order-close { flex: none; width: 2.75rem; height: 2.75rem; margin: -0.6rem -0.6rem 0 0; background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.order-close:hover { color: var(--ink); }
.order-steps { display: flex; gap: 0.5rem; margin: 1.1rem 0 1.25rem; font-size: 0.8rem; color: var(--muted); }
.order-steps span { flex: 1; padding-top: 0.5rem; border-top: 3px solid var(--line); }
.order-steps span.on { border-color: var(--cyan); color: var(--ink); font-weight: 500; }
.fields { display: grid; gap: 0.85rem; }
@media (min-width: 560px) { .fields { grid-template-columns: 1fr 1fr; } .fields .wide { grid-column: span 2; } }
.field label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink); margin-bottom: 0.35rem; }
.field label i { color: var(--teal); font-style: normal; }
.field input, .field textarea, .field select { width: 100%; background: var(--paper); color: var(--text); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0.7rem 0.8rem; font: 400 1rem/1.4 var(--body); -webkit-appearance: none; appearance: none; }
.field select { -webkit-appearance: auto; appearance: auto; }
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 224, 208, 0.25); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.order-msg { margin-top: 0.9rem; font-size: 0.88rem; padding-left: 0.75rem; border-left: 3px solid var(--cyan); color: var(--muted); }
.order-msg.error { border-color: var(--danger); color: var(--danger); }
.order form .btn { margin-top: 1.25rem; }

/* Simple pages (thanks, 404): the bay behind a white card */
.simple { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 1.5rem var(--gutter); background: linear-gradient(180deg, rgba(14, 42, 71, 0.35), rgba(14, 42, 71, 0.75)), url(/media/hero-shenzhen-lg.webp) center 58% / cover var(--ink); }
.simple-card { width: 100%; max-width: 34rem; background: var(--white); border-radius: 8px; padding: clamp(1.75rem, 5vw, 2.5rem); text-align: center; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5); }
.simple-card h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); margin-top: 0.75rem; }
.simple-card p { margin-top: 1rem; color: var(--muted); }
.simple-card .btn { margin-top: 1.75rem; }
.simple-card .fine { margin-top: 1.5rem; }

@media (max-width: 479px) { .header-actions { gap: 0.6rem; } .brand { font-size: 0.95rem; gap: 0.45rem; } .site-header .btn { padding: 0.5rem 0.8rem; font-size: 0.82rem; } }
@media (max-width: 359px) { html:not([lang="ar"]) .brand { font-size: 0; gap: 0; } }

/* Arabic (/ar/): right-to-left. Arabic falls to a system face; letters join, so no letter-spacing. */
html[lang="ar"] {
  --display: "Archivo", "Segoe UI", "SF Arabic", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
  --body: "Inter Tight", "Segoe UI", "SF Arabic", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
}
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] :is(h1, h2, h3) { line-height: 1.35; }
html[lang="ar"] .hero h1 { line-height: 1.25; font-size: clamp(1.8rem, min(7vw, 6.4svh), 4rem); max-width: 20ch; }
html[lang="ar"] .hero-tag { line-height: 1.55; }
html[lang="ar"] .btn { font-weight: 600; line-height: 1.4; }
html[lang="ar"] .price b { font-size: 2.6rem; line-height: 1.3; }
html[lang="ar"] .stats b, html[lang="ar"] .hero-facts b { line-height: 1.3; }
html[lang="ar"] .faq summary { line-height: 1.6; }
html[lang="ar"] .custom .scope { white-space: normal; max-width: 9rem; text-align: left; }
html[dir="rtl"] .skip { left: auto; right: -999px; }
html[dir="rtl"] .skip:focus { left: auto; right: 0.5rem; }
html[dir="rtl"] .hero-facts div, html[dir="rtl"] .stats div { padding: 0.9rem 0 0 0.75rem; }
html[dir="rtl"] .card { padding-right: 0; padding-left: 1.4rem; }
@media (min-width: 640px) { html[dir="rtl"] .card { padding: 1.6rem 1.6rem 1.8rem; } }
html[dir="rtl"] :is(.pullout, .example) { border-left: 0; padding-left: 1.5rem; border-right: 3px solid var(--cyan); }
html[dir="rtl"] .example { border-right-color: var(--line-strong); padding-left: 0; padding-right: 1rem; }
@media (max-width: 899px) { html[dir="rtl"] .about-photo { margin: 0.6rem 0.6rem 0.75rem 0; } }
@media (max-width: 639px) { html[dir="rtl"] .rail { margin-right: 0; padding-right: 0; margin-left: calc(var(--gutter) * -1); padding-left: var(--gutter); } }
html[dir="rtl"] .offer .badge { left: auto; right: 1.5rem; }
html[dir="rtl"] .order-close { margin: -0.6rem 0 0 -0.6rem; }
html[dir="rtl"] .order-msg { padding-left: 0; padding-right: 0.75rem; border-left: 0; border-right: 3px solid var(--cyan); }
html[dir="rtl"] .order-msg.error { border-right-color: var(--danger); }
html[dir="rtl"] .field :is(input[type="email"], input[type="tel"]) { direction: ltr; text-align: right; }
@media (min-width: 900px) { html[dir="rtl"] .hero-bottom .hero-facts { min-width: 26rem; } html[lang="ar"] .hero h1 { max-width: 28ch; font-size: clamp(2rem, min(3.5vw, 5.8svh), 3.3rem); } html[lang="ar"] .hero-bottom .lead { max-width: 48rem; font-size: 1.1rem; }
  html[lang="ar"] .hero::after { background: linear-gradient(180deg, rgba(14, 42, 71, 0.62) 0%, rgba(14, 42, 71, 0.18) 30%, rgba(14, 42, 71, 0) 44%, rgba(14, 42, 71, 0.2) 56%, rgba(14, 42, 71, 0.8) 72%, rgba(14, 42, 71, 0.95) 100%); } }

/* Shared polish: no orphan words */
h1, h2, h3, h4, summary, blockquote { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
