/* Fareeq HR — colour chapters. Brand: gold #E7AD00, grey #9C9C9C (from the logo). One face: IBM Plex Sans Arabic. */
:root {
  --night: #161616;
  --ink: #161616;
  --paper: #F4F4F1;
  --white: #FFFFFF;
  --grey: #9C9C9C;
  --grey-2: #B6B6B3;
  --pale: #E4E4E1;
  --dark: #2E2E2E;
  --gold: #E7AD00;
  --gold-2: #F3C84B;
  --g1: #4D3900; --g2: #7A5A00; --g3: #B38500; --g4: #E7AD00; --g5: #F5D57E;
  --soft-dark: #3F3F3D;   /* secondary text on light fields */
  --soft-light: #D4D4D0;  /* running text on dark fields */

  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --step-small: 0.875rem;                       /* 14px */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); /* 17–19px */
  --step-lead: clamp(1.25rem, 1rem + 0.9vw, 1.875rem);     /* 20–30px */
  --step-head: clamp(2.25rem, 1.2rem + 3.4vw, 3.75rem);    /* 36–60px */
  --step-display: clamp(4rem, 1rem + 9.6vw, 10rem);        /* 64–160px */

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --pad: clamp(5rem, 8vw, 8rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms; --t-reveal: 800ms;
}
.page-companies, .page-jobs, .page-contact { --step-display: clamp(3rem, 1.4rem + 4.6vw, 5.5rem); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; line-height: 1.15; }
p { text-wrap: pretty; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.025em; line-height: 1.02; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.chapter--gold :focus-visible, .folder--gold :focus-visible { outline-color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: var(--margin); top: -4rem; z-index: 10; background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; }
.skip:focus { top: 0.5rem; }
.head { font-size: var(--step-head); }
.display { font-size: var(--step-display); line-height: 1.12; }
html[lang="en"] .display { line-height: 1; }
.soft { color: var(--soft-dark); }

/* buttons: square, with the folder tab's slanted top corners */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.75rem; background: var(--ink); color: var(--white); font-weight: 700; font-size: 1.1875rem; text-decoration: none; white-space: nowrap; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.link, .link-plain { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link { text-decoration-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--gold); color: var(--ink); }
  .folder--gold .button:hover, .chapter--gold .button:hover { background: var(--white); }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { text-decoration-thickness: 0.14em; }
}

/* ---------- chapters ---------- */
.chapter { min-height: 90svh; padding: var(--pad) var(--margin); position: relative; }
.chapter--paper { background: var(--paper); color: var(--ink); }
.chapter--white { background: var(--white); color: var(--ink); }
.chapter--grey { background: var(--grey); color: var(--ink); }
.chapter--dark { background: var(--dark); color: var(--white); }
.chapter--gold { background: var(--gold); color: var(--ink); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- top bar ---------- */
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 1.5rem; gap: var(--gutter); }
.bar__nav { display: flex; gap: clamp(1rem, 2vw, 2rem); justify-self: start; }
.nav__link, .bar__lang { position: relative; font-size: 1rem; text-decoration: none; padding-block: 0.4rem; }
.nav__link::after, .bar__lang::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: var(--origin, right); transition: transform var(--t-ui) var(--ease-out); }
html[dir="ltr"] .nav__link::after, html[dir="ltr"] .bar__lang::after { --origin: left; }
.nav__link.is-here::after { transform: none; }
@media (hover: hover) and (pointer: fine) { .nav__link:hover::after, .bar__lang:hover::after { transform: none; } }
.bar__mark { justify-self: center; display: block; }
.bar__mark img { height: 3.5rem; width: auto; }
.bar__lang { justify-self: end; }
.sub .bar, .sub--jobs .bar { margin-bottom: clamp(2rem, 5vw, 5rem); }

/* ---------- hero: dark ground, the folder stack ---------- */
.hero { background: var(--night); color: var(--white); min-height: 100svh; display: flex; flex-direction: column; padding-inline: var(--margin); overflow: hidden; position: relative; }
.hero__text { text-align: center; padding-top: clamp(0.5rem, 2vw, 1.5rem); }
.hero__title { font-size: var(--step-display); line-height: 1.12; max-width: 14ch; margin-inline: auto; }
html[lang="en"] .hero__title { font-size: clamp(3.5rem, 0.5rem + 7.2vw, 7.5rem); max-width: none; }
.hero__sub { font-size: var(--step-lead); line-height: 1.5; max-width: 44ch; margin: 2rem auto 0; color: var(--soft-light); }
.folders { position: relative; flex: 0 0 auto; height: max(49svh, 24rem); margin-top: auto; margin-inline: 7%; }
.folder { position: absolute; inset-inline: 0; top: calc(2.5rem + var(--i) * 4rem); bottom: -1.5rem; background: var(--fc); color: var(--ft); transition: transform 360ms var(--ease-out); }
.folder__tab { position: absolute; bottom: 100%; inset-inline-start: var(--x); height: 2.5rem; padding-inline: 1.75rem; display: flex; align-items: center; background: var(--fc); color: var(--ft); font-size: var(--step-body); font-weight: 700; text-decoration: none; white-space: nowrap; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%); }
.folder--paper { --fc: var(--paper); --ft: var(--ink); }
.folder--grey { --fc: var(--grey); --ft: var(--ink); }
.folder--dark { --fc: var(--dark); --ft: var(--white); }
.folder--white { --fc: var(--white); --ft: var(--ink); }
.folder--gold { --fc: var(--gold); --ft: var(--ink); }
.folder__body { padding: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.folder__second { font-size: var(--step-body); }
@media (hover: hover) and (pointer: fine) {
  .folder:has(.folder__tab:hover), .folder:has(.folder__tab:focus-visible) { transform: translateY(-0.75rem); }
}

/* ---------- how it works: accordion of gold panels ---------- */
.how__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.how__intro h2 { grid-column: 1 / span 5; }
.how__p { grid-column: 7 / span 5; max-width: 52ch; }
.acc { margin-top: 4rem; display: flex; flex-direction: column; gap: 0; }
.acc__panel { background: var(--pc); color: var(--pt); position: relative; }
.acc__panel:nth-child(1) { --pc: var(--g1); --pt: var(--white); }
.acc__panel:nth-child(2) { --pc: var(--g2); --pt: var(--white); }
.acc__panel:nth-child(3) { --pc: var(--g3); --pt: var(--ink); }
.acc__panel:nth-child(4) { --pc: var(--g4); --pt: var(--ink); }
.acc__panel:nth-child(5) { --pc: var(--g5); --pt: var(--ink); }
.acc__name { font-size: var(--step-body); }
.acc__btn { display: flex; width: 100%; min-height: 4rem; align-items: center; padding: 0 1.25rem; text-align: start; font-weight: 700; }
.acc__body { padding: 0 1.25rem 1.5rem; display: grid; gap: 1.25rem; }
.acc__text { max-width: 36ch; }
.acc__fig figcaption { font-size: var(--step-small); margin-top: 0.5rem; }
.acc__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); background: var(--night); }
.js .acc__panel:not(.is-open) .acc__body { display: none; }
.js .acc__panel.is-open .acc__body { animation: fade-in 420ms var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 60em) {
  .js .acc { flex-direction: row; height: 34rem; }
  .js .acc__panel { flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow 450ms var(--ease-in-out); }
  .js .acc__panel.is-open { flex-grow: 5.5; }
  .js .acc__name { position: absolute; inset: 0; z-index: 1; }
  .js .acc__btn { height: 100%; align-items: flex-end; padding: 1.5rem; font-size: var(--step-body); }
  .js .acc__btn span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
  .js .acc__panel.is-open .acc__name { inset: 0 auto auto auto; inset-inline-start: 0; }
  .js .acc__panel.is-open .acc__btn { align-items: flex-start; height: auto; font-size: var(--step-head); padding: 1.75rem 2rem; cursor: default; }
  .js .acc__panel.is-open .acc__btn span { writing-mode: horizontal-tb; transform: none; }
  .js .acc__body { position: absolute; inset: 0; padding: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
  .js .acc__text { grid-column: 1; font-size: var(--step-body); }
  .js .acc__fig { grid-column: 2; grid-row: 1; height: 100%; display: flex; flex-direction: column; min-height: 0; }
  .js .acc__img { flex: 1; min-height: 0; aspect-ratio: auto; height: 100%; }
  @media (hover: hover) and (pointer: fine) {
    .js .acc__panel:not(.is-open):hover { filter: brightness(1.08); }
  }
}

/* ---------- the live filter ---------- */
.demo__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.demo__intro h2 { grid-column: 1 / span 5; }
.demo__p { grid-column: 7 / span 5; max-width: 54ch; }
.demo__controls { margin-top: clamp(3rem, 8vh, 6rem); display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.demo__controls legend { font-weight: 700; margin-bottom: 0.6rem; font-size: var(--step-body); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; background: var(--grey-2); color: var(--ink); font-size: 1rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chip input:checked + span { background: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chip input:active + span { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .chip:hover input:not(:checked) + span { background: var(--pale); } }
.demo__stage { position: relative; margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo__box { padding: 1.5rem; display: flex; flex-direction: column; min-height: 30rem; }
.demo__box--pile { background: var(--grey-2); }
.demo__box--team { background: var(--night); color: var(--white); }
.demo__cap { font-size: 1rem; font-weight: 700; }
.demo__area { position: relative; flex: 1; min-height: 9rem; margin-top: 1rem; }
.demo__box--team .demo__area { flex: 0 0 6rem; min-height: 6rem; }
.demo__box--pile .demo__area { min-height: 20rem; }
.demo__static { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.demo__static .dot { position: static; width: 18px; height: 18px; border-radius: 50%; background: #5E5E5C; }
.demo__static .dot.is-off { opacity: 0.3; }
.demo__static .dot.is-out { background: var(--gold); }
.demo__static--team { align-items: flex-end; }
.demo__static--team .dot { background: var(--gold); width: calc(24px + var(--s) * 8px); height: calc(24px + var(--s) * 8px); }
.js .demo__static { display: none; }
.demo__layer { position: absolute; inset: 0; pointer-events: none; }
.demo__layer .dot { position: absolute; top: 0; left: 0; width: 64px; height: 64px; border-radius: 50%; background: #4F4F4D; transform-origin: 0 0; transition: transform 900ms var(--ease-in-out), opacity 500ms ease, background-color 500ms ease; }
.demo__layer .dot.is-off { opacity: 0.3; }
.demo__layer .dot.is-team { background: var(--gold); }
.demo__layer .dot.is-match { background: #2B2B2B; }
.demo__sum { font-size: var(--step-lead); line-height: 1.35; margin-top: 1rem; }
.demo__list { margin-top: 1rem; display: grid; gap: 0.35rem; font-size: 1rem; color: var(--soft-light); }

/* ---------- the name: two columns, highlighted words ---------- */
.name { color: var(--soft-light); min-height: 0; }
.name h2 { color: var(--white); margin-bottom: 3rem; }
.name__text { columns: 2; column-gap: 2rem; font-size: var(--step-lead); line-height: 1.6; }
html[lang="en"] .name__text { line-height: 1.35; }
.lead-word { color: var(--white); }
.hl { color: var(--ink); padding: 0 0.12em; white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl--g { background: var(--gold); }
.hl--p { background: var(--pale); }
.hl--s { background: var(--grey); }
.hl--link { white-space: normal; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.06em; font-weight: 700; transition: background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .hl--link:hover { background: var(--white); } }

/* ---------- jobs: city tabs, banded rows, the advert as preview ---------- */
.jobs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.jobs__h span { display: block; }
.jobs__notice { margin-top: 1.25rem; color: var(--soft-dark); max-width: 60ch; }
.jobs__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: 3.5rem; }
.jobs__top h1 { grid-column: 1 / span 6; }
.jobs__top p { grid-column: 7 / span 5; }
.jobs__board { margin-top: 3.5rem; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) minmax(0, 0.5fr); gap: 0 2.5rem; position: relative; }
.jobs__tabs { display: flex; flex-direction: column; gap: 6px; }
.jobs__tab { width: 100%; min-height: 4rem; padding: 0.5rem 1rem; background: var(--pale); text-align: start; display: flex; flex-direction: column; justify-content: center; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.jobs__tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .jobs__tab[aria-selected="false"]:hover { background: var(--grey-2); } }
.jobs__city { font-size: 1rem; font-weight: 700; }
.jobs__count { font-size: var(--step-small); }
.jobs__panel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not(.js) .jobs__panel-h { position: static; width: auto; height: auto; clip-path: none; font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.js .jobs__panel[data-hidden] { display: none; }
.jobs__rows { display: grid; gap: 4px; }
.jobs__row:nth-child(odd) .jobs__link { background: #F1F1EE; }
.jobs__row:nth-child(even) .jobs__link { background: #E7E7E4; }
.jobs__link { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; min-height: 4.75rem; padding: 0.75rem 1.25rem; text-decoration: none; transition: background-color var(--t-hover) ease, opacity var(--t-ui) ease; }
.jobs__type { font-size: 1rem; color: var(--soft-dark); font-variant-numeric: tabular-nums; }
.jobs__title { font-size: var(--step-body); font-weight: 700; display: flex; flex-direction: column; }
.jobs__note { font-size: 1rem; font-weight: 400; color: var(--soft-dark); }
.jobs__apply { font-weight: 700; font-size: 1rem; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.jobs__link:active { transform: scale(0.995); }
.jobs__preview { position: relative; }
.pv { position: absolute; top: 0; inset-inline: 0; background: var(--gold); color: var(--ink); padding: 1.75rem; clip-path: inset(0 0 100% 0); transition: clip-path 320ms var(--ease-out), transform 360ms var(--ease-out); }
.pv.is-open { clip-path: inset(0); }
.pv__title { font-size: var(--step-lead); font-weight: 700; line-height: 1.2; }
.pv__city { margin-top: 0.25rem; }
.pv__h { margin-top: 1.25rem; font-weight: 700; }
.pv ul { margin-top: 0.4rem; display: grid; gap: 0.3rem; }
.pv li::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--ink); margin-inline-end: 0.6em; vertical-align: 0.1em; }
.pv__note { margin-top: 1.25rem; font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) {
  .jobs__rows:has(.jobs__link:hover, .jobs__link:focus-visible) .jobs__link:not(:hover, :focus-visible) { opacity: 0.45; }
}
@media (hover: none), (pointer: coarse) { .jobs__preview { display: none; } .jobs__board { grid-template-columns: 9.5rem minmax(0, 1fr); } }

/* ---------- request: photo strip and three-cell bar ---------- */
.request { min-height: 0; padding-top: 3rem; overflow: hidden; }
.strip { margin-inline: calc(var(--margin) * -1); overflow: hidden; direction: rtl; }
.strip__track { display: flex; gap: 8px; width: max-content; animation: strip-rtl 70s linear infinite; }
.strip__item img, .strip__item video { height: 150px; width: auto; object-fit: cover; filter: grayscale(1) contrast(1.05); background: var(--night); }
.strip__item video { aspect-ratio: 16 / 9; }
.strip__item--a img { aspect-ratio: 3 / 4; }
.strip__item--b img { aspect-ratio: 1 / 1; }
.strip__item--c img { aspect-ratio: 3 / 2; }
@keyframes strip-rtl { to { transform: translateX(calc(50% + 4px)); } }
@media (hover: hover) and (pointer: fine) { .strip:hover .strip__track { animation-play-state: paused; } }
.request__h { margin-top: 4.5rem; }
.bar3 { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bar3__cell { background: var(--gold-2); min-height: 6rem; display: flex; transition: background-color var(--t-hover) ease; }
.bar3__cell:focus-within { background: #FBE7AE; }
.bar3__cell input { width: 100%; background: transparent; border: 0; text-align: center; font-size: var(--step-body); padding: 0 1rem; }
.bar3__cell input::placeholder { color: #3B3000; opacity: 1; }
.bar3__cell input:focus { outline: none; }
.bar3__cell:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.bar3__cell--go { background: var(--ink); }
.bar3__cell--go button { width: 100%; color: var(--gold); font-weight: 700; font-size: var(--step-body); transition: color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.bar3__cell--go button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .bar3__cell--go:hover { background: var(--white); } .bar3__cell--go:hover button { color: var(--ink); } }
.bar3__small { font-size: 1rem; grid-column: 1 / -1; margin-top: 0.5rem; }
.bar3__small a { white-space: nowrap; }
.closing__row { margin-top: 2.5rem; display: grid; gap: 1rem; justify-items: start; }
.closing__mail { font-size: var(--step-head); font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.closing__row p { font-size: var(--step-lead); max-width: 28ch; }

/* ---------- sub pages ---------- */
.sub { min-height: 100svh; padding-top: 0; }
.sub--jobs { padding-top: 0; }
.sub__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; }
.sub__lead { grid-column: 1 / span 5; }
.sub__p { font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.375rem); line-height: 1.55; margin-top: 2rem; max-width: 34ch; }
.sub__fig { margin-top: 3rem; }
.sub__fig img, .after__fig img, .cvsend__fig img, .contact__fig img { width: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.sub__fig img { aspect-ratio: 3 / 2; }
figcaption { font-size: var(--step-small); margin-top: 0.6rem; }
.form { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-content: start; }
.ff { display: flex; flex-direction: column; gap: 0.4rem; }
.ff--wide { grid-column: 1 / -1; }
.ff label { font-weight: 700; font-size: 1rem; }
.ff input, .ff textarea { width: 100%; min-height: 3.25rem; padding: 0.7rem 1rem; background: var(--pale); border: 0; border-radius: 0; font-size: var(--step-body); transition: background-color var(--t-hover) ease; }
.chapter--grey .ff input { background: var(--grey-2); }
.ff input:focus, .ff textarea:focus { background: var(--white); outline: 3px solid var(--ink); outline-offset: 0; }
.ff textarea { resize: vertical; min-height: 9rem; }
.ff__hint, .form__note { font-size: 1rem; color: var(--ink); }
.chapter--grey .form__note, .chapter--grey .ff__hint { color: var(--ink); }
.form__go { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.after { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.after__text { grid-column: 1 / span 6; }
.after__list { margin-top: 2.5rem; display: grid; gap: 1.5rem; font-size: var(--step-lead); line-height: 1.4; color: var(--soft-light); counter-reset: none; }
.after__list li { padding-inline-start: 2.25rem; position: relative; }
.after__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.45em; width: calc(0.35rem + var(--i) * 0.14rem); height: calc(0.35rem + var(--i) * 0.14rem); border-radius: 50%; background: var(--grey); }
.after__list li:last-child::before { background: var(--gold); }
.after__fig { grid-column: 8 / span 5; }
.after__fig img { aspect-ratio: 4 / 3; }
.cvsend { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; align-items: start; }
.cvsend__text { grid-column: 1 / span 5; }
.cvsend__text p { margin-top: 1.25rem; max-width: 40ch; }
.cvsend__fig { margin-top: 2.5rem; }
.cvsend__fig img { aspect-ratio: 3 / 2; }
.form--cv { grid-column: 7 / span 6; }
.sub--contact .bar { margin-bottom: clamp(2rem, 4vw, 4rem); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; align-items: end; }
.contact__lead { grid-column: 1 / span 6; }
.contact__lead .sub__p { color: var(--soft-light); }
.contact__mail { display: inline-block; margin-top: 2.5rem; font-size: var(--step-lead); font-weight: 700; color: var(--gold); text-underline-offset: 0.2em; direction: ltr; unicode-bidi: isolate; }
.contact__fig { grid-column: 8 / span 5; }
.contact__fig img { aspect-ratio: 4 / 5; max-height: 72svh; }
.contact__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 4rem; min-height: 70svh; align-content: center; }
.contact__col { grid-column: span 6; }
.contact__col p { margin-top: 1rem; max-width: 42ch; }
.contact__h { font-size: var(--step-head); }
.contact__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem !important; }

/* ---------- footer: a board of tiles ---------- */
.foot { background: var(--white); padding: 10px; }
.foot__board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.tile { padding: 1.5rem; min-height: 13.75rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); text-decoration: none; }
.tile--statement { grid-column: span 4; }
.tile--nav { grid-column: span 3; }
.tile--city { grid-column: span 2; }
.tile--email { grid-column: span 3; background: var(--grey); }
.tile--mark { grid-column: span 8; min-height: 20rem; background: var(--night); align-items: center; justify-content: center; }
.tile--mark img { width: min(36vw, 34rem); height: auto; }
.tile--invite { grid-column: span 4; min-height: 20rem; background: var(--gold); color: var(--ink); transition: background-color var(--t-hover) ease; }
.tile__arrow { width: 3rem; height: 3rem; align-self: flex-end; transition: transform var(--t-ui) var(--ease-out); }
html[dir="rtl"] .tile__arrow { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) {
  .tile--invite:hover { background: var(--gold-2); }
  .tile--invite:hover .tile__arrow { transform: translate(4px, -4px); }
  html[dir="rtl"] .tile--invite:hover .tile__arrow { transform: scaleX(-1) translate(4px, -4px); }
}
.tile--credits { grid-column: 1 / -1; min-height: 0; font-size: 1rem; color: var(--ink); }
.tile--credits ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 0.5rem; }
.tile--credits a { text-underline-offset: 0.2em; }
.tile__big { font-size: var(--step-lead); line-height: 1.35; font-weight: 700; }
.tile__mid { font-size: var(--step-lead); font-weight: 700; line-height: 1.3; }
.tile__small { font-size: var(--step-small); }
.tile--nav ul { display: grid; gap: 0.3rem; }
.tile__mail { font-size: var(--step-body); font-weight: 700; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; text-underline-offset: 0.2em; }

/* ---------- motion: entrances (content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(20px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 80ms + 60ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .after__list [data-reveal] { transition-delay: calc(var(--i, 0) * 70ms); }
  .acc__panel.is-open .acc__img { animation: drift 14s var(--ease-soft) both; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .strip__track { animation: none; }
  .demo__layer .dot, .acc__panel, .pv, .folder { transition-duration: 1ms !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 59.99em) {
  .how__intro h2, .demo__intro h2 { grid-column: 1 / -1; }
  .how__p, .demo__p { grid-column: 1 / -1; margin-top: 1.25rem; }
  .jobs__board { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .jobs__preview { display: none; }
  .sub__lead, .form, .form--cv, .cvsend__text, .after__text, .after__fig, .contact__lead, .contact__fig, .jobs__top h1, .jobs__top p { grid-column: 1 / -1; }
  .after__fig { margin-top: 3rem; }
  .jobs__top p { margin-top: 1.5rem; }
  .contact__fig img { aspect-ratio: 3 / 2; }
  .tile--statement { grid-column: span 6; } .tile--nav { grid-column: span 6; } .tile--city { grid-column: span 6; } .tile--email { grid-column: span 6; }
  .tile--mark { grid-column: 1 / -1; } .tile--invite { grid-column: 1 / -1; min-height: 12rem; }
}

/* ---------- phone ---------- */
@media (max-width: 40em) {
  .bar { grid-template-columns: 1fr auto; grid-template-areas: "mark lang" "nav nav"; row-gap: 0.75rem; padding-block: 1rem; }
  .bar__mark { grid-area: mark; justify-self: start; }
  .bar__mark img { height: 2.75rem; }
  .bar__lang { grid-area: lang; }
  .bar__nav { grid-area: nav; gap: 1.5rem; }
  .hero__text { padding-top: 2.5rem; }
  .hero__title { font-size: 15vw; }
  html[lang="en"] .hero__title { font-size: 14vw; }
  .hero__sub { font-size: 1.125rem; margin-top: 1.5rem; }
  .folders { height: max(48svh, 22rem); margin-inline: 0; margin-top: auto; padding-top: 2rem; }
  .folder { top: calc(2rem + var(--i) * 3.25rem); }
  .folder__tab { height: 2rem; font-size: 0.9375rem; padding-inline: 1.1rem; }
  .folder:nth-child(1) .folder__tab { inset-inline-start: 0; }
  .folder:nth-child(2) .folder__tab { inset-inline-start: auto; inset-inline-end: 0; }
  .folder:nth-child(3) .folder__tab { inset-inline-start: 30%; }
  .folder:nth-child(4) .folder__tab { inset-inline-start: 4%; }
  .folder:nth-child(5) .folder__tab { inset-inline-start: auto; inset-inline-end: 6%; }
  .folder__body { padding: 1.25rem 1rem; }
  .folder__body .button { width: 100%; }
  .acc__name { font-size: 1.125rem; }
  .demo__stage { grid-template-columns: 1fr; }
  .demo__box { min-height: 0; }
  .demo__box--pile .demo__area { min-height: 15rem; }
  .name__text { columns: 1; font-size: 1.25rem; line-height: 1.6; }
  .hl--link { display: block; margin-top: 1.5rem; padding: 0.75rem; }
  .jobs__head .button { width: 100%; }
  .jobs__board { grid-template-columns: 1fr; gap: 1rem; }
  .jobs__tabs { flex-direction: row; position: sticky; top: 0; z-index: 2; background: var(--white); padding-block: 6px; }
  .jobs__tab { flex: 1; min-height: 3.5rem; padding: 0.4rem 0.6rem; }
  .jobs__link { grid-template-columns: 1fr auto; padding: 1rem; }
  .jobs__type { grid-column: 1 / -1; }
  .strip__item img, .strip__item video { height: 110px; }
  .request__h { margin-top: 3rem; }
  .bar3 { grid-template-columns: 1fr; }
  .bar3__cell { min-height: 3.75rem; }
  .bar3__small { grid-column: 1; }
  .form { grid-template-columns: 1fr; }
  .contact__col { grid-column: 1 / -1; }
  .foot { padding: 6px; }
  .foot__board { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tile { padding: 1.25rem; min-height: 10rem; justify-content: flex-start; gap: 1rem; }
  .tile--mark { grid-column: 1 / -1; order: -2; min-height: 10rem; }
  .tile--mark img { width: 60vw; }
  .tile--invite { grid-column: 1 / -1; order: -1; min-height: 9rem; justify-content: space-between; }
  .tile--nav, .tile--city, .tile--statement { grid-column: span 1; }
  .tile--email { grid-column: 1 / -1; min-height: 7rem; }
  .tile--statement { grid-column: 1 / -1; min-height: 0; }
  .tile--credits { grid-column: 1 / -1; }
}
