/* Gichkal Tech — site.css
   Navy, ivory, black. Flat colour, hairline rules.
   Logical properties throughout so Kurdish and Arabic mirror without extra rules. */

:root {
  --black: #03060e;
  --navy: #070d1d;
  --navy-2: #0b1630;
  --navy-3: #13224a;
  --ivory: #f3ede0;
  --ivory-2: rgba(243, 237, 224, .76);
  --ivory-3: rgba(243, 237, 224, .62);
  --rule: rgba(243, 237, 224, .18);
  --rule-2: rgba(243, 237, 224, .34);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --ku: "Vazirmatn", "Noto Sans Arabic", Tahoma, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--ivory);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.rtl-script body { font-family: var(--ku); font-size: 16.5px; line-height: 1.85; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
abbr[title] { text-decoration: none; }
::selection { background: var(--ivory); color: var(--navy); }

:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ivory); color: var(--navy); }
.skip:focus { top: 16px; }
.ico { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* Type */
.display { text-wrap: balance; font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; font-size: clamp(34px, 4.6vw, 58px); }
.display.xl { font-size: clamp(44px, 7vw, 96px); line-height: .96; letter-spacing: -.02em; }
.display em { font-style: italic; }
.rtl-script .display { font-family: var(--ku); font-weight: 700; line-height: 1.3; letter-spacing: 0; font-size: clamp(28px, 3.6vw, 46px); }
.rtl-script .display.xl { font-size: clamp(34px, 5.4vw, 70px); line-height: 1.22; }
.rtl-script .display em { font-style: normal; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .5em; text-decoration-skip-ink: auto; }

.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ivory-2); max-width: 36em; }
.label { font: 500 12.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-3); }
.rtl-script .label { font-family: var(--ku); font-size: 14px; letter-spacing: 0; text-transform: none; }
.note { font-size: 15px; color: var(--ivory-3); }

/* Buttons: square, with a hard shadow that presses in */
[hidden] { display: none !important; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid var(--ivory); border-radius: 2px;
  font-weight: 600; font-size: 16px; line-height: 1.2; white-space: nowrap;
  cursor: pointer; transition: transform .12s, box-shadow .12s, background .2s, color .2s;
}
.btn-solid { background: var(--ivory); color: var(--navy); box-shadow: 4px 4px 0 var(--black); }
.btn-solid:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--black); }
.btn-solid:active { transform: translate(4px, 4px); box-shadow: none; }
[dir="rtl"] .btn-solid { box-shadow: -4px 4px 0 var(--black); }
[dir="rtl"] .btn-solid:hover { transform: translate(-2px, 2px); box-shadow: -2px 2px 0 var(--black); }
[dir="rtl"] .btn-solid:active { transform: translate(-4px, 4px); box-shadow: none; }
.btn-line { background: transparent; color: var(--ivory); }
.btn-line:hover { background: var(--ivory); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn .ico { width: 18px; height: 18px; }

.link-u { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.link-u:hover { text-decoration-thickness: 2px; }
.link-u .ico { width: 16px; height: 16px; }

/* Draft banner (only while DRAFT_MARKS is on) */
.draftbar { padding: 10px var(--gutter); border-bottom: 1px dashed var(--rule-2); font-size: 14px; color: var(--ivory-2); }
.draftbar strong { color: var(--ivory); }
.draft-list span:not(:last-child)::after { content: " · "; }
.guess { display: inline-block; margin-inline-start: 8px; padding: 0 6px; border: 1px dashed var(--ivory-3); font: 12px/1.6 var(--mono); color: var(--ivory-3); vertical-align: middle; }
.rtl-script .guess { font-family: var(--ku); }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section.tight { padding-block-start: 0; }
.rule-top { border-top: 1px solid var(--rule); }

/* Header: solid navy, like the rest of the page */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy);
  border-bottom: 1px solid var(--rule);
  transition: transform .3s;
}
.site-header.tucked { transform: translateY(-100%); }
.bar { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-family: var(--serif); font-size: 24px; line-height: 1; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a { position: relative; padding-block: 6px; color: var(--ivory-2); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ivory); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px; background: var(--ivory); }
.nav-mobile-only { display: none; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; align-items: center; font-size: 14px; }
.langs a { padding: 10px 9px; line-height: 1; color: var(--ivory-3); font-family: var(--ku); }
.langs a:lang(en) { font: 600 13px/1 var(--mono); }
.langs a + a { border-inline-start: 1px solid var(--rule); }
.langs a:hover, .langs a[aria-current="true"] { color: var(--ivory); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; place-items: center; background: none; border: 1.5px solid var(--rule-2); border-radius: 2px; cursor: pointer; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .langs { display: none; }
  .nav-actions { margin-inline-start: auto; gap: 12px; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 0; z-index: 39;
    display: none; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 40px; margin: 0;
    background: var(--navy); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--rule); }
  .nav-links > li > a { display: flex; align-items: center; gap: 10px; padding: 16px 0; font-size: 22px; color: var(--ivory); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"]::before { content: ""; width: 7px; height: 7px; background: currentColor; }
  .nav-links > li.nav-m-cta { border-bottom: 0; padding-top: 24px; }
  .nav-links > li.nav-m-cta > a { display: inline-flex; padding: 14px 22px; font-size: 16px; color: var(--navy); }
  .nav-mobile-only { display: block; }
  .nav-mobile-only:not(.nav-m-cta) > a { font-size: 17px !important; color: var(--ivory-2) !important; }
  .nav-langs { display: flex; gap: 22px; padding-block: 12px; }
  /* beats ".nav-links > li > a", which otherwise squashes the three names together */
  .nav-links .nav-langs > a { padding: 8px 0; font-size: 17px; font-family: var(--ku); color: var(--ivory-3); }
  .nav-langs a:lang(en) { font-family: var(--sans); }
  .nav-langs a[aria-current="true"] { color: var(--ivory); text-decoration: underline; text-underline-offset: 6px; }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .nav-cta { display: none; }
  .brand-name { font-size: 21px; }
}

/* Footer */
.site-footer { margin-top: 0; padding-top: 72px; border-top: 1px solid var(--rule); overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.4fr; gap: 40px; }
.footer-cols .label { margin-bottom: 14px; }
.footer-cols li + li { margin-top: 6px; }
.footer-cols a { color: var(--ivory-2); }
.footer-cols a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }
.f-about { max-width: 26em; color: var(--ivory-2); }
.f-addr { margin-top: 16px; font-size: 15px; color: var(--ivory-3); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px 28px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ivory-3); position: relative; background: var(--navy); }
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .f-about { grid-column: 1 / -1; }
}

/* Phone action bar */
.m-bar { display: none; }
@media (max-width: 760px) {
  .m-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--navy); border-top: 1px solid var(--rule-2);
    transition: transform .25s;
  }
  .m-bar .btn { min-height: 46px; padding-inline: 10px; box-shadow: none; }
  .m-bar.wait:not(.show) { transform: translateY(110%); }
  body { padding-bottom: 72px; }
  html.menu-open .m-bar { display: none; }
}

/* ---------- Home ---------- */

.hero { position: relative; padding-top: clamp(40px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.hero-copy { grid-column: 1 / span 7; padding-bottom: 40px; }
.hero-copy .label { margin-bottom: 26px; }
.hero-copy .lede { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 36px; }
.hero-side { grid-column: 9 / span 4; padding-top: 24px; }
.skyline { width: 100%; height: clamp(70px, 9vw, 120px); margin-top: 24px; color: var(--ivory-3); stroke-width: 1.4; }
.skyline path { vector-effect: non-scaling-stroke; }

/* The receipt: printed paper, a bit crooked, torn bottom edge */
.receipt {
  --paper: #efe8d8;
  position: relative; direction: ltr;
  padding: 26px 22px 30px;
  background: var(--paper); color: #1a1f2c;
  font: 13px/1.7 var(--mono);
  transform: rotate(-2deg);
  box-shadow: 10px 14px 0 rgba(3, 6, 14, .55);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.rtl-script .receipt { direction: rtl; font-family: var(--ku); font-size: 13.5px; transform: rotate(2deg); box-shadow: -10px 14px 0 rgba(3, 6, 14, .55); }
.receipt hr { margin: 12px 0; border: 0; border-top: 1.5px dashed rgba(26, 31, 44, .45); }
.r-brand { text-align: center; font: 700 17px/1.2 var(--mono); letter-spacing: .22em; }
.r-center { text-align: center; color: rgba(26, 31, 44, .7); }
.r-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rtl-script .r-row { align-items: center; } /* Vazirmatn's tall line box pushes the ✓ up otherwise */
.r-total { font-weight: 700; font-size: 15px; }
.r-code { width: 100%; height: 38px; margin: 16px 0 10px; fill: #1a1f2c; }

/* Words in three languages */
.strip { border-bottom: 1px solid var(--rule); overflow: hidden; } /* the skyline's ground line is the top rule */
.strip .wrap { display: flex; gap: 0; }
.strip p { flex: 1 1 auto; display: flex; gap: 10px; align-items: baseline; padding: 18px 20px; font-size: 14px; white-space: nowrap; color: var(--ivory-3); }
.strip p + p { border-inline-start: 1px solid var(--rule); }
.strip p:first-child { padding-inline-start: 0; }
.strip bdi:not(:lang(en)) { font-family: var(--ku); }
.strip bdi:first-child { font-size: 18px; color: var(--ivory); }
.strip bdi:first-child:lang(en) { font-family: var(--serif); font-size: 20px; }
@media (max-width: 1120px) {
  .strip .wrap { flex-wrap: wrap; }
  .strip p { flex: 1 1 50%; flex-direction: column; gap: 2px; white-space: normal; padding-inline: 0 16px; }
  .strip p + p { border-inline-start: 0; }
  .strip p:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* Section heads */
.head-split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px 24px; align-items: end; margin-bottom: 48px; }
.head-split .label { grid-column: 1 / -1; }
.head-split .display { grid-column: 1 / span 7; }
.head-split .note { grid-column: 8 / -1; justify-self: end; text-align: end; }
.head-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 24px 40px; align-items: end; margin-bottom: 44px; }
.head-row .label { margin-bottom: 14px; }

/* Services as a ruled board */
.board { border-top: 1.5px solid var(--ivory); }
.board-row { position: relative; border-bottom: 1px solid var(--rule-2); }
.board-row a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 24px; gap: 24px; align-items: baseline; padding: 26px 0; }
.board-name { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; }
.rtl-script .board-name { font-family: var(--ku); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); }
.board-desc { color: var(--ivory-2); max-width: 32em; }
.board-row .ico { align-self: center; transition: transform .15s; }
.board-row a:hover .board-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 8px; }
.board-row a:hover .ico { transform: translateX(4px); }
[dir="rtl"] .board-row a:hover .ico { transform: scaleX(-1) translateX(4px); }
.board-row.is-main a { padding-block: 44px; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 24px; }
.board-row.is-main .board-name { font-size: clamp(36px, 4.6vw, 64px); }
.rtl-script .board-row.is-main .board-name { font-size: clamp(26px, 3.2vw, 40px); }

/* Process as a paragraph */
.process-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.process-grid > div { grid-column: 1 / span 5; }
.process-grid .label { margin-bottom: 16px; }
.process-text { grid-column: 7 / span 6; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.6; color: var(--ivory-2); }
.process-text::first-line { color: var(--ivory); }

/* Why: one statement and four footnotes */
.why-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.why-head { grid-column: 1 / span 5; grid-row: 1; }
.process { padding-block: clamp(56px, 7vw, 96px); }
.why-head .label { margin-bottom: 16px; }
.notes { grid-column: 6 / -1; grid-row: 1; margin-top: 0; border-top: 1px solid var(--rule-2); }
.notes li { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 8px 28px; padding-block: 18px; border-bottom: 1px dashed var(--rule-2); }
.notes h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.notes p { font-size: 15.5px; color: var(--ivory-2); }

/* Ivory closing block on the home page */
.end { background: var(--ivory); color: var(--navy); padding-block: clamp(64px, 9vw, 120px); }
.end ::selection { background: var(--navy); color: var(--ivory); }
.end :focus-visible { outline-color: var(--navy); }
.end-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; align-items: end; }
.end-grid > div:first-child { grid-column: 1 / span 6; }
.end-text { margin-top: 24px; font-size: 19px; max-width: 30em; color: rgba(7, 13, 29, .78); }
.end-side { grid-column: 8 / span 5; }
.end-phone { display: block; font-family: var(--serif); font-size: clamp(38px, 4.4vw, 60px); line-height: 1; white-space: nowrap; border-bottom: 2px solid var(--navy); padding-bottom: 12px; }
[dir="rtl"] .end-phone { text-align: right; }
.end-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.btn-ink { background: var(--navy); color: var(--ivory); border-color: var(--navy); box-shadow: 4px 4px 0 rgba(7, 13, 29, .28); }
.btn-ink:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(7, 13, 29, .28); }
[dir="rtl"] .btn-ink { box-shadow: -4px 4px 0 rgba(7, 13, 29, .28); }
[dir="rtl"] .btn-ink:hover { transform: translate(-2px, 2px); box-shadow: -2px 2px 0 rgba(7, 13, 29, .28); }
.page-home .site-footer { border-top: 0; }

@media (max-width: 1000px) {
  .hero-copy { grid-column: 1 / -1; padding-bottom: 8px; }
  .hero-side { grid-column: 2 / span 10; max-width: 380px; justify-self: center; width: 100%; padding-top: 16px; }
  .head-split .display, .head-split .note { grid-column: 1 / -1; }
  .head-split .note { justify-self: start; text-align: start; }
  .head-row { grid-template-columns: 1fr; }
  .board-row a, .board-row.is-main a { grid-template-columns: 1fr 24px; gap: 8px 16px; }
  .board-desc { grid-column: 1; grid-row: 2; }
  .board-row .ico, .board-row.is-main .ico { grid-column: 2; grid-row: 1 / span 2; }
  .process-grid > div, .process-text { grid-column: 1 / -1; }
  .why-head { grid-column: 1 / -1; grid-row: auto; }
  .notes { grid-column: 1 / -1; grid-row: auto; margin-top: 32px; }
  .end-grid > div:first-child, .end-side { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .notes li { grid-template-columns: minmax(0, 1fr); }
  .board-row.is-main a { padding-block: 30px; }
  .end-phone { font-size: 34px; }
}

/* ---------- Demo cards ---------- */

.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 48px 24px; }
.work-card { grid-column: span 6; display: flex; flex-direction: column; gap: 20px; }
.work-card:nth-child(4n+1) { grid-column: span 7; }
.work-card:nth-child(4n+2) { grid-column: span 5; }
.work-card:nth-child(4n+3) { grid-column: span 5; }
.work-card:nth-child(4n+4) { grid-column: span 7; }
.work-card[hidden] { display: none; }
.work-visual { position: relative; display: flex; align-items: flex-end; justify-content: center; height: clamp(260px, 25vw, 330px); padding: 64px 28px 0; background: var(--navy-2); border: 1px solid var(--rule); overflow: hidden; }
.work-visual .mock { width: 100%; max-width: 440px; }
.stamp {
  position: absolute; top: 18px; inset-inline-end: 18px;
  padding: 2px 10px; border: 2px solid var(--ivory); border-radius: 3px;
  font: 700 13px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  transform: rotate(-8deg); opacity: .8;
}
.rtl-script .stamp { font-family: var(--ku); letter-spacing: 0; }
.work-body .label { margin-bottom: 6px; }
.work-body h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin-bottom: 8px; }
.rtl-script .work-body h3 { font-family: var(--ku); font-weight: 700; font-size: 21px; }
.work-body > p:not(.label) { color: var(--ivory-2); max-width: 34em; }
.tags { margin-top: 12px; font: 12.5px/1.6 var(--mono); color: var(--ivory-3); }
.rtl-script .tags { font-family: var(--ku); font-size: 14px; }
@media (max-width: 800px) {
  .work-grid { gap: 40px; }
  .work-card, .work-card:nth-child(n) { grid-column: 1 / -1; }
}

/* Mockups: drawn like wireframes, outlines only */
.mock { --l: rgba(243, 237, 224, .3); --f: rgba(243, 237, 224, .1); direction: ltr; color: var(--ivory); }
.mock b { display: block; height: 6px; background: var(--l); }
.w40 { width: 40%; } .w55 { width: 55%; } .w60 { width: 60%; } .w80 { width: 80%; }
.m-btn { display: block; width: 30%; height: 16px; background: var(--ivory); }
.m-btn.sm { width: 48px; height: 12px; }
.m-browser, .m-pos, .m-cal, .m-dash { border: 1px solid var(--l); border-bottom: 0; background: var(--navy); }
.m-chrome { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--l); }
.m-chrome i { width: 6px; height: 6px; border: 1px solid var(--l); border-radius: 50%; }
.m-url { flex: 1; height: 8px; margin-inline-start: 8px; border: 1px solid var(--l); }
.m-body { display: grid; gap: 12px; padding: 14px; }
.m-hero { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--l); }
.m-hero b:first-child { height: 10px; }
.m-row3, .m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-row3 span { height: 36px; border: 1px solid var(--l); }
.m-lines { display: grid; gap: 6px; }
.m-pos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; padding: 12px; }
.m-pos-list { display: grid; gap: 6px; align-content: start; }
.m-li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--l); }
.m-li em { width: 20px; height: 6px; background: var(--l); }
.m-total { display: flex; justify-content: space-between; padding: 6px 8px; background: var(--ivory); color: var(--navy); font: 700 10px/1.4 var(--mono); letter-spacing: .1em; }
.m-pos-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; align-content: start; }
.m-pos-keys span { aspect-ratio: 1.3; border: 1px solid var(--l); }
.m-pos-keys .pay { grid-column: 1 / -1; aspect-ratio: auto; height: 24px; display: grid; place-items: center; background: var(--ivory); color: var(--navy); font: 700 10px var(--mono); letter-spacing: .2em; }
.m-cal { padding: 12px; }
.m-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.m-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.m-cal-grid span { aspect-ratio: 1; border: 1px solid var(--f); }
.m-cal-grid .on { border-color: var(--l); background: var(--f); }
.m-cal-grid .hot { background: var(--ivory); }
.m-phone { position: relative; display: grid; gap: 8px; align-content: start; width: 34%; min-width: 120px; aspect-ratio: 9 / 16; padding: 22px 9px 9px; border: 1px solid var(--l); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--navy); }
.m-notch { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 28%; height: 5px; border: 1px solid var(--l); border-radius: 3px; }
.m-ph-map { padding: 6px; border: 1px solid var(--l); }
.m-ph-card { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--l); }
.m-progress { height: 4px; background: var(--f); }
.m-progress span { display: block; width: 64%; height: 100%; background: var(--ivory); }
.m-ph-btn { height: 16px; background: var(--ivory); }
.m-dash { display: grid; gap: 10px; padding: 12px; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-kpis span { display: grid; gap: 5px; padding: 8px; border: 1px solid var(--l); }
.m-kpis b { width: 60%; height: 4px; }
.m-kpis strong { font: 400 22px/1 var(--serif); }
.m-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; padding: 8px; border: 1px solid var(--l); }
.m-bars span { flex: 1; border: 1px solid var(--l); border-bottom: 0; background: var(--f); }
.m-bars span:nth-child(6) { background: var(--ivory); }
.m-search { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--l); }
.m-search b { flex: 1; }
.m-cards div { display: grid; gap: 6px; padding: 6px; border: 1px solid var(--l); }
.m-img { aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, var(--f) 0 4px, transparent 4px 8px); }
.m-cards b { height: 4px; }

/* ---------- Inner page heads ---------- */

.page-hero { padding-block: clamp(48px, 8vw, 112px) clamp(40px, 6vw, 80px); }
.page-hero .label { margin-bottom: 22px; }
.page-hero .display { max-width: 15ch; }
.rtl-script .page-hero .display { max-width: 22ch; }
.page-hero .lede { margin-top: 26px; margin-inline-start: auto; margin-inline-end: 8%; }
.jump { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); }
.jump a { padding-inline-end: 16px; color: var(--ivory-2); }
.jump a + a { padding-inline-start: 16px; border-inline-start: 1px solid var(--rule-2); }
.jump a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 800px) {
  .page-hero .lede { margin-inline: 0; }
}

/* Work page filters */
.filters { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 40px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.filters button { padding: 6px 0; background: none; border: 0; color: var(--ivory-3); cursor: pointer; }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--ivory); }
.filters button[aria-pressed="true"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 8px; }

/* One-line call to action at the end of inner pages */
.cta-line { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--rule); }
.cta-line .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px 24px; align-items: end; }
.cta-line .display { grid-column: 1 / span 6; }
.cta-line p { grid-column: 1 / span 6; color: var(--ivory-2); }
.cta-actions { grid-column: 8 / span 5; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
@media (max-width: 900px) {
  .cta-line .display, .cta-line p, .cta-actions { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- Services ---------- */

.svc { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-block: 56px; border-top: 1.5px solid var(--ivory); }
.svc-head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.svc-head p { margin-top: 14px; color: var(--ivory-2); }
.offers { grid-column: 6 / span 7; }
.offers li { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding-block: 22px; border-bottom: 1px solid var(--rule); }
.offers li:first-child { padding-top: 4px; }
.offers li:last-child { border-bottom: 0; }
.offers h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }
.offers p { grid-column: 1; color: var(--ivory-2); }
.offers .link-u { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 15px; color: var(--ivory-2); }
.care { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 24px; align-items: end; margin-top: 24px; padding: 32px; border: 1px solid var(--rule-2); border-top: 1.5px solid var(--ivory); }
.care .display { grid-column: 1 / span 4; font-size: clamp(28px, 3vw, 40px); }
.care p { grid-column: 5 / span 5; color: var(--ivory-2); }
.care .link-u { grid-column: 10 / span 3; justify-self: end; }
.svc-note { margin-top: 28px; max-width: 46em; }
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.faq-grid > div:first-child { grid-column: 1 / span 4; }
.faq-grid .label { margin-bottom: 14px; }
.faq { grid-column: 6 / span 7; border-top: 1px solid var(--rule-2); }
.faq details { border-bottom: 1px solid var(--rule-2); }
.faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--ivory-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 22px; color: var(--ivory-2); max-width: 40em; }
@media (max-width: 900px) {
  .svc { padding-block: 40px; }
  .svc-head, .offers, .faq-grid > div:first-child, .faq { grid-column: 1 / -1; }
  .svc-head { position: static; }
  .care .display, .care p, .care .link-u { grid-column: 1 / -1; justify-self: start; }
  .care { padding: 24px; }
}
@media (max-width: 560px) {
  .offers li { grid-template-columns: 1fr; }
  .offers .link-u { grid-column: 1; grid-row: auto; margin-top: 6px; }
}

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.story { grid-column: 1 / span 7; }
.story .label { margin-bottom: 20px; }
.story p { font-size: 19px; line-height: 1.7; color: var(--ivory-2); }
.story p + p { margin-top: 1.1em; }
.story p:first-of-type { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.35; color: var(--ivory); }
.rtl-script .story p:first-of-type { font-family: var(--ku); font-size: 22px; font-weight: 600; }
.facts { grid-column: 9 / span 4; align-self: start; border-top: 1.5px solid var(--ivory); }
.facts div { display: grid; gap: 2px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.facts dd { font-size: 17px; }
.rules { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.rules .display { grid-column: 1 / span 4; }
.rules-text { grid-column: 6 / span 7; }
.rules-text p { font-size: 19px; line-height: 1.65; color: var(--ivory-2); }
.rules-text p + p { margin-top: 1em; }
.rules-text strong { color: var(--ivory); font-weight: 600; }
@media (max-width: 900px) {
  .story, .facts { grid-column: 1 / -1; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .rules .display, .rules-text { grid-column: 1; }
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; align-items: start; }
.channels { grid-column: 1 / span 5; border-top: 1.5px solid var(--ivory); }
.channels a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.channels .label { grid-column: 1; }
.channels strong { grid-column: 1; font-weight: 500; font-size: 19px; }
[dir="rtl"] .channels strong { text-align: right; }
.channels .ico { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--ivory-3); }
.channels a:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.ch-main strong { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.ch-main .ico { width: 30px; height: 30px; color: var(--ivory); }

/* The form is printed on paper, like an order slip */
.slip {
  grid-column: 7 / span 6;
  padding: clamp(22px, 3vw, 36px);
  background: #efe8d8; color: var(--navy);
  box-shadow: 10px 12px 0 rgba(3, 6, 14, .55);
}
[dir="rtl"] .slip { box-shadow: -10px 12px 0 rgba(3, 6, 14, .55); }
.slip ::selection { background: var(--navy); color: var(--ivory); }
.slip :focus-visible { outline-color: var(--navy); }
.slip-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 2px solid var(--navy); font: 700 14px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.rtl-script .slip-head { font-family: var(--ku); font-size: 17px; letter-spacing: 0; }
.slip-head span:last-child { font-weight: 400; opacity: .72; }
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 4px; }
.field > span { font: 12.5px/1.4 var(--mono); letter-spacing: .04em; color: rgba(7, 13, 29, .72); }
.rtl-script .field > span { font-family: var(--ku); font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 8px 2px;
  background: transparent; color: var(--navy);
  border: 0; border-bottom: 1.5px solid rgba(7, 13, 29, .6); border-radius: 0;
}
.field textarea { resize: none; min-height: 160px; background: repeating-linear-gradient(transparent 0 31px, rgba(7, 13, 29, .14) 31px 32px); line-height: 32px; padding-top: 0; }
.field select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--navy) 50%) right 8px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--navy) 50%) right 2px center / 6px 6px no-repeat; }
[dir="rtl"] .field select { background-position: left 2px center, left 8px center; }
.field select option { color: var(--navy); background: #efe8d8; }
.field :focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-bottom-color: var(--navy); }
.field [aria-invalid="true"] { border-bottom: 2px solid #8a1c1c; }
.form-error { margin-bottom: 18px; padding: 10px 12px; border-inline-start: 3px solid #8a1c1c; background: rgba(138, 28, 28, .08); color: #5e1010; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.link-wa { display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-underline-offset: 5px; }
.fine { font-size: 13.5px; color: rgba(7, 13, 29, .65); }
.sent .lede { color: rgba(7, 13, 29, .78); margin-top: 14px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.visit-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; }
.visit { grid-column: 1 / span 4; display: grid; gap: 14px; align-content: start; }
.visit h3 { margin-top: 10px; font: 500 12.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-3); }
.rtl-script .visit h3 { font-family: var(--ku); font-size: 14px; letter-spacing: 0; text-transform: none; }
.v-line { display: flex; gap: 10px; color: var(--ivory-2); }
.v-line .ico { margin-top: 4px; }
.visit .link-u { justify-self: start; margin-top: 8px; }
.map { position: relative; isolation: isolate; grid-column: 6 / span 7; min-height: 360px; border: 1px solid var(--rule-2); background: var(--navy-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) hue-rotate(180deg) contrast(.9); }
.map-fallback { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--ivory-3); }
.map-guess { position: absolute; top: 10px; inset-inline-start: 10px; }

@media (max-width: 900px) {
  .channels, .slip, .visit, .map { grid-column: 1 / -1; }
  .map { min-height: 300px; }
}
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .slip { box-shadow: 6px 8px 0 rgba(3, 6, 14, .55); }
  [dir="rtl"] .slip { box-shadow: -6px 8px 0 rgba(3, 6, 14, .55); }
}

/* 404 */
.nf { min-height: 60vh; }
.nf .lede { margin-inline: 0; }
.nf-back { margin-top: 36px; }

/* Phones: every 12-column grid collapses to a single column */
@media (max-width: 800px) {
  .hero-grid, .head-split, .process-grid, .why-grid, .end-grid, .work-grid, .svc, .care,
  .faq-grid, .about-grid, .contact-grid, .visit-grid, .cta-line .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-side { grid-column: 1; }
}

/* Phones: 44px tap targets, and keep focused items clear of the bottom bar */
@media (max-width: 760px) {
  html { scroll-padding-bottom: 96px; }
  .footer-cols li + li { margin-top: 0; }
  .footer-cols a { display: inline-block; padding-block: 10px; }
  .filters button { min-height: 44px; min-width: 44px; }
  .link-u, .link-wa, .jump a { min-height: 44px; }
  .nav-langs a { min-width: 44px; }
}
@media (max-width: 760px) and (max-height: 480px) {
  .m-bar { display: none; }
  body { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .m-bar, .btn { transition: none; }
}

/* Pass 30 Nov: smaller fixes from the team review */
.slip { color-scheme: light; } /* the select's native list opened dark on the paper form */
.field select { padding-inline-end: 26px; cursor: pointer; }
.svc-head .link-u { display: inline-flex; margin-top: 18px; }
.f-sky { margin-top: 48px; color: var(--rule-2); }
.f-sky .skyline { height: auto; aspect-ratio: 1200 / 120; margin-top: 0; color: inherit; display: block; }
.footer-base { border-top: 0; }
@media (max-width: 760px) {
  .jump { gap: 0 20px; }
  .jump a, .jump a + a { padding: 10px 0; border: 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--rule-2); }
  .m-bar { box-shadow: 0 -12px 0 var(--navy); }
  body.page-contact { padding-bottom: 0; }
  body.page-contact .m-bar { display: none; }
}
@media (max-width: 420px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}
.next { grid-column: 1 / span 5; padding-top: 8px; }
.next h2 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.next p + p { margin-top: 12px; }
@media (max-width: 800px) { .next { grid-column: 1 / -1; } }
.contact-grid .slip { grid-row: 1 / span 2; }
@media (max-width: 800px) { .contact-grid .slip { grid-row: auto; } }
.map-fallback { padding: 24px; text-align: center; }

/* Small phones: keep the crooked receipt inside the 16px margin */
@media (max-width: 420px) {
  .receipt { transform: rotate(-2deg) scale(.94); }
  .rtl-script .receipt { transform: rotate(2deg) scale(.94); }
}

/* Windows high-contrast mode: keep drawings, icons and fields visible */
@media (forced-colors: active) {
  .skyline, .ico, .r-code { color: CanvasText; }
  .brand img { forced-color-adjust: none; background: #070d1d; }
  .field input, .field select, .field textarea { border: 1px solid CanvasText; }
  .btn { border: 1px solid ButtonText; }
}

/* Inline email link under the form: big enough to tap */
.fine-link { display: inline-block; padding-block: 12px; margin-block: -12px; text-decoration: underline; text-underline-offset: 3px; }

/* Arabic-script words on the receipt need the Kurdish/Arabic font, not mono */
.receipt bdi:not(:lang(en)) { font-family: var(--ku); }
.map-note { margin-top: 14px; font-size: 14px; color: var(--ivory-2); max-width: 46ch; }
.map iframe:focus-visible, .map:focus-within { outline: 2px solid var(--ivory); outline-offset: 3px; }
