/* =====================================================================
   Identity layer: midnight navy, ivory paper, champagne gold.
   The recurring motif is the gold detection corner from the hero portrait
   (Ahmed works in computer vision): it frames featured images, marks cards
   on hover, and numbers each section. Loaded after sections.css.
   ===================================================================== */

/* ---------- Type ---------- */
body { letter-spacing: 0.002em; }
.hero__title, .contact__title, .item__name, .more__name, .step h3, .timeline__role,
.project__title, .feature__title, .skills--band h3, #governance .skills__group h3,
.hire__title, .projects__label {
  font-family: var(--font-display);
  font-variation-settings: normal;
}
[lang="ar"] .section-title, [lang="ar"] .hero__title, [lang="ar"] .contact__title, [lang="ar"] .feature__title { font-weight: 700; letter-spacing: 0; }

/* Section numbers: 01, 02 ... with a gold hairline running to the edge. */
main { counter-reset: sec; }
main > section.wrap:not(.contact) > .section-title::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-block-end: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--accent-text);
}
main > section.wrap:not(.contact) > .section-title::before { background: linear-gradient(to right, transparent 3.4em, var(--hair) 3.4em) no-repeat 0 50% / 100% 1px; }
[dir="rtl"] main > section.wrap:not(.contact) > .section-title::before { background: linear-gradient(to left, transparent 3.4em, var(--hair) 3.4em) no-repeat 0 50% / 100% 1px; }
.section-lead { font-size: var(--step-1); line-height: 1.55; }

/* The detection corner, reusable: put four .frame__c spans in a .frame. */
.frame { position: relative; }
.frame__c { position: absolute; width: 28px; height: 28px; border: 2px solid var(--champagne); pointer-events: none; }
.frame__c--tl { inset-block-start: -14px; inset-inline-start: -14px; border-inline-end: 0; border-block-end: 0; }
.frame__c--tr { inset-block-start: -14px; inset-inline-end: -14px; border-inline-start: 0; border-block-end: 0; }
.frame__c--bl { inset-block-end: -14px; inset-inline-start: -14px; border-inline-end: 0; border-block-start: 0; }
.frame__c--br { inset-block-end: -14px; inset-inline-end: -14px; border-inline-start: 0; border-block-start: 0; }

/* ---------- Bar ---------- */
.bar { background: color-mix(in srgb, var(--ground) 92%, transparent); border-block-end: 1px solid transparent; }
.bar.is-scrolled { border-block-end-color: var(--hair); }
.mark__ab { min-width: 42px; height: 38px; background: transparent; color: var(--ink); border: 1px solid var(--gold); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.04em; }
.mark:hover .mark__ab { background: var(--navy-800); color: var(--champagne); transform: none; }
[data-theme="dark"] .mark:hover .mark__ab { background: var(--champagne); color: var(--navy-900); }
.mark__name { font-weight: 600; letter-spacing: 0.01em; }
.bar__link { font-weight: 500; font-size: 0.95rem; }
.bar__link::after { height: 1px; background: var(--gold); inset-block-end: 6px; }
.tool, .bar__toggle { border-width: 1px; border-color: var(--rule-strong); }
.tool__lamp { background: var(--gold); border-width: 1.5px; }

/* ---------- Buttons: square-cut, hairline ---------- */
.btn { border-radius: var(--radius); font-weight: 600; letter-spacing: 0.02em; }
.btn--hire { box-shadow: none; }
.btn__mail { border-radius: 1px; background: var(--champagne); stroke: var(--navy-800); stroke-width: 1.7; }
[data-theme="dark"] .btn__mail { background: var(--navy-800); stroke: var(--champagne); }
[data-theme="dark"] .btn--hire:hover .btn__mail { background: var(--navy-800); stroke: var(--champagne); }
.btn--ghost { border-width: 1px; }
.btn--gold { background: var(--champagne); color: var(--navy-900); }
.btn--gold:hover { background: var(--ivory); color: var(--navy-900); }
.btn--line { border: 1px solid color-mix(in srgb, var(--on-band) 55%, transparent); color: var(--on-band); }
.btn--line:hover { background: var(--on-band); color: var(--navy-900); }
.btn--lg.btn--gold, .btn--lg.btn--line { padding: 17px 30px; }
html.js .btn--hire .btn__mail { animation: none; }

/* ---------- Hero: a navy band, serif headline, the portrait framed in gold ---------- */
.hero { background: var(--band); color: var(--on-band); padding-block: clamp(56px, 8vw, 120px) clamp(72px, 9vw, 140px); border-block-end: 1px solid var(--hair); }
.hero__title { font-weight: 500; line-height: 0.98; letter-spacing: -0.02em; }
.hero__line:nth-child(3) .hero__line-in { font-style: italic; color: var(--champagne); }
[lang="ar"] .hero__line:nth-child(3) .hero__line-in { font-style: normal; }
.hero__sub { margin-block-start: 30px; color: var(--on-band); font-size: var(--step-1); }
.hero__proof { color: var(--on-band-muted); }
.hero__cta { margin-block-start: 40px; }
.hero .btn--hire { background: var(--champagne); color: var(--navy-900); }
.hero .btn--hire:hover { background: var(--ivory); color: var(--navy-900); }
.hero .btn--hire .btn__mail { background: var(--navy-800); stroke: var(--champagne); }
.hero .btn--ghost { border-color: color-mix(in srgb, var(--on-band) 50%, transparent); color: var(--on-band); }
.hero .btn--ghost:hover { background: var(--on-band); color: var(--navy-900); }
.hero__links { gap: 28px; font-weight: 500; letter-spacing: 0.03em; }
.hero__links a { color: var(--on-band); text-decoration-color: var(--hair); text-decoration-thickness: 1px; }
.hero__links a:hover { color: var(--champagne); }

.stage__sweep { display: none; }
.stage::before { content: ""; position: absolute; inset-block: 30px 64px; inset-inline: 46px -22px; border: 1px solid var(--hair); }
.viewfinder__photo { border: 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.viewfinder__corner { border-color: var(--champagne); border-width: 2px; }
.viewfinder__box rect { stroke: var(--champagne); stroke-width: 2; }
.viewfinder__scan { background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--champagne) 40%, transparent) 88%, var(--champagne)); }
.viewfinder__label { background: var(--champagne); color: var(--navy-900); }

/* Availability: a small ivory card instead of a sticker. */
.flash { inset-block-start: auto; inset-block-end: 84px; inset-inline-end: -6px; width: auto; aspect-ratio: auto; display: block; padding: 12px 16px 12px 18px; background: var(--ivory); color: var(--navy-800); border-inline-start: 3px solid var(--gold); transform: none; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7); }
.flash svg { display: none; }
.flash__text { max-width: none; text-align: start; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
[data-theme="dark"] .flash__text { color: #535C6E; }
.flash__text strong { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: 0; color: var(--navy-800); }
html.js .flash { animation: none; transform: none !important; }
@media (min-width: 2200px) { .flash { width: auto; } .flash__text { max-width: none; } }
.code { color: var(--on-band-muted); letter-spacing: 0.08em; }

/* ---------- Services ---------- */
.catalogue { gap: var(--seam); }
.item, .item--red, .item--blue, .item--sky, .item--yellow { --panel: var(--raised); --on: var(--ink); }
.item { gap: 12px; min-height: 480px; padding: 34px 30px 30px; border: 1px solid var(--rule); transition: transform 420ms var(--ease-out), border-color 300ms, box-shadow 420ms var(--ease-out); }
.item:hover { transform: translateY(-4px); border-color: var(--hair); }
.item::before, .item::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold); opacity: 0; transition: opacity 260ms, transform 420ms var(--ease-out); pointer-events: none; }
.item::before { inset-block-start: -8px; inset-inline-start: -8px; border-inline-end: 0; border-block-end: 0; transform: translate(6px, 6px); }
.item::after { inset-block-end: -8px; inset-inline-end: -8px; border-inline-start: 0; border-block-start: 0; transform: translate(-6px, -6px); }
.item:hover::before, .item:hover::after { opacity: 1; transform: none; }
.item__code { padding: 0; background: none; color: var(--accent-text); letter-spacing: 0.18em; }
.item__name { font-size: clamp(1.65rem, 1.3rem + 0.8vw, 2rem); font-weight: 600; letter-spacing: -0.005em; line-height: 1.08; }
.item__text { color: var(--muted); }
.item__tools { color: var(--accent-text); opacity: 1; letter-spacing: 0.02em; }
.item__ask { border-width: 1px; border-radius: var(--radius); font-weight: 600; letter-spacing: 0.02em; }
.item__ask:hover { background: var(--ink); color: var(--ground); }

/* The line drawings, recoloured to the palette and drawn with finer strokes. */
.item .art [stroke] { stroke-width: 2.25; }
.item .art [fill="#fff"] { fill: var(--tint); }
.item .art [stroke="#101114"] { stroke: var(--ink); }
.item .art [fill="#101114"] { fill: var(--ink); }
.item .art [stroke="#CC1F1A"] { stroke: var(--ocean); }
.item .art [fill="#CC1F1A"] { fill: var(--ocean); }
.item .art [stroke="#FFC800"] { stroke: var(--gold); }
.item .art [fill="#FFC800"] { fill: var(--gold); }
.item .art [fill="#1F4FD8"] { fill: var(--beige-300); }
.item .art [stroke="#fff"] { stroke: var(--rule-strong); }
.item--sky .art circle { stroke: var(--ink); stroke-width: 1.5; }
[data-theme="dark"] .item .art [stroke="#CC1F1A"] { stroke: var(--champagne); }
[data-theme="dark"] .item .art [fill="#CC1F1A"] { fill: var(--champagne); }
[data-theme="dark"] .item .art [fill="#1F4FD8"] { fill: var(--navy-600); }

.more { margin-block-start: var(--seam); padding: 32px; border: 1px solid var(--hair); background: var(--tint); }
.more__name { font-size: 2rem; font-weight: 600; }

/* ---------- How a project runs: serif numerals on a gold hairline ---------- */
.steps { gap: 40px 32px; }
.step { gap: 10px; padding-block-start: 22px; border-block-start: 1px solid var(--hair); }
.step__n, .step:nth-child(3n+2) .step__n, .step:nth-child(3n) .step__n { display: block; width: auto; height: auto; border-radius: 0; background: none; color: var(--accent-text); font-family: var(--font-display); font-size: 3.4rem; font-style: italic; font-weight: 500; line-height: 1; }
.step:hover .step__n { transform: translateX(6px); }
.step h3 { font-size: 1.6rem; font-weight: 600; letter-spacing: 0; line-height: 1.15; }
.how__cta { margin-block-start: 56px; }

/* ---------- Privacy: a beige band across the page ---------- */
#governance { position: relative; isolation: isolate; }
#governance::before { content: ""; position: absolute; z-index: -1; inset-block: calc(var(--section-gap) * 0.55) calc(var(--section-gap) * -0.45); inset-inline: calc(50% - 50vw); background: var(--tint); border-block: 1px solid var(--hair); }
.skills { border-block-start: 1px solid var(--rule-strong); gap: 0 56px; }
.skills__group { padding: 24px 12px 24px 34px; }
[dir="rtl"] .skills__group { padding: 24px 34px 24px 12px; }
.skills__group::before, .skills__group:nth-child(3n+2)::before, .skills__group:nth-child(3n)::before { inset-block-start: 36px; width: 8px; height: 8px; background: var(--gold); outline: 0; transform: rotate(45deg); }
.skills__group:hover::before { transform: rotate(45deg) scale(1.4); }
#governance .skills__group:hover { background: transparent; }
#governance .skills__group h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; margin-block-end: 6px; }

/* ---------- About: the first paragraph reads as a lead ---------- */
.trio { gap: 32px 56px; }
.trio p:first-child { font-family: var(--font-display); font-size: clamp(1.45rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.35; }
.trio p:not(:first-child) { color: var(--muted); padding-block-start: 6px; }
[lang="ar"] .trio p:first-child { font-family: var(--font-text); font-size: var(--step-1); }

/* ---------- Experience ---------- */
.timeline__spine { width: 1px; inset-inline-start: 7px; }
.timeline__fill { background: var(--gold); }
.timeline__item { padding-block-end: 60px; }
.timeline__item::before { inset-inline-start: -34px; inset-block-start: 10px; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 6px var(--ground); }
.timeline__item:hover::before { background: var(--navy-800); outline: 0; transform: rotate(45deg) scale(1.3); }
[data-theme="dark"] .timeline__item:hover::before { background: var(--champagne); }
.timeline__when { color: var(--accent-text); letter-spacing: 0.04em; }
.timeline__role { font-size: 1.85rem; font-weight: 600; letter-spacing: 0; line-height: 1.15; }
.timeline__org { margin-block-start: 4px; font-family: var(--font-text); font-size: var(--step-0); }
.timeline__points li::marker, .project__points li::marker { color: var(--gold); }
.timeline__points { color: var(--muted); }

/* ---------- Featured project: full-width navy band ---------- */
.feature { margin-inline: calc(50% - 50vw); margin-block: 16px 0; padding-block: clamp(64px, 9vw, 140px); background: var(--band); color: var(--on-band); border-block: 1px solid var(--hair); }
.feature__inner { width: min(100% - 2 * var(--gutter), var(--content-max)); margin-inline: auto; display: grid; gap: 64px; align-items: center; }
.feature__media { position: relative; padding-block-end: 12%; padding-inline-end: 8%; }
.feature__shot img { width: 100%; height: auto; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85); }
.feature__cert { position: absolute; inset-block-end: 0; inset-inline-end: 0; width: 36%; margin: 0; border: 6px solid var(--ivory); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8); transform: rotate(2.5deg); transition: transform 500ms var(--ease-out); }
.feature__media:hover .feature__cert { transform: rotate(0deg) translateY(-6px); }
.feature__cert img { width: 100%; height: auto; }
.feature__seal { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--champagne); direction: ltr; text-align: start; }
.feature__title { margin-block: 18px 22px; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
.feature__sum { font-size: var(--step-1); line-height: 1.55; max-width: 44ch; }
.feature__points { margin-block-start: 28px; display: grid; gap: 12px; color: var(--on-band-muted); max-width: 56ch; }
.feature__points li { position: relative; padding-inline-start: 26px; }
.feature__points li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.8em; width: 14px; height: 1px; background: var(--gold); }
.feature__tools { margin-block-start: 26px; font-family: var(--font-mono); font-size: var(--step--1); color: var(--champagne); direction: ltr; text-align: start; }
.feature__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 36px; }
.feature__media { width: min(100%, 1080px); margin-inline: auto; }
@media (min-width: 1024px) {
  .feature__inner { gap: 88px; }
  .feature__body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 88px; align-items: start; }
  .feature__seal, .feature__title, .feature__sum, .feature__cta { grid-column: 1; }
  .feature__points { grid-column: 2; grid-row: 1 / span 3; margin-block-start: 6px; }
  .feature__tools { grid-column: 2; grid-row: 4; align-self: center; margin-block-start: 36px; }
  .feature__title { font-size: clamp(3rem, 2rem + 2.6vw, 4.75rem); }
}
@media (max-width: 767px) { .feature__cert { width: 52%; border-width: 4px; } .feature__inner { gap: 48px; } .frame__c { width: 20px; height: 20px; } }

.projects__label { margin-block: clamp(80px, 10vw, 140px) 14px; font-size: var(--step-3); font-weight: 500; line-height: 1.05; }
[lang="ar"] .projects__label { font-weight: 700; }

/* ---------- Project list ---------- */
.projects { border-block-start: 1px solid var(--rule-strong); }
.project__head { padding-block: 30px; }
.project__title { font-size: 1.85rem; font-weight: 600; letter-spacing: 0; line-height: 1.15; }
.project:hover, .project:has(:focus-visible) { background: var(--tint); }
.projects.is-enhanced .project__toggle::after { inset-block-start: 30px; border-width: 1px; border-color: var(--rule-strong); border-radius: 50%; font-family: var(--font-text); font-weight: 300; }
.projects.is-enhanced .project:hover .project__toggle::after { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.projects.is-enhanced .project.is-open .project__toggle::after { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.project__meta, .project__tools { color: var(--accent-text); }

/* ---------- Skills ---------- */
.skillband { padding: clamp(24px, 4vw, 64px); background: var(--raised); border: 1px solid var(--rule); border-block-start: 1px solid var(--hair); }
.skills--band { gap: 8px 72px; }
.skills--band .skills__group { padding: 26px 0 30px; }
.skills--band h3 { font-size: 1.55rem; font-weight: 600; letter-spacing: 0; }
.skills--band h3::before, .skills--band .skills__group:nth-child(even) h3::before { width: 8px; height: 8px; background: var(--gold); outline: 0; transform: rotate(45deg); }
.tags { gap: 8px; }
.tags li { padding: 7px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: transparent; font-size: 14.5px; font-weight: 500; }
.tags li:hover { background: var(--beige); color: var(--navy-900); border-color: var(--beige-300); }

/* ---------- Beyond the code ---------- */
.beyond { gap: 56px; }
.beyond__photos img { border: 6px solid var(--raised); }
.beyond__text strong { font-family: var(--font-display); font-size: 1.45em; font-weight: 600; font-style: italic; color: var(--accent-text); }
[lang="ar"] .beyond__text strong { font-style: normal; font-size: 1.2em; }
.beyond__text p + p { margin-block-start: 1.6em; }
@media (min-width: 1024px) { .beyond { column-gap: 96px; } }

/* ---------- Contact: an invitation card, navy with a gold inset rule ---------- */
.order { background: var(--band); color: var(--on-band); outline: 1px solid var(--hair); outline-offset: -16px; padding: clamp(44px, 8vw, 112px); }
.contact__title { font-weight: 500; letter-spacing: -0.02em; line-height: 1; max-width: 14ch; }
.contact__lead { margin-block: 24px 36px; color: var(--on-band-muted); }
.intake__legend { font-weight: 600; letter-spacing: 0.04em; color: var(--champagne); }
.chip span { border-width: 1px; border-color: color-mix(in srgb, var(--on-band) 45%, transparent); border-radius: var(--radius); font-weight: 500; }
.chip input:checked + span { background: var(--champagne); border-color: var(--champagne); color: var(--navy-900); }
.chip:has(input:focus-visible) span { outline: 2px solid var(--champagne); }
.order .btn--hire { background: var(--champagne); color: var(--navy-900); }
.order .btn--hire:hover, .order .btn--hire:focus-visible { background: var(--ivory); color: var(--navy-900); }
.order .btn--hire .btn__mail { background: var(--navy-800); stroke: var(--champagne); }
.order .btn--ghost { border-color: color-mix(in srgb, var(--on-band) 50%, transparent); color: var(--on-band); }
.order .btn--ghost:hover { background: var(--on-band); color: var(--navy-900); }
.order a { text-decoration-color: var(--hair); }
.contact__addr { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; }
.contact__links { font-weight: 500; letter-spacing: 0.03em; }

/* ---------- Footer, dock, dialog ---------- */
.footer { border-block-start: 1px solid var(--hair); padding: 36px 0 44px; }
.footer__line { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; font-weight: 500; }
[lang="ar"] .footer__line { font-style: normal; }
.dock { border-block-start: 1px solid var(--hair); }
.hire { border: 1px solid var(--hair); border-radius: var(--radius); }
.hire__close button, .hire__opt { border-width: 1px; border-radius: var(--radius); }
.hire__opt--book { background: var(--champagne); color: var(--navy-900); }
.hire__opt:hover { background: var(--beige); color: var(--navy-900); }
.hire__title { font-size: 2rem; font-weight: 600; }

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .section-title { margin-block-end: 24px; }
  .section-lead { margin-block: -4px 28px; }
  .catalogue .item { min-height: 0; padding: 26px 22px; }
  #governance .skills__group, .step, .skills--band .skills__group { border: 1px solid var(--rule); background: var(--raised); }
  .step { padding: 20px; }
  .step__n, .step:nth-child(3n+2) .step__n, .step:nth-child(3n) .step__n { width: auto; height: auto; font-size: 2.6rem; }
  .project__title, .timeline__role { font-size: 1.5rem; }
  .stage::before { inset-inline: 34px -10px; }
  .flash { inset-block-end: 72px; inset-inline-end: 0; }
  .order { outline-offset: -10px; padding: 40px 26px; }
  .contact__addr { font-size: 1.35rem; }
}
@media (hover: none) { .item::before, .item::after { display: none; } }
[lang="ar"] .feature__seal, [lang="ar"] .item__code, [lang="ar"] .timeline__when { font-family: var(--font-text); letter-spacing: 0.02em; }
[lang="ar"] .feature__seal { direction: rtl; text-transform: none; font-size: var(--step--1); }
/* Larger portrait in the hero. */
.viewfinder { width: 82%; }
@media (min-width: 1200px) { .hero__grid { grid-template-columns: minmax(0, 1fr) 460px; } .stage { width: 460px; } }
@media (min-width: 1700px) { .hero__grid { grid-template-columns: minmax(0, 1fr) 580px; } .stage { width: 580px; } }
@media (min-width: 1024px) { .hero__title { font-size: min(var(--step-display), 5vw); } }

/* ---------- Services as an editorial index: no clip-art cards, numbered entries on hairlines ---------- */
.catalogue { gap: 0 80px; }
@media (min-width: 640px) { .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.item, .item:hover { background: none; border: 0; border-block-start: 1px solid var(--rule-strong); box-shadow: none; transform: none; }
.fx .item[data-reveal].is-in:hover { transform: none; }
.item { min-height: 0; padding: 30px 0 44px; gap: 14px; }
.item::before, .item::after { display: none; }
.item .art { display: none; }
.item__code { font-size: 13px; }
.item__name { font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 500; line-height: 1.05; transition: color 220ms; }
.item:hover .item__name { color: var(--accent-text); }
.item__text { max-width: 44ch; font-size: var(--step-0); }
.item__ask { margin-block-start: 8px; padding: 0; border: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair); text-decoration-thickness: 1px; text-underline-offset: 0.35em; }
.item__ask::after { content: "→"; transition: transform 260ms var(--ease-out); }
[dir="rtl"] .item__ask::after { content: "←"; }
.item__ask:hover { background: none; color: var(--accent-text); transform: none; }
.item__ask:hover::after { transform: translateX(5px); }
[dir="rtl"] .item__ask:hover::after { transform: translateX(-5px); }
@media (max-width: 767px) {
  .catalogue { display: grid; overflow: visible; margin-inline: 0; padding: 0; gap: 0; }
  .catalogue .item { padding: 24px 0 30px; }
  .item__name { font-size: 1.75rem; }
}

/* ---------- Skills as written lists, not a tag cloud ---------- */
.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 6px 24px; line-height: 1.5; }
.tags li, .tags li:hover { display: block; padding: 0; border: 0; background: none; color: var(--ink); font-size: var(--step-0); font-weight: 400; transform: none; direction: ltr; unicode-bidi: isolate; }
.tags li { position: relative; padding-inline-start: 18px !important; text-align: start; }
.tags li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.75em; width: 9px; height: 1px; background: var(--gold); }
[dir="rtl"] .tags li { direction: ltr; text-align: right; padding-inline-start: 0 !important; padding-right: 18px !important; }
[dir="rtl"] .tags li::before { inset-inline-start: auto; right: 0; left: auto; }
.skills--band h3 { margin-block-end: 10px; }
/* Phones: groups stack instead of swiping sideways. */
@media (max-width: 767px) {
  .skillband { padding: 8px 20px 12px; }
  .skills--band { display: grid; overflow: visible; margin-inline: 0; padding: 0; gap: 0; }
  .skills--band .skills__group { padding: 22px 0 24px; border: 0; border-block-start: 1px solid var(--rule); background: none; }
  .skills--band .skills__group:first-child { border-block-start: 0; }
}

/* ---------- Phone polish ---------- */
.timeline__more { border-width: 1px; border-color: var(--rule-strong); border-radius: var(--radius); font-weight: 600; letter-spacing: 0.02em; padding: 12px 22px; }
@media (max-width: 767px) {
  :root { --section-gap: 80px; }
  .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
  .tags li, .tags li:hover { font-size: 0.97rem; white-space: normal; }
}
@media (max-width: 479px) {
  .hero__title { font-size: 2.45rem; }
  [lang="ar"] .hero__title { font-size: 2.6rem; }
}

/* ---------- Contact: the desk photo beside the invitation ---------- */
.order { display: grid; gap: 44px; align-items: center; }
.order__photo { margin: 0; width: min(100%, 420px); }
.order__photo img { width: 100%; height: auto; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
@media (min-width: 1024px) {
  .order { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; }
  .order__text { grid-column: 1; grid-row: 1; }
  .order__photo { grid-column: 2; grid-row: 1; width: 100%; }
}
