/* ═════════ Theme 2026 — the look of the 2026 portfolio (Ibrahem-Fouad-Portfolio-2026.pdf) ═════════
   Loaded after the page CSS and merge.css; it changes the look only — the pages, their order and
   their text stay as they are. A dark, quiet page: solid surfaces (no glass, stars or moving light),
   one teal light, a single 4px radius, big bold tight headings with a grey last word, and the logo's
   own shapes as the only ornaments (the icon's three diamonds and the letters, both in outline).
   A single diamond is never used on its own: it is the mark of another concept.
   To roll back, remove the <link> to this file in index.html. */

/* ── tokens: the owner's palette (27 Oct 2026, taken from his studio photos) — simple, modern and calm ──
   primary   teal  #1FA89B   buttons, links, the lights and lines (#5FD8CC, its rim light, for teal text on
                             dark; #13786F on light; #0E4A46 the deep shade)
   secondary ember #E0631F   only numbers and counts, small, so it marks without shouting
   neutrals  near-black #0D1011, charcoal #2A2E2F and the shirt's warm white #E8E5DE carry the page, with
             warm greys between them (rust #5A2622 and skin #C08B6C stay in the brand kit, not the UI) */
:root{
  --bg:#f2f0eb;--bg-2:#e8e5de;--bg-3:#dedad2;
  --ink:#0d1011;--muted:#5d5a55;--faint:#8f8b84;--grey:#8a867f;
  --line:rgba(13,16,17,.09);--line-2:rgba(13,16,17,.16);
  --accent:#1fa89b;--accent-ink:#13786f;--accent-deep:#0e4a46;--on-accent:#0d1011;
  --accent-2:#e0631f;--accent-2-ink:#b44e16;
  --glow:31,168,155;
  --tile-light:#f7f6f3;
  --r:4px;--r-sm:4px;--r-md:4px;--r-lg:4px;--r-pill:999px;
  --w-light:400;
  --bar-tint:rgba(242,240,235,.92);--menu-tint:#f2f0eb;--cap-glass:rgba(250,248,244,.5);--cap-edge:rgba(255,255,255,.6);
  --orn-o:.5;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0d1011;--bg-2:#15191a;--bg-3:#1d2223;
  --ink:#e8e5de;--muted:#a29e97;--faint:#6f6c67;--grey:#8c8881;
  --line:#1f2425;--line-2:#2a2e2f;--accent-ink:#5fd8cc;--accent-2-ink:#e0631f;
  --bar-tint:rgba(13,16,17,.92);--menu-tint:#0d1011;--cap-glass:rgba(13,16,17,.42);--cap-edge:rgba(255,255,255,.1);
  --orn-o:.5}}
:root[data-theme="dark"]{
  --bg:#0d1011;--bg-2:#15191a;--bg-3:#1d2223;
  --ink:#e8e5de;--muted:#a29e97;--faint:#6f6c67;--grey:#8c8881;
  --line:#1f2425;--line-2:#2a2e2f;--accent-ink:#5fd8cc;--accent-2-ink:#e0631f;
  --bar-tint:rgba(13,16,17,.92);--menu-tint:#0d1011;--cap-glass:rgba(13,16,17,.42);--cap-edge:rgba(255,255,255,.1);
  --orn-o:.5}
html.lite{--menu-tint:var(--bg)}
html.lite[data-theme="dark"]{--menu-tint:#0d1011}
/* the logo's diamonds follow the primary teal (header and splash) */
.intro-logo .mark,.intro-logo .beat{fill:var(--accent);stroke:rgba(232,229,222,.7)}

/* ── type: one family, the style comes from weight, size and tracking ── */
body{line-height:1.7}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* labels: small and muted, never uppercase or spaced out */
.k,body.en .k,.ac-k{font-size:13px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--muted)}
/* the grey last word of a big heading: solid grey, no gradient */
.fade,.fade.lit,html.lite .fade.lit{background:none;-webkit-background-clip:border-box;background-clip:border-box;color:var(--grey)}
.lit,html.lite .lit{background:none;-webkit-background-clip:border-box;background-clip:border-box;color:inherit}
/* big headings: bold and tight in English (negative tracking is for Latin only); Arabic keeps room to breathe */
.hero h1{font-size:clamp(56px,10vw,180px);line-height:1.2;font-weight:700;max-width:none}
/* the hero title takes a soft teal light under the mouse (lights() writes --lx/--ly per word): the
   letters are painted by a light layer over their own colour, clipped to the glyphs; the padding gives
   Arabic dots, marks and tails room inside the painted box (the margin keeps the layout unchanged) */
.hero h1 .w>span{--tc:var(--ink);--lc:var(--accent);
  background:radial-gradient(2.4em circle at var(--lx,-9999px) var(--ly,-9999px),var(--lc),color-mix(in srgb,var(--lc) 45%,transparent) 32%,transparent 74%),linear-gradient(var(--tc),var(--tc));
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  padding:.16em .08em .3em;margin:-.16em -.08em -.3em}
.hero h1 .w>span.fade{--tc:var(--grey)}
:root[data-theme="light"] .hero h1 .w>span{--lc:var(--accent-ink)}
body.en .hero h1{letter-spacing:-.03em;line-height:1}
/* the title's words rise into place as they fade in, with no mask: a mask cut the Arabic tails and dots
   (the end of «ابداعي») while the words were still rising (seen on iPhone) */
.hero h1 .w{overflow:visible}
body.ready .hero h1 .w>span,html.lite body.ready .hero h1 .w>span{animation-name:rise3}
@keyframes rise3{from{transform:translateY(.5em);opacity:0}}
/* the splash logo's drawing has room around it (intro()); the box is pulled back so the logo keeps its
   size and place: 150% wide, height 1308.8/2629.5 of that, so 14% of the width trimmed top and bottom */
.intro .lg .intro-logo{width:150%;max-width:none;margin:-14% -25%}
.shead h2{font-size:clamp(34px,4.6vw,76px);line-height:1.25;font-weight:700}
.ptitle h1,.band h2,.case-top h1{font-size:clamp(40px,5.2vw,88px);line-height:1.25;font-weight:700}
.pj-name h1{font-size:clamp(34px,4.6vw,76px);line-height:1.25;font-weight:700}
.section-caption h2,.next strong{font-weight:700}
body.en .shead h2,body.en .ptitle h1,body.en .band h2,body.en .case-top h1,body.en .pj-name h1{letter-spacing:-.02em;line-height:1.04}
body.en .section-caption h2,body.en .next strong,body.en .creative-experience h2{letter-spacing:-.015em}
.ptitle h1 sup{color:var(--accent-ink);font-weight:500}
.hero-intro,.work-lead,.pj-bio,.as-body,.prose,.brief-h p{font-weight:400}
.cap h3,.project-caption h3{font-weight:600}

/* ── brand ornaments ── */
/* the stage: the icon's three diamonds as thin outlines, very large, rising from the bottom of the screen,
   fixed behind the page. No background light (owner: the glow's soft gradient showed rings/noise) —
   the teal lives in the details instead, and only answers the mouse: a short light with soft ends on the
   diamonds' outline (GLINT) and a fine reflection on the glass sections' top edge and the header line. */
.stage{position:fixed;left:0;top:0;width:100%;height:100vh;height:100svh;z-index:-1;pointer-events:none}
/* the light on the diamonds: the outline drawn again on top, stroked with a radial gradient whose centre
   lights() moves to the point nearest the pointer — it fades smoothly along the line both ways, like the
   reflection on the header line; off (opacity 0) when no pointer is near */
.diamonds .glint{position:absolute;left:0;top:0;width:100%;height:auto;color:var(--accent);opacity:0;transition:opacity .35s}
:root[data-theme="light"] .diamonds .glint{color:var(--accent-ink)}
.diamonds .glint path{stroke-opacity:1;stroke-width:1.6px}
.stage-home .glint path{stroke:url(#glint-h)}
.stage:not(.stage-home) .glint path{stroke:url(#glint-b)}
/* the reflection: a short teal light with soft ends on a 1px edge, at the pointer (--rx) and as strong as
   the pointer is close (--ra), both written by lights() */
.top::after,.stack>.hero+*::after,.mq-shell::after{content:"";display:block;position:absolute;height:1px;pointer-events:none;border-radius:0;
  background:radial-gradient(260px 100% at var(--rx,-9999px) 50%,var(--accent-2-ink),transparent 72%) no-repeat;opacity:var(--ra,0);transition:opacity .35s}
.top::after{left:0;right:0;bottom:-1px;top:auto}
.stack>.hero+*::after{top:0;inset-inline:calc(50% - 50vw)}
.mq-shell::after{top:0;bottom:auto;left:0;right:0;inset-inline:0;z-index:4}
/* a project page has no hero: a copy of the stage shows only inside its closing band */
.band:has(>.stage){position:relative;isolation:isolate;clip-path:inset(0)}
.hero{min-height:100svh}
.foot{margin-top:0}
#main:not(:has(>.band:last-child)){padding-bottom:var(--s8)}
/* on a project page the band's window has a soft top edge */
.band:has(>.stage)::before{content:"";display:block;position:absolute;left:0;right:0;height:min(140px,16svh);z-index:-1;pointer-events:none;top:0;background:linear-gradient(to top,transparent,var(--bg))}
.diamonds{position:absolute;left:50%;top:var(--dt,74%);width:120vw;transform:translateX(-50%);pointer-events:none}
.diamonds svg{display:block;width:100%;height:auto}
.diamonds path{fill:none;stroke:var(--accent-ink);stroke-opacity:var(--orn-o);stroke-width:1px;vector-effect:non-scaling-stroke}
/* the calligraphic letters as outlines, cropped by the edges, behind the works cover (placed there below) */
.logo-stroke{position:absolute;z-index:-1;top:calc(-1 * var(--s8));bottom:0;inset-inline:calc(50% - 50vw);overflow:hidden;pointer-events:none;
  -webkit-mask:linear-gradient(180deg,#000 50%,transparent);mask:linear-gradient(180deg,#000 50%,transparent)}
.logo-stroke svg{position:absolute;width:max(96vw,900px);height:auto;inset-inline-end:-14vw;top:-24%}
.logo-stroke path{fill:none;stroke:var(--accent-ink);stroke-opacity:.28;stroke-width:1px;vector-effect:non-scaling-stroke}
/* the letters take the same light as the diamonds (lights() moves it to the point nearest the pointer) */
.logo-stroke .glint{color:var(--accent);opacity:0;transition:opacity .35s}
:root[data-theme="light"] .logo-stroke .glint{color:var(--accent-ink)}
.logo-stroke svg.glint path{stroke:url(#glint-l);stroke-opacity:1;stroke-width:1.6px}

/* ── no glass anywhere: surfaces are solid, edges are hairlines ── */
.glass,html.lite .glass,html.lite .glass:not(.bar-top),.cap.glass,html.lite .cap.glass{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none}
.glass::before,.glass::after,html.lite .glass::before,html.lite .glass::after{display:none!important}
.glass,html.lite .glass:not(.bar-top){background:none}
.veil,.halo,.sky,.meteors,.cur,.tilt-btn{display:none!important}

/* header: a thin solid bar, the teal icon, no blur */
.top,html.lite .top{background:var(--bar-tint);-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:1px solid var(--line)}
.brand{color:var(--accent)}
.brand:hover{filter:none;transform:none}
.ibtn,.totop{background:none;border:1px solid var(--line-2);box-shadow:none}
.ibtn:hover,.totop:hover{background:none;border-color:var(--accent-2-ink);box-shadow:none;transform:none}
@media (max-width:820px){
  .nav{background:var(--bg)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important}
  .nav a{border-radius:0}
}

/* buttons: a teal pill (glow only on hover) and a hairline pill */
.btn,html.lite .btn:not(.primary){background:transparent;border:1px solid var(--line-2);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--ink);transition:border-color .3s,box-shadow .45s,color .3s}
.btn:hover{border-color:var(--accent-2-ink);box-shadow:none}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent);box-shadow:none}
.btn.primary:hover{border-color:var(--accent);box-shadow:0 0 26px -10px rgba(var(--glow),.55)}

/* ── cards: the image carries the colour; no shadow, no lift, no glow — the image scales a little ── */
.card .media,.card:hover .media,.card.pre.in:hover .media{box-shadow:none!important;transform:none}
.card .media::after,.card .media::before,.glare{display:none}
.card .media img{transition:transform .9s var(--ease)}
.card:hover .media img,.card.pre.in:hover .media img{transform:scale(1.03)}
/* the caption on a card is the one piece of glass left (the owner's choice): frosted and translucent, it
   shows the image behind it moving. As a card passes through the screen its image drifts a little and
   zooms out slightly (a scroll-linked animation run by the browser itself, no script), so the glass
   picks up the movement like a slide. Browsers without scroll-linked animations simply show it still. */
.cap,.cap.glass,html.lite .cap.glass{background:var(--cap-glass);border-radius:2px;box-shadow:inset 0 0 0 1px var(--cap-edge);
  -webkit-backdrop-filter:blur(16px) saturate(1.5)!important;backdrop-filter:blur(16px) saturate(1.5)!important}
html.lite .cap.glass{-webkit-backdrop-filter:blur(10px) saturate(1.4)!important;backdrop-filter:blur(10px) saturate(1.4)!important}
@supports (animation-timeline:view()){
  /* the timeline follows the card on the page (the image's own frame clips, so it can't be the measure) */
  .masonry .card{view-timeline:--card-tl block}
  .masonry .card .media img{animation:card-drift linear both;animation-timeline:--card-tl;animation-range:cover}
  /* a discipline's projects get the same drift (a logo stays whole, so it does not move) */
  .portfolio-grid .card{view-timeline:--card-tl block}
  .portfolio-grid .card .media:not(.logo-preview) img{animation:card-drift linear both;animation-timeline:--card-tl;animation-range:cover}
  @keyframes card-drift{from{translate:0 -5%;scale:1.14}to{translate:0 5%;scale:1.08}}
}
@media (prefers-reduced-motion:reduce){.masonry .card .media img,.portfolio-grid .card .media img{animation:none}}
.go,.section-arrow{background:none;color:var(--accent-ink);border:1px solid var(--line-2);box-shadow:none}
.card:hover .go,.work-section:hover .section-arrow{transform:none;box-shadow:none;border-color:var(--accent-2-ink)}
.badge{background:var(--bg);-webkit-backdrop-filter:none;backdrop-filter:none}
@media (hover:hover) and (pointer:fine){.portfolio-grid .card:hover .media{box-shadow:none}}
.portfolio-grid .media.logo-preview,.masonry .card .media.logo-preview,.section-sample.logo-sample,.pj-mark,.client-mark,.logo-art{background:var(--tile-light)}
.next{background:none;border-color:var(--line)}
.next:hover{box-shadow:none;border-color:var(--line-2)}
.case-cover{box-shadow:none}

/* filters: hairline pills, the chosen one in teal */
/* filters: plain tabs, not capsules (owner: the capsules looked busy) — text on a hairline, the chosen
   one in full ink with a teal line under it; one row that scrolls sideways when it runs out of room */
.chips,.chips.glass,html.lite .chips.glass{display:flex;flex-wrap:nowrap;gap:clamp(20px,2.6vw,36px);padding:0;border-radius:0;background:none;
  box-shadow:inset 0 -1px 0 var(--line);overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.chips::-webkit-scrollbar{display:none}
.chip,.pj-filter .chip{position:relative;flex:none;padding:12px 0 14px;border:0;border-radius:0;background:none;color:var(--muted);font:500 15px/1.2 var(--f);white-space:nowrap;box-shadow:none}
.chip .n{font-size:12px;color:var(--faint);opacity:1;margin-inline-start:6px}
.chip:hover{color:var(--ink)}
.chip[aria-pressed="true"],.pj-filter .chip[aria-pressed="true"]{background:none;color:var(--ink);box-shadow:none}
.chip[aria-pressed="true"]::after{content:"";position:absolute;inset-inline:0;bottom:0;height:2px;background:var(--accent-ink)}
.chip[aria-pressed="true"] .n{color:var(--accent-ink)}
/* search: a single underline; the label is kept for screen readers, the field says what to type */
.work-search span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.work-search input,.work-search input:focus{min-height:44px;padding:10px 0;border:0;border-bottom:1px solid var(--line-2);border-radius:0;background:transparent;box-shadow:none}
.work-search input:focus{border-bottom-color:var(--accent-ink)}
.work-toolbar{align-items:flex-end;gap:var(--s5) var(--s7)}
.work-toolbar .chips{flex:1 1 auto;min-width:0}
@media (max-width:900px){.work-toolbar .chips{align-self:stretch}}

/* ── project designs: Instagram grids read as one image (3px), no lift or glow on hover ── */
.pj-tiles{gap:24px}
.pj-set{gap:3px;border-radius:var(--r);overflow:hidden}
.pj-set .gallery-open,.pj-set img{border-radius:0}
.pj-works .gallery-open{overflow:hidden}
.pj-works .gallery-open img{transition:transform .9s var(--ease)}
@media (hover:hover) and (pointer:fine){
  .pj-carousel{overflow:hidden}
  .pj-works .gallery-open:hover{transform:none;box-shadow:none;z-index:auto}
  .pj-works .gallery-open:hover::after{opacity:0}
  .pj-works .gallery-open:hover img{filter:none;transform:scale(1.03)}
}
.gallery-open:hover{box-shadow:none}
@media (max-width:600px){.pj-tiles{gap:12px}}

/* design viewer: a solid window over a dark backdrop */
.image-window{background:var(--bg);border-color:var(--line);box-shadow:none}
.image-window::backdrop{background:rgba(3,6,6,.9);-webkit-backdrop-filter:none;backdrop-filter:none}

/* ── logo band: a plain light surface so every mark keeps its own colours ── */
.mq-shell,html.lite .mq-shell{background:var(--tile-light);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
.mq-shell::before{display:none}
.mq-toggle{background:none}
.mq-toggle:hover{box-shadow:none}

/* ── clients: original colours on light tiles, every card the same — a white logo is printed black on its
   light tile (owner: no dark cards) ── */
.clients .client.logo-supplied,html.lite .clients .client.logo-supplied{background:var(--tile-light);box-shadow:none}
.clients .client:hover{transform:none}
.client-link-icon{color:var(--muted)}

/* ── about: the cut-out keeps its own colours (owner's choice) with one teal light behind it ── */
.about-cover::before{display:none}
.tool,html.lite .tool{background:none;border:1px solid var(--line-2);box-shadow:none}
.tool:hover{border-color:var(--accent-2-ink);box-shadow:none}
/* list markers and the status dot: small plain teal dots, no glow or pulse */
.tool::before,.live i{background:var(--accent-2);box-shadow:none;animation:none}
/* the years of experience are numbers too: ember orange (owner) */
.experience-rows .years,.xp-y{color:var(--accent-2-ink)}

/* ── footer: solid, a hairline on top; organised in clear blocks — the brand, the headings with their
   items, the base line (copyright at the start, back-to-top at the end). On phones each heading sits
   beside its items in a row of its own, between hairlines (owner: it looked unorganised) ── */
.foot,html.lite .foot{background:var(--bg);-webkit-backdrop-filter:none;backdrop-filter:none}
.foot-in.glass{padding:clamp(40px,6vw,72px) 0 var(--s5)}
.fmail{border-bottom:0}
.foot .col .cv{display:flex;flex-direction:column;gap:8px}
.fbase{display:flex;justify-content:space-between;align-items:center;gap:var(--s4)}
@media (max-width:620px){
  .foot-top{gap:var(--s5);padding-bottom:var(--s5)}
  .fcols{display:flex;flex-direction:column;gap:0;width:100%}
  .foot .col{display:grid;grid-template-columns:6.5em minmax(0,1fr);column-gap:var(--s3);align-items:baseline;padding-block:var(--s4);border-top:1px solid var(--line)}
  .foot .col .k{margin:0}
  .foot .col .cv{flex-direction:row;flex-wrap:wrap;gap:6px 18px}
}

/* ── contact form: plain fields, a teal edge on focus ── */
.fld input,.fld select,.fld textarea,.pillc input:not(:checked)+span,
html.lite .fld input,html.lite .fld select,html.lite .fld textarea,html.lite .pillc input:not(:checked)+span{background-color:var(--bg-2);-webkit-backdrop-filter:none;backdrop-filter:none}
.fld input:focus,.fld select:focus,.fld textarea:focus{box-shadow:none;border-color:var(--accent-ink);background-color:var(--bg-2)}
.pillc input:checked+span{box-shadow:none}
.toast{box-shadow:none}

/* ── motion: content rises into place — no blur, no zoom ── */
.pre,html.lite .pre{filter:none!important;transform:translate3d(0,24px,0);transition:opacity .9s var(--ease),transform .9s var(--ease);transition-delay:var(--rd,0ms)}
.card.pre,.brief.pre,.foot-in.pre,.band-in.pre,.cbox.pre{transform:translate3d(0,24px,0);transform-origin:50% 50%}
.pre.in,html.lite .pre.in,.card.pre.in,.brief.pre.in,.band-in.pre.in,.cbox.pre.in{transform:none}
.foot-in.pre{transform:none}
/* cards arrive with more presence: the frame opens upward while the image settles from a closer zoom */
.card.pre .media img{transform:scale(1.2);transition:transform 1.6s var(--ease) var(--rd,0ms)}
.card.pre.in .media img{transform:none}
.shead.pre{transform:translate3d(0,48px,0)}

/* ═════ depth: the slides ═════
   The home opens as a stack — the hero stays (almost) still and the selected work rises over it as one
   card. The background stage moves slower than the content, the hero's words recede as the card comes,
   and at the end the stage settles into place under the closing band. Scroll-linked animations are run
   by the browser itself (no script); where they aren't supported the page simply stays still. */
/* the works card is frosted glass (Apple-like): translucent, a strong blur so the hero and the stage
   show through as soft colour, no border line (owner: the white edge was one line too many), a faint
   light along the top only, and a small soft shadow */
/* the cards are plain full-width sections like the header and the footer (square edges, a hairline
   top and bottom), only made of glass */
:root{--sheet-m:0px;--sheet-r:0px;
  --sheet-glass:rgba(250,248,244,.55);--sheet-hi:rgba(255,255,255,.6);--sheet-shadow:rgba(13,16,17,.1);--strip-glass:rgba(250,248,244,.66)}
:root[data-theme="dark"]{--sheet-glass:rgba(29,34,35,.5);--sheet-hi:rgba(255,255,255,.07);--sheet-shadow:rgba(0,0,0,.35);--strip-glass:rgba(232,229,222,.82)}
.stack{position:relative}
.stack>.hero{position:sticky;top:0;z-index:0}
.stack>.hero+*{position:relative;z-index:1}
.stack>.hero+*::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;inset-inline:calc(50% - 50vw + var(--sheet-m));
  border-radius:var(--sheet-r);background:var(--sheet-glass);
  -webkit-backdrop-filter:blur(40px) saturate(1.8);backdrop-filter:blur(40px) saturate(1.8);
  border-block:1px solid var(--line);box-shadow:0 -8px 28px -14px var(--sheet-shadow)}
/* phones: a lighter blur and a denser tint keep scrolling smooth */
html.lite .stack>.hero+*::before{-webkit-backdrop-filter:blur(22px) saturate(1.6);backdrop-filter:blur(22px) saturate(1.6)}
/* the logo strip is its own glass card like the works card, apart from it and from the closing band
   below; its glass is light in both themes so every logo keeps its own colours */
.mq{padding-block:clamp(36px,5vw,80px) clamp(20px,3vw,40px)}
.mq-shell,html.lite .mq-shell{margin-inline:var(--sheet-m);border-radius:var(--sheet-r);background:var(--strip-glass);
  -webkit-backdrop-filter:blur(40px) saturate(1.8);backdrop-filter:blur(40px) saturate(1.8);border-block:1px solid var(--line);box-shadow:0 8px 28px -14px var(--sheet-shadow)}
html.lite .mq-shell{-webkit-backdrop-filter:blur(22px) saturate(1.6);backdrop-filter:blur(22px) saturate(1.6)}
.mq-controls{padding-top:var(--s4)}

/* ═════ the works directory: a cover and the disciplines as slides ═════
   The cover follows the portfolio's contents page: the big title at the top, the lead and an index of the
   disciplines along the bottom, and the logo's letters in outline behind, larger than the screen and
   cropped by its edges. It is the first slide of a stack like the home's: it stays while the disciplines
   rise over it on the glass sheet, one slide each — the words on one side, three works on the other,
   the sides alternating. */
.work-cover{min-height:100svh;padding-block:calc(72px + clamp(28px,7vh,96px)) clamp(28px,6vh,72px);align-items:stretch}
.work-cover .hero-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,540px);grid-template-rows:1fr auto;column-gap:clamp(32px,6vw,120px);row-gap:var(--s6);align-items:end}
.cover-head{grid-column:1/-1;align-self:start}
.cover-head .k{display:block;margin-bottom:var(--s3)}
.work-cover h1{margin:0}
.work-cover .work-lead{margin:0;max-width:32ch}
.cover-index a{display:grid;grid-template-columns:2.6em minmax(0,1fr) auto;align-items:baseline;gap:var(--s3);padding-block:clamp(10px,1.7vh,18px);border-bottom:1px solid var(--line-2);color:inherit;text-decoration:none;transition:border-color .3s}
.cover-index .num:first-child{color:var(--accent-ink);font-size:14px}
.cover-index strong{font-size:clamp(18px,1.6vw,26px);font-weight:600;line-height:1.5;transition:color .3s}
.cover-index a[aria-current="page"]{border-bottom-color:var(--accent-ink)}
.cover-index a[aria-current="page"] strong{color:var(--accent-ink)}
.cover-index a:hover{border-bottom-color:var(--accent-2-ink)}
.cover-index a:hover strong{color:var(--accent-2-ink)}
body.ready .work-cover .work-lead,body.ready .cover-index{animation:up2 1.3s var(--ease) both}
body.ready .work-cover .work-lead{animation-delay:.35s}
body.ready .cover-index{animation-delay:.5s}
/* the whole logo in outline behind the cover, never cropped or faded (owner): as wide as the page's
   content, in the middle of the cover */
.work-cover .logo-stroke{top:0;bottom:0;inset-inline:0;-webkit-mask:none;mask:none}
.work-cover .logo-stroke svg{width:108vw;inset-inline-end:auto;left:50%;top:calc(50% + 36px);transform:translate(-50%,-50%)}
/* the disciplines: open slides on the glass, a hairline between them */
.work-directory{padding-block:clamp(48px,7vw,112px) var(--s9)}
/* the sheet runs straight into the footer: no gap, and the footer's hairline is the only line between */
#main:has(>.stack>.sheet){padding-bottom:0}
.stack>.hero+.sheet::before{border-bottom:0}
/* ═════ clients: full-width slides on the first screen, the logos on the glass sheet ═════ */
.clients-sheet{padding-block:clamp(48px,7vw,112px) var(--s9)}
.sheet-head{padding-top:0}
/* the slides fill the screen edge to edge, under the header; over each image only the brand's name, and
   at the bottom the count, the 5-second line and the arrows. Text sits on the photo in white, over a soft
   shade at the bottom, in both themes */
.client-show{min-height:100svh;padding-block:0 clamp(24px,5vh,56px);align-items:flex-end;background:#0d1011;color:#fff}
.cs-stage{position:absolute;inset:0;overflow:hidden}
.cs-slide{position:absolute;inset:0;opacity:0;visibility:hidden}
.cs-slide::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to top,rgba(8,10,11,.78),rgba(8,10,11,.18) 46%,rgba(8,10,11,0) 70%)}
.cs-img{position:absolute;inset:0 -6%;translate:calc(var(--cs-dir,1) * 4%) 0}
.cs-img img{display:block;width:100%;height:100%;object-fit:cover}
.cs-cap{position:absolute;z-index:1;inset-inline:0;bottom:calc(clamp(24px,5vh,56px) + 40px + clamp(20px,4vh,44px))}
.cs-name{font-size:clamp(48px,7vw,128px);line-height:1.2;font-weight:700;margin:0;color:#fff;translate:calc(var(--cs-dir,1) * 56px) 0;opacity:0}
body.en .cs-name{letter-spacing:-.02em;line-height:1.02}
.cs-name a{color:inherit;text-decoration:none}
.cs-name a:hover{color:var(--accent-2)}
/* a slide fades in from one side (--cs-dir, set by the script) while the last fades out to the other; the
   image drifts a little and settles from a slight zoom, the name follows it */
.cs-slide.is-active{opacity:1;visibility:visible;transition:opacity 1s var(--ease)}
.cs-slide.is-leaving{opacity:0;visibility:visible;transition:opacity .9s ease}
.cs-slide.is-active .cs-img{translate:0 0;transition:translate 1.4s var(--ease)}
.cs-slide.is-leaving .cs-img{translate:calc(var(--cs-dir,1) * -4%) 0;transition:translate 1.2s var(--ease)}
.cs-slide.is-active .cs-img img{animation:cs-zoom 6s var(--ease) both}
@keyframes cs-zoom{from{scale:1.08}}
.cs-slide.is-active .cs-name{opacity:1;translate:0 0;transition:opacity .9s var(--ease) .15s,translate 1.1s var(--ease) .15s}
.cs-slide.is-leaving .cs-name{opacity:0;translate:calc(var(--cs-dir,1) * -56px) 0;transition:opacity .5s ease,translate .8s var(--ease)}
/* the bar */
.client-show .hero-in{position:relative;z-index:2;align-items:stretch}
.cs-bar{display:flex;align-items:center;gap:var(--s4)}
.cs-count{font-size:14px;color:rgba(255,255,255,.7)}
.cs-count b{color:var(--accent);font-weight:500}
.cs-progress{position:relative;width:clamp(80px,10vw,160px);height:1px;background:rgba(255,255,255,.25);overflow:hidden}
.cs-progress i{position:absolute;inset:0;background:var(--accent);transform-origin:0 50%;scale:0 1}
[dir="rtl"] .cs-progress i{transform-origin:100% 50%}
.cs-progress i.run{animation:cs-fill 5s linear forwards}
@keyframes cs-fill{to{scale:1 1}}
.client-show:hover .cs-progress i,.client-show:focus-within .cs-progress i,.client-show.is-off .cs-progress i{animation-play-state:paused}
.cs-arrows{display:flex;gap:8px;margin-inline-start:auto}
.client-show .ibtn{color:#fff;border-color:rgba(255,255,255,.35)}
.client-show .ibtn:hover{border-color:var(--accent-2)}
@media (prefers-reduced-motion:reduce){.cs-img,.cs-name,.cs-slide.is-active .cs-img,.cs-slide.is-active .cs-name,.cs-slide.is-leaving .cs-img,.cs-slide.is-leaving .cs-name{transition:none;translate:none}.cs-slide.is-active .cs-img img{animation:none}}
/* one discipline on the sheet: its number, count, name and lead, then the filters and the projects */
.work-list{padding-block:clamp(48px,7vw,112px) var(--s9)}
.list-head{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s3);margin-bottom:var(--s6)}
.list-head h2{font-size:clamp(34px,4.6vw,76px);line-height:1.25;font-weight:700;margin:0}
.list-head h2 sup{font-size:.3em;color:var(--accent-ink);font-weight:500;vertical-align:top;margin-inline-start:.25em}
body.en .list-head h2{letter-spacing:-.02em;line-height:1.04}
.list-head .work-lead{margin:0}
.list-head .case-back{margin:0 0 var(--s2)}
/* moving between disciplines: the old works fade out, the new ones rise in; the cover never moves */
.work-page.swap-out>*{opacity:0;transition:opacity .18s ease}
.work-page.swap-in>*{animation:up2 .9s var(--ease) both}
.work-sections{display:block}
.work-section,.work-section:hover{position:relative;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:center;gap:clamp(28px,5vw,96px);
  padding:clamp(36px,5vw,80px) 0;background:none;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}
.work-section:first-child{border-top:0;padding-top:0}
.work-section:last-child{padding-bottom:0}
.work-section:nth-child(even) .section-caption{order:1}
.section-caption{padding:0;display:flex;flex-direction:column;align-items:flex-start;gap:var(--s3)}
.section-no{color:var(--accent-ink);font-size:14px}
.section-caption h2{font-size:clamp(30px,3.6vw,60px);line-height:1.25;margin:0}
.section-caption p{font-size:clamp(15px,1.15vw,18px);max-width:34ch}
.section-meta{display:flex;align-items:center;gap:var(--s4);margin-top:var(--s3)}
.section-arrow{position:static;translate:none;flex:none}
.section-samples{height:auto;margin:0;gap:10px}
.section-sample{aspect-ratio:4/5;border-radius:2px}
/* the line above a discipline catches the same reflection as the glass edges */
.work-section::after{content:"";position:absolute;top:-1px;left:0;right:0;height:1px;pointer-events:none;
  background:radial-gradient(260px 100% at var(--rx,-9999px) 50%,var(--accent-2-ink),transparent 72%) no-repeat;opacity:var(--ra,0);transition:opacity .35s}
.work-section:first-child::after{display:none}
@media (max-width:820px){
  .work-cover .hero-in{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto}
  .cover-head{grid-column:1}
  /* phones: a little higher, in the gap between the title and the lead */
  .work-cover .logo-stroke svg{top:42%}
  .work-section,.work-section:hover{grid-template-columns:minmax(0,1fr);gap:var(--s5)}
  .work-section:nth-child(even) .section-caption{order:0}
  .section-samples{gap:6px}
}
/* ═════ a project as a layer of clean glass over the page it came from ═════
   The page underneath stays where it was, faintly visible through the glass; the layer scrolls on its
   own and sits under the header. It zooms in from the clicked work and back out to it. The gutter is
   kept so the page underneath does not shift when its scroll is locked. */
html{scrollbar-gutter:stable}
html.pj-open{overflow:hidden}
.pj-layer{position:fixed;inset:0;z-index:35;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-timeline:--pjs block;
  background:color-mix(in srgb,var(--bg) 64%,transparent);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);
  animation:pj-in .6s var(--ease) backwards}
html.lite .pj-layer{background:color-mix(in srgb,var(--bg) 86%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.pj-main{padding-top:72px}
.pj-layer.closing{animation:pj-out .45s var(--ease) forwards;pointer-events:none}
@keyframes pj-in{from{opacity:0;transform:scale(.88)}}
@keyframes pj-out{to{opacity:0;transform:scale(.9)}}
/* the next project replaces the last one inside the layer */
.pj-swap{animation:up2 .8s var(--ease) both}
/* the closing band's window shows the layer's glass, not a solid strip */
.pj-layer .band:has(>.stage)::before{display:none}
@media (prefers-reduced-motion:reduce){.pj-layer,.pj-layer.closing,.pj-swap{animation:none}}
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:scroll()){
    /* first slide: the words recede and dim, the diamonds drift up slowly, the glow fades back */
    .stack>.hero .hero-in{animation:hero-recede linear both;animation-timeline:scroll(root);animation-range:0 100svh}
    /* translate and fade only: scaling text with the scroll renders it soft */
    @keyframes hero-recede{to{translate:0 10svh;opacity:.15}}
    /* the home's stage keeps moving under the page, slower than it: up a little while the card comes
       over the hero, then up again over the last screen, so its peaks come back above the footer */
    /* only the diamonds move — the drawing for the hero range, its frame for the end range */
    .stage-home .diamonds svg{animation:stage-up linear both;animation-timeline:scroll(root);animation-range:0 100svh}
    @keyframes stage-up{to{translate:0 -12svh}}
    .stage-home .diamonds{animation:stage-end linear both;animation-timeline:scroll(root);animation-range:calc(100% - 100svh) 100%}
    @keyframes stage-end{to{translate:0 var(--de,-20svh)}}
    /* a project's band copy rises into place over the last screen */
    .band>.stage .diamonds{animation:stage-settle linear both;animation-timeline:scroll(root);animation-range:calc(100% - 100svh) 100%}
    @keyframes stage-settle{from{translate:0 16svh}}
    /* clients: as the logos rise, the slides behind them dim and come a little closer */
    .stack>.client-show .cs-stage{animation:cs-recede linear both;animation-timeline:scroll(root);animation-range:0 100svh}
    @keyframes cs-recede{to{opacity:.35;scale:1.05}}
    /* inside a project layer the band follows the layer's own scroll */
    .pj-layer .band>.stage .diamonds{animation-timeline:--pjs}
    /* each work comes up out of the glass as it appears and drifts off as it leaves (translate and fade
       only, so its text stays sharp) */
    .masonry .card{animation:card-io linear both;animation-timeline:--card-tl;animation-range:entry 0% exit 100%}
    @keyframes card-io{0%{opacity:0;translate:0 80px}24%{opacity:1;translate:0 0}78%{opacity:1;translate:0 0}100%{opacity:.3;translate:0 -60px}}
    /* the works float over the glass card: every column moves a little faster than the glass behind it,
       each at its own pace (middle fastest), so they read as a layer above it */
    .masonry{view-timeline:--works block}
    .masonry .mcol{--d:50px;animation:col-depth linear both;animation-timeline:--works;animation-range:cover}
    .masonry .mcol:nth-child(2){--d:90px}
    .masonry .mcol:nth-child(3){--d:30px}
    @keyframes col-depth{from{translate:0 var(--d)}to{translate:0 calc(var(--d) * -1)}}
    /* the logo band and the closing words come in with the scroll */
    /* the logo strip is a layer of its own: it crosses the screen faster than the page (so it slides
       over the works card's bottom edge), and its logos shift sideways with the scroll on top of their
       own running motion */
    .mq{view-timeline:--mq block;position:relative;z-index:2}
    .mq-shell{animation:mq-float linear both;animation-timeline:--mq;animation-range:cover}
    @keyframes mq-float{0%{translate:0 120px;opacity:0}15%{opacity:1}100%{translate:0 -120px}}
    .mq-group{animation:mq-slide linear both;animation-timeline:--mq;animation-range:cover}
    @keyframes mq-slide{from{translate:0 0}to{translate:-12vw 0}}
    .band{view-timeline:--band block}
    .band-in{animation:band-in linear both;animation-timeline:--band;animation-range:entry 10% entry 90%}
    @keyframes band-in{from{translate:0 90px;opacity:0}}
    /* about: the portrait lags behind the page, the logo and role drift off first */
    .about-cover{view-timeline:--cover block}
    .ac-photo{animation:ac-photo linear both;animation-timeline:--cover;animation-range:exit 0% exit 100%}
    @keyframes ac-photo{to{translate:0 22%}}
    .ac-brand{animation:ac-brand linear both;animation-timeline:--cover;animation-range:exit 0% exit 70%}
    @keyframes ac-brand{to{translate:0 30%;opacity:0}}
    /* the works directory: each discipline is a slide — its words rise in as it comes up, and its three
       works float over the glass at their own pace (the middle fastest) while their images drift in the
       frames */
    .work-section{view-timeline:--ws block}
    .section-caption{animation:ws-in linear both;animation-timeline:--ws;animation-range:entry 0% entry 100%}
    @keyframes ws-in{from{opacity:0;translate:0 70px}}
    .section-sample{--d:36px;animation:col-depth linear both;animation-timeline:--ws;animation-range:cover}
    .section-sample:nth-child(2){--d:72px}
    .section-sample:nth-child(3){--d:18px}
    .section-sample:not(.logo-sample) img{animation:card-drift linear both;animation-timeline:--ws;animation-range:cover}
    /* a discipline's projects move like the home's works: each comes up out of the glass and drifts off,
       and each column floats at its own pace (the two added together) */
    .portfolio-grid .card{--d:30px;animation:card-io linear both,col-depth linear both;animation-composition:replace,add;
      animation-timeline:--card-tl,--card-tl;animation-range:entry 0% exit 100%,cover}
    .portfolio-grid .card:nth-child(4n+2){--d:64px}
    .portfolio-grid .card:nth-child(4n+3){--d:16px}
    .portfolio-grid .card:nth-child(4n+4){--d:46px}    /* work pages: the outlined letters drift behind the title */
    .logo-stroke svg{animation:ls-drift linear both;animation-timeline:scroll(root);animation-range:0 100svh}
    @keyframes ls-drift{to{translate:0 12svh}}
  }
}
@keyframes rise2{from{transform:translateY(110%);opacity:0}}
@keyframes up2{from{opacity:0;transform:translateY(24px)}}
/* page changes fade only: moving #main or the footer would make the fixed stage inside them jump */
@keyframes pg-out{to{opacity:0}}
@keyframes pg-out-b{to{opacity:0}}
@keyframes pg-in{from{opacity:0}}
@keyframes pg-in-b{from{opacity:0}}
@keyframes vt-blur-out{to{opacity:0}}
@keyframes vt-blur-in{from{opacity:0}}
@keyframes vt-out2{to{opacity:0}}
@keyframes vt-in2{from{opacity:0;transform:translateY(24px)}}
#main.leaving{filter:none}

/* the secondary colour, ember orange: the numbers and counts, and everything that answers the pointer (the light on the outlines, the reflection on the lines, the light on the hero title) — the teal stays the ground */
.cover-index .num:first-child,.section-no,.list-head h2 sup,.ptitle h1 sup,.cs-count b,.chip[aria-pressed="true"] .n{color:var(--accent-2-ink)}

/* ── hover is orange (owner, 27 Oct): every line or edge that appears under the pointer — header links, tabs,
   buttons, arrows, the footer links, the way back, the next project — while what stays (the open page, the
   chosen tab, focus) keeps the teal ── */
.nav a:not([aria-current="page"])::after{background:var(--accent-2)}
.chip:not([aria-pressed="true"]):hover::after{content:"";position:absolute;inset-inline:0;bottom:0;height:2px;background:var(--accent-2-ink)}
.foot a:not(.totop)::after{background:var(--accent-2)}
.case-back:hover{color:var(--accent-2-ink)}
.next:hover{border-color:var(--accent-2-ink)}
/* the closing band has no line on top: it crossed the diamonds rising behind it (owner) */
.band-in.glass{border-top:0}
/* the logo strip: a logo with a project on the site opens it; on touch screens the logos can't be selected,
   dragged or long-pressed (iOS lifted a ghost copy and selection handles over them) */
.mq-i,.mq-i img{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
.mq-i a{position:relative;display:flex;align-items:center;justify-content:center;height:100%;-webkit-tap-highlight-color:transparent}
.mq-i a::after{content:"";position:absolute;inset-inline:15%;bottom:2px;height:2px;background:var(--accent-2);transform:scaleX(0);transition:transform .45s var(--ease)}
.mq-i a:hover::after,.mq-i a:focus-visible::after{transform:scaleX(1)}

/* ── second batch of 27 Oct ── */
/* buttons are modern rectangles with the theme's soft corners, no capsules (owner): text buttons, icon
   buttons, arrows, back to top, the strip's pause, the splash's enter, the tool tags, the toast */
.btn,.ibtn,.totop,.mq-toggle,.go,.section-arrow,.intro-enter,.tool,.toast{border-radius:var(--r)}
/* the logo strip: the hover line sits under the logo, clear of it */
.mq-i{height:auto}
.mq-i a{padding-block:8px 16px}
.mq-i a::after{bottom:4px}
/* the design viewer opens without a ring on its close button (the window itself takes the focus) */
.image-window:focus,.image-window:focus-visible{outline:none}
/* a project layer keeps its width while its scrollbar comes and goes */
.pj-layer{scrollbar-gutter:stable}
/* contact (owner, 27 Oct: «الفورم يكون على كل الصفحة كارت زجاجي شفاف نسبي الشعار خلفه يبان», then «سشن كامل مثل
   الفوتر والهيدر… على عرض الشاشة»): the page is one glass section across the full width of the screen, square
   edges and a hairline top and bottom like the header and footer — the words on one side, the form on the other,
   inside the page container — over the logo in outline, which stays on screen behind it (sticky, centred under
   the header) while the form scrolls. The logo writes itself in from right to left as the page opens, and the
   pointer's light shows through the glass as a soft glow. */
.contact-page{position:relative;isolation:isolate;overflow:clip;display:grid}
.contact-page>*{grid-area:1/1;min-width:0}
/* the logo shares the card's grid cell, so it sticks only while the page lasts and fades out at its end */
.contact-page .logo-stroke{position:sticky;inset:auto;top:72px;z-index:-1;align-self:start;height:calc(100svh - 72px);
  -webkit-mask:linear-gradient(#000 calc(100% - 140px),transparent);mask:linear-gradient(#000 calc(100% - 140px),transparent)}
.contact-page .logo-stroke svg{width:108vw;inset-inline-end:auto;left:50%;top:50%;transform:translate(-50%,-50%);animation:none}
.contact-page .logo-stroke path{stroke-opacity:.7;stroke-width:1.4px}
.contact-page .logo-stroke svg.glint path{stroke-width:3px}
.contact-page .logo-stroke svg:not(.glint){-webkit-mask:linear-gradient(to left,#000 45%,transparent 55%) 0 0/220% 100% no-repeat;mask:linear-gradient(to left,#000 45%,transparent 55%) 0 0/220% 100% no-repeat;
  animation:ls-write 2.6s cubic-bezier(.45,0,.2,1) .25s both}
@keyframes ls-write{from{-webkit-mask-position:0 0;mask-position:0 0}to{-webkit-mask-position:100% 0;mask-position:100% 0}}
.contact-card{position:relative;margin-block:clamp(24px,3vw,48px) clamp(48px,7vw,112px);border-block:1px solid var(--line);border-radius:0;
  background:color-mix(in srgb,var(--bg) 40%,transparent);-webkit-backdrop-filter:blur(4px) saturate(1.4);backdrop-filter:blur(4px) saturate(1.4);
  box-shadow:0 30px 80px -50px rgba(0,0,0,.55)}
:root[data-theme="light"] .contact-card{background:color-mix(in srgb,var(--bg) 52%,transparent);box-shadow:0 30px 80px -50px rgba(0,0,0,.16)}
/* phones keep a light blur here (unlike the rest of the lite look): without it the outline crossed the labels sharply */
html.lite .contact-card{background:color-mix(in srgb,var(--bg) 56%,transparent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.contact-grid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);align-items:start;min-height:calc(100svh - 72px - clamp(24px,3vw,48px) - 2px)}
.contact-intro{position:sticky;top:72px;display:flex;flex-direction:column;align-items:flex-start;gap:var(--s3);padding-block:clamp(32px,4.5vw,72px);padding-inline-end:clamp(24px,4vw,64px)}
.contact-intro h1{font-size:clamp(40px,5.2vw,88px);line-height:1.2;font-weight:700;margin:0}
body.en .contact-intro h1{letter-spacing:-.02em;line-height:1.04}
.contact-intro p{margin:0;color:var(--muted);font-size:var(--fs-lead);line-height:1.8;max-width:34ch}
.contact-grid>.contact-form-wrap{max-width:none;padding-block:clamp(32px,4.5vw,72px);padding-inline-start:clamp(24px,4vw,64px);border-inline-start:1px solid var(--line);align-self:stretch}
/* fields: a single line under each, the label small above; the message keeps a light frame */
.contact-card .fld input,.contact-card .fld select{min-height:44px;padding:10px 0;border:0;border-bottom:1px solid var(--line-2);border-radius:0;background-color:transparent!important;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.contact-card .fld select{padding-inline-start:26px;background-position:4px 50%,10px 50%}
body.en .contact-card .fld select{padding-inline:0 26px;background-position:calc(100% - 10px) 50%,calc(100% - 4px) 50%}
.contact-card .fld textarea{border:1px solid var(--line-2);border-radius:var(--r);background-color:transparent!important;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.contact-card .fld input:hover,.contact-card .fld select:hover,.contact-card .fld textarea:hover{border-color:var(--accent-2-ink)}
.contact-card .fld input:focus,.contact-card .fld select:focus,.contact-card .fld textarea:focus{border-color:var(--accent-ink);box-shadow:none;background-color:transparent!important}
/* «what do you need?»: a list in two columns, each with a small square that fills when chosen */
.contact-card .pills{display:grid;grid-template-columns:1fr 1fr;gap:0 var(--s5);margin-top:var(--s2)}
.contact-card .pillc span,.contact-card .pillc input:not(:checked)+span,.contact-card .pillc input:checked+span,html.lite .contact-card .pillc input:not(:checked)+span{display:flex;align-items:center;gap:12px;min-height:46px;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none;color:var(--muted);font-size:15px;-webkit-backdrop-filter:none;backdrop-filter:none}
.contact-card .pillc span::before{content:"";flex:none;width:14px;height:14px;border:1px solid var(--line-2);border-radius:3px;transition:border-color .25s,background .25s,box-shadow .25s}
.contact-card .pillc:hover span{color:var(--ink)}
.contact-card .pillc:hover span::before{border-color:var(--accent-2-ink)}
.contact-card .pillc input:checked+span{color:var(--ink)}
.contact-card .pillc input:checked+span::before{background:var(--accent);border-color:var(--accent);box-shadow:inset 0 0 0 3px var(--bg)}
.contact-card .pillc input:focus-visible+span{outline:none}
.contact-card .pillc input:focus-visible+span::before{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:900px){.contact-grid{grid-template-columns:minmax(0,1fr);min-height:0}.contact-intro{position:static;padding-inline-end:0;padding-bottom:var(--s5)}.contact-grid>.contact-form-wrap{border-inline-start:0;border-top:1px solid var(--line);padding-inline-start:0;padding-top:var(--s5)}}
@media (prefers-reduced-motion:reduce){.contact-page .logo-stroke svg:not(.glint){animation:none;-webkit-mask:none;mask:none}}
@media (max-width:520px){.contact-card .pills{grid-template-columns:1fr}}

/* ── phones: the swipe-up cue (owner, 21 Nov 2026: «علامة سوايب تنبيه هزازة… بالنص… تروح من يسوي سكرول للاعلى») ──
   A full-screen first screen (the home hero, the works cover, the clients' slides) shows nothing of what lies
   below, so on phones three thin up-chevrons sit at its bottom centre, in the cover's own bottom space. Every 5s
   a light climbs them from the bottom up (teal, teal, then ember on the last, like the counts above it) and the
   stack gives a soft double nudge upward, then rests. It leaves with the visitor's first scroll and is not drawn
   again that visit (#app-js: cue()). Decoration only: aria-hidden, no pointer, no focus. Open chevrons only,
   never a diamond. Transform and opacity only (phones run the lite look). */
.scroll-cue{display:none;position:absolute;z-index:3;left:0;right:0;margin-inline:auto;width:16px;height:22px;
  bottom:10px;bottom:max(clamp(6px,1svh,10px),calc(env(safe-area-inset-bottom,0px) * .5));
  pointer-events:none;-webkit-user-select:none;user-select:none;
  --cue-rest:var(--ink);--cue-rest-o:.3;--cue-lit:var(--accent-ink);--cue-tip:var(--accent-2-ink);
  transition:opacity .35s ease,translate .5s var(--ease)}
/* phones in portrait only (change 600px to 900px to include tablets); never under the splash or a project layer */
@media (max-width:600px) and (orientation:portrait) and (hover:none) and (pointer:coarse){
  html:not(.pj-open) body.ready .stack>.hero>.scroll-cue{display:block}
}
/* the works cover can run past a short screen: the cue then keeps to the screen's bottom edge, but never closer
   than 6px to the index (the second term repeats the cover's padding-bottom: keep the two equal); where even
   that would cut it, fitCue() (#app-js) hides it, since the cut-off index already shows there is more */
.work-cover>.scroll-cue{top:max(calc(100svh - 22px - max(clamp(6px,1svh,10px),calc(env(safe-area-inset-bottom,0px) * .5))),calc(100% - clamp(28px,6vh,72px) + 6px))}
.stack>.hero>.scroll-cue.cue-off{visibility:hidden}
/* short phones (iPhone SE and the like): the works cover is tightened so it fits the screen with room for the cue
   (it also lets the last index row show, which a sticky cover taller than the screen never did) */
@media (max-width:600px) and (orientation:portrait) and (hover:none) and (pointer:coarse) and (max-height:700px){
  .work-cover{padding-top:calc(72px + clamp(12px,3svh,28px))}
  .cover-index a{padding-block:clamp(7px,1.2svh,12px)}
}
/* home: on short phones the middle stage diamond's bottom tip reaches the cue; a soft patch of the page colour
   behind the cue lets that tip pass behind it, so the two never read as one closed diamond */
.stack>.hero:not(.work-cover):not(.client-show)>.scroll-cue::before{content:"";position:absolute;inset:-10px -14px;z-index:-1;
  background:radial-gradient(closest-side,var(--bg) 60%,transparent)}
/* the clients' slides are photos under a dark shade in both themes (like the slide bar's count and line) */
.client-show>.scroll-cue{--cue-rest:#fff;--cue-rest-o:.42;--cue-lit:#5fd8cc;--cue-tip:var(--accent-2)}
/* the first scroll: it rises with the page and fades as the glass sheet slides over it */
.scroll-cue.is-gone{opacity:0;translate:0 -10px}
/* comes in once the cover's own entrance has settled, then nudges every 5s */
.cue-in{position:absolute;inset:0;animation:cue-in .8s var(--ease) 2s backwards,cue-nudge 5s linear 2.8s infinite}
.scroll-cue svg{display:block;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}
/* at rest: the three chevrons, dim */
.cue-base{width:16px;height:22px;color:var(--cue-rest);opacity:var(--cue-rest-o)}
/* the light: a lit copy over each chevron, bottom first (--i), the top one in ember */
.cue-in>i{position:absolute;left:0;top:16px;--i:0;color:var(--cue-lit);opacity:0;
  animation:cue-lit 5s cubic-bezier(.22,1,.36,1) calc(2.8s + var(--i) * 140ms) infinite}
.cue-in>i:nth-of-type(2){top:8px;--i:1}
.cue-in>i:first-of-type{top:0;--i:2;color:var(--cue-tip)}
.cue-in>i svg{width:16px;height:6px}
@keyframes cue-in{from{opacity:0;translate:0 6px}}
/* each light rises 2px into place, holds, then fades on upward: it travels the way the finger should go */
@keyframes cue-lit{0%{opacity:0;transform:translateY(2px)}5%,12%{opacity:1;transform:none}26%,100%{opacity:0;transform:translateY(-2px)}}
/* the nudge (هزازة): up 3px, back, up 1.5px, back, as the ember lights; then still until the next round */
@keyframes cue-nudge{
  0%,9%{transform:none;animation-timing-function:cubic-bezier(.33,0,.2,1)}
  12%{transform:translateY(-3px);animation-timing-function:cubic-bezier(.4,0,.6,1)}
  15.5%{transform:none;animation-timing-function:cubic-bezier(.33,0,.2,1)}
  18.5%{transform:translateY(-1.5px);animation-timing-function:cubic-bezier(.4,0,.6,1)}
  21.5%,100%{transform:none}}
/* reduced motion: a still grade from dim to ember (bottom .35, middle .675, top 1); it still leaves on the first scroll, at once */
@media (prefers-reduced-motion:reduce){
  .cue-in,.cue-in>i{animation:none}
  .cue-in>i{opacity:calc(.35 + var(--i) * .325)}
  .scroll-cue{transition:none}
}
