/* ==========================================================================
   Pubbuilders — inner pages (loaded after style.css)
   1 Shared · 2 About (tabs) · 3 Services · 4 Contact · 5 Projects · 6 Project detail
   7 GITEX Africa 2027 · 8 404 · 9 Lightbox · 10 Responsive
   Header, buttons, FAQ, CTA, footer and the .project card come from style.css.
   ========================================================================== */

/* 1. Shared ---------------------------------------------------------------- */
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 500; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--ink-dark); font: 500 14px/20px var(--font-ui); box-shadow: 0 2px 12px rgba(0, 0, 0, .15); transition: top .2s ease; }
.skip-link:focus { top: 12px; }

:root {
  --navy: #01165a;
  --navy-soft: #34457b;
  --tint: #e0e4dd;
  --line: #d8d8d9;
  --accent: #228ad3;
  --row-h: clamp(560px, calc(100svh - var(--nav-h)), 900px);   /* Services scroll rows */
}

.nav__link[aria-current="page"] { color: #2e2e2e; }
.nav__link[aria-current="page"]::after { width: 100%; }

.page { padding-top: calc(var(--nav-h) + 69px); }
.page-title { text-align: center; }

.tag { display: inline-block; padding: 4px 10px; font-size: 14px; line-height: 14px; font-weight: 500; text-transform: uppercase; color: var(--navy); background: rgba(1, 22, 90, .07); }
.tag--accent { border-left: 2px solid #fe6014; }
.tag--white { background: #fff; }

/* 2. About — Mission / Vision / Story share one composition ----------------- */
.about { width: min(1200px, 100% - 48px); margin-inline: auto; }
.about__brochure { margin-top: 32px; }
.about__title { max-width: 900px; margin: 0 auto; text-align: center; text-wrap: balance; font-size: 44px; line-height: 48px; font-weight: 600; letter-spacing: -1.44px; text-transform: uppercase; color: #000; }

/* Mission / Vision / Story: tabs, one panel visible at a time */
.about-tabs { margin-top: 80px; }
.about-nav { display: flex; padding: 0 20px; border-block: 1px solid #333; }
.about-nav button { position: relative; flex: 1; height: 77px; font: inherit; font-size: 18px; font-weight: 500; text-transform: uppercase; color: var(--accent); transition: background-color .25s ease, color .25s ease; }
.about-nav button::before, .about-nav button:last-child::after { content: ""; position: absolute; top: -10px; bottom: -10px; left: 0; width: 1px; background: #333; }
.about-nav button:last-child::after { left: auto; right: 0; }
.about-nav button:hover { background: rgba(34, 138, 211, .08); }
.about-nav button[aria-selected="true"] { background: var(--accent); color: #fff; }
.about-nav button:focus-visible { outline: 2px solid var(--navy); outline-offset: -4px; }

.story { display: grid; grid-template-columns: minmax(0, 545px) 525px; justify-content: space-between; align-items: center; gap: 40px; margin-top: 64px; }
.story[hidden] { display: none; }
.story:focus { outline: none; }
.story h2 { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.96px; text-transform: uppercase; color: #000; text-wrap: balance; }
.story__text p { margin-top: 20px; font-size: 16px; line-height: 27.2px; color: #000; }
.story__text .btn { margin-top: 32px; }
.story__img { width: 525px; height: 450px; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .story:not([hidden]) { animation: story-in .45s cubic-bezier(.2, .7, .2, 1); }
  @keyframes story-in { from { opacity: 0; transform: translateY(10px); } }
}

.expertise { margin-top: 110px; padding: 95px 30px 80px; background: var(--tint); }
.expertise h2 { font-size: 64px; line-height: 64px; font-weight: 600; letter-spacing: -1.92px; text-transform: uppercase; color: var(--navy); }
.expertise p { max-width: 560px; margin-top: 16px; font-size: 16px; line-height: 27.2px; color: var(--navy-soft); }

.cards { margin-top: 120px; padding-inline: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; justify-content: center; gap: 64px; min-height: 500px; padding: 40px; border: 1px solid #d4e2ee; }
.card h3 { margin-bottom: 30px; font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -.6px; text-transform: uppercase; color: var(--blue); }
.card img { width: 100px; height: 100px; margin-inline: auto; }
.card p { font-size: 16px; line-height: 27.2px; color: var(--blue); }
.cards__more { margin-top: 29px; }

.why { margin-top: 31px; padding: 120px 30px; background: var(--tint); }
.why__inner { width: min(100%, 1300px); margin-inline: auto; }
.why__head { text-align: center; }
.why__head h2 { max-width: 642px; margin: 8px auto 0; text-wrap: balance; font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -1.44px; text-transform: uppercase; color: var(--navy); }
.why__body { margin-top: 80px; display: grid; grid-template-columns: 625px 625px; justify-content: space-between; gap: 50px; }
.why__photo img { width: 100%; height: 748px; object-fit: cover; object-position: center 78%; }
.why__list { display: flex; flex-direction: column; gap: 20px; }
.why-card { min-height: 172px; padding: 20px 20px 20px 30px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--bg); }
.why-card h3 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.66px; text-transform: uppercase; color: var(--navy); }
.why-card p { max-width: 367px; margin-top: 10px; font-size: 15px; line-height: 24px; color: var(--navy-soft); }
.why-card img { flex: none; width: 150px; height: 132px; object-fit: cover; }

/* 3. Services (stacked sticky images + sticky process) ----------------------- */
.svc-list { position: relative; z-index: 1; margin: 135px 40px 0; padding-bottom: 30px; overflow: clip; }
.svc-row { position: relative; min-height: var(--row-h); border-top: 1px solid var(--line); }
.svc-row__text { display: flex; flex-direction: column; justify-content: center; width: 50%; min-height: var(--row-h); padding: 0 40px; }
.svc-row__num { font-size: 24px; line-height: 28.8px; font-weight: 500; letter-spacing: -.72px; color: #757575; }
.svc-row h2 { margin-top: 7px; font-size: 40px; line-height: 48px; font-weight: 500; letter-spacing: -1.6px; color: var(--green); }
.svc-row__lead { margin-top: 16px; font-size: 18px; line-height: 23.4px; font-weight: 500; letter-spacing: -.54px; color: #000; }
.svc-row ul { margin-top: 25px; }
.svc-row li { position: relative; margin-bottom: 4px; padding-left: 10px; font-size: 14px; line-height: 19.6px; font-weight: 500; letter-spacing: -.56px; color: #636363; }
.svc-row li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; background: #636363; }
/* Each image pins under the header for as long as its wrapper (3 rows) lasts; the next one slides over it. */
.svc-row__img { position: absolute; top: 0; left: 50%; right: 0; height: calc(var(--row-h) * 3); }
.svc-row__img img { position: sticky; top: var(--nav-h); display: block; width: 100%; height: var(--row-h); object-fit: cover; }

.process { position: relative; z-index: 2; padding: 120px 30px; background: var(--tint); }
.process__grid { display: grid; grid-template-columns: 1fr 626px; gap: 20px; align-items: start; width: min(100%, 1200px); margin-inline: auto; }
.process__head { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; }
.process__head h2 { max-width: 500px; margin: 26px 0 0; text-wrap: balance; font-size: 44px; line-height: 48px; font-weight: 600; letter-spacing: -1.44px; text-transform: uppercase; color: var(--navy); }
.process__head .btn { margin-top: 100px; }
.process__steps { display: flex; flex-direction: column; gap: 20px; }
.step { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; grid-template-columns: 1fr 240px; gap: 20px; min-height: 235px; padding: 20px; background: var(--bg); }
.step__body { display: flex; flex-direction: column; justify-content: flex-end; padding-block: 10px; }
.step__body .tag { align-self: flex-start; }
.step h3 { margin-top: 30px; font-size: 24px; line-height: 28.8px; font-weight: 600; letter-spacing: -.72px; text-transform: uppercase; color: var(--navy); }
.step p { margin-top: 12px; font-size: 16px; line-height: 27.2px; color: var(--navy); }
.step img { align-self: center; width: 240px; height: 195px; object-fit: cover; }

/* 4. Contact --------------------------------------------------------------- */
.contact { width: min(100% - 160px, 1280px); margin-inline: auto; padding-top: calc(var(--nav-h) + 62px); }
.contact__title { text-align: center; font-size: 80px; line-height: 80px; letter-spacing: -3.2px; color: #192d33; }
.contact__lead { margin-top: 16px; text-align: center; font-size: 16px; line-height: 26px; letter-spacing: -.5px; color: #676766; }
.contact__shell { width: 932px; max-width: 100%; margin: 66px auto 0; padding: 8px; border-radius: 4px; background: rgba(255, 255, 255, .3); }
.contact__form { padding: 64px; border-radius: 4px; background: #ebebeb; }
.contact__form h2 { font-size: 40px; line-height: 40px; letter-spacing: -1px; color: #192d33; }
.contact__intro { margin: 24px 0 64px; font-size: 16px; line-height: 26px; letter-spacing: -.5px; color: #2a505d; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; }
.field { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 26px; color: #192d33; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; padding: 11px 16px; border: 0; border-radius: 0; outline: 0; background: #fff; font: inherit; line-height: 26px; color: #676766; }
.field textarea { height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a8a8a8; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 2px #2a505d; }
.field [aria-invalid="true"] { box-shadow: 0 0 0 2px #b3261e; }
.field__error { font-size: 14px; line-height: 20px; color: #b3261e; }
.field__error:empty { display: none; }
.contact-submit { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 60px; background: #454545; color: #f2f2f3; font-size: 16px; font-weight: 500; transition: background-color .2s ease; }
.contact-submit:hover:not(:disabled) { background: #2a505d; }
.contact-submit:disabled { cursor: default; opacity: .7; }
.contact-submit svg { width: 16px; height: 16px; }
.form-status { grid-column: 1 / -1; font-size: 15px; line-height: 24px; color: #2a505d; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #b3261e; }
.contact__info { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 90px 0 0; }
.info-item { display: flex; align-items: center; gap: 16px; }
.info-item__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(136deg, #454545 0%, #2a505d 100%); }
.info-item__icon img { width: 24px; height: 24px; }
.info-item h3 { font-size: 20px; line-height: 30px; letter-spacing: -.5px; color: #192d33; }
.info-item p { font-size: 16px; line-height: 26px; letter-spacing: -.5px; color: #676766; }
.info-item__phones a { display: block; color: inherit; }
.info-item a:hover, .info-item__phones a:hover { color: #192d33; }
.info-div { flex: none; width: 2px; height: 48px; background: #cfcfd0; }

/* 5. Projects listing: filters + the home page's offset grid ------------------ */
.pp { padding-top: calc(var(--nav-h) + 96px); }
.pp__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; max-width: 1360px; margin-inline: auto; }
.pp__title { font-size: clamp(48px, 6.1vw, 92px); line-height: .98; font-weight: 500; letter-spacing: -.045em; color: var(--ink); }
.pp__sub { flex: none; width: min(100%, 320px); margin-top: 6px; font-size: 18px; line-height: 27px; letter-spacing: -.3px; color: #737373; }
.pp__filters { display: flex; flex-wrap: wrap; gap: 10px 28px; max-width: 1360px; margin: 72px auto 0; padding-top: 22px; border-top: 1px solid var(--line); }
.filter { position: relative; padding: 2px 0 2px 16px; font: 400 16px/22px var(--font-ui); letter-spacing: -.2px; color: #737373; transition: color .2s ease; text-align: left; }
.filter:hover { color: var(--ink-dark); }
.filter::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: #737373; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .2s ease; }
.filter[aria-pressed="true"] { color: var(--ink-dark); font-weight: 500; }
.filter[aria-pressed="true"]::before { opacity: 1; transform: none; background: var(--ink-dark); }
.pp .projects__grid { margin-top: 64px; }
.pp-empty { max-width: 1360px; margin: 40px auto 0; font-size: 18px; line-height: 27px; color: var(--muted); }
.pp-empty[hidden] { display: none; }

/* Offset grid shared by Projects and GITEX: five slots that repeat, placed row by row */
.projects__grid--flow > .project[hidden] { display: none; }
.projects__grid--flow > .slot-1 { grid-column: 2 / 4; }
.projects__grid--flow > .slot-2 { grid-column: 1 / 2; }
.projects__grid--flow > .slot-3 { grid-column: 3 / 5; }
.projects__grid--flow > .slot-4 { grid-column: 1 / 3; }
.projects__grid--flow > .slot-5 { grid-column: 4 / 5; align-self: end; }

/* 6. Project detail: text and pictures alternate ------------------------------ */
.pd { width: min(100% - 160px, 1280px); margin-inline: auto; padding-top: calc(var(--nav-h) + 42px); }
.pd-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: -.4px; color: #757575; transition: color .2s ease; }
.pd-back:hover { color: var(--ink-dark); }
.pd-back svg { width: 14px; height: 14px; transform: rotate(180deg); }
.pd h1 { max-width: 1000px; margin-top: 28px; font-size: 80px; line-height: 80px; letter-spacing: -3.2px; color: #0c0c0c; text-wrap: balance; }
.pd-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; padding-block: 22px; border-block: 1px solid var(--line); }
.pd-meta dt { font-size: 14px; line-height: 20px; letter-spacing: -.4px; color: #757575; }
.pd-meta dd { margin: 6px 0 0; font-size: 18px; line-height: 24px; letter-spacing: -.4px; color: var(--ink-dark); }
.pd-approach-title, .pd-final h2 { font-size: 40px; line-height: 44px; letter-spacing: -.8px; color: var(--ink-dark); }
.pd-approach-title { margin-top: 88px; }

.pd-shot { display: block; overflow: hidden; border-radius: 16px; background: #e4e4e6; cursor: zoom-in; }
.pd-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pd-shot:hover img { transform: scale(1.03); }
.pd-shot:focus-visible { outline: 2px solid var(--ink-dark); outline-offset: 3px; }

/* full-screen picture: breaks out of the 1280px column to the edges of the window */
.pd-bleed { margin-top: 36px; }                                       /* rounded block, same as the final-results photo */
.pd-shot--bleed { aspect-ratio: 16 / 9; }
.pd-shot--bleed:hover img { transform: none; }

/* paragraphs sit in the right-hand column, aligned with the "Final results" text */
.pd-text { margin: 72px 0 0 457px; }
.pd-text p, .pd-final__head p { max-width: 760px; font-size: 20px; line-height: 32px; letter-spacing: -.3px; color: var(--ink-soft); }

/* two pictures on one line, identical size */
.pd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 72px; }
.pd-two .pd-shot { aspect-ratio: 4 / 3; }

.pd-final { margin-top: 120px; padding-top: 40px; border-top: 1px solid var(--line); }
.pd-final__head { display: grid; grid-template-columns: 397px minmax(0, 1fr); gap: 60px; align-items: start; }
.pd-final .pd-two { margin-top: 56px; }
.pd-two + .pd-two, .pd-final .pd-two + .pd-two { margin-top: 24px; }
.pd-big { margin-top: 24px; }
.pd-big .pd-shot { aspect-ratio: 16 / 9; }
/* "Discover similar projects" reuses the home page's .projects block */
.pd-more { padding-top: 120px; }
.pd-more__sub { max-width: 560px; margin: 16px auto 0; text-align: center; font-size: 18px; line-height: 27px; color: var(--muted); }

/* 7. GITEX Africa 2027 ------------------------------------------------------- */
.gx-hero { padding-top: calc(var(--nav-h) + 40px); }
.gx-hero__inner { width: min(100% - 160px, var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 80px; align-items: center; min-height: 640px; }
.gx-hero h1 { margin-top: 28px; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.06; letter-spacing: -.04em; color: #000; text-wrap: balance; }
.gx-hero__lead { max-width: 560px; margin-top: 28px; font-size: 20px; line-height: 30px; letter-spacing: -.3px; color: #000; }
.gx-hero__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 40px; }
.gx-hero__note { margin-top: 28px; font-size: 14px; line-height: 20px; letter-spacing: -.2px; color: var(--muted); }
.gx-slider { width: 100%; height: auto; aspect-ratio: 550 / 620; }

.gx-section { width: min(100% - 160px, var(--wrap)); margin: 120px auto 0; }
.gx-head { display: grid; grid-template-columns: 397px minmax(0, 1fr); gap: 60px; align-items: start; }
.gx-head h2 { font-size: 40px; line-height: 44px; letter-spacing: -.8px; color: var(--ink-dark); text-wrap: balance; }
.gx-head .tag { margin-bottom: 18px; }
.gx-lead p { max-width: 720px; font-size: 20px; line-height: 30px; letter-spacing: -.3px; color: var(--ink-soft); }
.gx-lead p + p { margin-top: 18px; }

.gx-band { margin-top: 120px; padding: 100px 0 110px; background: var(--tint); }
.gx-band .gx-section { margin-top: 0; }
.gx-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.gx-cap { min-height: 250px; padding: 28px 28px 32px; background: var(--bg); }
.gx-cap__n { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .04em; color: var(--accent); }
.gx-cap h3 { margin-top: 36px; font-size: 22px; line-height: 28px; letter-spacing: -.5px; color: var(--navy); }
.gx-cap p { margin-top: 12px; font-size: 15px; line-height: 24px; color: var(--navy-soft); }

.gx-steps { margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.gx-step { display: grid; grid-template-columns: 90px 397px minmax(0, 1fr); gap: 30px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); }
.gx-step__n { font-size: 24px; line-height: 28px; font-weight: 500; letter-spacing: -.5px; color: #757575; }
.gx-step h3 { font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -.9px; color: var(--green); }
.gx-step p { max-width: 560px; font-size: 18px; line-height: 28px; letter-spacing: -.2px; color: var(--ink-soft); }

.gx-work { padding-top: 120px; }
.gx-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 60px; margin-top: 56px; }
.gx-why li { padding: 28px 0 36px; border-top: 1px solid var(--line); }
.gx-why h3 { font-size: 26px; line-height: 32px; letter-spacing: -.7px; color: var(--ink-dark); }
.gx-why p { max-width: 520px; margin-top: 12px; font-size: 17px; line-height: 27px; color: var(--ink-soft); }

.gx-cta .cta__overlay { background: rgba(14, 22, 8, .5); }
.gx-cta .cta__body { padding-bottom: 52px; }
.gx-cta .cta__title { max-width: 760px; }
.gx-cta .cta__text { max-width: 600px; }
.gx-cta__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 30px; }
.gx-cta__row .btn { margin-top: 0; }
.gx-cta__mail { font: 500 16px/24px var(--font-ui); color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.gx-cta__call { margin-top: 18px; font: 500 16px/24px var(--font-ui); color: #fff; }
.gx-cta__call a { color: #fff; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.gx-cta__hint { max-width: 560px; margin-top: 22px; font-size: 14px; line-height: 21px; color: rgba(255, 255, 255, .85); }

/* 8. 404 --------------------------------------------------------------------- */
.err { min-height: 100svh; display: grid; align-content: center; justify-items: start; width: min(100% - 160px, 1100px); margin-inline: auto; padding: calc(var(--nav-h) + 40px) 0 80px; }
.err .err__code { max-width: none; margin: 0; font-size: clamp(120px, 24vw, 320px); line-height: .85; font-weight: 500; letter-spacing: -.06em; color: var(--ink); }
.err .err__code span { color: var(--green); }
.err .err__kicker { max-width: none; margin-top: 40px; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.err h1 { margin-top: 12px; font-size: 46px; line-height: 50.6px; letter-spacing: -1.84px; color: var(--ink); }
.err p { max-width: 520px; margin-top: 20px; font-size: 20px; line-height: 30px; letter-spacing: -.3px; color: var(--ink-soft); }
.err__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 40px; }

/* 9. Lightbox ---------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 48px 72px; background: rgba(12, 12, 14, .92); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; line-height: 1; transition: background-color .2s ease; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -22px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -22px; }
.lightbox[data-single="true"] .lightbox__prev, .lightbox[data-single="true"] .lightbox__next { display: none; }

/* 10. Responsive ------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .about-tabs { margin-top: 56px; }
  .story { grid-template-columns: minmax(0, 1fr) 42%; }
  .story__img { width: 100%; height: auto; aspect-ratio: 525 / 450; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .card { min-width: 0; }
  .why__body { grid-template-columns: 1fr; }
  .why__photo img { height: 480px; }
  .svc-list { margin-inline: 24px; }
  .svc-row__text { padding: 0 24px; }
  .process__grid { grid-template-columns: 1fr; gap: 60px; }
  .process__head { position: static; }
  .contact, .pd, .gx-section, .gx-hero__inner { width: min(100% - 80px, 1280px); }
  .pp__head, .pp__filters, .pp-empty { margin-inline: 30px; }
  .gx-head, .pd-final__head { grid-template-columns: 1fr; gap: 24px; }
  .pd-text { margin-left: 0; }
  .gx-hero__inner { grid-template-columns: 1fr; gap: 48px; min-height: 0; }
  .gx-slider { max-width: 560px; }
  .gx-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-step { grid-template-columns: 70px minmax(0, 1fr); }
  .gx-step p { grid-column: 2; }
  .err { width: min(100% - 80px, 1100px); }
}

@media (max-width: 809.98px) {
  .page { padding-top: calc(var(--nav-h) + 40px); }
  .about { width: calc(100% - 40px); }
  .about__title { font-size: 30px; line-height: 34px; }
  .about-tabs { margin-top: 40px; }
  .about-nav { padding: 0; }
  .about-nav button { height: 52px; font-size: 12px; }
  .story { grid-template-columns: 1fr; align-items: start; margin-top: 36px; gap: 28px; }
  .story__img { order: -1; }
  .story h2 { font-size: 26px; line-height: 31px; }
  .expertise { margin-top: 70px; padding: 60px 20px; }
  .expertise h2 { font-size: 40px; line-height: 42px; }
  .cards { grid-template-columns: 1fr; margin-top: 60px; padding-inline: 0; }
  .card { min-height: 0; padding: 30px; gap: 40px; }
  .why { padding: 70px 20px; }
  .why__head h2 { font-size: 30px; line-height: 34px; }
  .why-card { flex-direction: column-reverse; align-items: flex-start; padding: 20px; }
  .why-card img { width: 100%; height: 160px; }

  .svc-list { margin: 70px 0 0; }
  .svc-row { display: flex; flex-direction: column; min-height: 0; }
  .svc-row__img { position: static; order: -1; height: 360px; }
  .svc-row__img img { position: static; height: 360px; }
  .svc-row__text { width: 100%; min-height: 0; padding: 30px 20px 50px; }
  .svc-row h2 { font-size: 32px; line-height: 38px; }
  .process { padding: 70px 20px; }
  .process__head h2 { font-size: 34px; line-height: 38px; }
  .process__head .btn { margin-top: 40px; }
  .step { position: static; grid-template-columns: 1fr; }
  .step img { width: 100%; height: 200px; }

  .contact, .pd, .gx-section, .gx-hero__inner { width: calc(100% - 40px); }
  .contact__title { font-size: 52px; line-height: 52px; letter-spacing: -2px; }
  .contact__shell { margin-top: 40px; }
  .contact__form { padding: 28px 20px; }
  .contact__form h2 { font-size: 30px; line-height: 34px; }
  .contact__intro { margin-bottom: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact__info { flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 60px; }
  .info-div { display: none; }

  .pp { padding-top: calc(var(--nav-h) + 48px); }
  .pp__head { flex-direction: column; gap: 20px; margin-inline: 20px; }
  .pp__sub { width: 100%; max-width: 420px; margin-top: 0; font-size: 16px; line-height: 24px; }
  .pp__filters { position: sticky; top: calc(var(--nav-h) - 1px); z-index: 20; flex-wrap: nowrap; gap: 22px; margin: 36px 0 0; padding: 14px 20px; overflow-x: auto; background: var(--bg); scrollbar-width: none; }
  .pp__filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; white-space: nowrap; }
  .pp .projects__grid { margin-top: 28px; }
  .pp-empty { margin-inline: 20px; }
  .projects__grid--flow > .project { grid-column: auto; }

  .pd h1 { font-size: 46px; line-height: 48px; letter-spacing: -2px; }
  .pd-meta { grid-template-columns: 1fr 1fr; }
  .pd-approach-title { margin-top: 56px; }
  .pd-approach-title, .pd-final h2 { font-size: 34px; line-height: 38px; }
  .pd-bleed { margin-top: 24px; }
  .pd-shot--bleed, .pd-big .pd-shot { aspect-ratio: 4 / 3; }
  .pd-shot { border-radius: 12px; }
  .pd-text { margin-top: 40px; }
  .pd-text p, .pd-final__head p { font-size: 18px; line-height: 28px; }
  .pd-two { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }       /* one photo under the other */
  .pd-final { margin-top: 72px; }
  .pd-final .pd-two { margin-top: 32px; }
  .pd-two + .pd-two, .pd-final .pd-two + .pd-two { margin-top: 14px; }
  .pd-big { margin-top: 14px; }
  .pd-more { padding-top: 80px; }

  .gx-section { margin-top: 80px; }
  .gx-head h2 { font-size: 32px; line-height: 36px; }
  .gx-lead p { font-size: 18px; line-height: 28px; }
  .gx-band { margin-top: 80px; padding: 70px 0 80px; }
  .gx-caps { grid-template-columns: 1fr; margin-top: 36px; }
  .gx-cap { min-height: 0; }
  .gx-step { grid-template-columns: 48px minmax(0, 1fr); gap: 14px 16px; padding: 24px 0; }
  .gx-step h3 { font-size: 24px; line-height: 30px; }
  .gx-step p { font-size: 16px; line-height: 25px; }
  .gx-work { padding-top: 80px; }
  .gx-why { grid-template-columns: 1fr; }
  .gx-why h3 { font-size: 22px; line-height: 28px; }

  .err { width: calc(100% - 40px); }
  .err h1 { font-size: 32px; line-height: 36px; letter-spacing: -1.2px; }
  .err p { font-size: 18px; line-height: 27px; }
  .lightbox { padding: 64px 12px; }
}

/* GITEX page: project gallery (opens in the shared lightbox) ------------------------------------------ */
.gx-gallery__grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.gx-shot { grid-column: span 4; }
.gx-shot--wide { grid-column: span 7; }
.gx-shot--side { grid-column: span 5; }
.gx-shot__link { display: block; color: inherit; cursor: zoom-in; }
.gx-shot__img { display: block; overflow: hidden; border-radius: 16px; height: clamp(200px, 22vw, 320px); background: #e4e4e6; }
.gx-shot--wide .gx-shot__img, .gx-shot--side .gx-shot__img { height: clamp(260px, 32vw, 460px); }
.gx-shot__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gx-shot__link:hover .gx-shot__img img { transform: scale(1.03); }
.gx-shot__link:focus-visible { outline: none; }
.gx-shot__link:focus-visible .gx-shot__img { outline: 2px solid var(--ink-dark); outline-offset: 3px; }
.gx-shot__cap { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px 0; font-size: 15px; line-height: 1.35; }
.gx-shot__cap b { font-weight: 500; color: var(--ink-dark); }
.gx-shot__cap span { color: #757575; text-align: right; }
@media (max-width: 809.98px) {
  .gx-gallery__grid { grid-template-columns: 1fr; gap: 22px; margin-top: 32px; }
  .gx-shot, .gx-shot--wide, .gx-shot--side { grid-column: auto; }
  .gx-shot__img, .gx-shot--wide .gx-shot__img, .gx-shot--side .gx-shot__img { height: auto; aspect-ratio: 4 / 3; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .gx-shot__img img { transition: none; } .gx-shot__link:hover .gx-shot__img img { transform: none; } }

/* Services on phones: the same "one card after the other" stacking as on desktop.
   Each service and each process step sticks under the header, and the next one slides up over it. */
@media (max-width: 809.98px) {
  .svc-list { margin: 56px 12px 0; padding-bottom: 8px; overflow: visible; }
  .svc-row { position: relative; margin-bottom: 16px; border-top: 0; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 -6px 24px rgba(12, 12, 12, .08); }
  .svc-row__img, .svc-row__img img { height: min(240px, 30svh); }
  .svc-row__text { padding: 22px 20px 26px; }
  .svc-row h2 { font-size: 28px; line-height: 32px; }
  .svc-row__lead { font-size: 16px; line-height: 22px; }
  .svc-row ul { margin-top: 14px; }

  .process__steps { gap: 16px; }
  .step { position: relative; gap: 14px; padding: 14px; border-radius: 20px; box-shadow: 0 -6px 24px rgba(12, 12, 12, .08); }
  .step img { order: -1; height: min(180px, 24svh); border-radius: 12px; }
  .step__body { padding-block: 0 6px; }
  .step h3 { margin-top: 16px; font-size: 22px; line-height: 26px; }
}
/* The stacking needs a card to fit on screen, so very short phones scroll the cards normally */
@media (max-width: 809.98px) and (min-height: 700px) {
  .svc-row, .step { position: sticky; top: calc(var(--nav-h) + 10px); }
  .svc-row:nth-child(2), .step:nth-child(2) { top: calc(var(--nav-h) + 22px); }
  .svc-row:nth-child(3), .step:nth-child(3) { top: calc(var(--nav-h) + 34px); }
  .svc-row:nth-child(4) { top: calc(var(--nav-h) + 46px); }
}

/* Thank-you page (after the contact form) */
.ty-badge { display: inline-grid; place-items: center; width: 88px; height: 88px; margin-bottom: 28px; border-radius: 50%; background: var(--green, #446e1a); color: #fff; }
@media (max-width: 809.98px) { .ty-badge { width: 72px; height: 72px; margin-bottom: 22px; } }
