/* The public site since the redesign (owner, 2026-11-25: between aihero.dev and amronec.com, «You, first»). Loaded after
   styles.css on pages drawn by site/layout.tsx (body.site); the signed-in side keeps styles.css alone. The direction contract is
   in .impeccable/surfaces/src-web-site-home-tsx.md; DESIGN.md documents the tokens. */

/* Readex Pro (variable, 300–700), one file per script, served from this site (Google Fonts, SIL Open Font License). */
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/readex-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/readex-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* JetBrains Mono for Latin labels, figures and addresses only; never set on Arabic. */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }

.site {
  /* the world */
  --s-ink: #0E0E10;        /* the ground */
  --s-ink-2: #17171A;      /* raised cells, panels */
  --s-ink-3: #202025;      /* hover on a raised cell */
  --s-line: #2B2B31;       /* hairlines on the ground */
  --s-line-2: #4A4A53;     /* control borders on the ground, 3.1:1 */
  --s-text: #E4E4E8;       /* body text on the ground, 15.6:1 */
  --s-mute: #C2C2C9;       /* secondary text on the ground, 11:1 (owner, 2026-11-28: the dimmer ash read as a contrast failure) */
  --s-mus: #DFB554;        /* the photo's field: panels, the primary button, the kashida */
  --s-mus-2: #EAC56C;      /* mustard hover */
  --s-on-mus: #1A1406;     /* text on mustard, 10:1 */
  --s-hot: #FF5A36;        /* the warm edge of the photo's field */
  --s-paper: #F4F4F2;      /* reading sections */
  --s-paper-2: #FFFFFF;    /* tiles on paper */
  --s-paper-line: #DDDBD3;
  --s-paper-ink: #16161A;  /* text on paper, 17:1 */
  --s-paper-mute: #5E5E66; /* secondary text on paper, 5.9:1 */
  --s-link: #7A5200;       /* links on paper, 6.3:1 */
  --s-font: 'Muhandis Riyal', 'Readex Pro', Tahoma, sans-serif;
  --s-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --s-max: 1320px;
  --s-gutter: clamp(20px, 4vw, 56px);
  --s-sec: clamp(56px, 7vw, 100px);
  --s-r: 12px;
  --s-r-lg: 20px;
  --s-ease: cubic-bezier(.16, 1, .3, 1);

  /* styles.css's tokens, re-pointed so the forms, tables and tools it draws sit in this world on paper */
  --display: var(--s-font);
  --body: var(--s-font);
  --ink: var(--s-paper-ink);
  --ink-2: #2E2E35;
  --ink-3: #3E3E46;
  --muted: var(--s-paper-mute);
  --blue: var(--s-link);
  --blue-ink: #5C3D00;
  --blue-on: var(--s-text);
  --blue-on-2: var(--s-mute);
  --saffron: var(--s-mus);
  --saffron-ink: var(--s-on-mus);
  --pale: #ECEAE3;
  --cream: #F6E7BD;
  --surface: #ECEBE6;
  --line: var(--s-paper-line);
  --line-2: #8B8A92;
  --line-choice: #8E8A7E;
  --r-pill: 12px;
  --r-card: 14px;
  --r-panel: 20px;
  --r-media: 16px;

  background: var(--s-ink);
  color: var(--s-text);
  font-family: var(--s-font);
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
}
.site ::selection { background: var(--s-mus); color: var(--s-on-mus); }
.site :focus-visible { outline: 2px solid var(--s-mus); outline-offset: 3px; box-shadow: none; }
.site .s-on-paper :focus-visible { outline-color: var(--s-paper-ink); }
html:has(body.site) { background: var(--s-ink); color-scheme: dark; scrollbar-color: var(--s-line-2) var(--s-ink); }
.site h1, .site h2, .site h3, .site .display { font-family: var(--s-font); font-weight: 700; letter-spacing: 0; }
[lang="en"] .site h1, [lang="en"] .site h2 { letter-spacing: -.015em; }
.site .s-mono { font-family: var(--s-mono); letter-spacing: .02em; }
.site .skip { background: var(--s-mus); color: var(--s-on-mus); border-radius: 8px; }
[dir="rtl"] .site .s-arrow { transform: scaleX(-1); }
.site .s-arrow { flex: none; }

.s-wrap { max-width: var(--s-max); margin-inline: auto; padding-inline: var(--s-gutter); }

/* ---------- buttons, links, chips ---------- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--s-r); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, transform .15s var(--s-ease), border-color .2s; }
.s-btn:active { transform: translateY(1px); }
.s-btn-mustard { background: var(--s-mus); color: var(--s-on-mus); }
.s-btn-mustard:hover { background: var(--s-mus-2); color: var(--s-on-mus); }
.s-btn-ink { background: var(--s-ink); color: var(--s-paper); }
.s-btn-ink:hover { background: #26262B; color: var(--s-paper); }
.s-btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.s-btn-lg { min-height: 60px; padding: 0 30px; font-size: 19px; }
.s-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.s-link:hover { color: inherit; text-decoration-color: currentColor; }
.s-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 10px; border: 1px solid var(--s-line-2); border-radius: 8px; background: var(--s-ink-2); color: var(--s-text); font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none; position: relative; z-index: 1; transition: border-color .2s, color .2s; }
.s-chip:hover { border-color: var(--s-mus); color: var(--s-mus); }
.s-on-paper .s-chip { background: var(--s-paper-2); border-color: var(--s-paper-line); color: var(--s-paper-ink); }
.s-on-paper .s-chip:hover { border-color: var(--s-paper-ink); color: var(--s-paper-ink); }

/* ---------- header ---------- */
.s-header { position: sticky; top: 0; z-index: 40; background: var(--s-ink); border-bottom: 1px solid var(--s-line); }
.s-header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.s-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-height: 44px; }
.s-face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; background: var(--s-mus); flex: none; }
.s-wordmark { display: block; height: 24px; width: auto; }
.s-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); font-size: 15px; }
.s-nav > a:not(.s-btn), .s-nav summary { color: #D6D6DA; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.s-nav > a:not(.s-btn):hover, .s-nav summary:hover { color: var(--s-paper); }
.s-nav > a[aria-current="page"] { color: var(--s-paper); text-decoration: underline; text-decoration-color: var(--s-mus); text-decoration-thickness: 2px; text-underline-offset: 10px; }
.s-nav .s-lang { font-family: var(--s-font); }
.site .nav-drop summary { gap: 6px; }
.site .nav-drop-list, .site .nav-menu-list { background: var(--s-ink-2); border: 1px solid var(--s-line); border-radius: 14px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7); padding: 6px; list-style: none; margin: 0; }
.site .nav-drop-list { width: 300px; }
.site .nav-drop-list li + li, .site .nav-menu-list > li + li { border-top: 1px solid var(--s-line); }
.site .s-nav .nav-drop-list a, .site .s-nav .nav-menu-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 8px 12px; color: var(--s-text); text-decoration: none; border-radius: 8px; }
.site .s-nav .nav-drop-list a:hover, .site .s-nav .nav-menu-list a:hover { background: var(--s-ink-3); color: var(--s-paper); }
.site .nav-drop-list b { font-weight: 500; font-size: 15px; }
.site .s-nav .nav-drop-all a { color: var(--s-mus); font-weight: 600; justify-content: flex-start; }
.site .nav-drop-list :focus-visible, .site .nav-menu-list :focus-visible { outline-color: var(--s-mus); box-shadow: none; }
.site .nav-menu { display: none; position: static; }
.site .nav-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--s-text); }
.site .nav-menu summary::-webkit-details-marker { display: none; }
.site .nav-menu-list { position: absolute; inset-inline: var(--s-gutter); top: calc(100% + 6px); z-index: 50; }
.site .nav-menu-offers { list-style: none; margin: 0 0 6px; padding: 0; }
.site .s-nav .nav-menu-offers a { padding-inline-start: 26px; font-size: 15px; color: var(--s-mute); min-height: 42px; }
.s-header-row { position: relative; }
@media (max-width: 1080px) {
  .s-extra { display: none !important; }
  .site .nav-menu { display: block; }
}
/* the brand never gives up its room to the links beside it */
.s-brand, .s-wordmark { flex: none; }
@media (max-width: 480px) {
  /* Phones: the wordmark alone stands for the brand (his face is in the hero), so the menu and the button keep their room. */
  .s-header .s-face { display: none; }
}
@media (max-width: 420px) {
  /* Small phones: the menu is its icon alone (its name stays for screen readers), so the wordmark keeps its room. */
  .s-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site .nav-menu summary { min-width: 44px; justify-content: center; border: 1px solid var(--s-line-2); border-radius: 10px; }
  .s-wordmark { height: 20px; }
  .s-face { width: 30px; height: 30px; }
  .s-nav { gap: 10px; }
  .s-nav .s-btn-sm { padding: 0 12px; font-size: 14px; }
}

/* ---------- a page's dark head (every page but the home page) ---------- */
.s-head { border-bottom: 1px solid var(--s-line); }
.s-head-inner { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px); display: grid; gap: 20px; max-width: 980px; }
.site .s-head h1 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.2; color: var(--s-paper); text-wrap: balance; }
.site .s-head .lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.85; color: var(--s-text); max-width: 40em; }
.site .breadcrumbs { font-size: 14px; color: var(--s-mute); }
.site .breadcrumbs a { color: var(--s-mute); text-decoration: none; }
.site .breadcrumbs a:hover { color: var(--s-paper); text-decoration: underline; text-underline-offset: 5px; }
.site .s-head .page-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.site .s-head .page-client { color: var(--s-mute); }
.site .s-head .page-client a { color: var(--s-mus); }

/* the old stylesheet's buttons where a form still draws them (the tools, the quote and consultation forms) */
.site .btn { border-radius: var(--s-r); font-weight: 600; }
.site .btn-primary { background: var(--s-mus); color: var(--s-on-mus); }
.site .btn-primary:hover { background: var(--s-mus-2); color: var(--s-on-mus); }
.site .btn-ghost { color: var(--s-paper-ink); border-color: var(--line-2); }

/* ---------- footer ---------- */
.s-footer { border-top: 1px solid var(--s-line); padding-block: clamp(40px, 4.5vw, 64px) 0; color: var(--s-mute); font-size: 15px; }
/* brand · services (two short columns) · site; the legal and language links sit in a thin base row */
.s-footer-grid { display: grid; gap: 32px 56px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) minmax(0, 1fr); }
.s-footer-col-2 { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.s-footer-col-2 .s-footer-head { grid-column: 1 / -1; }
.s-footer-base { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: clamp(28px, 3vw, 40px); padding-block: 14px 18px; font-size: 14px; background: linear-gradient(var(--s-line), var(--s-line)) center top / calc(100% - 2 * var(--s-gutter)) 1px no-repeat; } /* the rule stays inside .s-wrap's gutters, in line with the columns */
.s-footer-base a { min-height: 40px; display: inline-flex; align-items: center; color: var(--s-mute); text-decoration: none; }
.s-footer-base a:hover { color: var(--s-paper); }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) { .s-footer-col a, .s-footer-head { min-height: 34px; } }
.s-footer-brand { display: grid; gap: 14px; align-content: start; }
.s-footer-brand p { max-width: 32em; line-height: 1.8; }
.s-footer-mail { color: var(--s-text); text-decoration: none; justify-self: start; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.s-footer-mail:hover { color: var(--s-mus); }
.s-footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; justify-items: start; }
.s-footer-contact li { display: flex; }
.s-footer-place { min-height: 44px; align-items: center; color: var(--s-mute); font-size: 15px; }
.s-footer-col { display: grid; gap: 0; align-content: start; }
.s-footer-col a, .s-footer-head { min-height: 40px; display: flex; align-items: center; color: var(--s-mute); text-decoration: none; }
.s-footer-col a:hover { color: var(--s-paper); }
.s-footer-head { color: var(--s-paper); font-weight: 600; }
@media (max-width: 760px) { .s-footer-grid { grid-template-columns: 1fr 1fr; } .s-footer-brand, .s-footer-col-2 { grid-column: 1 / -1; } }

/* =================================== the home page =================================== */

/* ---------- Maaz, his words, and the question ---------- */
.h-hero { display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 40vw, 620px); min-height: min(calc(100svh - 73px), 900px); border-bottom: 1px solid var(--s-line); }
.h-hero-copy { align-self: center; padding-block: clamp(40px, 7vh, 96px) clamp(40px, 6vh, 72px); padding-inline-start: max(var(--s-gutter), calc((100vw - var(--s-max)) / 2 + var(--s-gutter))); padding-inline-end: clamp(28px, 5vw, 80px); display: grid; gap: 22px; }
/* The heading is the search line, set small above the owner's message (the SEO pass, 2026-11-28); the message stays the large
   display line, as it was. */
.site .h-hero .h-kicker { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; font-weight: 600; letter-spacing: 0; color: var(--s-mus); text-wrap: pretty; max-width: 36em; margin-bottom: -8px; }
.site .h-display { margin: 0; font-size: clamp(38px, 4.8vw, 78px); line-height: 1.16; color: var(--s-paper); text-wrap: balance; max-width: 15ch; }
.h-display em { font-style: normal; color: var(--s-mus); }
/* English runs longer than the Arabic it stands beside: a wider measure and a smaller ceiling keep the question in the first screen. */
[lang="en"] .site .h-display { font-size: clamp(36px, 4vw, 64px); max-width: 19ch; letter-spacing: -.015em; }
.h-byline { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--s-mute); }
.h-byline::before { content: ""; width: 36px; height: 6px; border-radius: 3px; background: var(--s-mus); flex: none; }
.h-lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.85; color: var(--s-text); max-width: 34em; }
.h-ask { display: grid; gap: 14px; margin-top: 10px; padding-top: 26px; border-top: 1px solid var(--s-line); max-width: 44em; }
.h-ask-q { font-weight: 600; color: var(--s-paper); font-size: 18px; }
.h-answers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.h-answer { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 1px solid var(--s-line-2); border-radius: 10px; background: var(--s-ink-2); color: var(--s-text); font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.h-answer:hover { border-color: var(--s-mus); color: var(--s-paper); }
.h-answer[aria-pressed="true"] { background: var(--s-mus); border-color: var(--s-mus); color: var(--s-on-mus); }
.h-reply { font-size: 19px; line-height: 1.75; color: var(--s-paper); max-width: 36em; display: flex; gap: 12px; }
.h-reply:empty { display: none; }
.h-reply::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .65em; border-radius: 2px; background: var(--s-mus); }
.h-reply.is-new { animation: h-reply .55s var(--s-ease) both; }
@keyframes h-reply { from { opacity: 0; transform: translateY(8px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.h-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 4px; }
.h-photo { position: relative; margin: 0; background: var(--s-mus); overflow: hidden; min-height: 520px; isolation: isolate; }
.h-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 60% at 0% 100%, rgba(255, 90, 54, .5), rgba(255, 90, 54, 0) 70%); }
[dir="ltr"] .h-photo::after { background: radial-gradient(90% 60% at 100% 100%, rgba(255, 90, 54, .5), rgba(255, 90, 54, 0) 70%); }
.h-photo { container-type: size; }
/* the photo covers its field: never narrower than the field, never shorter, standing on the field's foot */
.h-photo-fit { position: absolute; bottom: 0; left: 50%; width: max(100cqw, 80cqh); aspect-ratio: 4 / 5; transform: translateX(-50%); }
.h-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }

/* the glint on his glasses: a band of white light sweeps both lenses, the far one a beat later, and flares on the rim */
.h-glint { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; overflow: visible; }
.h-band { transform: translateX(0); animation: h-sweep 7.5s cubic-bezier(.55, .1, .3, 1) 1.4s infinite; }
.h-lens-r .h-band { animation-delay: 1.62s; }
.h-sheen { transform: translate(calc(var(--gx, 0) * 12px), calc(var(--gy, 0) * 8px)); transition: transform .9s var(--s-ease); }
.h-flare { opacity: 0; animation: h-flare 7.5s linear 1.4s infinite; }
.h-flare circle, .h-flare path { transform-origin: 0 0; animation: h-flare-s 7.5s var(--s-ease) 1.4s infinite; }
@keyframes h-sweep { 0% { transform: translateX(0); } 24%, 100% { transform: translateX(360px); } }
@keyframes h-flare { 0%, 15% { opacity: 0; } 18.5% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes h-flare-s { 0%, 15% { transform: scale(.3) rotate(0deg); } 18.5% { transform: scale(1.1) rotate(25deg); } 27%, 100% { transform: scale(.5) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .h-band, .h-flare { display: none; } }
.h-photo-tag { position: absolute; z-index: 1; bottom: 24px; inset-inline-end: 24px; max-width: min(300px, calc(100% - 48px)); display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--s-r); background: rgba(14, 14, 16, .9); border: 1px solid var(--s-line); }
.h-photo-tag b { color: var(--s-paper); font-size: 17px; font-weight: 600; }
.h-photo-tag span { color: #C8C8CE; font-size: 14px; line-height: 1.6; }
/* Narrow screens open on the engineer too: a mustard band with his whole head and shoulders above the words. The photo keeps
   its own proportions and stands at the band's foot (its background is the band's mustard), its sides faded into the field, so
   no width ever zooms in on part of the face or ends the jacket in a hard edge. */
@media (max-width: 960px) {
  .h-hero { grid-template-columns: 1fr; min-height: 0; }
  .h-photo { order: -1; min-height: 0; height: clamp(400px, 116vw, 560px); }
  .h-photo::after, [dir="ltr"] .h-photo::after { background: linear-gradient(to bottom, rgba(14, 14, 16, 0) 52%, rgba(14, 14, 16, .78) 78%, var(--s-ink) 99%); }
  .h-hero-copy { position: relative; z-index: 2; margin-top: clamp(-150px, -30vw, -110px); }
  .site .h-display, .site .h-hero .h-kicker { text-shadow: 0 2px 24px rgba(14, 14, 16, .55); }
  .site .h-hero .h-kicker { margin-bottom: -6px; }
  /* the band shows his head and shoulders: the photo spans the band's width and hangs from its top */
  .h-photo-fit { top: -3%; bottom: auto; left: 55%; width: 108cqw; }
  .h-photo-tag { display: none; }
  .h-hero-copy { padding-inline: var(--s-gutter); padding-top: 0; gap: 18px; }
}

/* ---------- sections ---------- */
.h-sec { padding-block: var(--s-sec); border-bottom: 1px solid var(--s-line); }
.s-on-paper { background: var(--s-paper); color: var(--s-paper-ink); border-bottom-color: var(--s-paper-line); }
.site .h-sec h2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.2; color: inherit; text-wrap: balance; }
.h-sec:not(.s-on-paper) h2 { color: var(--s-paper); }
.h-sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.h-sec-note p { font-size: 19px; line-height: 1.85; color: var(--s-text); max-width: 34em; }
.s-on-paper .h-sec-note p { color: var(--s-text); }
.h-more { margin-top: 28px; }
@media (max-width: 760px) { .h-sec-head { grid-template-columns: 1fr; } }

/* what I build: a ruled grid; the whole cell opens the service, its chips open the work that shows it */
/* four columns on desktop, two on tablets, one on phones: fixed counts, so the ask cell's span (set on the list) is exact */
.h-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--s-line); border-inline-start: 1px solid var(--s-line); }
.h-cell { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 32px); border-bottom: 1px solid var(--s-line); border-inline-end: 1px solid var(--s-line); transition: background-color .25s; }
.h-cell:hover { background: var(--s-ink-2); }
.site .h-cell h3 { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.35; font-weight: 600; }
.h-cell h3 a { color: var(--s-paper); text-decoration: none; }
.h-cell h3 a::after { content: ""; position: absolute; inset: 0; }
.h-cell:hover h3 a { color: var(--s-mus); }
.h-cell p { color: var(--s-mute); font-size: 16px; line-height: 1.8; }
.h-cell-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.h-cell-foot:has(> .h-cell-go:only-child) { justify-content: flex-end; }
/* the home page shows each service's lead as two lines; the whole of it stays in the page and the service page says the rest */
.h-cell-lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@media (max-width: 1100px) { .h-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .h-grid { grid-template-columns: 1fr; } }
/* The grid's last cell asks for what the list lacks, and spans the rest of the last row (a full-width strip when the services fill their rows). */
.h-cell-ask { grid-column: span var(--ask4, 1); background: var(--s-ink-2); }
.h-cell-ask p { max-width: 36em; }
@media (max-width: 1100px) { .h-cell-ask { grid-column: span var(--ask2, 1); } }
@media (max-width: 640px) { .h-cell-ask { grid-column: auto; } }
.h-cell-ask:hover { background: var(--s-ink-3); }
.h-cell-cta { color: var(--s-mus); font-weight: 600; font-size: 16px; }
.h-cell-ask .h-cell-go { color: var(--s-mus); }
.h-cell-go { color: var(--s-mute); display: inline-flex; transition: transform .3s var(--s-ease), color .2s; }
.h-cell:hover .h-cell-go { color: var(--s-mus); transform: translateX(-4px); }
[dir="ltr"] .h-cell:hover .h-cell-go { transform: translateX(4px); }

/* the work: tiles on paper, the first one large, a figure set big when the heading carries one */
.h-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2vw, 28px); border: 1px solid var(--s-paper-line); border-radius: 16px; background: var(--s-paper-2); transition: border-color .2s; }
.h-tile:hover { border-color: var(--s-paper-ink); }
.h-tile-lead { grid-row: span 2; background: var(--s-ink); border-color: var(--s-ink); color: var(--s-text); }
.h-tile-lead:hover { border-color: var(--s-mus); }
.h-tile-figure { background: var(--s-mus); border-color: var(--s-mus); color: var(--s-on-mus); }
.h-tile-figure:hover { border-color: var(--s-on-mus); }
.h-tile-client { font-size: 14px; color: var(--s-paper-mute); line-height: 1.6; }
.h-tile-lead .h-tile-client { color: var(--s-mute); }
.h-tile-figure .h-tile-client { color: #3D2F0B; }
.h-tile-num { font-family: var(--s-mono); font-weight: 600; font-size: clamp(56px, 6vw, 92px); line-height: 1; letter-spacing: -.03em; text-align: start; }
.site .h-tile h3 { font-size: 20px; line-height: 1.45; font-weight: 600; }
.site .h-tile-lead h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; }
.h-tile h3 a { color: inherit !important; text-decoration: none; }
.h-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.h-tile-lead h3 a { color: var(--s-paper) !important; }
.h-tile-lead-text { color: var(--s-mute); font-size: 17px; line-height: 1.85; max-width: 34em; }
.h-tile-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.h-tile-lead .h-tile-foot { color: var(--s-mus); }
@media (max-width: 960px) { .h-tiles { grid-template-columns: 1fr 1fr; } .h-tile-lead { grid-column: 1 / -1; grid-row: auto; } }
/* every case study on the home page (the SEO pass): the grid closes with no hole whatever their number (home.tsx tilesFill) */
@media (min-width: 961px) { .h-tiles-lead-wide .h-tile-lead { grid-column: span 2; } .h-tile-close3 { grid-column: span 2; } }
@media (min-width: 601px) and (max-width: 960px) { .h-tile-close2 { grid-column: 1 / -1; } }

/* Phones: the page keeps every section but says each once. A service is its name and two lines (its page has the rest, the work
   section has the proof); the work note, which the tiles say again, and the second photo, seen at the top, are left out. */
@media (max-width: 600px) {
  .h-cell { padding: 18px 16px; gap: 6px; }
  .site .h-cell h3 { font-size: 19px; }
  .h-cell p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 15px; }
  .h-cell-foot { padding-top: 2px; }
  .h-work .h-sec-note { display: none; }
  .h-sec { padding-block: 56px; }
  .h-sec-head { margin-bottom: 24px; }
  .h-tile { padding: 18px; }
  .h-tile-lead-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .h-steps { gap: 20px; }
  .h-steps li { grid-template-columns: auto 1fr; gap: 14px; padding-top: 16px; }
  .h-cost, .h-staff { padding: 24px 20px; }
  .s-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .s-footer-col { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .s-footer-head { grid-column: 1 / -1; }
  .s-footer-col a { min-height: 40px; line-height: 1.4; }
}
@media (max-width: 600px) { .h-tiles { grid-template-columns: 1fr; } }

/* how we work: five steps in order on one ruled line */
.h-how h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; counter-reset: none; }
.h-steps li { display: grid; gap: 14px; align-content: start; padding-top: 22px; border-top: 1px solid var(--s-line-2); position: relative; }
.h-steps li::before { content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--s-mus); }
.h-step-n { color: var(--s-mus); font-size: 14px; font-weight: 500; }
.h-steps p { color: var(--s-text); font-size: 17px; line-height: 1.8; }
@media (max-width: 1080px) { .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; } }
@media (max-width: 600px) { .h-steps { grid-template-columns: 1fr; gap: 28px; } }

/* the cost tool on the mustard field, remote staff and its prices beside it */
.h-offers-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; }
.h-cost, .h-staff { border-radius: var(--s-r-lg); padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.h-cost { background: var(--s-mus); color: var(--s-on-mus); }
.site .h-cost h2 { color: var(--s-on-mus); }
.h-cost p { font-size: 19px; line-height: 1.85; max-width: 30em; }
.h-cost .s-btn { margin-top: auto; }
.h-staff { border: 1px solid var(--s-line); background: var(--s-ink-2); }
.h-staff > p { color: var(--s-text); font-size: 17px; line-height: 1.85; }
.h-prices { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.h-prices th, .h-prices td { background: none; padding: 11px 0; border-bottom: 1px solid var(--s-line); text-align: start; }
.h-prices thead th { font-size: 13px; font-weight: 500; color: var(--s-mute); padding-top: 0; }
.h-prices tbody th { font-weight: 500; color: var(--s-paper); padding-inline-end: 16px; }
.h-prices td { color: var(--s-text); white-space: nowrap; padding-inline-start: 16px; font-family: 'Muhandis Riyal', var(--s-mono); font-size: 15px; letter-spacing: 0; }
.h-note { font-size: 14px; color: var(--s-mute); }
@media (max-width: 900px) { .h-offers-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .h-prices { font-size: 14px; } .h-prices td { padding-inline-start: 10px; } .h-prices tbody th { padding-inline-end: 8px; } }

/* who works on your system: the photo again, smaller, beside his words and his signature */
.h-who-grid { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.h-who-photo { margin: 0; border-radius: var(--s-r-lg); overflow: hidden; background: var(--s-mus); aspect-ratio: 4 / 5; }
.h-who-img { width: 100%; height: 100%; object-fit: cover; }
.h-who-text { display: grid; gap: 18px; max-width: 40em; }
.h-who-text p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.9; color: var(--s-text); }
.site .h-sign { font-size: 30px; font-weight: 700; color: var(--s-paper-ink); display: grid; gap: 8px; justify-items: start; margin-top: 6px; }
.h-sign::after { content: ""; width: 120px; height: 8px; border-radius: 4px; background: var(--s-mus); }
.h-who-links { display: flex; flex-wrap: wrap; gap: 8px; }
.h-who-links .s-chip { font-family: var(--s-font); }
@media (max-width: 760px) { .h-who-grid { grid-template-columns: 1fr; } .h-who-photo { max-width: 320px; } }

/* common questions */
.h-faq { border-top: 1px solid var(--s-paper-line); }
.h-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 56px; align-items: start; }
.s-faq { border-top: 1px solid var(--s-paper-line); }
.s-faq details { border-bottom: 1px solid var(--s-paper-line); }
.s-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding-block: 14px; cursor: pointer; font-size: 19px; font-weight: 600; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform .3s var(--s-ease); }
.s-faq details[open] summary::after { transform: rotate(45deg); }
.s-faq details p { padding-bottom: 20px; font-size: 18px; line-height: 1.9; color: var(--s-text); max-width: 42em; }
@media (max-width: 760px) { .h-faq-grid { grid-template-columns: 1fr; } }

/* the close: on the mustard field */
.h-close { background: var(--s-mus); color: var(--s-on-mus); padding-block: clamp(56px, 8vw, 112px); }
.h-close-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 56px; }
.site .h-close h2 { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.15; color: var(--s-on-mus); max-width: 14ch; }
.h-close p { font-size: 19px; line-height: 1.8; margin-top: 12px; max-width: 30em; }
.h-close-go { display: grid; gap: 10px; justify-items: start; }
.h-close-go p { font-size: 15px; margin: 0; }
.h-close-go a:not(.s-btn) { color: var(--s-on-mus); font-weight: 600; text-underline-offset: 5px; }
.h-close :focus-visible { outline-color: var(--s-on-mus); }

/* =================================== inner pages (2026-11-28) ===================================
   A dark head (trail, heading, lead, actions) with the page's moving drawing beside it, over a paper body ruled like a drawing
   sheet: each section a row, its heading on the reading-start side, its text beside it. Terms and privacy read as a document
   with their section list; the quote and consultation put the form first with what to write beside it. */

.s-head-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.s-head-scene .s-head-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: clamp(32px, 5vw, 72px); }
.s-head-scene .s-head-inner { padding-block: 0; }
.site .s-head-scene h1 { font-size: clamp(32px, 3.6vw, 56px); }
.s-head-art { align-self: center; }
.site .s-head .page-ctas .s-btn { min-width: 0; }
.s-btn-line { background: transparent; color: var(--s-paper); border-color: var(--s-line-2); }
.s-btn-line:hover { border-color: var(--s-paper); color: var(--s-paper); }
.s-btn-paper-line { background: transparent; color: var(--s-paper-ink); border-color: #A9A79E; width: 100%; }
.s-btn-paper-line:hover { border-color: var(--s-paper-ink); color: var(--s-paper-ink); }
.s-head-code { color: var(--s-mute); font-size: 13px; overflow-wrap: anywhere; }
.site .s-head .page-client { font-size: 15px; }
.site .s-head .page-client a { font-family: var(--s-mono); font-size: 14px; letter-spacing: .02em; }
.s-dark-main { display: block; }
@media (max-width: 960px) {
  .s-head-scene .s-head-grid { grid-template-columns: 1fr; padding-block: 28px 40px; }
  .s-head-art { max-width: 640px; width: 100%; }
}

/* ---------- the paper body ---------- */
.pg { display: block; background: var(--s-paper); color: var(--s-paper-ink); }
.site .pg a:not(.s-btn):not(.btn) { color: var(--s-link); }
.site .pg :focus-visible { outline-color: var(--s-paper-ink); }
.pg-sheet { padding-block: clamp(40px, 6vw, 96px); display: grid; gap: 0; }
.pg-sheet > :first-child { margin-top: 0; }

/* a ruled row: heading | content */
.pg-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(28px, 5vw, 80px); padding-block: clamp(36px, 4.4vw, 64px); border-top: 1px solid var(--s-paper-line); }
.pg-sheet > .pg-row:first-child { border-top: 0; padding-top: 0; }
.pg-links + .pg-row, .pg-tiles + .pg-row, .pg-facts + .pg-row, .pg-fields + .pg-row { margin-top: clamp(40px, 5vw, 72px); }
.site .pg-h { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; color: var(--s-paper-ink); text-wrap: balance; align-self: start; position: sticky; top: 96px; }
.pg-c { display: grid; gap: 18px; align-content: start; min-width: 0; }
.pg-c > p { font-size: 18px; line-height: 1.9; color: var(--s-text); max-width: 40em; }
.pg-row-wide { grid-template-columns: 1fr; }
.pg-row-wide .pg-h { position: static; }
@media (max-width: 860px) {
  .pg-row { grid-template-columns: 1fr; }
  .site .pg-h { position: static; }
}

/* lists: ruled lines, a mustard stroke before each, a lead-in label set bold */
.pg-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--s-paper-line); max-width: 46em; }
.pg-list li { position: relative; padding: 14px 0; padding-inline-start: 30px; border-bottom: 1px solid var(--s-paper-line); font-size: 17px; line-height: 1.85; color: var(--s-text); }
.pg-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: calc(14px + .82em); width: 14px; height: 4px; border-radius: 2px; background: var(--s-mus); }
.pg-list b { color: var(--s-paper-ink); font-weight: 600; }

/* what you get: a two-column checklist, each line with a drawn tick */
.pg-ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--s-paper-line); border-inline-start: 1px solid var(--s-paper-line); }
.pg-ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-bottom: 1px solid var(--s-paper-line); border-inline-end: 1px solid var(--s-paper-line); background: var(--s-paper-2); font-size: 17px; line-height: 1.7; color: var(--s-paper-ink); }
.pg-ticks-1 { grid-template-columns: 1fr; }
.pg-tick { flex: none; width: 28px; height: 28px; padding: 3px; border-radius: 8px; background: var(--s-ink); color: var(--s-mus); margin-top: -1px; }
@media (max-width: 640px) { .pg-ticks { grid-template-columns: 1fr; } }

/* links to other pages: a ruled grid of cells, each a whole link */
.pg-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--s-paper-line); border-inline-start: 1px solid var(--s-paper-line); }
.pg-links li { display: flex; border-bottom: 1px solid var(--s-paper-line); border-inline-end: 1px solid var(--s-paper-line); }
.site .pg .pg-links a { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 6px 16px; padding: clamp(18px, 2vw, 26px); color: var(--s-paper-ink); text-decoration: none; background: var(--s-paper-2); transition: background-color .25s; min-height: 100%; }
.site .pg .pg-links a:hover { background: #FBFAF6; }
.pg-links b { grid-column: 1; font-size: 19px; line-height: 1.45; font-weight: 600; }
.pg-links span { grid-column: 1; font-size: 15px; line-height: 1.75; color: var(--s-paper-mute); }
.pg-links .s-arrow { grid-column: 2; grid-row: 1 / span 3; align-self: end; color: var(--s-paper-mute); transition: transform .3s var(--s-ease), color .2s; }
.pg-links a:hover .s-arrow { color: var(--s-paper-ink); transform: translateX(-4px); }
[dir="rtl"] .pg-links a:hover .s-arrow { transform: scaleX(-1) translateX(-4px); }
[dir="ltr"] .pg-links a:hover .s-arrow { transform: translateX(4px); }
.pg-links a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.pg-tag { grid-column: 1; justify-self: start; font-size: 12px; font-weight: 600; color: var(--s-on-mus); background: var(--s-mus); border-radius: 6px; padding: 1px 8px; }
.pg-links-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.pg-links-lg b { font-size: clamp(21px, 1.8vw, 25px); }
.pg-links-lg span { font-size: 16px; }
.pg-links-lg a { min-height: 180px; }
.pg-links-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.pg-links-sm b { font-size: 17px; }

/* questions */
.pg .s-faq summary { font-size: 18px; }
.pg .s-faq details p { font-size: 17px; }

/* the work hub: tiles, the first one large on ink, a figure set big on mustard */
.pg-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2vw, 28px); border: 1px solid var(--s-paper-line); border-radius: 16px; background: var(--s-paper-2); transition: border-color .2s; min-height: 200px; }
.pg-tile:hover { border-color: var(--s-paper-ink); }
.site .pg-tile h2 { font-size: 20px; line-height: 1.45; font-weight: 600; }
.site .pg .pg-tile h2 a { color: inherit; text-decoration: none; }
.pg-tile h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pg-tile-client { font-size: 14px; color: var(--s-paper-mute); line-height: 1.6; }
.pg-tile-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.pg-tile-lead { grid-row: span 2; background: var(--s-ink); border-color: var(--s-ink); color: var(--s-text); }
.pg-tile-lead:hover { border-color: var(--s-mus); }
.site .pg-tile-lead h2 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; color: var(--s-paper); }
.pg-tile-lead p { color: var(--s-mute); font-size: 17px; line-height: 1.85; }
.pg-tile-lead .pg-tile-client { color: var(--s-mute); }
.pg-tile-lead .pg-tile-foot { color: var(--s-mus); }
.pg-tile-figure { background: var(--s-mus); border-color: var(--s-mus); color: var(--s-on-mus); }
.pg-tile-figure:hover { border-color: var(--s-on-mus); }
.pg-tile-figure .pg-tile-client { color: #3D2F0B; }
.pg-tile-num { font-family: var(--s-mono); font-weight: 600; font-size: clamp(56px, 6vw, 92px); line-height: 1; letter-spacing: -.03em; text-align: start; }
@media (max-width: 960px) { .pg-tiles { grid-template-columns: 1fr 1fr; } .pg-tile-lead { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 600px) { .pg-tiles { grid-template-columns: 1fr; } .pg-tile { min-height: 0; } }

/* a work page: its facts as a ruled strip, its pictures-to-come as drawn frames */
.pg-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); border-top: 1px solid var(--s-paper-line); border-inline-start: 1px solid var(--s-paper-line); }
.pg-facts div { padding: 18px 20px; border-bottom: 1px solid var(--s-paper-line); border-inline-end: 1px solid var(--s-paper-line); background: var(--s-paper-2); min-width: 0; }
.pg-facts dt { font-size: 13px; font-weight: 500; color: var(--s-paper-mute); }
.pg-facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; line-height: 1.55; color: var(--s-paper-ink); overflow-wrap: anywhere; }
.pg-media { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.pg-media li { position: relative; display: grid; grid-template-rows: auto 1fr; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--s-ink); border: 1px solid var(--s-ink); min-width: 0; }
.pg-media-bar { height: 26px; border-bottom: 1px solid var(--s-line); background: var(--s-ink-2) radial-gradient(circle, var(--s-line-2) 2.5px, transparent 3px) 12px 50% / 12px 12px repeat-x; background-size: 12px 12px; background-position: 12px 50%; }
[dir="rtl"] .pg-media-bar { background-position: calc(100% - 12px) 50%; }
.pg-media-say { display: grid; place-items: center; padding: 18px; text-align: center; font-size: 15px; line-height: 1.7; color: var(--s-mute); background: radial-gradient(var(--s-line) 1px, transparent 1.5px) 0 0 / 14px 14px; }
.pg-stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pg-stack span { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 10px; border: 1px solid var(--s-paper-line); border-radius: 8px; background: var(--s-paper-2); font-family: var(--s-mono); font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--s-paper-ink); }

/* remote staff: the price table, then a card per field */
.pg-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--s-paper-line); border-radius: 14px; background: var(--s-paper-2); }
.pg-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.pg-table th, .pg-table td { padding: 16px 18px; text-align: start; border-bottom: 1px solid var(--s-paper-line); vertical-align: top; }
.pg-table thead th { font-size: 13px; font-weight: 500; color: var(--s-paper-mute); background: #F8F7F3; }
.pg-table tbody tr:last-child > * { border-bottom: 0; }
.pg-table tbody th { font-weight: 500; color: var(--s-paper-ink); min-width: 200px; }
.pg-table tbody th b { display: block; font-weight: 600; }
.pg-table small { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--s-paper-mute); line-height: 1.6; }
.pg-table td { white-space: nowrap; font-family: 'Muhandis Riyal', var(--s-mono); font-size: 15px; font-weight: 500; color: var(--s-paper-ink); }
.pg-table td small { font-family: var(--s-font); white-space: normal; }
.pg-total th, .pg-total td { background: #F8F7F3; }
.pg-note { font-size: 14px; color: var(--s-paper-mute); }
@media (max-width: 600px) {
  .pg-table th, .pg-table td { padding: 12px 10px; }
  .pg-table tbody th { min-width: 0; }
  #staff-prices ~ .pg-c .pg-table tbody th small { display: none; }
  .pg-table td { font-size: 14px; }
}
.pg-fields { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.pg-fields > li { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--s-paper-line); border-radius: 16px; background: var(--s-paper-2); }
.site .pg-fields h2 { font-size: 21px; line-height: 1.4; font-weight: 600; }
.pg-fields .pg-ticks { border: 0; }
.pg-fields .pg-ticks li { border: 0; padding: 4px 0; background: none; font-size: 16px; }
.pg-fields .pg-tick { width: 22px; height: 22px; padding: 2px; border-radius: 6px; margin-top: 3px; }
.pg-fields > li > p { font-size: 15px; line-height: 1.8; color: var(--s-paper-mute); }
.pg-field-price { margin-top: auto !important; padding-top: 14px; border-top: 1px solid var(--s-paper-line); color: var(--s-paper-ink) !important; }
.pg-field-price span { font-family: 'Muhandis Riyal', var(--s-mono); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.pg-field-price small { font-size: 14px; color: var(--s-paper-mute); }

/* terms and privacy: a long read with its section list beside it */
.pg-doc { display: grid; grid-template-columns: minmax(200px, 3fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); padding-block: clamp(40px, 6vw, 96px); align-items: start; }
.pg-toc { position: sticky; top: 96px; display: grid; gap: 10px; font-size: 15px; }
.pg-toc p { font-weight: 600; color: var(--s-paper-ink); }
.pg-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--s-paper-line); }
.site .pg .pg-toc a { display: block; padding: 10px 0; padding-inline-start: 14px; border-bottom: 1px solid var(--s-paper-line); color: var(--s-paper-mute); text-decoration: none; line-height: 1.5; position: relative; }
.site .pg .pg-toc a:hover { color: var(--s-paper-ink); }
.site .pg .pg-toc a[aria-current] { color: var(--s-paper-ink); font-weight: 600; }
.pg-toc a[aria-current]::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 4px; height: 14px; margin-top: -7px; border-radius: 2px; background: var(--s-mus); }
.pg-read { display: grid; gap: 0; max-width: 46em; min-width: 0; }
.pg-read > section { padding-block: 32px; border-top: 1px solid var(--s-paper-line); display: grid; gap: 14px; scroll-margin-top: 96px; }
.pg-read > section:first-child { border-top: 0; padding-top: 0; }
.site .pg-read h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.35; color: var(--s-paper-ink); }
.pg-read p { font-size: 18px; line-height: 1.95; color: var(--s-text); }
.pg-read .pg-row { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .pg-doc { grid-template-columns: 1fr; }
  .pg-toc { position: static; }
  .pg-toc ol { columns: 2; column-gap: 20px; }
  .pg-toc li { break-inside: avoid; }
}
@media (max-width: 480px) { .pg-toc ol { columns: 1; } }

/* the quote and the consultation: the form first, what to write beside it */
.pg-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(40px, 6vw, 96px); align-items: start; }
.pg-split-side { position: sticky; top: 96px; display: grid; gap: 0; }
.pg-split-side section { display: grid; gap: 12px; padding-block: 22px; border-top: 1px solid var(--s-paper-line); }
.pg-split-side section:first-child { border-top: 0; padding-top: 0; }
.site .pg-split-side h2 { font-size: 21px; line-height: 1.4; color: var(--s-paper-ink); }
.pg-split-side p { font-size: 16px; line-height: 1.85; color: var(--s-text); }
.pg-split-side .pg-list li { font-size: 16px; padding-block: 10px; }
.pg-split-side .pg-list li::before { top: calc(10px + .8em); }
@media (max-width: 960px) { .pg-split { grid-template-columns: 1fr; } .pg-split-side { position: static; } }

/* ---------- forms on paper: the quote, the consultation, the tools' gate, the sign-in card ---------- */
.site .pg-form, .site .signin-card, .site .tool-gate { max-width: none; background: var(--s-paper-2); border: 1px solid var(--s-paper-line); border-radius: 16px; padding: clamp(22px, 3vw, 40px); box-shadow: none; gap: 22px; color: var(--s-paper-ink); }
.site .label, .site .form legend { font-size: 16px; font-weight: 600; color: var(--s-paper-ink); }
.site .hint { font-size: 14px; color: var(--s-paper-mute); line-height: 1.7; }
.site .input, .site .textarea, .site .select { min-height: 52px; border: 1px solid #A9A79E; border-radius: 12px; background: var(--s-paper-2); color: var(--s-paper-ink); font-size: 17px; padding: 10px 14px; transition: border-color .2s; }
.site select.input { padding-inline-end: 40px; }
.site .textarea { min-height: 150px; line-height: 1.8; }
.site .input:hover, .site .textarea:hover { border-color: #6E6C66; }
.site .input:focus, .site .textarea:focus, .site .select:focus { border-color: var(--s-paper-ink); outline: 2px solid var(--s-paper-ink); outline-offset: 2px; box-shadow: none; }
.site .input[aria-invalid="true"], .site .textarea[aria-invalid="true"] { border-color: #B42318; }
.site .error-text { color: #B42318; }
.site .input::placeholder, .site .textarea::placeholder { color: #75747B; }
.site .option > span { min-height: 44px; border: 1px solid #A9A79E; border-radius: 10px; background: var(--s-paper-2); color: var(--s-paper-ink); font-weight: 500; padding: 6px 14px; }
.site .option:hover > span { border-color: var(--s-paper-ink); }
.site .option input:checked + span { background: var(--s-ink); border-color: var(--s-ink); color: var(--s-paper); font-weight: 600; }
.site .option input:focus-visible + span { outline: 2px solid var(--s-paper-ink); outline-offset: 2px; box-shadow: none; }
.site .check { font-weight: 500; font-size: 16px; line-height: 1.7; color: var(--s-paper-ink); }
.site .check input { accent-color: var(--s-ink); width: 22px; height: 22px; }
.site .pg-form .btn, .site .tool-gate .btn, .site .signin-card .btn { min-height: 52px; border-radius: 12px; font-size: 17px; }
.site .tool-choice { border-radius: 14px; }
.site .tool-picked { padding: 12px 16px; border-radius: 12px; background: #F6EDD3; color: var(--s-on-mus); font-weight: 600; }

/* the sign-in pages: the card on the dark ground, beside the drawing */
.site .signin-page { max-width: none; }
.site .signin-page .s-head { border-bottom: 0; }
.site .signin-page .s-head-grid { min-height: min(calc(100svh - 73px), 760px); }
.site .signin-card { max-width: 520px; margin-top: 8px; }
.site .signin-card > p { font-size: 16px; line-height: 1.8; color: var(--s-text); }
.site .signin-card .or { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--s-paper-mute); }
.site .signin-card .or::before, .site .signin-card .or::after { content: ""; flex: 1; height: 1px; background: var(--s-paper-line); }
.site .signin-card a:not(.s-btn) { color: var(--s-link); }
.site .signin-card .success-text { color: var(--s-paper-ink); font-weight: 600; padding: 14px 16px; border-radius: 12px; background: #EEF5EE; border: 1px solid #CFE3CF; }

/* the cost tool's panel on the home page: its drawing fills the panel's height beside the price table */
.h-cost-art { width: 100%; margin-top: 4px; border-color: rgba(26, 20, 6, .35); }
.h-cost-art .sc-art { aspect-ratio: 16 / 10; }
@media (max-width: 600px) { .h-cost-art .sc-art { aspect-ratio: 4 / 3; } }

/* a free tool's page */
.pg-tool .tool-shell { padding-block: clamp(36px, 5vw, 72px); }
/* what the tool's page says under the tool: its sections and questions, ruled off from the tool */
.pg-tool .pg-notes { border-top: 1px solid var(--s-paper-line); }
.site .tool-panel { border-radius: 16px; border-color: var(--s-paper-line); }

/* the home page's «who works on your system»: the drawing beside his words */
.h-who-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.h-who-art { align-self: center; }
@media (max-width: 760px) { .h-who-grid { grid-template-columns: 1fr; } .h-who-art { order: 2; } }

/* =================================== the moving drawings (site/scenes.tsx) =================================== */
.sc { margin: 0; display: grid; background: var(--s-ink-2); border: 1px solid var(--s-line); border-radius: var(--s-r-lg); overflow: hidden; color: var(--s-text); isolation: isolate; min-width: 0; }
.sc { grid-template-rows: auto auto; align-content: start; }
.sc-art { position: relative; aspect-ratio: 3 / 2; min-height: 0; overflow: hidden; }
.sc-art::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(#34343B 1px, transparent 1.4px) 0 0 / 14px 14px; -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent); mask-image: radial-gradient(closest-side, #000 35%, transparent); }
.sc-art svg { position: absolute; inset: clamp(8px, 1.6vw, 18px); width: calc(100% - 2 * clamp(8px, 1.6vw, 18px)); height: calc(100% - 2 * clamp(8px, 1.6vw, 18px)); overflow: visible; display: block; }
/* the drawing: on ink, lines in ash, the stage being built in mustard */
.sc-sheet { fill: #121215; stroke: #4A4A53; stroke-width: .6; }
.sc-grid path { fill: none; stroke: #26262C; stroke-width: .45; }
.sc-top { fill: #1E1E23; } .sc-l { fill: #17171B; } .sc-r { fill: #121215; }
.sc-slab path, .sc-box path, .sc-face { stroke: #ABABB4; stroke-width: .7; stroke-linejoin: round; }
.sc-tall .sc-top { fill: #26262C; }
.sc-row { fill: none; stroke: #7C7C86; stroke-width: 1.2; stroke-linecap: round; }
.sc-face { fill: #1B1B20; }
.sc-qr { fill: #ABABB4; stroke: none; }
.sc-mus .sc-top { fill: var(--s-mus); } .sc-mus .sc-l { fill: #B38D37; } .sc-mus .sc-r { fill: #97752B; }
.sc-mus path { stroke: #F0D58F; }
.sc-ghost path { fill: none; stroke: #5E5E68; stroke-dasharray: 2 2; }
.sc-track { fill: none; stroke: #4A4A53; stroke-width: .9; stroke-dasharray: 1.4 2.4; }
.sc-run { fill: none; stroke: #ABABB4; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.sc-quiet .sc-run { stroke: #4A4A53; }
.sc-packet { fill: var(--s-mus); stroke: #121215; stroke-width: .8; }
.sc-check circle { fill: var(--s-mus); }
.sc-check path { fill: none; stroke: var(--s-on-mus); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sc-pulse .sc-core { fill: var(--s-mus); }
.sc-pulse .sc-ring { fill: none; stroke: var(--s-mus); stroke-width: .9; transform-box: fill-box; transform-origin: center; animation: sc-pulse 1.9s var(--s-ease) infinite; }
.sc-pin path { stroke: #ABABB4; stroke-width: .7; }
.sc-pin circle { fill: #121215; stroke: var(--s-mus); stroke-width: 1.3; }
.sc-pop { transform-box: fill-box; transform-origin: center; }
/* stages: built (as drawn), being built (mustard, drawing in), not yet (a faint dashed ghost) */
.sc [data-st] { transition: opacity .6s var(--s-ease); }
.sc [data-st="future"] { opacity: .16; }
.sc [data-st="future"] path { stroke-dasharray: 2 2; }
.sc [data-st="future"] .sc-packet { display: none; }
.sc .sc-only[data-st="past"], .sc .sc-only[data-st="future"] { opacity: 0; }
.sc [data-st="on"] .sc-top { fill: #3A3224; }
.sc [data-st="on"].sc-mus .sc-top { fill: var(--s-mus-2); }
.sc [data-st="on"] path:not(.sc-track) { stroke: var(--s-mus); }
.sc [data-st="on"] .sc-row { stroke: #C9A24C; }
.sc [data-st="on"] .sc-face { fill: #2A2519; }
.sc [data-st="on"] .sc-run { stroke-width: 1.7; stroke-dasharray: 100; animation: sc-draw 1.2s var(--s-ease) both; }
.sc [data-st="on"].sc-box, .sc [data-st="on"].sc-slab, .sc [data-st="on"].sc-panel { animation: sc-rise .7s var(--s-ease) both; }
.sc [data-st="on"] .sc-pop { animation: sc-pop .55s .45s var(--s-ease) both; }
.sc [data-st="on"].sc-check path { stroke: var(--s-on-mus); }
.sc [data-st="on"].sc-pin circle { fill: var(--s-mus); }
@keyframes sc-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes sc-rise { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: none; } }
@keyframes sc-pop { from { opacity: 0; transform: scale(.2); } 70% { transform: scale(1.18); } to { opacity: 1; transform: none; } }
@keyframes sc-pulse { from { opacity: .9; transform: scale(1); } 80%, to { opacity: 0; transform: scale(2.8); } }
@keyframes sc-cycle { from { width: 0; } to { width: 100%; } }
/* paused: the loops stop (the pulse, the stage bar; the packets through SVGSVGElement.pauseAnimations); a part being drawn in still finishes */
.sc[data-playing="no"] .sc-ring, .sc[data-playing="no"] .sc-bar::after { animation-play-state: paused; }
/* the stage list and the pause button */
.sc-foot { display: flex; align-items: stretch; border-top: 1px solid var(--s-line); min-width: 0; }
.sc-now { display: none; }
.sc-steps { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); min-width: 0; }
.sc-steps li { display: flex; min-width: 0; }
.sc-steps li + li { border-inline-start: 1px solid var(--s-line); }
.sc-step { position: relative; flex: 1; display: grid; gap: 3px; align-content: start; min-height: 64px; padding: 12px 14px 14px; border: 0; background: none; color: var(--s-mute); font: inherit; font-size: 14px; line-height: 1.45; text-align: start; cursor: pointer; transition: background-color .2s, color .2s; min-width: 0; }
html:not(.js) .sc-step { cursor: default; }
.sc-step:hover { background: var(--s-ink-3); color: var(--s-paper); }
.sc-step[aria-current="step"] { color: var(--s-paper); }
.sc-n { font-family: var(--s-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: #A3A3AC; }
.sc-step[aria-current="step"] .sc-n { color: var(--s-mus); }
.sc-label { overflow-wrap: anywhere; }
.sc-bar { position: absolute; top: -1px; inset-inline: 0; height: 2px; }
.sc-step[aria-current="step"] .sc-bar { background: var(--s-line-2); }
.sc-step[aria-current="step"] .sc-bar::after { content: ""; display: block; height: 100%; width: 100%; background: var(--s-mus); }
.sc[data-playing="yes"] .sc-step[aria-current="step"] .sc-bar::after { animation: sc-cycle var(--sc-t, 3.6s) linear both; }
.sc-title { flex: 1; padding: 14px 16px; font-size: 14px; color: var(--s-mute); }
.sc-pause { display: none; flex: none; width: 56px; border: 0; border-inline-start: 1px solid var(--s-line); background: none; color: var(--s-text); cursor: pointer; place-items: center; transition: background-color .2s, color .2s; }
.js .sc-pause { display: grid; }
.sc-pause:hover { background: var(--s-ink-3); color: var(--s-mus); }
.sc-pause svg path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.sc-i-play path { fill: currentColor !important; }
.sc-i-play, .sc-pause[aria-pressed="true"] .sc-i-pause { display: none; }
.sc-pause[aria-pressed="true"] .sc-i-play { display: block; }
.sc :focus-visible { outline: 2px solid var(--s-mus) !important; outline-offset: -2px; }
/* narrow: the numbers stay in a row, the current stage's name above them */
@media (max-width: 600px) {
  .js .sc-foot { flex-wrap: wrap; }
  .js .sc-now { display: block; flex: 1 1 calc(100% - 57px); order: -1; margin: 0; padding: 12px 14px; font-size: 15px; font-weight: 500; color: var(--s-paper); border-bottom: 1px solid var(--s-line); }
  .js .sc-pause { order: -1; border-bottom: 1px solid var(--s-line); }
  .js .sc-steps { flex-basis: 100%; }
  .js .sc-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .sc-step { min-height: 44px; place-content: center; padding: 10px 6px; text-align: center; }
  html:not(.js) .sc-steps { grid-auto-flow: row; }
  html:not(.js) .sc-steps li + li { border-inline-start: 0; border-top: 1px solid var(--s-line); }
  .sc-art { aspect-ratio: 5 / 4; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-packet, .sc-pulse .sc-ring { display: none; }
}

/* =================================== the sheet at night (owner, 2026-11-28) ===================================
   "Your white cards and white spaces are breaking the design": every inner page body and every reading section of the home
   page stays on the dark ground. Inside them the paper tokens are re-pointed to the night, and the old stylesheet's tokens
   with them, so the forms, tools, tables and cards they draw turn dark too. Cells are hairline-ruled on ink; a raised panel
   is raised ink; mustard stays the one field colour. */
.pg, .s-on-paper, .site .signin-card {
  --s-paper-2: #17171A; --s-paper-line: #2B2B31; --s-paper-ink: #F4F4F2; --s-paper-mute: #C2C2C9; --s-link: #DFB554;
  --ink: #F4F4F2; --ink-2: #E4E4E8; --ink-3: #D0D0D6; --muted: #C2C2C9;
  --blue: #DFB554; --blue-ink: #EAC56C; --blue-on: #E4E4E8; --blue-on-2: #C2C2C9;
  --pale: #24211A; --cream: #2A2519; --cream-ink: #EAC56C; --surface: #17171A;
  --line: #2B2B31; --line-2: #5A5A64; --line-choice: #5A5A64;
  --success: #5BC48A; --success-ink: #8FDCB0; --success-bg: #12261A;
  --error: #FF9C8F; --error-bg: #2A1513; --error-strong: #FF7A66;
}
.pg, .s-on-paper { background: var(--s-ink); color: var(--s-text); }
.s-on-paper { border-bottom-color: var(--s-line); }
.site .pg :focus-visible, .site .s-on-paper :focus-visible, .site .signin-card :focus-visible { outline-color: var(--s-mus); }
.site .pg a:not(.s-btn):not(.btn) { color: var(--s-mus); text-decoration-color: color-mix(in srgb, var(--s-mus) 55%, transparent); }
.site .pg a:not(.s-btn):not(.btn):hover { color: var(--s-mus-2); }

/* cells: ruled on ink, no fill; a hover lifts one step */
.site .pg .pg-links a { background: transparent; }
.site .pg .pg-links a:hover { background: var(--s-ink-2); }
.pg-links a:hover b { color: var(--s-mus); text-decoration: none; }
.pg-links a:hover .s-arrow { color: var(--s-mus); }
.pg-ticks li { background: transparent; }
.pg-tick { background: #1E1C16; border: 1px solid #4A4130; color: var(--s-mus); }
.pg-facts div { background: transparent; }
.pg-media li { border-color: var(--s-line); }
.pg-stack span { background: var(--s-ink-2); border-color: var(--s-line-2); color: var(--s-text); }

/* raised panels: tiles, field cards, tables, forms */
.pg-tile, .h-tile { background: var(--s-ink-2); border-color: var(--s-line); color: var(--s-text); }
.pg-tile:hover, .h-tile:hover { border-color: var(--s-mus); }
.pg-tile-lead, .h-tile-lead { background: #1D1D22; border-color: var(--s-line-2); }
.pg-tile-figure, .h-tile-figure { background: var(--s-mus); border-color: var(--s-mus); color: var(--s-on-mus); }
.pg-tile-figure:hover, .h-tile-figure:hover { border-color: var(--s-paper); }
.pg-fields > li { background: var(--s-ink-2); border-color: var(--s-line); }
.pg-table-wrap { background: var(--s-ink-2); border-color: var(--s-line); }
.pg-table thead th, .pg-total th, .pg-total td { background: #1D1D22; }
.site .pg-form, .site .signin-card, .site .tool-gate { background: var(--s-ink-2); border-color: var(--s-line); color: var(--s-text); }
.site .signin-card { border-color: var(--s-line-2); }

/* fields on the dark ground */
.site .input, .site .textarea, .site .select { background: #111114; border-color: var(--s-line-2); color: var(--s-paper); }
.site .input:hover, .site .textarea:hover { border-color: #7C7C86; }
.site .input:focus, .site .textarea:focus, .site .select:focus { border-color: var(--s-mus); outline-color: var(--s-mus); }
.site .input::placeholder, .site .textarea::placeholder { color: #8E8E98; }
.site select.input option { background: var(--s-ink-2); color: var(--s-paper); }
.site .label, .site .form legend { color: var(--s-paper); }
.site .hint { color: var(--s-mute); }
.site .error-text { color: #FF9C8F; }
.site .input[aria-invalid="true"], .site .textarea[aria-invalid="true"] { border-color: #FF7A66; }
.site .option > span { background: #111114; border-color: var(--s-line-2); color: var(--s-text); }
.site .option:hover > span { border-color: var(--s-mus); }
.site .option input:checked + span { background: var(--s-mus); border-color: var(--s-mus); color: var(--s-on-mus); }
.site .option input:focus-visible + span { outline-color: var(--s-mus); }
.site .check { color: var(--s-text); }
.site .check input { accent-color: var(--s-mus); }
.site .tool-picked { background: #2A2519; color: var(--s-mus-2); }
.site .signin-card .or { color: var(--s-mute); }
.site .signin-card .or::before, .site .signin-card .or::after { background: var(--s-line); }
.site .signin-card .success-text { background: #12261A; border-color: #24432F; color: var(--s-paper); }
.site .btn-ghost { color: var(--s-paper); border-color: var(--s-line-2); }
.s-btn-paper-line { color: var(--s-paper); border-color: var(--s-line-2); }
.s-btn-paper-line:hover { color: var(--s-paper); border-color: var(--s-paper); }

/* the free tools: their panels and choices on ink, the result on the mustard field */
.site .pg .tool-choice, .site .pg .tool-seg, .site .pg .tool-panel, .site .pg .card, .site .pg .form-card, .site .pg .tool-card, .site .pg .tool-callout, .site .pg .tool-run .textarea { background: var(--s-ink-2); }
.site .pg .tool-choice:hover { border-color: var(--s-mus); }
.site .pg .tool-choice:has(input:checked) { background: #24211A; border-color: var(--s-mus); box-shadow: inset 0 0 0 1px var(--s-mus); }
.site .pg .tool-choice .tool-tick { color: var(--s-mus); }
.site .pg .tool-seg label:hover span { background: #24211A; color: var(--s-mus-2); }
.site .pg .tool-seg label:has(input:checked) span { background: var(--s-mus); color: var(--s-on-mus); }
.site .pg .check-bar { background: var(--s-line); }
.site .pg .tool-actions { background: linear-gradient(to bottom, rgba(14, 14, 16, 0), var(--s-ink) 34%); }
/* inside a result card the buttons sit on the card itself: no sticking, no fade from the ground (owner, 2026-11-28: «wierd black shadow») */
.site .pg .tool-price .tool-actions { position: static; padding: 4px 0 0; background: none; }
.site .pg .tool-price { background: var(--s-mus); color: var(--s-on-mus); --blue-on: #3D2F0B; --blue-on-2: #4A3A10; --pale: rgba(26, 20, 6, .1); --blue-ink: var(--s-on-mus); --cream: #F6E7BD; --cream-ink: #4A3B10; --line: rgba(26, 20, 6, .2); }
.site .pg .tool-price h2, .site .pg .tool-price-figure, .site .pg .tool-verdict-name, .site .pg .roi-headline, .site .pg .dm-level, .site .pg .auto-worth, .site .pg .roi-stats dd { color: var(--s-on-mus); }
.site .pg .tool-price a:not(.btn):not(.s-btn) { color: var(--s-on-mus); }
.site .pg .roi-stats > div { background: rgba(26, 20, 6, .08); }
.site .pg .tool-price .btn-primary, .site .pg .tool-price .btn-white { background: var(--s-ink); color: var(--s-paper); border-color: var(--s-ink); }
.site .pg .tool-price .btn-primary:hover, .site .pg .tool-price .btn-white:hover { background: #26262B; color: var(--s-paper); }
.site .pg .dm-bar i { background: #ABABB4; }
.site .pg .dm-weak .dm-bar i { background: var(--s-mus); }

/* the home page's reading sections, now on the night sheet */
.s-on-paper .s-chip { background: var(--s-ink-2); border-color: var(--s-line-2); color: var(--s-text); }
.s-on-paper .s-chip:hover { border-color: var(--s-mus); color: var(--s-mus); }
.h-tile-lead h3 a { color: var(--s-paper) !important; }
.h-tile-figure .h-tile-client, .pg-tile-figure .pg-tile-client { color: #3D2F0B; }
.h-faq, .s-faq, .s-faq details { border-color: var(--s-line); }
.h-sec + .h-sec.s-on-paper { border-top: 0; }

/* =================================== motion (owner, 2026-11-28: "More motion") ===================================
   Four kinds, each with its own job: the first screen assembles itself once (the photo wipes open from the words' side, the
   heading rises out of a blur, the glint fires last); things arrive as they scroll into view (app.js adds .rv, then .is-in;
   without script nothing is hidden); a few lines are tied to the scroll itself (the steps' rule, the photo's drift, the pen
   stroke under each sheet heading; Chrome-family browsers, a still line elsewhere); the drawings answer the pointer with depth
   and their part being built floats. Mustard buttons catch the same white light as the glasses. All off under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  /* ---------- the first screen ---------- */
  .h-photo { animation: m-wipe-rtl 1.15s var(--s-ease) both; }
  [dir="ltr"] .h-photo { animation-name: m-wipe-ltr; }
  .h-photo-fit { animation: m-settle 1.8s var(--s-ease) both; }
  .h-hero .h-kicker { animation: m-rise .8s .1s var(--s-ease) both; }
  .h-display { animation: m-rise 1s .18s var(--s-ease) both; }
  .h-byline { animation: m-rise .8s .34s var(--s-ease) both; }
  .h-byline::before { transform-origin: center; animation: m-bar .7s .5s var(--s-ease) both; }
  .h-lead { animation: m-rise .8s .44s var(--s-ease) both; }
  .h-ask { animation: m-rise .8s .58s var(--s-ease) both; }
  .h-answers li { animation: m-pop .5s calc(.7s + var(--i, 0) * 60ms) var(--s-ease) both; }
  .h-answers li:nth-child(2) { --i: 1; } .h-answers li:nth-child(3) { --i: 2; } .h-answers li:nth-child(4) { --i: 3; } .h-answers li:nth-child(5) { --i: 4; } .h-answers li:nth-child(6) { --i: 5; }
  .h-go { animation: m-rise .8s .82s var(--s-ease) both; }
  .h-photo-tag { animation: m-rise .8s 1s var(--s-ease) both; }
  /* an inner page's head: the words, then the drawing settling in */
  .s-head-inner > * { animation: m-rise .8s calc(.06s + var(--i, 0) * 90ms) var(--s-ease) both; }
  .s-head-inner > :nth-child(2) { --i: 1; } .s-head-inner > :nth-child(3) { --i: 2; } .s-head-inner > :nth-child(4) { --i: 3; } .s-head-inner > :nth-child(5) { --i: 4; }
  .s-head-art { animation: m-float-in 1.1s .25s var(--s-ease) both; }

  /* ---------- arriving into view ---------- */
  .rv { opacity: 0; translate: 0 22px; filter: blur(6px); transition: opacity .8s var(--s-ease), translate .9s var(--s-ease), filter .8s var(--s-ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .rv.is-in { opacity: 1; translate: 0 0; filter: none; }
  .rv-side { translate: 28px 0; }
  [dir="ltr"] .rv-side { translate: -28px 0; }
  .rv-side.is-in { translate: 0 0; }
  .rv-tile { translate: 0 30px; scale: .97; transition-property: opacity, translate, scale, filter; }
  .rv-tile.is-in { scale: 1; }
  .pg-ticks > li.rv .pg-tick, .pg-fields .pg-tick { transition: scale .5s var(--s-ease), rotate .5s var(--s-ease); }
  .pg-ticks > li.rv:not(.is-in) .pg-tick { scale: .3; rotate: -40deg; }

  /* ---------- tied to the scroll ---------- */
  @supports (animation-timeline: view()) {
    @media (min-width: 1081px) {
      .h-steps { position: relative; }
      .h-steps::before { content: ""; position: absolute; top: -1px; inset-inline: 0; height: 2px; background: var(--s-mus); transform-origin: 100% 50%; animation: m-grow linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
      [dir="ltr"] .h-steps::before { transform-origin: 0 50%; }
    }
    .h-photo-img, .h-glint { animation: m-drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .site .pg-h::after { content: ""; display: block; width: 56px; height: 5px; margin-top: 16px; border-radius: 3px; background: var(--s-mus); transform-origin: 100% 50%; animation: m-grow linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    [dir="ltr"] .site .pg-h::after { transform-origin: 0 50%; }
    .site .h-close h2 { animation: m-close linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .h-sec-head h2, .h-how h2 { animation: m-head linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }

  /* ---------- hovers ---------- */
  /* the mustard button catches the light that crosses the glasses */
  .s-btn-mustard, .site .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
  .s-btn-mustard::after, .site .btn-primary::after { content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .62) 48%, rgba(255, 255, 255, .15) 56%, transparent 70%); translate: -130% 0; }
  [dir="rtl"] .s-btn-mustard::after, [dir="rtl"] .site .btn-primary::after { translate: 130% 0; background: linear-gradient(260deg, transparent 30%, rgba(255, 255, 255, .62) 48%, rgba(255, 255, 255, .15) 56%, transparent 70%); }
  .s-btn-mustard:hover::after, .site .btn-primary:hover::after { translate: 130% 0; transition: translate .75s var(--s-ease); }
  [dir="rtl"] .s-btn-mustard:hover::after, [dir="rtl"] .site .btn-primary:hover::after { translate: -130% 0; }
  .h-go .s-btn-mustard::after { animation: m-shine 1s 2.3s var(--s-ease) both; }
  [dir="rtl"] .h-go .s-btn-mustard::after { animation-name: m-shine-rtl; }
  .s-btn .s-arrow { transition: transform .35s var(--s-ease); }
  .s-btn:hover .s-arrow { transform: translateX(4px); }
  [dir="rtl"] .s-btn:hover .s-arrow { transform: scaleX(-1) translateX(4px); }
  /* a ruled cell draws a mustard line along its foot as the pointer comes in */
  .h-cell, .site .pg .pg-links li { position: relative; }
  .h-cell::after, .site .pg .pg-links li::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--s-mus); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--s-ease); pointer-events: none; }
  [dir="ltr"] .h-cell::after, [dir="ltr"] .site .pg .pg-links li::after { transform-origin: 0 50%; }
  .h-cell:hover::after, .site .pg .pg-links li:hover::after { transform: scaleX(1); }
  .h-tile, .pg-tile { transition: border-color .25s, translate .45s var(--s-ease), scale .8s var(--s-ease), opacity .8s var(--s-ease), filter .8s var(--s-ease); }
  .h-tile:hover, .pg-tile:hover { translate: 0 -4px; }
  .h-answer { transition: border-color .2s, background-color .2s, color .2s, translate .3s var(--s-ease); }
  .h-answer:hover { translate: 0 -2px; }

  /* ---------- the drawings: depth toward the pointer, the part being built floating ---------- */
  .sc-art svg { transform: perspective(1100px) rotateX(calc(var(--ty, 0) * 6deg)) rotateY(calc(var(--tx, 0) * -8deg)); transition: transform .7s var(--s-ease); }
  .sc-art::before { translate: calc(var(--tx, 0) * -10px) calc(var(--ty, 0) * -8px); transition: translate .7s var(--s-ease); }
  .sc [data-st="on"].sc-box, .sc [data-st="on"].sc-slab, .sc [data-st="on"].sc-panel { animation: sc-rise .7s var(--s-ease) both, sc-float 2.6s .7s ease-in-out infinite alternate; }
  .sc[data-playing="no"] [data-st="on"].sc-box, .sc[data-playing="no"] [data-st="on"].sc-slab, .sc[data-playing="no"] [data-st="on"].sc-panel { animation-play-state: running, paused; }
  /* a faint scan line crosses the sheet now and then, as on a drafting screen */
  .sc-art::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, transparent 0, rgba(223, 181, 84, .07) 48%, rgba(223, 181, 84, .14) 50%, transparent 52%); background-size: 100% 220%; animation: sc-scan 7s ease-in-out 2s infinite; }
  .sc[data-playing="no"] .sc-art::after { animation-play-state: paused; opacity: 0; }
}
@keyframes m-wipe-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes m-wipe-ltr { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes m-settle { from { scale: 1.09; } to { scale: 1; } }
@keyframes m-rise { from { opacity: 0; translate: 0 22px; filter: blur(8px); } to { opacity: 1; translate: 0 0; filter: none; } }
@keyframes m-pop { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes m-bar { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes m-float-in { from { opacity: 0; translate: 0 30px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes m-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes m-drift { from { translate: 0 0; } to { translate: 0 7%; } }
@keyframes m-close { from { opacity: .4; translate: 0 40px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes m-head { from { opacity: .35; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes m-shine { from { translate: -130% 0; } to { translate: 130% 0; } }
@keyframes m-shine-rtl { from { translate: 130% 0; } to { translate: -130% 0; } }
@keyframes sc-float { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes sc-scan { 0% { background-position: 0 120%; opacity: 0; } 10% { opacity: 1; } 45% { background-position: 0 -20%; opacity: 1; } 55%, 100% { background-position: 0 -20%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* the blog before its first article */
.pg-empty { display: grid; justify-items: start; gap: 14px; max-width: 640px; }
.pg-empty-mark { color: var(--s-paper-mute); }
.site .pg-empty h2 { font-size: clamp(24px, 2.4vw, 32px); color: var(--s-paper-ink); }
.pg-empty p { font-size: 18px; line-height: 1.85; color: var(--s-text); }
.pg-empty .pg-links { width: 100%; margin-top: 10px; }

/* a work's screenshots (2026-11-28): a browser window with the phone standing over its corner, then the rest in a grid; each
   opens full size. The tiles of the work hub show the same window, cut to its top. */
.wk-stage { position: relative; margin: 0; isolation: isolate; }
.wk-stage::before { content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--s-mus) 22%, transparent), transparent 70%); filter: blur(30px); pointer-events: none; }
.wk-stage-pair { padding-inline-end: clamp(28px, 9%, 120px); }
.wk-stage-pair .wk-browser { margin-bottom: clamp(40px, 7vw, 96px); }
.wk-browser { display: block; position: relative; border: 1px solid var(--s-line-2); border-radius: 14px; overflow: hidden; background: #1D1D22; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset; cursor: zoom-in; transition: transform .5s var(--s-ease), border-color .25s; }
.wk-browser:hover { transform: translateY(-4px); border-color: var(--s-mus); }
.wk-bar, .pg-tile-img .wk-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding-inline: 14px; border-bottom: 1px solid var(--s-line); background: #19191D; }
.wk-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--s-line-2); flex: none; }
.wk-bar i:first-child { background: var(--s-mus); }
.wk-url { flex: 1; max-width: 340px; margin-inline: auto; padding: 3px 12px; border-radius: 6px; background: #111114; border: 1px solid var(--s-line); font-family: var(--s-mono); font-size: 12px; color: var(--s-mute); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-browser img, .wk-phone img, .pg-tile-img img { display: block; width: 100%; height: auto; }
.wk-phone { position: absolute; inset-inline-end: 0; bottom: 28px; width: clamp(110px, 21%, 250px); border: clamp(5px, .7vw, 9px) solid #050506; border-radius: clamp(20px, 2.6vw, 34px); overflow: hidden; background: #050506; box-shadow: 0 0 0 1px var(--s-line-2), 0 30px 60px -20px rgba(0, 0, 0, .95); cursor: zoom-in; transition: transform .5s var(--s-ease); }
.wk-phone:hover { transform: translateY(-6px) rotate(-1deg); }
[dir="rtl"] .wk-phone:hover { transform: translateY(-6px) rotate(1deg); }
.wk-show figcaption { margin-top: 16px; font-size: 14px; line-height: 1.7; color: var(--s-mute); }
.wk-stage-pair figcaption { max-width: 72%; }
.wk-more { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wk-more figure { margin: 0; }
@media (max-width: 700px) {
  .wk-more { grid-template-columns: 1fr; }
  .wk-stage-pair { padding-inline-end: 18%; }
  .wk-phone { width: 30%; }
  .wk-stage-pair figcaption { max-width: 64%; }
  .wk-url { font-size: 11px; }
}
/* the phone rises into place as the showcase scrolls in, where the browser can tie motion to scrolling */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .wk-stage-pair .wk-phone { animation: wk-rise linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .wk-more figure { animation: wk-fade linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
  }
}
@media (prefers-reduced-motion: reduce) { .wk-browser, .wk-phone { transition: none; } .wk-browser:hover, .wk-phone:hover { transform: none; } }
@keyframes wk-rise { from { transform: translateY(18%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wk-fade { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* the full-size view (public/app.js) */
.wk-zoom { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.wk-zoom::backdrop { background: rgba(5, 5, 6, .9); backdrop-filter: blur(4px); }
.wk-zoom img { display: block; max-width: 96vw; max-height: 88vh; width: auto; height: auto; border-radius: 12px; border: 1px solid var(--s-line-2); }
.wk-zoom p { margin: 12px 0 0; color: var(--s-text); font-size: 15px; text-align: center; }
.wk-zoom button { position: fixed; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--s-line-2); background: var(--s-ink-2); color: var(--s-paper); font-size: 22px; line-height: 1; cursor: pointer; }
.wk-zoom button:hover { border-color: var(--s-mus); }

/* a work tile with its screenshot: the window's top above the text */
.pg-tile-shot { padding-top: 0; overflow: hidden; }
.pg-tile-img { display: block; margin-inline: calc(-1 * clamp(20px, 2vw, 28px)); margin-bottom: 8px; border-bottom: 1px solid var(--s-line); aspect-ratio: 16 / 9; overflow: hidden; background: #1D1D22; }
.pg-tile-img img { transition: transform .6s var(--s-ease); transform-origin: top center; }
.pg-tile-shot:hover .pg-tile-img img { transform: scale(1.04); }
.pg-tile-lead .pg-tile-img { aspect-ratio: 16 / 10; }
@media (prefers-reduced-motion: reduce) { .pg-tile-shot:hover .pg-tile-img img { transform: none; } }

/* a printed page in the gallery (a receipt): the paper itself, lifted off the ground; a phone in the gallery stands on its own */
.wk-paper { display: block; max-width: 400px; margin-inline: auto; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 70px -25px rgba(0, 0, 0, .95); cursor: zoom-in; transform: rotate(-1.2deg); transition: transform .5s var(--s-ease); }
[dir="rtl"] .wk-paper { transform: rotate(1.2deg); }
.wk-paper:hover, [dir="rtl"] .wk-paper:hover { transform: rotate(0) translateY(-4px); }
.wk-paper img { display: block; width: 100%; height: auto; }
.wk-more .wk-phone { position: relative; inset: auto; display: block; width: min(260px, 70%); margin-inline: auto; }
.wk-more-phone figcaption, .wk-more-paper figcaption { text-align: center; }
.wk-more-phone, .wk-more-paper { display: grid; align-content: center; }
@media (prefers-reduced-motion: reduce) { .wk-paper, [dir="rtl"] .wk-paper, .wk-paper:hover { transform: none; } }

/* =================================== visual QA pass (2026-11-28) ===================================
   Links on the mustard field inside a page body: «.site .pg a» paints every link mustard, which made the close's email
   and the mustard work tile's title vanish into their own ground. */
.site .pg .h-close-go a:not(.s-btn):not(.btn) { color: var(--s-on-mus); text-decoration-color: currentColor; }
.site .pg .pg-tile-figure h2 a:not(.s-btn):not(.btn) { color: var(--s-on-mus); }
/* the page body's one column never grows past the screen: a long address in a screenshot's bar or a facts grid had
   widened it on phones (horizontal scroll on the work pages) */
.pg-sheet, .pg-row-wide { grid-template-columns: minmax(0, 1fr); }
.wk-more > li, .wk-stage { min-width: 0; }
.wk-url { min-width: 0; }
/* the full-size view on a phone: a tall phone screenshot reached up under the close button; keep a lane for the button */
@media (max-width: 700px) {
  .wk-zoom { padding-top: 64px; }
  .wk-zoom img { max-height: calc(88vh - 64px); }
}
/* the ROI result's scenario table on a phone: the hidden currency words in its cells (.visually-hidden, absolute) escaped the
   table's own scroller and widened the whole Arabic page by ~56px; the scroller is now their containing block */
.roi-table-wrap { position: relative; }
/* the automation result's task cards: a label that wraps to two lines («Hours saved a month (estimate)») pushed its value
   below its neighbours'; the values now sit on one line across the row */
.auto-facts div { align-content: space-between; }
/* the footer's «Services» heading is a link, and «.s-footer-col a» greyed it; both column heads read the same */
.s-footer-col .s-footer-head { color: var(--s-paper); }
.s-footer-col a.s-footer-head:hover { color: var(--s-mus); }
/* a case study's gallery with an odd number of shots: the last one sat alone in the first column with an empty half beside
   it; it now sits in the middle of its row */
@media (min-width: 701px) {
  .wk-more > li:last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; justify-self: center; width: calc(50% - clamp(10px, 1.2vw, 16px)); }
}
/* a moving drawing's step names: a word too long for its narrow tab is cut mid-word («Automatio / n» on /en/tools);
   where the browser has hyphenation for the page's language it now breaks with a hyphen instead */
.sc-label { hyphens: auto; -webkit-hyphens: auto; }
/* five steps share the strip: a touch smaller and tighter so «Automation» fits its tab whole */
.sc-steps:has(> li:nth-child(5)) .sc-step { font-size: 13px; padding-inline: 12px; }
