/* Tigzi Tech. Colours come from the logo (navy, amber); teal is the quiet
   second accent. Every spacing rule uses logical properties so the Arabic
   pages mirror without a second stylesheet. */

@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600 700; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --navy: #0B1F3A;
  --navy-2: #14305A;
  --ink: #16263F;
  --muted: #55647B;
  --line: #E2E6EC;
  --mist: #F3F4F6;
  --paper: #FFFFFF;
  --amber: #F5A41C;
  --amber-soft: #FEF3DC;
  --amber-ink: #8A4B00;
  --teal: #14B8A6;
  --teal-ink: #0B6F66;
  --sky: #9CC2FF;
  --radius: 18px;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --display: "Poppins", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  /* A band of lozenges joined like circuit traces: the geometric motif. */
  --weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cpath d='M0 12 12 2l12 10 12-10 12 10M0 12l12 10 12-10 12 10 12-10' fill='none' stroke='%23F5A41C' stroke-width='1.5'/%3E%3Ccircle cx='24' cy='12' r='2.6' fill='%23F5A41C'/%3E%3Ccircle cx='0' cy='12' r='2.6' fill='%23F5A41C'/%3E%3Ccircle cx='48' cy='12' r='2.6' fill='%23F5A41C'/%3E%3C/svg%3E");
  --lozenges: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 80 40 40 80 0 40Z' fill='none' stroke='%23FFFFFF' stroke-opacity='.055' stroke-width='1.5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
:lang(ar) body, body:lang(ar) { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
/* An image that shrinks keeps its shape (the width and height attributes only reserve the space). */
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }
.gap { display: inline-block; padding: 0 .5em; border: 1.5px dashed var(--amber); border-radius: 6px; background: var(--amber-soft); color: var(--amber-ink); font-size: .9em; font-weight: 500; white-space: nowrap; }
.arr { display: inline-block; transition: transform .2s; }
[dir="rtl"] .arr { transform: scaleX(-1); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .82em 1.5em; border: 1.5px solid transparent; border-radius: 999px; font: 600 .98rem/1.2 var(--display); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .18s, box-shadow .18s, background-color .18s, color .18s, border-color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arr { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.btn-sm { padding: .62em 1.15em; font-size: .9rem; }
.btn-primary { background: var(--amber); color: var(--navy); box-shadow: 0 8px 22px -10px rgba(245, 164, 28, .9); }
.btn-primary:hover { background: #FFB431; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.link { font: 600 1rem var(--display); color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.link:hover .arr { transform: translateX(4px); }
[dir="rtl"] .link:hover .arr { transform: scaleX(-1) translateX(4px); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font: 500 .96rem var(--display); text-decoration: none; color: var(--ink); transition: background-color .15s; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.top-end { display: flex; align-items: center; gap: 14px; }
.langs { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.langs a { min-width: 34px; padding: 4px 9px; border-radius: 999px; font: 600 .78rem/1.5 var(--display); text-align: center; text-decoration: none; color: var(--muted); }
.langs a:hover { color: var(--navy); }
.langs a[aria-current] { background: var(--navy); color: #fff; }
.menu { display: none; position: relative; }
.menu summary { display: grid; gap: 5px; align-content: center; width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel { position: absolute; inset-inline-end: 0; top: 56px; display: grid; gap: 2px; width: min(320px, calc(100vw - 2 * var(--gutter))); padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px -24px rgba(11, 31, 58, .45); }
.menu-panel a:not(.btn) { padding: 12px 14px; border-radius: 12px; font: 500 1.05rem var(--display); text-decoration: none; }
.menu-panel a:not(.btn):hover, .menu-panel a[aria-current] { background: var(--mist); }
.menu-panel .btn { justify-content: center; margin-top: 8px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(60% 70% at 85% 20%, var(--amber-soft), transparent 70%), linear-gradient(180deg, #fff, #FBFCFD); border-bottom: 1px solid var(--line); }
[dir="rtl"] .hero { background: radial-gradient(60% 70% at 15% 20%, var(--amber-soft), transparent 70%), linear-gradient(180deg, #fff, #FBFCFD); }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(24px, 4vw, 64px); padding-block: clamp(48px, 8vw, 104px); }
.hero h1 { font-size: clamp(2.35rem, 5.6vw, 4.5rem); color: var(--navy); }
.hero h1::after { content: ""; display: block; width: 144px; height: 14px; margin-top: 22px; background: var(--weave) 0 50% / 48px 14px repeat-x; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 58ch; }
.hero .lead { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 36px; font: 500 .9rem var(--display); color: var(--ink); }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--teal); }
.hero-text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-text > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.ridge { width: 100%; height: auto; }
.ridge .dot { fill: #C9D1DC; }
.ridge .trace { stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s .25s cubic-bezier(.6, 0, .2, 1) forwards; }
.ridge .t2 { stroke: var(--navy); stroke-width: 4; }
.ridge .t3 { stroke: #AEB9C8; stroke-width: 3; animation-delay: .45s; }
.ridge .t1 { stroke: var(--amber); stroke-width: 4; animation-duration: .5s; animation-delay: 1.5s; }
.ridge .b1, .ridge .b2, .ridge .b3 { animation-delay: 1.95s; }
.ridge .joints circle { fill: #fff; stroke: var(--navy); stroke-width: 3; }
.ridge .peaks circle { fill: var(--amber); stroke: #fff; stroke-width: 3; }
.ridge .joints, .ridge .peaks { animation: fade .5s 1.3s both; }
.ridge .sun circle { fill: var(--amber); transform-box: fill-box; transform-origin: center; animation: pop .5s 1.9s cubic-bezier(.3, 1.6, .5, 1) both; }
.ridge .sun circle:nth-child(n+3) { animation-delay: 2.25s; }
.ridge .sun .halo { fill: var(--amber); opacity: .16; animation: pop .6s 1.9s both, breathe 4s 2.6s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .08; } }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section.tight { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 116px); }
.section.soft { background: var(--mist); }
.section.dark { position: relative; background: var(--navy) var(--lozenges); color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2, .about-teaser h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); color: var(--navy); }
.dark .section-head h2 { color: #fff; }
.section-head p:not(.kicker) { margin-top: 14px; font-size: 1.12rem; color: var(--muted); }
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 600 .82rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-ink); }
:lang(ar) .kicker { letter-spacing: 0; font-size: .95rem; }
.kicker::before { content: ""; width: 34px; height: 10px; background: radial-gradient(circle at 5px 5px, var(--amber) 4.500px, transparent 5px), linear-gradient(var(--amber), var(--amber)) 5px 4px / 100% 2px no-repeat; }
[dir="rtl"] .kicker::before { transform: scaleX(-1); }
.dark .kicker { color: var(--amber); }
.more { margin-top: 36px; }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; display: block; height: 100%; padding: 28px 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
[dir="rtl"] .card::before { transform-origin: right; }
.card:hover { border-color: var(--navy); transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(11, 31, 58, .5); }
.card:hover::before { transform: scaleX(1); }
.card-n { position: absolute; inset-inline-end: 24px; top: 24px; font: 500 .82rem var(--display); color: #A3ADBB; }
.card-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--mist); color: var(--navy); transition: background-color .2s; }
.card:hover .card-ico { background: var(--amber); }
.ico { width: 26px; height: 26px; }
.card h3 { margin-top: 22px; font-size: 1.22rem; color: var(--navy); }
.card p { margin-top: 10px; font-size: .98rem; color: var(--muted); }

/* values */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden; }
.values li { position: relative; padding: clamp(26px, 3.5vw, 44px); padding-inline-start: clamp(84px, 9vw, 116px); background: var(--navy); }
.value-n { position: absolute; inset-inline-start: clamp(24px, 3vw, 40px); top: clamp(22px, 3.2vw, 38px); font: 600 3rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--amber); }
.values h3 { font-size: 1.28rem; }
.values p { margin-top: 8px; color: #C4CEDC; }
.values.on-light { background: var(--line); border-color: var(--line); }
.values.on-light li { background: #fff; }
.values.on-light h3 { color: var(--navy); }
.values.on-light p { color: var(--muted); }
.values.on-light .value-n { -webkit-text-stroke-color: var(--amber); }

/* steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps::before { content: ""; position: absolute; inset-inline: 22px; top: 21px; height: 2px; background: repeating-linear-gradient(90deg, var(--navy) 0 10px, transparent 10px 18px); }
.steps li { position: relative; }
.step-n { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 8px #fff; font: 600 1.05rem var(--display); color: var(--navy); }
.steps h3 { margin-top: 22px; font-size: 1.2rem; color: var(--navy); }
.steps p { margin-top: 8px; color: var(--muted); font-size: .98rem; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { display: flex; flex-direction: column; height: 100%; padding: 10px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.project:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: 0 26px 50px -30px rgba(11, 31, 58, .5); }
.project-body { padding: 18px 14px 16px; }
.project h3 { font-size: 1.45rem; color: var(--navy); }
[dir="rtl"] .project h3 { text-align: right; }
.project-kind { margin-top: 2px; font: 500 .92rem var(--display); color: var(--amber-ink); }
.project-body p:not(.project-kind) { margin-top: 10px; font-size: .98rem; color: var(--muted); }

/* Screenshots: a desktop page in a browser window, a phone app in phone frames. */
.shot { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy) var(--lozenges); }
.shot img { width: 100%; height: auto; }
.window { border: 1px solid #1E3558; box-shadow: 0 22px 44px -28px rgba(11, 31, 58, .65); }
.bar { display: flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; background: var(--navy); }
.bar i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #3A5079; }
.bar i:first-child { background: var(--amber); }
.bar span { flex: 1; min-width: 0; margin-inline-start: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); font: 500 .72rem/1.5 var(--body); color: #C4CEDC; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.project .window img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 6%; padding: 22px 18px 0; }
/* Same height as a browser window (30px bar + a 16:10 page) at card width. */
.project .phones { aspect-ratio: 16 / 11.35; }
.phone { display: block; flex: 0 1 40%; padding: 5px; border-radius: 22px; background: #050E1C; box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .7); }
.phone img { border-radius: 17px; background: #fff; }
.project .phone { border-end-start-radius: 0; border-end-end-radius: 0; padding-bottom: 0; max-height: 100%; overflow: hidden; }
.project .phone img { border-end-start-radius: 0; border-end-end-radius: 0; }
.project .phone:nth-child(2) { margin-bottom: 22px; }

/* about */
.about-teaser { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(28px, 6vw, 88px); }
.about-teaser .lead { margin-block: 18px 26px; }
.entry { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: calc(var(--radius) + 6px); background: var(--amber-soft); overflow: hidden; }
.entry::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 18px; background: var(--weave) 0 50% / 48px 18px repeat-x; opacity: .7; }
.entry-word { font: 600 clamp(3.4rem, 8vw, 6rem)/1 var(--display); letter-spacing: -0.04em; color: var(--navy); }
[dir="rtl"] .entry-word { text-align: right; }
.entry-kind { margin-top: 14px; font: 500 .9rem var(--display); color: var(--amber-ink); }
.entry-meaning { margin-block: 4px 18px; font: 500 1.45rem var(--display); color: var(--navy); }
.mission { max-width: 900px; }
.mission-text { font: 500 clamp(1.4rem, 2.8vw, 2.1rem)/1.4 var(--display); }
:lang(ar) .mission-text { line-height: 1.7; }

/* call to action */
.cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(32px, 5vw, 60px); border-radius: calc(var(--radius) + 10px); background: var(--amber); color: var(--navy); overflow: hidden; }
.cta::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 16px; background: var(--weave) 0 50% / 48px 16px repeat-x; filter: brightness(0); opacity: .16; }
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.cta p { margin-top: 8px; font-size: 1.1rem; max-width: 52ch; }

/* ---------------------------------------------------------------- inner pages */
.page-head { background: var(--navy) var(--lozenges); color: #fff; padding-block: clamp(52px, 8vw, 100px); }
.page-head h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); max-width: 18ch; }
.page-head h1::after { content: ""; display: block; width: 144px; height: 14px; margin-top: 20px; background: var(--weave) 0 50% / 48px 14px repeat-x; }
.page-head .lead { margin-top: 20px; color: #C4CEDC; max-width: 64ch; }

.jump { position: sticky; top: 76px; z-index: 20; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.jump ul { display: flex; gap: 6px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a { display: block; padding: 7px 14px; border-radius: 999px; background: var(--mist); font: 500 .86rem var(--display); white-space: nowrap; text-decoration: none; }
.jump a:hover { background: var(--amber-soft); }

.svc { padding-block: clamp(48px, 7vw, 88px); scroll-margin-top: 130px; border-bottom: 1px solid var(--line); }
.svc:nth-of-type(even) { background: var(--mist); }
.svc-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 80px); }
.svc header { position: relative; }
.svc-n { display: block; margin-bottom: 18px; font: 600 3.4rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--amber); }
.svc .card-ico { background: var(--navy); color: var(--amber); }
.svc h2 { margin-top: 20px; font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--navy); }
.svc header .lead { margin-top: 12px; }
.svc-body h3, .proj h3 { margin: 28px 0 12px; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-ink); }
:lang(ar) .svc-body h3, :lang(ar) .proj h3 { letter-spacing: 0; font-size: 1rem; }
.svc-body .btn { margin-top: 30px; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .52em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--teal); }

.proj { padding-block: clamp(48px, 7vw, 88px); scroll-margin-top: 90px; border-bottom: 1px solid var(--line); }
.proj:nth-of-type(odd) { background: var(--mist); }
.proj-in { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.proj:nth-of-type(odd) .proj-in > :first-child { order: 2; }
.proj-in { align-items: start; }
.shots { margin: 0; }
.gallery.desk { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery.desk .main { grid-column: 1 / -1; }
.gallery a { transition: transform .2s, box-shadow .2s; }
.gallery a:hover { transform: translateY(-3px); }
.gallery.phones { padding: 26px 18px; border-radius: var(--radius); background: var(--navy) var(--lozenges); align-items: center; }
.gallery.phones .phone { flex-basis: 30%; }
.gallery.phones .phone:nth-child(2) { transform: translateY(-14px); }
.gallery.phones .phone:nth-child(2):hover { transform: translateY(-17px); }
.shots figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.proj h2 { margin-top: 10px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--navy); }
[dir="rtl"] .proj h2 { text-align: right; }
.proj .lead { margin-top: 12px; }
.proj .btn, .soon { margin-top: 30px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #DDF5F2; font: 600 .78rem var(--display); color: var(--teal-ink); }
.soon { display: inline-flex; align-items: center; gap: 10px; padding: .7em 1.2em; border: 1.5px dashed #A3ADBB; border-radius: 999px; font: 600 .92rem var(--display); color: var(--muted); }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* contact */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; align-items: start; gap: clamp(20px, 3vw, 40px); }
.contact > * { min-width: 0; }
.form { position: relative; }
/* A long e-mail address may break anywhere rather than widen the page. */
.reach dd, .foot li span, .facts dd { overflow-wrap: anywhere; }
.form, .reach { padding: clamp(22px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: #fff; }
.form h2, .reach h2 { font-size: 1.5rem; color: var(--navy); margin-bottom: 22px; }
.form fieldset { display: grid; gap: 18px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form fieldset:disabled { opacity: .55; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; font: 500 .92rem var(--display); color: var(--navy); }
.field em { font: 400 .82rem var(--body); color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1.5px solid #CBD2DC; border-radius: 12px; background: #fff; font: 400 1rem var(--body); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(20, 184, 166, .22); }
.field [aria-invalid="true"] { border-color: #B42318; }
.err { font: 500 .85rem var(--body); color: #B42318; }
/* The robot trap: out of sight without moving it off the page (an offset
   would widen right-to-left pages). */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; font-size: .95rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--navy); }
.check .err { grid-column: 2; }
.check a { color: var(--navy); }
.form .btn { justify-self: start; }
.notice { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-ink); font-size: .96rem; }
.status { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: #DDF5F2; color: var(--teal-ink); font-weight: 500; }
.status.bad { background: #FDECEA; color: #B42318; }
.reach dl { display: grid; gap: 4px; margin: 0; }
.reach dt { display: flex; align-items: center; gap: 10px; margin-top: 16px; font: 600 .8rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .reach dt { letter-spacing: 0; font-size: .92rem; }
.reach dt .ico { width: 18px; height: 18px; color: var(--teal-ink); }
.reach dd { margin: 0; padding-inline-start: 28px; font-size: 1.05rem; }
.reach dd a:not(.btn) { color: var(--navy); }
.map { margin-top: 26px; padding: 22px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--mist); text-align: center; color: var(--muted); }
.map iframe { display: block; width: 100%; height: 280px; border: 0; border-radius: 12px; }
.note { margin-top: 10px; font-size: .85rem; }

/* legal */
.prose { max-width: 820px; }
.prose h2 { margin: 0 0 20px; font-size: 1.7rem; color: var(--navy); scroll-margin-top: 100px; }
.prose h2:not(:first-child) { margin-top: 56px; }
.prose h3 { margin: 26px 0 8px; font-size: 1.12rem; color: var(--navy); }
.prose p { color: var(--muted); }
.prose a { color: var(--navy); }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { display: grid; grid-template-columns: minmax(150px, .8fr) 1.2fr; gap: 16px; padding: 14px 20px; }
.facts div:nth-child(odd) { background: var(--mist); }
.facts dt { font: 500 .95rem var(--display); color: var(--navy); }
.facts dd { margin: 0; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--navy); color: #C4CEDC; }
.weave { height: 22px; background: var(--weave) 50% 50% / 48px 22px repeat-x; opacity: .9; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-in { display: grid; grid-template-columns: 1.5fr 1.1fr .8fr 1.1fr; gap: clamp(24px, 4vw, 56px); padding-block: clamp(44px, 6vw, 72px); }
.foot-brand img { height: 62px; width: auto; }
.foot-brand p { margin-top: 18px; max-width: 34ch; font-size: .96rem; }
.foot h2 { margin-bottom: 14px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
:lang(ar) .foot h2 { letter-spacing: 0; font-size: 1rem; }
.foot li { margin-top: 8px; font-size: .96rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }
.foot .lines li { display: flex; gap: 10px; align-items: flex-start; }
.foot .lines .ico { flex: none; width: 18px; height: 18px; margin-top: 5px; color: var(--amber); }
.foot .gap { background: transparent; color: var(--amber); }
.social { display: flex; gap: 16px; }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }

/* 404 */
.lost { display: grid; gap: 32px; justify-items: center; align-content: center; min-height: 100vh; padding: 40px 20px; text-align: center; }
.lost h1, .lost h2 { font-size: 1.6rem; color: var(--navy); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.team li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.team h3 { font-size: 1.15rem; color: var(--navy); }
.team p { margin-top: 4px; color: var(--muted); }
.lost p { margin-top: 6px; color: var(--muted); }
.lost .btn { margin-top: 12px; }

/* scroll reveal: only armed by the script, so the page reads without it */
.pre { opacity: 0; transform: translateY(22px); }
.reveal { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.cards li:nth-child(3n+2), .projects li:nth-child(2), .steps li:nth-child(2), .values li:nth-child(2) { transition-delay: .08s; }
.cards li:nth-child(3n), .projects li:nth-child(3), .steps li:nth-child(3), .values li:nth-child(3) { transition-delay: .16s; }
.steps li:nth-child(4), .values li:nth-child(4) { transition-delay: .24s; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1120px) {
  .nav, .quote { display: none; }
  .menu { display: block; }
  .top-end { margin-inline-start: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-in, .about-teaser, .svc-in, .proj-in, .contact { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-inline: auto; width: 100%; }
  .projects { grid-template-columns: 1fr; }
  .proj:nth-of-type(odd) .proj-in > :first-child { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { inset-inline: 21px auto; inset-block: 22px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--navy) 0 10px, transparent 10px 18px); }
  .steps li { padding-inline-start: 68px; padding-bottom: 30px; }
  .steps li:last-child { padding-bottom: 0; }
  .step-n { position: absolute; inset-inline-start: 0; top: 0; }
  .steps h3 { margin-top: 0; padding-top: 8px; }
  .jump { top: 64px; }
}
@media (max-width: 640px) {
  .top-in { min-height: 64px; gap: 12px; }
  .brand img { height: 38px; }
  .cards, .values, .row { grid-template-columns: 1fr; }
  .values li { padding-inline-start: 76px; }
  .value-n { font-size: 2.4rem; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .foot-in { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ridge .trace { stroke-dashoffset: 0; }
  .pre { opacity: 1; transform: none; }
}
@media print {
  .top, .jump, .cta, .foot .weave, .hero-art { display: none; }
  .page-head, .section.dark, .foot { background: none; color: #000; }
}
