/* ==========================================================================
   Editorial portfolio deck. The whole page reads like a printed portfolio:
   each section is a page with a running header ("Portfolio" + the section),
   full-bleed colour pages (signal red, black, pale mint paper), tall condensed
   display type (Anton), small [bracketed] labels, script accents (Pinyon
   Script) and hairline spec tables.

   Loaded last. Three layers:
     1. the look — colours, type, labels, tables — on every screen size;
     2. the phone layout (max-width: 767px) — pages stacked one under another;
     3. the wide layout (min-width: 768px) — each section laid out as a
        landscape page, the way the reference deck is.
   ========================================================================== */

:root {
  --d-red: #d02b2a;
  --d-wine: #6e1110;
  --d-paper: #f3ede1;
  --d-paper-hi: #fbf8f1;
  --d-ink: #0b0b0b;
  --d-cream: #f3ede1;
  --d-display: Anton, Oswald, "Arial Narrow", sans-serif;
  --d-script: "Pinyon Script", "Snell Roundhand", cursive;
  --d-spring: cubic-bezier(.32, .72, 0, 1);
  --d-pad: 3.4vw;
  --d-head-col: calc(31vw - var(--d-pad));
  --d-bar-h: 60px;
  --accent-color: #d02b2a;
}

/* ==========================================================================
   1. The look — every screen size
   ========================================================================== */

body { background-color: var(--d-paper); }
html { scroll-padding-top: calc(var(--d-bar-h) + 4px); }
.divider { display: none; }

/* ---------------------------------------------------------------- opening splash */
.intro-overlay { background: var(--d-red); color: var(--d-ink); }
.intro-grain { mix-blend-mode: multiply; opacity: .12; }
.intro-top,
.intro-bottom { color: var(--d-ink); font-weight: 700; }
.intro-top b,
.intro-count small { color: var(--d-cream); }
.intro-dot { background: var(--d-ink); }
.intro-name { font-family: var(--d-display); font-weight: 400; letter-spacing: 0; line-height: .86; }
.intro-line-2 { color: var(--d-cream); }
.intro-roles { color: var(--d-ink); }
.intro-roles span + span::before { color: var(--d-cream); }
.intro-count { font-family: var(--d-display); font-weight: 400; color: var(--d-ink); }
.intro-progress { background: rgba(0, 0, 0, .15); }
.intro-progress-bar { background: var(--d-ink); }

/* ---------------------------------------------------------------- running header
   Fixed band: "Portfolio" and the section you're in (Giza time on the cover).
   Transparent over the cover, frosted paper once the page moves. */
.m-bar {
  position: fixed;
  z-index: 25;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--d-bar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 100px 0 var(--d-pad);
  display: grid;
  grid-template-columns: var(--d-head-col) 1fr;
  gap: 8px;
  align-items: center;
  font-family: var(--headings);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--d-ink);
  pointer-events: none;
  transition: background-color .35s ease, box-shadow .35s ease;
}
.m-bar.is-scrolled {
  pointer-events: auto;
  background-color: rgba(243, 237, 225, .9);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .14);
}
.m-bar-brand { font: inherit; letter-spacing: inherit; color: inherit; text-decoration: none; }
.m-bar-section { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The site nav rides in the same band (fixed, transparent, black type). */
.navbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: var(--d-bar-h);
  min-height: 0;
  margin-top: env(safe-area-inset-top);
  mix-blend-mode: normal;
  pointer-events: none;
}
.navbar .menu-button,
.navbar .nav-links,
.navbar.nav-open .nav-menu-wrapper,
.navbar.nav-open .w-nav-overlay { pointer-events: auto; }

/* ---------------------------------------------------------------- page heads + type */
.section-number,
.m-page-head {
  display: grid;
  grid-template-columns: var(--d-head-col) 1fr;
  gap: 8px;
  margin: 0 0 30px;
  font-family: var(--headings);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: inherit;
}
.section-number::before { content: "Portfolio"; }
.btw-head .section-number { color: var(--d-cream); }

.about-me-title,
.showreel-title,
.btw-title,
.btw-step h4,
.btw-bridge-line,
.sp-title,
.hero-text,
.editorial-break-text,
.signoff-headline {
  font-family: var(--d-display);
  font-weight: 400;
  font-variation-settings: normal;
  letter-spacing: 0;
  text-transform: uppercase;
}
.about-me-title { color: var(--d-ink); line-height: .9; }
.about-me-title.arabic-text { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; font-weight: 900; }
#About .about-me-section .about-me-title:not(.arabic-text)::before { content: "["; }
#About .about-me-section .about-me-title:not(.arabic-text)::after { content: "]"; }

/* Script accent riding just under a display title. */
.handwritten-inline {
  display: block;
  position: relative;
  top: 0;
  margin: -.05em 0 0 14%;
  font-family: var(--d-script);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--d-red);
  transform: rotate(-4deg);
}
.footer-title .handwritten-inline { display: inline-block; margin: 0 0 0 10px; font-size: 26px; }

.contact-lede,
.process-desc,
.faq-item-answer,
.btw-lede,
.btw-step p { text-transform: none; }

/* ---------------------------------------------------------------- cover */
#Home { background-color: var(--d-red); }
.hero-section-text-holder > .perspective:first-child .hero-section-small-text { font-size: 0; }
.hero-section-text-holder > .perspective:first-child .hero-section-small-text::before {
  content: "[ The Designer ]";
  font-family: var(--paragraph);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
}
.hero-text { color: var(--d-ink); line-height: .86; }
.m-sign {
  display: block;
  font-family: var(--d-script);
  line-height: 1;
  color: var(--d-wine);
  transform: rotate(-6deg);
  pointer-events: none;
}
.hero-section-text-holder .hero-text-wrapper {
  flex-wrap: nowrap;
  gap: 8px;
  border-top: 2px solid var(--d-ink);
}
.hero-section-text-holder .hero-text-wrapper .hero-section-small-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
}
/* The two closing lines become bracketed columns, like a cover's credits. */
.hero-section-images-wrapper > .hero-text-wrapper { align-items: flex-start; }
.hero-section-images-wrapper > .hero-text-wrapper .hero-section-small-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .02em;
}
.hero-section-images-wrapper > .hero-text-wrapper .hero-section-small-text::before {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: none;
}
.hero-section-images-wrapper > .hero-text-wrapper > :first-child .hero-section-small-text::before { content: "[ Based in ]"; }
.hero-section-images-wrapper > .hero-text-wrapper > :last-child .hero-section-small-text::before { content: "[ Motto ]"; }

/* ---------------------------------------------------------------- contents page */
.m-index { display: block; }
.m-index .m-page-head { margin: 0; }
.m-index ol { list-style: none; margin: 0; padding: 0; }
.m-index a {
  display: flex;
  gap: .24em;
  font-family: var(--d-display);
  line-height: .94;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, transform .3s var(--d-spring);
}
.m-index a b { font-weight: 400; }
.m-index a:hover,
.m-index a:active { transform: translateX(8px); }

/* ---------------------------------------------------------------- about */
[data-about-bio] {
  font-family: var(--paragraph);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #1d1d1d;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- experience (black page) */
#About .container-extra-small {
  position: relative;
  background-color: var(--d-ink);
  color: var(--d-cream);
}
#About .container-extra-small::after {
  content: "the journey";
  display: block;
  font-family: var(--d-script);
  line-height: 1;
  text-align: right;
  color: var(--d-cream);
  transform: rotate(-5deg);
  pointer-events: none;
}
.work-exp-head { flex-direction: column; align-items: flex-start; gap: 0; }
.work-exp-head .about-me-title { color: var(--d-cream); margin-bottom: 8px; }
.work-exp-head .footer-link {
  font-family: var(--paragraph);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--d-red);
}
.work-exp-head .footer-link::before { content: "[ "; }
.work-exp-head .footer-link::after { content: " ]"; }
.process-detail-wrapper > .divider { display: none; }
.process-block { background: transparent; }
.process-block .small-title {
  font-family: var(--paragraph);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--d-red);
  margin-bottom: 7px;
}
.process-block .small-title::before { content: "[ "; }
.process-block .small-title::after { content: " ]"; }
.process-detail { color: var(--d-cream); line-height: 1.2; }
.process-desc { line-height: 1.55; color: rgba(243, 237, 225, .62); }
.process-icon { display: none; }

/* ---------------------------------------------------------------- gallery: red title page */
#Work .project-section-title-holder {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--d-red);
  color: var(--d-ink);
}
#Work .project-section-title-holder::after {
  content: "Eyad Ayman";
  position: relative;
  z-index: 4;
  font-family: var(--headings);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
#Work .color-palette-holder { display: none; }
#Work .section-number { position: relative; z-index: 4; }
#Work .project-section-title-holder > div.reveal {
  position: relative;
  z-index: 2;
  margin: auto 0;
  text-align: center;
}
#Work .about-me-title { line-height: .84; margin: 0; }
#Work .handwritten-inline { color: var(--d-wine); }
.m-scatter { display: block; }
.m-scatter img {
  position: absolute;
  z-index: 1;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}
html[data-theme="dark"] .m-scatter img { filter: invert(1) hue-rotate(180deg); }
.m-lede {
  display: block;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  font-family: var(--paragraph);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-transform: none;
}

/* Gallery tiles: [ Source ] label over the title. */
.project-caption { flex-direction: column-reverse; align-items: flex-start; gap: 4px; margin-top: 8px; }
.project-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
  letter-spacing: .02em;
}
.project-index {
  margin-left: 0;
  font-family: var(--paragraph);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--d-red);
}
.project-index::before { content: "[ "; }
.project-index::after { content: " ]"; }
.behance-cta-wrap .download-button {
  background: var(--d-ink);
  border-color: var(--d-ink);
  color: #fff;
}
.behance-cta-wrap .download-button:hover { background: var(--d-red); border-color: var(--d-red); }

/* ---------------------------------------------------------------- motion (black page) */
#Motion { background-color: #000; color: var(--d-cream); }
#Motion > .container { background-color: #000; }
html[data-theme="dark"] #Motion > .container { filter: invert(1) hue-rotate(180deg); }
#Motion .project-section-title-holder { margin-bottom: 0; }
#Motion .about-me-title { color: var(--d-cream); }
.btw-num,
.btw-bridge-cta { background: var(--d-red); }
.btw-bridge-line { line-height: 1; }

.m-strip-progress {
  display: block;
  height: 2px;
  margin: 14px var(--d-pad) 0;
  background: rgba(243, 237, 225, .16);
  overflow: hidden;
}
.m-strip-progress[hidden] { display: none; }
.m-strip-progress i { display: block; height: 100%; background: var(--d-red); }

/* ---------------------------------------------------------------- editorial break (red page) */
.editorial-break { background-color: var(--d-red); text-align: left; }
.editorial-break-text { color: var(--d-ink); line-height: .9; margin: 0; max-width: none; }

/* ---------------------------------------------------------------- studio + store */
.studio-portal { box-shadow: 8px 8px 0 var(--d-red); }
.studio-portal:hover { box-shadow: 14px 14px 0 var(--d-red); }
.studio-portal--store { box-shadow: -8px 8px 0 var(--d-red); }
.studio-portal--store:hover { box-shadow: -14px 14px 0 var(--d-red); }
.sp-chrome i:first-child { background: var(--d-red); }
.sp-chrome em { color: var(--d-red); }
.st-ticker { background: var(--d-red); }
.sp-kicker {
  font-family: var(--paragraph);
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--d-red);
}
.sp-kicker::before { content: "[ "; }
.sp-kicker::after { content: " ]"; }
.sp-title { line-height: .86; }
.sp-apps { display: none; }
.m-spec {
  display: block;
  border-top: 1px solid rgba(243, 237, 225, .3);
  font-family: var(--paragraph);
  font-size: 12px;
  line-height: 1.35;
}
.m-spec > span {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(243, 237, 225, .18);
}
.m-spec b { font-weight: 600; color: rgba(243, 237, 225, .55); }
.m-spec i { font-style: normal; color: var(--d-cream); }

/* The Store is the light page of the pair, the way the reference alternates
   a paper project page with a black one. */
.studio-portal--store { background: var(--d-paper-hi); color: var(--d-ink); }
.studio-portal--store::after { mix-blend-mode: multiply; opacity: .1; }
.studio-portal--store .sp-chrome {
  background: rgba(255, 255, 255, .6);
  border-bottom-color: rgba(0, 0, 0, .12);
  color: rgba(0, 0, 0, .55);
}
.studio-portal--store .sp-chrome i { background: rgba(0, 0, 0, .18); }
.studio-portal--store .sp-chrome i:first-child { background: var(--d-red); }
.studio-portal--store .sp-shot { background: #d9ded6; border-color: rgba(0, 0, 0, .15); box-shadow: 0 18px 34px rgba(0, 0, 0, .2); }
.studio-portal--store .sp-title { color: var(--d-ink); }
.studio-portal--store .sp-desc { color: rgba(0, 0, 0, .7); }
.studio-portal--store .m-spec { border-top-color: rgba(0, 0, 0, .3); }
.studio-portal--store .m-spec > span { border-bottom-color: rgba(0, 0, 0, .14); }
.studio-portal--store .m-spec b { color: rgba(0, 0, 0, .5); }
.studio-portal--store .m-spec i { color: var(--d-ink); }
.studio-portal--store .sp-cta { background: var(--d-ink); color: #fff; }

/* ---------------------------------------------------------------- FAQ as a numbered table */
.faq-list { counter-reset: faq; border-top: 2px solid var(--d-ink); }
.faq-item {
  margin: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
}
.faq-item summary {
  padding: 17px 40px 17px 40px;
  font-family: var(--headings);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.faq-item summary::before {
  counter-increment: faq;
  content: counter(faq, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--d-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--d-red);
}
.faq-item summary::after { right: 4px; font-size: 22px; color: var(--d-ink); }
.faq-item-answer { padding: 0 6px 20px 40px; font-size: 14.5px; line-height: 1.6; color: #444; }

/* ---------------------------------------------------------------- contact */
.whatsapp-button {
  gap: 16px;
  background: var(--d-ink);
  color: #fff;
  border-color: var(--d-ink);
  line-height: 1.15;
}
.whatsapp-button:hover { background: var(--d-red); border-color: var(--d-red); }
.whatsapp-button::after {
  opacity: 1;
  right: 20px;
  color: #fff;
  font-size: 20px;
  transform: translate(0, -50%);
}
.whatsapp-button .wa-sep { display: none; }
.whatsapp-button .wa-num {
  display: block;
  margin-top: 5px;
  font-family: var(--paragraph);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: .7;
}

/* The links as one list, ruled like a table. */
.contact-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 2px solid var(--d-ink);
}
.contact-card,
.contact-card:hover {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 14px 4px;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .18);
}
.contact-card::after {
  content: "\2197";
  margin-left: auto;
  font-family: var(--headings);
  font-size: 18px;
  color: var(--d-red);
  transition: transform .25s ease;
}
.contact-card:hover::after { transform: translate(3px, -3px); }
.contact-card:active { background-color: rgba(0, 0, 0, .05); transform: none; box-shadow: none; }
.contact-card-icon,
.contact-card:hover .contact-card-icon { width: 24px; height: 24px; filter: none; }
.contact-card-label,
.contact-card:hover .contact-card-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--d-ink);
}

/* ---------------------------------------------------------------- sign-off (red page) */
.signoff-block { align-items: stretch; background-color: var(--d-red); text-align: left; }
.signoff-headline { line-height: .9; color: var(--d-ink); }
.signoff-headline .signoff-hand {
  display: block;
  margin: -.18em 0 0;
  font-size: .8em;
  line-height: 1;
  text-align: right;
  color: var(--d-cream);
  transform: rotate(-6deg);
}
.signoff-dot { display: none; }
.signoff-cta,
.signoff-cta:hover {
  background-color: var(--d-ink);
  border-color: var(--d-ink);
  color: #fff;
  text-align: center;
}
.signoff-readout { font-family: var(--headings); font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--d-ink); }

/* ---------------------------------------------------------------- touch: focus = hover
   deck.js marks whatever crosses the middle of the screen with .is-focus, so
   the colour reveals a mouse gets on hover play while scrolling. */
@media (hover: none) {
  /* A tap leaves :hover stuck on the tile — it must not blur the rest. */
  .project-grid:hover .project-tile:not(:hover),
  .hey-there-photo-collage:hover .collage-tile:not(:hover) { filter: none; opacity: 1; }

  .project-tile.is-focus img,
  .project-tile.is-focus video,
  .collage-tile.is-focus .about-me-image,
  .contact-map.is-focus { filter: grayscale(0%) contrast(100%); }

  .about-sliced span { transition: filter .7s ease; }
  .about-sliced span:nth-child(2) { transition-delay: .06s; }
  .about-sliced span:nth-child(3) { transition-delay: .12s; }
  .about-sliced span:nth-child(4) { transition-delay: .18s; }
  .about-sliced span:nth-child(5) { transition-delay: .24s; }
  .about-sliced span:nth-child(6) { transition-delay: .3s; }
  .about-sliced.is-focus span { filter: grayscale(0%) contrast(100%); }

  .btw-step.is-focus img { filter: grayscale(0%); transform: scale(1.04); }

  .showreel-card.is-focus .showreel-poster,
  .showreel-card.is-focus video,
  html[data-theme="dark"] .showreel-strip-wrap .showreel-card.is-focus video,
  html[data-theme="dark"] .showreel-strip-wrap .showreel-card.is-focus .showreel-poster { filter: grayscale(0%) contrast(100%); }

  .studio-portal.is-focus .sp-shot img,
  .studio-portal.is-focus .sp-shot video { filter: grayscale(0%); }
  .studio-portal.is-focus .sp-cta { background: var(--d-red); color: #fff; gap: 16px; }
  .studio-portal.is-focus .sp-a { transform: rotate(-7deg) translate(-12px, -10px) scale(1.04); }
  .studio-portal.is-focus .sp-b { transform: rotate(6deg) translate(10px, -14px) scale(1.04); }
  .studio-portal.is-focus .sp-c { transform: rotate(0deg) translateY(8px) scale(1.06); }
  .studio-portal.is-focus .sp-d { transform: rotate(10deg) translate(14px, 6px); }
  .studio-portal.is-focus .sp-e { transform: rotate(-11deg) translate(-10px, 8px); }
  .studio-portal--store.is-focus .st-a { transform: rotate(-8deg) translate(-12px, -8px) scale(1.04); }
  .studio-portal--store.is-focus .st-b { transform: rotate(5deg) translate(6px, -14px) scale(1.04); }
  .studio-portal--store.is-focus .st-c { transform: rotate(11deg) translate(12px, 8px); }
  .studio-portal--store.is-focus .st-d { transform: rotate(-13deg) translate(-8px, 8px); }
  .studio-portal--store.is-focus .st-tag { background: var(--d-red); color: #fff; }
}

/* ---------------------------------------------------------------- menu (phones + tablets)
   The full-screen menu is a red contents page with numbered entries. */
@media screen and (max-width: 991px) {
  .menu-button {
    position: fixed;
    top: calc(8px + env(safe-area-inset-top));
    right: 10px;
    height: 44px;
    padding: 0 18px;
    background-color: var(--d-ink);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .menu-button .menu-text {
    font-family: var(--headings);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
  }
  .navbar.nav-open .nav-menu-wrapper {
    background-color: var(--d-red);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .navbar.nav-open .nav-wrapper {
    align-items: stretch;
    justify-content: center;
    padding: 72px var(--d-pad) 34px;
    background: transparent;
    mix-blend-mode: normal;
    counter-reset: navitem;
  }
  .navbar.nav-open .nav-menu-link-holder { align-items: stretch; grid-row-gap: 0; row-gap: 0; }
  .navbar.nav-open .nav-links { counter-increment: navitem; }
  .navbar.nav-open .nav-link-big,
  .navbar.nav-open .nav-link-big.is-current-section {
    justify-content: flex-start;
    gap: .3em;
    min-height: 0;
    padding: 1px 0;
    font-family: var(--d-display);
    font-size: clamp(38px, 12.5vw, 72px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--d-ink);
  }
  .navbar.nav-open .nav-link-big::before { content: counter(navitem, decimal-leading-zero); color: var(--d-cream); }
  .navbar.nav-open .nav-link-big.is-current-section::before { color: var(--d-ink); }
  .navbar.nav-open .menu-button .menu-text::before { color: var(--d-ink); font-size: 12px; }
}

/* ==========================================================================
   2. Phone layout — pages stacked
   ========================================================================== */
@media screen and (max-width: 767px) {
  :root {
    --d-pad: 18px;
    --d-head-col: calc((100vw - 36px) * .42);
    --d-bar-h: 56px;
  }
  .container { padding-left: var(--d-pad); padding-right: var(--d-pad); }
  .about-me-title { font-size: clamp(46px, 15vw, 72px); margin-bottom: 22px; }
  .intro-name { font-size: 34vw; }

  /* cover */
  #Home .container { padding-top: calc(var(--d-bar-h) + 26px); padding-bottom: 28px; }
  .hero-section-text-holder { align-items: stretch; }
  .hero-section-text-holder > .perspective:first-child .hero-section-small-text { text-align: left; }
  .hero-text { margin-top: 10px; font-size: calc((100vw - 36px) / 2.68); }
  .m-sign { align-self: flex-end; margin: -.42em 4px 0 0; font-size: 54px; }
  .hero-section-text-holder .hero-text-wrapper { margin-top: 14px; padding-top: 10px; }
  .hero-section-images-wrapper { margin-top: 24px; }
  /* The portrait is a cut-out, so it sits straight on the red. */
  .hero-section-images-holder._01 { border: 2px solid var(--d-ink); }
  .artist-signature { color: var(--d-cream); mix-blend-mode: normal; opacity: 1; }
  .hero-section-images-holder._02 { outline: 2px solid var(--d-ink); outline-offset: -2px; }
  .hero-section-images-wrapper > .hero-text-wrapper { padding-top: 22px; }

  /* contents — black, right after the red cover */
  .m-index { padding: 26px var(--d-pad) 22px; background-color: var(--d-ink); color: var(--d-cream); }
  .m-index ol { margin: 34px 0 40px; }
  .m-index a { font-size: clamp(44px, 17vw, 80px); color: var(--d-cream); }
  .m-index a b { color: var(--d-red); }

  /* about */
  .about-me-section { padding-top: 34px; padding-bottom: 0; }
  .about-sliced { gap: 4px; margin-top: 0; }
  .about-me-section .about-me-title._02 { font-size: 40px; letter-spacing: 0; margin-top: 16px; }
  .hey-there-layout { padding: 34px 0 0; gap: 26px; }
  .hey-there-photo-collage {
    max-width: none;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "b c" "d d";
    gap: 6px;
  }
  .collage-tile._01 { display: none; }
  .collage-tile._02,
  .collage-tile._03 { aspect-ratio: 4 / 5; margin: 0; transform: none; }
  .collage-tile._04 { aspect-ratio: 16 / 10; margin: 0; transform: none; }
  .hey-there-text .about-me-title { margin-bottom: 14px; }

  /* experience — a timeline, newest role first */
  #About .container-extra-small { margin: 40px calc(-1 * var(--d-pad)) 0; padding: 30px var(--d-pad); }
  #About .container-extra-small::after { margin: 14px 6px 0 0; font-size: 60px; }
  .work-exp-head .footer-link { padding-top: 6px; padding-bottom: 16px; }
  .process-detail-wrapper { flex-direction: column-reverse; margin-top: 4px; }
  .process-block,
  .process-block:first-child {
    padding: 16px 0 18px 22px;
    margin-left: 5px;
    border-left: 1px solid rgba(243, 237, 225, .35);
    border-bottom: 0;
  }
  .process-block::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 19px;
    width: 11px;
    height: 11px;
    background: var(--d-ink);
    border: 1.5px solid var(--d-cream);
  }
  .process-block-current { border-left-color: var(--d-red); }
  .process-block-current::before { background: var(--d-red); border-color: var(--d-red); }
  .process-detail { font-size: 18px; }
  .process-desc { font-size: 13.5px; }

  /* gallery title page */
  #Work > .container { padding-top: 0; }
  #Work .project-section-title-holder {
    min-height: 620px;
    margin: 0 calc(-1 * var(--d-pad)) 26px;
    padding: 26px var(--d-pad) 22px;
  }
  #Work .about-me-title { font-size: clamp(64px, 26vw, 120px); }
  #Work .handwritten-inline { margin: -.1em 0 0; font-size: 28px; }
  .m-scatter img:nth-child(1) { top: 64px; left: -10px; width: 30%; aspect-ratio: 3 / 4; transform: rotate(-4deg); }
  .m-scatter img:nth-child(2) { top: 84px; right: 14px; width: 26%; aspect-ratio: 4 / 5; transform: rotate(3deg); z-index: 3; }
  .m-scatter img:nth-child(3) { bottom: 112px; left: 16px; width: 25%; aspect-ratio: 4 / 5; transform: rotate(2deg); z-index: 3; }
  .m-scatter img:nth-child(4) { bottom: 54px; right: -12px; width: 29%; aspect-ratio: 3 / 4; transform: rotate(-3deg); }
  .m-lede { max-width: 200px; margin-bottom: 26px; font-size: 12px; }
  .project-grid { gap: 8px; }
  .project-grid .project-tile { margin-bottom: 18px; }
  .project-name { font-size: 12.5px; }
  .behance-cta-wrap { margin-top: 8px; }
  .behance-cta-wrap .download-button { display: block; width: 100%; padding: 18px 16px; font-size: 14px; text-align: center; }

  /* motion */
  #Motion > .container { padding-top: 30px; padding-bottom: 0; }
  .showreel-strip-wrap { padding-top: 22px; }
  .showreel-title,
  #Motion .about-me-title { font-size: clamp(46px, 15vw, 72px); }
  .btw-title { font-size: clamp(56px, 18vw, 86px); line-height: .88; }
  .btw-lede { font-size: 14.5px; line-height: 1.55; }
  .btw-step h4 { font-size: 34px; }
  .btw-step p { font-size: 13.5px; }
  .btw-bridge-line { font-size: 30px; }

  /* editorial break */
  .editorial-break { padding: 64px var(--d-pad); }
  .editorial-break-text { font-size: calc((100vw - 36px) / 6.3); }

  /* studio + store */
  #studio > .container { padding-top: 34px; }
  .portals-container { padding-top: 0; }
  .studio-portal { margin: 6px 0 30px; box-shadow: 6px 6px 0 var(--d-red); }
  .studio-portal--store { margin-top: 26px; box-shadow: -6px 6px 0 var(--d-red); }
  .studio-portal.is-focus { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--d-red); }
  .studio-portal--store.is-focus { transform: translate(2px, -2px); box-shadow: -9px 9px 0 var(--d-red); }
  .sp-stage { min-height: 280px; }
  .studio-portal .sp-copy,
  .studio-portal--store .sp-copy { padding: 8px 20px 24px; gap: 16px; }
  .sp-title { font-size: 76px; }
  .sp-desc { display: none; }
  .sp-cta { align-self: stretch; justify-content: center; padding: 17px 16px; }

  /* FAQ + contact */
  #FAQ > .container { padding-top: 40px; }
  .faq-list { margin-bottom: 30px; }
  #mylinks > .container::before {
    content: "";
    display: block;
    height: 2px;
    margin-bottom: 30px;
    background: var(--d-ink);
  }
  .contact-lede { font-size: 15px; line-height: 1.55; margin-bottom: 4px; }
  .whatsapp-button { margin: 20px 0 24px; padding: 18px 54px 18px 20px; font-size: 17px; }
  .contact-grid { margin-bottom: 26px; }

  /* sign-off */
  .signoff-block { gap: 24px; padding: 56px var(--d-pad) 40px; }
  .signoff-headline { font-size: calc((100vw - 36px) / 4.4); }
  .signoff-cta,
  .signoff-cta:hover { width: 100%; max-width: none; padding: 18px 20px; }
}

/* ==========================================================================
   3. Wide layout — each section as a landscape page
   ========================================================================== */
@media screen and (min-width: 768px) {
  /* ---------------------------------------------------------------- cover
     Portrait on the left half, the red title page on the right. */
  #Home { background: linear-gradient(90deg, var(--d-paper) 50%, var(--d-red) 50%); }
  #Home > .container { max-width: none; padding: 0; }
  .hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
  }
  .hero-section-images-wrapper { display: contents; }
  .hero-section-images-grid {
    grid-column: 1;
    grid-row: 1 / 3;
    position: relative;
    display: block;
    margin: 0;
  }
  .hero-section-images-holder._02 { display: none; }
  .hero-section-images-holder._01 {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 0;
    border: 0;
  }
  .hero-section-images._01 { width: auto; max-width: 100%; height: 90%; object-fit: contain; object-position: 50% 100%; }
  .hero-section-images-holder._01 .handwritten-note { bottom: 9vh; right: 4vw; }
  .artist-signature { left: var(--d-pad); bottom: 4vh; font-size: 30px; }

  .hero-section-text-holder {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    align-items: center;
    padding: calc(var(--d-bar-h) + 4vh) var(--d-pad) 0 4vw;
    text-align: center;
  }
  .hero-text { font-size: min(10.5vw, 21vh); margin-top: 2vh; }
  .m-sign { margin: -.12em 0 0 22%; font-size: 3.6vw; }
  .hero-section-text-holder ._100width { width: 70%; }
  .hero-section-text-holder .hero-text-wrapper { margin-top: 4vh; padding-top: 12px; }
  .hero-section-images-wrapper > .hero-text-wrapper {
    grid-column: 2;
    grid-row: 2;
    padding: 0 var(--d-pad) 6vh 4vw;
  }

  /* ---------------------------------------------------------------- contents (red page) */
  .m-index {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: calc(var(--d-bar-h) + 10px) var(--d-pad) 28px;
    background-color: var(--d-red);
    color: var(--d-ink);
  }
  .m-index ol { margin: 3vh 0; }
  .m-index a { font-size: clamp(52px, min(6.6vw, 12.4vh), 140px); color: var(--d-ink); }
  .m-index a:hover { color: var(--d-cream); }

  /* ---------------------------------------------------------------- about: "[ That's Me ]"
     Title top-left, photos in a row along the bottom at different heights. */
  #About > .container { max-width: none; padding: 0; }
  .about-me-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 12px;
    align-items: end;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: calc(var(--d-bar-h) + 10px) var(--d-pad) 5vh;
  }
  .about-me-section > .about-me-grid,
  .about-me-section .about-me-image-holder { display: contents; }
  .about-me-section > .section-number { grid-column: 1 / -1; grid-row: 1; align-self: start; }
  .about-me-section .about-me-image-holder > .reveal { grid-column: 1 / 3; grid-row: 2; align-self: start; }
  .about-me-section .about-me-title { font-size: 6.2vw; margin: 4vh 0 0; }
  .about-me-section .about-me-title._02 {
    grid-column: 3 / 5;
    grid-row: 2;
    align-self: start;
    position: static;
    margin: 4vh 0 0;
    font-size: 4vw;
    text-align: right;
    color: var(--d-red);
  }
  .about-me-section .about-me-image-wrapper { grid-row: 3; width: 100%; overflow: hidden; }
  .about-me-section .about-me-image { width: 100%; height: 100%; object-fit: cover; }
  .about-me-section .about-me-image-wrapper._01 { grid-column: 1; height: 28vh; }
  .about-me-section .about-me-image-wrapper._02 { grid-column: 2; height: 44vh; }
  .about-me-section > .about-me-grid + .about-me-grid .about-me-image-holder:first-child .about-me-image-wrapper { grid-column: 3; height: 36vh; }
  .about-me-section > .about-me-grid + .about-me-grid .about-me-image-holder:last-child .about-me-image-wrapper { grid-column: 4; height: 48vh; }

  /* ---------------------------------------------------------------- "Hey there!" — title left, bio in two columns */
  .hey-there-layout {
    grid-template-columns: 31% 1fr;
    gap: 0 3vw;
    align-items: start;
    padding: 9vh var(--d-pad);
  }
  .hey-there-text { display: contents; }
  .hey-there-text .title-wrap-standard { grid-column: 1; }
  .hey-there-text .about-me-title { font-size: 6.2vw; margin: 0; }
  [data-about-bio] { grid-column: 2; column-count: 2; column-gap: 3vw; font-size: 14.5px; }
  .hey-there-photo-collage { display: none; }

  /* ---------------------------------------------------------------- experience (black page) */
  #About .container-extra-small {
    display: grid;
    grid-template-columns: calc(31vw - var(--d-pad)) 1fr;
    grid-template-rows: auto 1fr auto;
    column-gap: 3vw;
    min-height: 100vh;
    padding: 9vh calc(16vw + var(--d-pad)) 6vh var(--d-pad);
  }
  /* a strip of photo along the right edge, like the reference page */
  #About .container-extra-small::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 16vw;
    background: url("../images/about/eyad-museum.webp") 50% 50% / cover no-repeat;
    filter: grayscale(100%) contrast(1.08);
  }
  #About .container-extra-small::after { grid-column: 2; grid-row: 3; margin-top: 2vh; font-size: 6vw; }
  .work-exp-head { grid-column: 1; grid-row: 1 / 3; justify-content: flex-start; }
  .work-exp-head .about-me-title { font-size: 4.6vw; }
  .work-exp-head .footer-link { padding-top: 10px; }
  /* Two columns of [dated] entries, newest first in reading order. */
  .process-detail-wrapper {
    grid-column: 2;
    grid-row: 1 / 3;
    flex-direction: row-reverse;
    flex-wrap: wrap-reverse;
    align-content: flex-end;
    justify-content: flex-end;
  }
  .process-block,
  .process-block:first-child {
    width: 50%;
    padding: 0 2.4vw 3.4vh 0;
    border: 0;
  }
  .process-detail { font-size: 17px; margin-bottom: 6px; }
  .process-desc { font-size: 13px; max-width: 42ch; }

  /* ---------------------------------------------------------------- gallery title page (red) */
  #Work > .container { max-width: none; padding: 0 var(--d-pad) 60px; }
  #Work .project-section-title-holder {
    min-height: 100vh;
    margin: 0 calc(-1 * var(--d-pad)) 48px;
    padding: calc(var(--d-bar-h) + 10px) var(--d-pad) 26px;
  }
  #Work .about-me-title { max-width: 3.7em; margin: 0 auto; font-size: min(13vw, 23vh); }
  #Work .handwritten-inline {
    position: absolute;
    top: -.6em;
    left: -12%;
    margin: 0;
    font-size: min(3.4vw, 6vh);
  }
  .m-scatter img:nth-child(1) { top: 9vh; left: 13%; width: 13vw; aspect-ratio: 4 / 5; transform: rotate(-3deg); }
  .m-scatter img:nth-child(2) { top: 6vh; right: 9%; width: 12vw; aspect-ratio: 3 / 4; transform: rotate(3deg); z-index: 3; }
  .m-scatter img:nth-child(3) { bottom: 12vh; left: 5%; width: 14vw; aspect-ratio: 3 / 4; transform: rotate(2deg); z-index: 3; }
  .m-scatter img:nth-child(4) { bottom: 6vh; right: 16%; width: 13vw; aspect-ratio: 4 / 5; transform: rotate(-3deg); }
  .m-lede { max-width: 300px; margin-bottom: 4vh; font-size: 13px; }
  .project-name { font-size: 13px; }
  .behance-cta-wrap .download-button { padding: 20px 44px; }

  /* ---------------------------------------------------------------- motion (black) */
  #Motion > .container { max-width: none; padding: 10vh var(--d-pad) 0; }
  #Motion .about-me-title { font-size: 6.2vw; }
  .showreel-head,
  .btw-head,
  .btw-bridge { max-width: none; padding-left: var(--d-pad); padding-right: var(--d-pad); }
  .showreel-strip,
  .btw-track { padding-left: var(--d-pad); padding-right: var(--d-pad); scroll-padding: 0 var(--d-pad); }
  .showreel-title { font-size: 5vw; }
  .btw-title { font-size: 9vw; }
  .btw-step h4 { font-size: 40px; }
  .btw-bridge-line { font-size: 3.2vw; }

  /* ---------------------------------------------------------------- editorial break (red) */
  .editorial-break { padding: 16vh var(--d-pad); }
  .editorial-break-text { font-size: 8.4vw; }

  /* ---------------------------------------------------------------- studio + store: project pages */
  #studio > .container { max-width: none; padding: 10vh var(--d-pad) 8vh; }
  .portals-container .about-me-title { font-size: 6.2vw; }
  .studio-portal,
  .studio-portal--store { grid-template-columns: 1fr 1fr; min-height: 80vh; margin: 4vh 0 7vh; }
  .sp-stage { min-height: 80vh; }
  .studio-portal .sp-copy { padding: 76px 4vw 48px 3vw; }
  .studio-portal--store .sp-copy { padding: 76px 3vw 48px 4vw; }
  .sp-title { font-size: 7.4vw; }
  .sp-desc { font-size: 14px; max-width: 46ch; }
  .m-spec { font-size: 13px; }

  /* ---------------------------------------------------------------- FAQ: title left, table right */
  #FAQ > .container {
    display: grid;
    grid-template-columns: calc(31vw - var(--d-pad)) 1fr;
    column-gap: 3vw;
    align-items: start;
    max-width: none;
    padding: 12vh var(--d-pad);
  }
  #FAQ .section-number { grid-column: 1 / -1; }
  #FAQ .about-me-title { font-size: 6.2vw; }
  #FAQ .faq-list { grid-column: 2; grid-row: 2; }

  /* ---------------------------------------------------------------- contact: title left, the rest right */
  #mylinks > .container {
    display: grid;
    grid-template-columns: calc(31vw - var(--d-pad)) 1fr;
    column-gap: 3vw;
    align-items: start;
    max-width: none;
    padding: 12vh var(--d-pad);
    border-top: 2px solid var(--d-ink);
  }
  #mylinks .section-number { grid-column: 1 / -1; }
  #mylinks .section-number + div.reveal { grid-column: 1; grid-row: 2 / span 5; }
  #mylinks .about-me-title { font-size: 6.2vw; }
  #mylinks .contact-lede,
  #mylinks .whatsapp-button,
  #mylinks .contact-grid,
  #mylinks .contact-map { grid-column: 2; }
  .contact-lede { margin-top: 0; font-size: 16px; }
  .whatsapp-button { margin: 22px 0 28px; padding: 22px 60px 22px 26px; font-size: 19px; }
  .contact-grid { margin-bottom: 30px; }

  /* ---------------------------------------------------------------- sign-off (red) */
  .signoff-block { align-items: flex-start; gap: 4vh; padding: 16vh var(--d-pad) 10vh; }
  .signoff-headline { font-size: 9vw; }
  .signoff-cta,
  .signoff-cta:hover { padding: 20px 56px; }
}

/* ---------------------------------------------------------------- nav links in the band (desktop) */
@media screen and (min-width: 992px) {
  .container.navbar-container { max-width: none; padding: 0 var(--d-pad); }
  .nav-menu-wrapper { overflow: visible; }
  .nav-wrapper { justify-content: flex-end; gap: 26px; }
  .nav-menu-link-holder { gap: 26px; }
  .nav-link-big,
  .nav-link-big:hover,
  .nav-link-big.w--current {
    opacity: 1;
    margin: 0;
    padding: 0;
    background-image: none;
    color: var(--d-ink);
    font-family: var(--headings);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
  }
  .nav-link-big:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .nav-link-big.is-current-section {
    color: var(--d-ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m-bar,
  .m-index a { transition: none; }
}

/* ==========================================================================
   Nothing on the page can be selected, copied or dragged out.
   ========================================================================== */
html {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
img,
video,
a {
  -webkit-user-drag: none;
  user-drag: none;
}
img { pointer-events: none; }

/* ==========================================================================
   Phone: the gallery title page as a clean composition — eyebrow, title,
   script line, a row of four prints, the lede, the name. Nothing overlaps
   the title.
   ========================================================================== */
@media screen and (max-width: 767px) {
  #Work .project-section-title-holder { min-height: 0; gap: 0; padding-bottom: 24px; }
  #Work .section-number { order: 1; }
  #Work .project-section-title-holder > div.reveal { order: 2; margin: 8px 0 0; text-align: left; }
  #Work .about-me-title { font-size: calc((100vw - 36px) / 3.4); line-height: .86; }
  #Work .handwritten-inline { margin: .05em 0 0 4%; font-size: 24px; }
  .m-scatter {
    order: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 26px 0 22px;
  }
  .m-scatter img,
  .m-scatter img:nth-child(n) {
    position: static;
    width: 100%;
    aspect-ratio: 3 / 4;
    top: auto; right: auto; bottom: auto; left: auto;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
  }
  .m-scatter img:nth-child(1) { transform: rotate(-3deg); }
  .m-scatter img:nth-child(2) { transform: rotate(2deg) translateY(10px); }
  .m-scatter img:nth-child(3) { transform: rotate(-2deg); }
  .m-scatter img:nth-child(4) { transform: rotate(3deg) translateY(10px); }
  .m-lede { order: 4; max-width: 260px; margin: 6px 0 22px; text-align: left; }
  #Work .project-section-title-holder::after { order: 5; }

  /* cover: the signature sits under the name instead of across it */
  .m-sign { margin: .02em 4px 0 0; font-size: 44px; }
}

/* Wide screens: the prints stay scattered but always under the title. */
@media screen and (min-width: 768px) {
  .m-scatter img,
  .m-scatter img:nth-child(n) { z-index: 1; }
  #Work .project-section-title-holder > div.reveal { z-index: 2; }
}

/* ==========================================================================
   Script accents never sit on top of the display type: each one goes on its
   own line under the title it belongs to.
   ========================================================================== */
.handwritten-inline { margin-top: .12em; }
.about-me-title,
.hero-text,
.signoff-headline,
.editorial-break-text { line-height: .92; }
.signoff-headline .signoff-hand { margin-top: .12em; }
@media screen and (max-width: 767px) {
  .m-sign { margin: .1em 4px 0 0; }
  #Work .about-me-title { line-height: .92; }
  #Work .handwritten-inline { margin: .14em 0 0 4%; }
}
@media screen and (min-width: 768px) {
  .m-sign { margin: .14em 0 0 22%; }
  #Work .about-me-title { line-height: .92; }
  #Work .handwritten-inline {
    position: static;
    margin: .16em 0 0;
    text-align: center;
  }
  #Work .project-section-title-holder > div.reveal { margin: auto 0; }
}

/* ==========================================================================
   Dark mode for the deck. The old whole-page invert turned the black pages
   white and the red pages muddy, so here it is switched off and the paper
   pages are re-coloured directly: paper goes near-black, ink goes cream,
   and the red and black pages stay exactly as they are.
   ========================================================================== */
html[data-theme="dark"] {
  --d-paper: #121110;
  --d-paper-hi: #1b1a18;
  filter: none;
  background: #121110;
}
/* every counter-invert from the old approach comes off */
html[data-theme="dark"] iframe,
html[data-theme="dark"] .noise-texture,
html[data-theme="dark"] .hero-section-images-holder,
html[data-theme="dark"] .about-me-image-wrapper,
html[data-theme="dark"] .collage-tile,
html[data-theme="dark"] .project-photo,
html[data-theme="dark"] .intro-overlay,
html[data-theme="dark"] .auto-slide,
html[data-theme="dark"] .full-bleed-break,
html[data-theme="dark"] .showreel-strip-wrap,
html[data-theme="dark"] .showreel-card,
html[data-theme="dark"] .logo-link,
html[data-theme="dark"] .btw,
html[data-theme="dark"] .studio-portal,
html[data-theme="dark"] .eyad-veil,
html[data-theme="dark"] .m-scatter img,
html[data-theme="dark"] #Motion > .container { filter: none; }
html[data-theme="dark"] .about-sliced span { filter: grayscale(100%) contrast(106%); }
html[data-theme="dark"] .about-sliced.is-focus span { filter: none; }
html[data-theme="dark"] .contact-map { filter: grayscale(75%) contrast(105%) brightness(.85); }
html[data-theme="dark"] .contact-map:hover,
html[data-theme="dark"] .contact-map.is-focus { filter: brightness(.9); }

html[data-theme="dark"] body { background-color: var(--d-paper); color: var(--d-cream); }
html[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .04; }

/* running header + nav */
html[data-theme="dark"] .m-bar,
html[data-theme="dark"] .nav-link-big,
html[data-theme="dark"] .nav-link-big:hover,
html[data-theme="dark"] .nav-link-big.is-current-section { color: var(--d-cream); }
html[data-theme="dark"] .m-bar.is-scrolled { background-color: rgba(18, 17, 16, .9); box-shadow: 0 1px 0 rgba(243, 237, 225, .14); }
html[data-theme="dark"] .menu-button { box-shadow: inset 0 0 0 1px rgba(243, 237, 225, .3); }
html[data-theme="dark"] .navbar.nav-open .nav-link-big { color: var(--d-ink); }

/* type on the paper pages */
html[data-theme="dark"] .about-me-title,
html[data-theme="dark"] .project-name,
html[data-theme="dark"] .contact-card-label,
html[data-theme="dark"] .contact-card:hover .contact-card-label,
html[data-theme="dark"] .footer-title { color: var(--d-cream); }
html[data-theme="dark"] #Work .about-me-title,
html[data-theme="dark"] .navbar.nav-open .nav-link-big { color: var(--d-ink); }
html[data-theme="dark"] .about-me-title._02 { color: var(--d-red); }
html[data-theme="dark"] [data-about-bio] { color: rgba(243, 237, 225, .86); }
html[data-theme="dark"] .contact-lede,
html[data-theme="dark"] .faq-item-answer { color: rgba(243, 237, 225, .7); }
html[data-theme="dark"] .project-grid img:not(.is-loaded) { background-color: #222; }

/* rules, tables, buttons */
html[data-theme="dark"] .faq-list,
html[data-theme="dark"] .contact-grid { border-top-color: var(--d-cream); }
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .contact-card:hover { border-bottom-color: rgba(243, 237, 225, .18); }
html[data-theme="dark"] .faq-item summary::after { color: var(--d-cream); }
html[data-theme="dark"] #mylinks > .container { border-top-color: var(--d-cream); }
html[data-theme="dark"] #mylinks > .container::before { background: var(--d-cream); }
html[data-theme="dark"] .contact-card-icon { filter: invert(1); }
html[data-theme="dark"] .contact-card:active { background-color: rgba(243, 237, 225, .06); }
html[data-theme="dark"] .whatsapp-button,
html[data-theme="dark"] .behance-cta-wrap .download-button { background: var(--d-cream); border-color: var(--d-cream); color: var(--d-ink); }
html[data-theme="dark"] .whatsapp-button::after { color: var(--d-ink); }
html[data-theme="dark"] .whatsapp-button:hover,
html[data-theme="dark"] .behance-cta-wrap .download-button:hover { background: var(--d-red); border-color: var(--d-red); color: #fff; }
html[data-theme="dark"] .hero-section-images-holder._01 { border-color: var(--d-ink); }

/* the Store card is the light card of the pair; in dark it matches the Studio */
html[data-theme="dark"] .studio-portal--store { background: #0b0b0b; color: var(--d-cream); }
html[data-theme="dark"] .studio-portal--store .sp-chrome { background: rgba(0, 0, 0, .55); border-bottom-color: rgba(243, 237, 225, .12); color: rgba(243, 237, 225, .55); }
html[data-theme="dark"] .studio-portal--store .sp-chrome i { background: rgba(243, 237, 225, .25); }
html[data-theme="dark"] .studio-portal--store .sp-chrome i:first-child { background: var(--d-red); }
html[data-theme="dark"] .studio-portal--store .sp-shot { background: #1a1a1a; border-color: rgba(243, 237, 225, .15); }
html[data-theme="dark"] .studio-portal--store .sp-title { color: var(--d-cream); }
html[data-theme="dark"] .studio-portal--store .sp-desc { color: rgba(243, 237, 225, .65); }
html[data-theme="dark"] .studio-portal--store .m-spec { border-top-color: rgba(243, 237, 225, .3); }
html[data-theme="dark"] .studio-portal--store .m-spec > span { border-bottom-color: rgba(243, 237, 225, .18); }
html[data-theme="dark"] .studio-portal--store .m-spec b { color: rgba(243, 237, 225, .55); }
html[data-theme="dark"] .studio-portal--store .m-spec i { color: var(--d-cream); }
html[data-theme="dark"] .studio-portal--store .sp-cta { background: var(--d-cream); color: #000; }

/* ==========================================================================
   Copy protection, hardened: nothing highlights even if a selection is
   forced, and every photo carries a small credit mark.
   ========================================================================== */
*,
*::before,
*::after {
  -webkit-user-select: none !important;
  user-select: none !important;
}
::selection { background: transparent; color: inherit; }
.project-photo::after,
.collage-tile::after,
.btw-step figure::after,
.showreel-card::before {
  content: "\00a9 Eyad Ayman";
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 7px;
  font-family: var(--headings);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  pointer-events: none;
}
.btw-step figure { position: relative; }
.showreel-card::before { top: 12px; right: 48px; bottom: auto; }

/* ==========================================================================
   Behind The Work: one poster followed through the process, each step
   showing the same frame at that stage — a blur of a feeling, a rough
   line sketch, the greyscale build on guides, the cut on a timeline,
   the frame in motion, and the finished piece in full colour.
   ========================================================================== */
.btw-step figure { position: relative; background: #0b0b0b; }
.btw-step figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.btw-step:nth-child(n) figure img { transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .6s ease; }
.btw-step:nth-child(1) figure img { filter: grayscale(1) blur(12px) brightness(.75); transform: scale(1.18); }
.btw-step:nth-child(2) figure img { filter: grayscale(1) invert(1) contrast(2.6) brightness(1.18); }
.btw-step:nth-child(2) figure { background: #f3ede1; }
.btw-step:nth-child(3) figure img { filter: grayscale(1) contrast(1.08); }
.btw-step:nth-child(3) figure::before {
  background:
    linear-gradient(90deg, transparent calc(33.3% - 1px), rgba(208, 43, 42, .7) calc(33.3% - 1px), rgba(208, 43, 42, .7) 33.3%, transparent 33.3%, transparent calc(66.6% - 1px), rgba(208, 43, 42, .7) calc(66.6% - 1px), rgba(208, 43, 42, .7) 66.6%, transparent 66.6%),
    linear-gradient(0deg, transparent calc(33.3% - 1px), rgba(208, 43, 42, .7) calc(33.3% - 1px), rgba(208, 43, 42, .7) 33.3%, transparent 33.3%, transparent calc(66.6% - 1px), rgba(208, 43, 42, .7) calc(66.6% - 1px), rgba(208, 43, 42, .7) 66.6%, transparent 66.6%);
  box-shadow: inset 0 0 0 10px rgba(208, 43, 42, .18);
}
.btw-step:nth-child(4) figure img { filter: grayscale(.45) contrast(1.05); }
.btw-step:nth-child(4) figure::before {
  inset: auto 10px 30px 10px;
  height: 22px;
  border: 1px solid rgba(243, 237, 225, .3);
  background:
    linear-gradient(90deg, transparent 58%, #f3ede1 58%, #f3ede1 calc(58% + 2px), transparent calc(58% + 2px)),
    repeating-linear-gradient(90deg, rgba(208, 43, 42, .9) 0 22%, rgba(0, 0, 0, .8) 22% 23%, rgba(243, 237, 225, .55) 23% 37%, rgba(0, 0, 0, .8) 37% 38%);
}
.btw-step:nth-child(5) figure img { filter: saturate(.75) contrast(1.05); animation: btwDrift 7s ease-in-out infinite alternate; }
.btw-step:nth-child(6) figure img { filter: none; }
@keyframes btwDrift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-3%, -2%); } }
.btw-step:nth-child(1):hover figure img,
.btw-step:nth-child(1).is-focus figure img { filter: grayscale(1) blur(6px) brightness(.85); }
.btw-step:nth-child(6):hover figure img,
.btw-step:nth-child(6).is-focus figure img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .btw-step:nth-child(5) figure img { animation: none; } }

/* ==========================================================================
   Fixes: the About photos keep the face in frame; the hire toast's script
   line wraps inside the card instead of running out of it.
   ========================================================================== */
.about-me-section .about-me-image { object-position: 50% 22%; }
.hire-toast .hire-toast-hand {
  display: block;
  margin: 6px 0 0;
  font-size: 24px;
  white-space: normal;
  line-height: 1.1;
  transform: rotate(-3deg);
}

/* ==========================================================================
   Splash: the red cover sheet — name, bracketed roles, a script line.
   No counter, no bar; the letters rise, hold, and the sheet wipes up.
   ========================================================================== */
.intro-sign {
  font-family: var(--d-script);
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  color: var(--d-cream);
  transform: rotate(-6deg);
  opacity: 0;
  animation: introFade .7s ease 1.05s forwards;
}
.intro-roles { gap: 6px 14px; }
.intro-roles span + span::before { content: none; }
.intro-roles span { font-family: var(--paragraph); text-transform: none; letter-spacing: .02em; font-weight: 700; }
@media screen and (max-width: 767px) {
  .intro-sign { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) { .intro-sign { animation: none; opacity: 1; } }
.about-me-section .about-me-image._01 { object-position: 50% 78%; }
.intro-sign { text-transform: none; letter-spacing: 0; }

/* ==========================================================================
   Behind The Work — the poster being made, live, in an editor window.
   Steps on the left; picking one (or letting it play) rebuilds the canvas
   to that stage: pinned refs, the line sketch, the cutout on guides, the
   before/after grade, the motion timeline, and the export.
   ========================================================================== */
.btw-studio {
  display: grid;
  grid-template-columns: minmax(260px, 31%) 1fr;
  gap: 3vw;
  align-items: start;
  padding: 0 var(--d-pad);
}
.btw-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(243, 237, 225, .2); }
.btw-stepbtn {
  position: relative;
  display: flex;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(243, 237, 225, .2);
  color: rgba(243, 237, 225, .45);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: color .3s ease;
}
.btw-stepbtn b { font-family: var(--d-display); font-weight: 400; font-size: 22px; line-height: 1; color: inherit; min-width: 32px; }
.btw-stepbtn strong { display: block; font-family: var(--d-display); font-weight: 400; font-size: 28px; line-height: 1; text-transform: uppercase; }
.btw-stepbtn em {
  display: block;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  font-style: normal;
  font-family: var(--paragraph);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(243, 237, 225, .65);
  transition: max-height .45s ease, margin .45s ease;
}
.btw-stepbtn:hover { color: rgba(243, 237, 225, .8); }
.btw-stepbtn.is-on { color: var(--d-cream); }
.btw-stepbtn.is-on b { color: var(--d-red); }
.btw-stepbtn.is-on em { max-height: 90px; margin-top: 8px; }
.btw-stepbtn.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  background: var(--d-red);
  animation: btwFill 3.6s linear forwards;
}
.btw-studio.is-paused .btw-stepbtn.is-on::after { animation: none; width: 100%; }
@keyframes btwFill { from { width: 0; } to { width: 100%; } }

/* the editor window */
.btw-app {
  background: #1b1a19;
  border: 1px solid rgba(243, 237, 225, .14);
  box-shadow: 14px 14px 0 var(--d-red);
  font-family: var(--paragraph);
  color: rgba(243, 237, 225, .7);
}
.btw-app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(243, 237, 225, .1);
  background: #121110;
  font-size: 11px;
  letter-spacing: .02em;
}
.btw-app-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(243, 237, 225, .22); }
.btw-app-bar i:first-child { background: var(--d-red); }
.btw-app-bar span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btw-app-bar em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--d-red); white-space: nowrap; }
.btw-app-body { display: grid; grid-template-columns: 38px 1fr 170px; }
.btw-tools { display: flex; flex-direction: column; gap: 8px; padding: 12px 9px; border-right: 1px solid rgba(243, 237, 225, .08); }
.btw-tools i { width: 20px; height: 20px; border: 1px solid rgba(243, 237, 225, .25); transition: background .3s ease, border-color .3s ease; }
.btw-app[data-step="1"] .btw-tools i:nth-child(7),
.btw-app[data-step="2"] .btw-tools i:nth-child(3),
.btw-app[data-step="3"] .btw-tools i:nth-child(2),
.btw-app[data-step="4"] .btw-tools i:nth-child(5),
.btw-app[data-step="5"] .btw-tools i:nth-child(6),
.btw-app[data-step="6"] .btw-tools i:nth-child(1) { background: var(--d-red); border-color: var(--d-red); }

.btw-canvas {
  position: relative;
  aspect-ratio: 4 / 5;
  height: 64vh;
  margin: 18px auto;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 0 0 1px rgba(243, 237, 225, .1), 0 18px 40px rgba(0, 0, 0, .5);
}
.btw-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .6s ease, filter .8s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.btw-refs { position: absolute; inset: 0; background: #e9e3d6; transition: opacity .6s ease; }
.btw-refs img { position: absolute; width: 44%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
.btw-refs img:nth-child(1) { left: 6%; top: 7%; transform: rotate(-5deg); }
.btw-refs img:nth-child(2) { right: 5%; top: 14%; transform: rotate(4deg); }
.btw-refs img:nth-child(3) { left: 18%; bottom: 7%; transform: rotate(2deg); }
.btw-note {
  position: absolute;
  right: 8%;
  bottom: 12%;
  padding: 10px 12px;
  background: #f6d64a;
  color: #111;
  font-family: var(--d-script);
  font-size: 22px;
  line-height: 1.05;
  transform: rotate(-4deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}
.btw-guides,
.btw-marquee,
.btw-split,
.btw-export { position: absolute; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.btw-guides {
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(33.3% - 1px), #00b7ff calc(33.3% - 1px), #00b7ff 33.3%, transparent 33.3%, transparent calc(66.6% - 1px), #00b7ff calc(66.6% - 1px), #00b7ff 66.6%, transparent 66.6%),
    linear-gradient(0deg, transparent calc(33.3% - 1px), #00b7ff calc(33.3% - 1px), #00b7ff 33.3%, transparent 33.3%, transparent calc(66.6% - 1px), #00b7ff calc(66.6% - 1px), #00b7ff 66.6%, transparent 66.6%);
}
.btw-marquee {
  left: 24%;
  top: 14%;
  width: 52%;
  height: 52%;
  border: 1px dashed #fff;
  animation: btwAnts 1s linear infinite;
}
.btw-marquee::before,
.btw-marquee::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border: 1px solid #000;
}
.btw-marquee::before { left: -4px; top: -4px; }
.btw-marquee::after { right: -4px; bottom: -4px; }
@keyframes btwAnts { 50% { border-color: #000; } }
.btw-split {
  inset: 0 45% 0 0;
  -webkit-backdrop-filter: grayscale(1) contrast(.9) brightness(1.1);
  backdrop-filter: grayscale(1) contrast(.9) brightness(1.1);
  border-right: 2px solid #fff;
}
.btw-split b {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 7px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btw-split b:last-child { left: calc(100% + 12px); }
.btw-export {
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 10px);
  padding: 10px 14px;
  background: var(--d-cream);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  transition: opacity .5s ease, transform .5s ease;
}

.btw-layers { padding: 10px 0; border-left: 1px solid rgba(243, 237, 225, .08); font-size: 11.5px; }
.btw-layers span {
  display: block;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(243, 237, 225, .06);
  opacity: .22;
  transition: opacity .4s ease, background .4s ease, color .4s ease;
}
.btw-layers span::before { content: "\25cb"; margin-right: 7px; }
.btw-layers .btw-layers-head { opacity: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; color: var(--d-cream); }
.btw-layers .btw-layers-head::before { content: none; }
.btw-layers span.is-on { opacity: 1; }
.btw-layers span.is-on::before { content: "\25c9"; color: var(--d-red); }
.btw-layers span.is-active { background: rgba(208, 43, 42, .22); color: #fff; }

.btw-timeline {
  position: relative;
  display: flex;
  gap: 3px;
  height: 34px;
  padding: 7px 10px 7px 48px;
  border-top: 1px solid rgba(243, 237, 225, .1);
  background: #121110;
  opacity: .3;
  transition: opacity .5s ease;
}
.btw-timeline i { flex: 1; background: repeating-linear-gradient(90deg, rgba(208, 43, 42, .85) 0 8px, rgba(208, 43, 42, .6) 8px 9px); }
.btw-timeline i:nth-child(2) { flex: .6; background: repeating-linear-gradient(90deg, rgba(243, 237, 225, .5) 0 8px, rgba(243, 237, 225, .3) 8px 9px); }
.btw-timeline i:nth-child(4) { flex: .8; }
.btw-timeline u { position: absolute; top: 2px; bottom: 2px; left: 48px; width: 2px; background: #fff; }

/* stage by stage */
.btw-app:not([data-step="1"]) .btw-refs { opacity: 0; }
.btw-app[data-step="2"] .btw-art { opacity: 1; filter: grayscale(1) invert(1) contrast(2.8) brightness(1.2); }
.btw-app[data-step="3"] .btw-art { opacity: 1; filter: grayscale(1) contrast(1.05); }
.btw-app[data-step="3"] .btw-guides { opacity: .55; }
.btw-app[data-step="3"] .btw-marquee { opacity: 1; }
.btw-app[data-step="4"] .btw-art { opacity: 1; filter: contrast(1.08) saturate(1.15); }
.btw-app[data-step="4"] .btw-split { opacity: 1; }
.btw-app[data-step="5"] .btw-art { opacity: 1; animation: btwDrift 5s ease-in-out infinite alternate; }
.btw-app[data-step="5"] .btw-timeline { opacity: 1; }
.btw-app[data-step="5"] .btw-timeline u { animation: btwPlay 3.4s linear infinite; }
.btw-app[data-step="6"] .btw-art { opacity: 1; transform: scale(1); }
.btw-app[data-step="6"] .btw-export { opacity: 1; transform: translate(-50%, 0); }
@keyframes btwPlay { from { left: 48px; } to { left: calc(100% - 12px); } }

@media screen and (max-width: 991px) {
  .btw-app-body { grid-template-columns: 34px 1fr; }
  .btw-layers { display: none; }
}
@media screen and (max-width: 767px) {
  .btw-studio { grid-template-columns: 1fr; gap: 18px; }
  .btw-app { order: -1; box-shadow: 7px 7px 0 var(--d-red); }
  .btw-canvas { height: auto; width: 100%; margin: 0; }
  .btw-app-body { grid-template-columns: 1fr; }
  .btw-tools { display: none; }
  .btw-app-bar span { font-size: 10px; }
  .btw-stepbtn { padding: 13px 0; }
  .btw-stepbtn strong { font-size: 24px; }
  .btw-note { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .btw-marquee, .btw-app[data-step="5"] .btw-art, .btw-app[data-step="5"] .btw-timeline u { animation: none; }
  .btw-stepbtn.is-on::after { animation: none; width: 100%; }
}

/* ==========================================================================
   Splash: the portfolio's cover. Red sheet, the running header, the word
   PORTFOLIO rising line by line, four prints dealt across it like a spread
   on a table, a script volume line — then the sheet lifts away.
   ========================================================================== */
.intro-deck {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px var(--d-pad) 26px;
  background: var(--d-red);
  color: var(--d-ink);
}
.intro-head,
.intro-foot {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: var(--d-head-col) 1fr auto;
  gap: 8px;
  font-family: var(--headings);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: 0;
  animation: introFade .6s ease .15s forwards;
}
.intro-foot { font-family: var(--paragraph); text-transform: none; letter-spacing: .02em; animation-delay: .9s; }
.intro-stage { position: relative; z-index: 2; display: grid; place-items: center; }
.intro-word {
  display: block;
  text-align: center;
  font-family: var(--d-display);
  font-size: min(25vw, 44vh);
  line-height: .84;
  letter-spacing: -.01em;
  color: var(--d-ink);
}
.intro-word span { display: inline-block; overflow: hidden; vertical-align: top; }
.intro-word span:nth-child(2) { color: var(--d-cream); }
.intro-word span { animation: introRise 1s cubic-bezier(.16, 1, .3, 1) both; }
.intro-word span:nth-child(2) { animation-delay: .12s; }
@keyframes introRise { from { clip-path: inset(100% 0 0 0); transform: translateY(30%); } to { clip-path: inset(0 0 0 0); transform: none; } }
.intro-prints { position: absolute; inset: 0; pointer-events: none; }
.intro-prints img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(15vw, 26vh);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translate(-50%, 40vh) rotate(0deg);
  animation: introDeal .8s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(.45s + var(--i) * .14s);
}
@keyframes introDeal {
  to { opacity: 1; transform: translate(calc(-50% + var(--x) * 2.2), -50%) rotate(var(--r)); }
}
.intro-script {
  position: absolute;
  right: 4%;
  bottom: 6%;
  z-index: 3;
  font-family: var(--d-script);
  font-size: clamp(38px, 5vw, 74px);
  line-height: 1;
  color: var(--d-cream);
  transform: rotate(-6deg);
  opacity: 0;
  animation: introFade .7s ease 1.15s forwards;
}
.intro-overlay.is-leaving .intro-prints img { transition: transform .6s cubic-bezier(.7, 0, .3, 1), opacity .4s ease; transform: translate(-50%, -120vh); opacity: 0; }
.intro-overlay.is-leaving .intro-word span { animation: introChOut .5s cubic-bezier(.7, 0, .3, 1) forwards; }
.intro-overlay.is-leaving .intro-head,
.intro-overlay.is-leaving .intro-foot,
.intro-overlay.is-leaving .intro-script { transition: opacity .25s ease; opacity: 0 !important; }
@media screen and (max-width: 767px) {
  .intro-head { grid-template-columns: 1fr auto; }
  .intro-head span:last-child { display: none; }
  .intro-foot { grid-template-columns: 1fr; gap: 4px; }
  .intro-word { font-size: 31vw; }
  .intro-word span { display: block; }
  .intro-prints img { width: 34vw; }
  .intro-prints img { animation-name: introDealSm; }
  @keyframes introDealSm { to { opacity: 1; transform: translate(calc(-50% + var(--x) * 1.4), -50%) rotate(var(--r)); } }
}
@media (prefers-reduced-motion: reduce) {
  .intro-head, .intro-foot, .intro-script, .intro-word span, .intro-prints img { animation: none !important; opacity: 1; clip-path: none; }
  .intro-prints img { transform: translate(calc(-50% + var(--x) * 2.2), -50%) rotate(var(--r)); }
}

/* About: the four photos are shown whole, not cropped to a strip. */
@media screen and (min-width: 768px) {
  .about-me-section .about-me-image-wrapper,
  .about-me-section .about-me-image-wrapper._01,
  .about-me-section .about-me-image-wrapper._02,
  .about-me-section > .about-me-grid + .about-me-grid .about-me-image-holder .about-me-image-wrapper { height: auto; aspect-ratio: 3 / 4; }
  .about-me-section .about-me-image-wrapper._01 { margin-bottom: 6vh; }
  .about-me-section > .about-me-grid + .about-me-grid .about-me-image-holder:first-child .about-me-image-wrapper { margin-bottom: 3vh; }
  .about-me-section .about-me-image._01 { object-position: 50% 50%; }
}
/* Phone: the cut-up portrait uses a full photo of Eyad. */
.about-sliced { aspect-ratio: 3 / 4; }
.about-sliced span { background-image: url("../images/about/eyad-portrait.webp"); }
@media screen and (max-width: 767px) {
  .intro-prints img { top: 78%; width: 25vw; }
  @keyframes introDealSm { to { opacity: 1; transform: translate(calc(-50% + var(--x) * 1.15), -50%) rotate(var(--r)); } }
  .intro-script { bottom: auto; top: 6%; right: 2%; }
}
@media screen and (max-width: 767px) {
  .intro-word { width: 100%; font-size: 40vw; }
  .intro-word span { text-align: center; }
  @keyframes introDealSm { to { opacity: 1; transform: translate(calc(-50% + var(--x) * 1.75), -50%) rotate(var(--r)); } }
}

/* ==========================================================================
   Getting hired: the cover call to action, the teams & brands list, and the
   project brief that turns three taps into a WhatsApp message.
   ========================================================================== */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 4vh;
}
.hero-cta-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--paragraph);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--d-ink);
}
.hero-cta-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1fbf5b;
  box-shadow: 0 0 0 3px rgba(31, 191, 91, .25);
  animation: introPulse 1.6s ease-in-out infinite;
}
.hero-cta-row { display: flex; gap: 8px; }
.hero-cta-main,
.hero-cta-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--headings);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .25s var(--d-spring);
}
.hero-cta-main { background: var(--d-ink); color: var(--d-cream); }
.hero-cta-alt { border: 2px solid var(--d-ink); color: var(--d-ink); }
.hero-cta-main:hover { background: var(--d-cream); color: var(--d-ink); }
.hero-cta-alt:hover { background: var(--d-ink); color: var(--d-cream); }
.hero-cta-main:active,
.hero-cta-alt:active { transform: scale(.97); }

.worked-with { margin-top: 4vh; }
.worked-with > span {
  display: block;
  margin-bottom: 10px;
  font-family: var(--paragraph);
  font-size: 11px;
  font-weight: 700;
  color: var(--d-red);
}
.worked-with ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(243, 237, 225, .2); }
.worked-with li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(243, 237, 225, .12);
  font-family: var(--headings);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--d-cream);
}

.brief {
  margin: 24px 0 8px;
  padding: 22px 22px 24px;
  border: 2px solid var(--d-ink);
  background: var(--d-paper-hi);
}
.brief-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--paragraph);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}
.brief-head span:first-child { color: var(--d-red); }
.brief-head span:last-child { color: rgba(0, 0, 0, .45); }
.brief-q { display: block; margin-bottom: 16px; }
.brief-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--headings);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--d-ink);
}
.brief-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.brief-opts button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, .35);
  background: transparent;
  color: var(--d-ink);
  font-family: var(--paragraph);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--d-spring);
}
.brief-opts button:hover { border-color: var(--d-ink); }
.brief-opts button:active { transform: scale(.96); }
.brief-opts button.is-on { background: var(--d-ink); border-color: var(--d-ink); color: var(--d-cream); }
.brief-name input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, .35);
  border-radius: 0;
  background: #fff;
  color: var(--d-ink);
  font-family: var(--paragraph);
  font-size: 16px;
  -webkit-user-select: text !important;
  user-select: text !important;
}
.brief-name input:focus { outline: 2px solid var(--d-red); outline-offset: 0; border-color: var(--d-red); }
.brief-send {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 6px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-family: var(--headings);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s ease;
}
.brief.is-ready .brief-send { background: var(--d-red); }
.brief-send:hover { background: var(--d-ink); }

html[data-theme="dark"] .brief { border-color: var(--d-cream); }
html[data-theme="dark"] .brief-label,
html[data-theme="dark"] .brief-opts button { color: var(--d-cream); }
html[data-theme="dark"] .brief-opts button { border-color: rgba(243, 237, 225, .35); }
html[data-theme="dark"] .brief-opts button.is-on { background: var(--d-cream); color: var(--d-ink); }
html[data-theme="dark"] .brief-head span:last-child { color: rgba(243, 237, 225, .5); }
html[data-theme="dark"] .brief-name input { background: #0b0b0b; color: var(--d-cream); border-color: rgba(243, 237, 225, .35); }

/* running header once it is sampling the page colour (phones) */
.m-bar.is-sampled,
.m-bar.is-sampled.is-scrolled {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transition: background-color .25s ease, color .25s ease;
}
.intro-deck { padding-top: calc(22px + env(safe-area-inset-top)); padding-bottom: calc(26px + env(safe-area-inset-bottom)); }

/* ==========================================================================
   Phone = the PC deck, page for page. Same pages in the same order with
   the same compositions, re-flowed for a narrow screen.
   ========================================================================== */
@media screen and (max-width: 767px) {
  /* ---- cover: red title page on top, the portrait on paper below it,
     the way the PC cover splits red | paper side by side ---- */
  #Home .container { padding-bottom: 0; }
  .hero-cta { margin-top: 22px; align-items: stretch; }
  .hero-cta-status { justify-content: flex-start; }
  .hero-cta-row > a { flex: 1; }
  .hero-section-images-wrapper { display: flex; flex-direction: column; margin-top: 26px; }
  .hero-section-images-wrapper > .hero-text-wrapper { order: -1; padding-top: 0; margin-bottom: 26px; }
  .hero-section-images-grid {
    position: relative;
    margin: 0 calc(-1 * var(--d-pad));
    padding: 30px var(--d-pad) 0;
    background: var(--d-paper);
  }
  .hero-section-images-holder._02 { display: none; }
  .hero-section-images-holder._01 { border: 0; }
  .hero-section-images._01 { width: 100%; }
  .hero-section-images-holder._01 .handwritten-note { top: auto; bottom: 22%; right: 0; }

  /* ---- contents: the red index page, as on PC ---- */
  .m-index { background-color: var(--d-red); color: var(--d-ink); }
  .m-index a { color: var(--d-ink); }
  .m-index a b { color: var(--d-cream); }
  .m-index a:active { color: var(--d-cream); }

  /* ---- [THAT'S ME]: title and Arabic line on one row, then the four
     photos whole, two by two, the second column dropped like the PC row ---- */
  .about-sliced { display: none; }
  .about-me-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 8px;
    row-gap: 8px;
    align-items: start;
    padding: 34px 0 52px;
  }
  .about-me-section > .about-me-grid,
  .about-me-section .about-me-image-holder { display: contents; }
  .about-me-section > .section-number { grid-column: 1 / -1; grid-row: 1; margin-bottom: 18px; }
  .about-me-section .about-me-image-holder > .reveal { grid-column: 1 / -1; grid-row: 2; justify-self: start; align-self: end; }
  .about-me-section .about-me-title { font-size: 12vw; margin: 0 0 18px; }
  .about-me-section .about-me-title._02 {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    align-self: end;
    position: static;
    width: auto;
    margin: 0 0 22px;
    font-size: 26px;
    text-align: right;
    color: var(--d-red);
  }
  .about-me-section .about-me-image-wrapper,
  .about-me-section .about-me-image-wrapper._01,
  .about-me-section .about-me-image-wrapper._02 {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }
  .about-me-section .about-me-image,
  .about-me-section .about-me-image._01 { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
  .about-me-section .about-me-image-wrapper._01 { grid-column: 1; grid-row: 3; }
  .about-me-section .about-me-image-wrapper._02 { grid-column: 2; grid-row: 3; transform: translateY(44px); }
  .about-me-section > .about-me-grid + .about-me-grid .about-me-image-holder:first-child .about-me-image-wrapper { grid-column: 1; grid-row: 4; }
  .about-me-section > .about-me-grid + .about-me-grid .about-me-image-holder:last-child .about-me-image-wrapper { grid-column: 2; grid-row: 4; transform: translateY(44px); }

  /* ---- "Hey there!": title and bio only, as on PC ---- */
  .hey-there-photo-collage { display: none; }
  .hey-there-layout { padding-top: 40px; }

  /* ---- experience: black page; the PC's photo strip becomes a banner ---- */
  #About .container-extra-small::before {
    content: "";
    display: block;
    height: 58vw;
    margin: -30px calc(-1 * var(--d-pad)) 28px;
    background: url("../images/about/eyad-museum.webp") 50% 30% / cover no-repeat;
    filter: grayscale(100%) contrast(1.08);
  }
  .worked-with { margin: 6px 0 22px; }

  /* ---- gallery title page: the PC spread — prints in the corners, the
     title in the middle, nothing overlapping ---- */
  #Work .project-section-title-holder {
    min-height: max(760px, 100svh);
    padding-bottom: 22px;
  }
  #Work .m-scatter { display: block; position: static; margin: 0; }
  #Work .m-scatter img:nth-child(n) {
    position: absolute;
    z-index: 1;
    width: 30vw;
    aspect-ratio: 3 / 4;
    top: auto; right: auto; bottom: auto; left: auto;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .28);
  }
  #Work .m-scatter img:nth-child(1) { top: 66px; left: -10px; transform: rotate(-5deg); }
  #Work .m-scatter img:nth-child(2) { top: 86px; right: 12px; width: 26vw; aspect-ratio: 4 / 5; transform: rotate(4deg); }
  #Work .m-scatter img:nth-child(3) { bottom: 66px; left: 14px; width: 26vw; aspect-ratio: 4 / 5; transform: rotate(3deg); }
  #Work .m-scatter img:nth-child(4) { bottom: 40px; right: -10px; transform: rotate(-4deg); }
  #Work .project-section-title-holder > div.reveal { order: 2; margin: auto 0 0; text-align: center; }
  #Work .handwritten-inline { margin: .1em auto 0; text-align: center; }
  #Work .m-lede { order: 3; margin: 14px auto auto; max-width: 230px; text-align: center; }

  /* ---- contact: the brief, full width ---- */
  .brief { margin: 20px 0 6px; padding: 18px 16px 20px; }

  /* ---- the hire nudge as a slim black strip instead of a big card ---- */
  .hire-toast,
  .hire-toast.is-visible {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 48px 12px 16px;
    background: var(--d-ink);
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  }
  .hire-toast-text { margin: 0; font-size: 13px; color: var(--d-cream); }
  .hire-toast-text br,
  .hire-toast .hire-toast-hand { display: none; }
  .hire-toast-cta { margin-left: auto; min-height: 36px; white-space: nowrap; color: #ff5a4a; border-color: #ff5a4a; }
  .hire-toast-close { color: var(--d-cream); }
}
@media screen and (max-width: 767px) {
  .worked-with ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .worked-with li { font-size: 12.5px; }
}
@media screen and (max-width: 767px) { .scroll-hint { display: none; } }
@media screen and (min-width: 768px) { #mylinks .brief { grid-column: 2; } }

/* ==========================================================================
   Cover, refined. The right page reads top to bottom: label, name, script,
   roles, a one-line pitch, the hire buttons, then a ruled credits row
   (based in / now / led / motto). The left page gets a printed caption and
   a vertical spine label along the fold. The floating corner clock is gone
   — the running header already carries Giza time.
   ========================================================================== */
.site-readout { display: none !important; }
.hero-section-images-wrapper > .hero-text-wrapper .hero-section-small-text::before { content: none !important; }
.hero-credit-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
}
.hero-section-text-holder p.hero-pitch {
  max-width: 34ch;
  margin: 22px auto 0;
  font-family: var(--paragraph);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: none;
  text-align: center;
  color: rgba(0, 0, 0, .78);
}
.hero-cta { margin-top: 18px; }
.hero-cta-status i { background: #18d15a; box-shadow: 0 0 0 3px rgba(24, 209, 90, .3), 0 0 10px rgba(24, 209, 90, .6); }
.hero-section-images-holder._01 .artist-signature {
  font-family: var(--paragraph);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--d-ink);
  transform: none;
  opacity: 1;
  mix-blend-mode: normal;
}

@media screen and (min-width: 768px) {
  .hero-section-text-holder { padding-bottom: 4vh; }
  .hero-section-images-wrapper > .hero-text-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2vw;
    margin: 0 var(--d-pad) 5vh 4vw;
    padding: 14px 0 0;
    border-top: 2px solid var(--d-ink);
  }
  .hero-section-images-wrapper > .hero-text-wrapper .hero-section-small-text { font-size: 11.5px; }
  .hero-section-images-wrapper > .hero-text-wrapper .right-align { text-align: right; }
  .hero-section-images-holder._01 .artist-signature { left: var(--d-pad); bottom: 5vh; }
  .hero-section-images-grid::after {
    content: none;
    position: absolute;
    top: 50%;
    right: 18px;
    font-family: var(--headings);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(0, 0, 0, .45);
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    pointer-events: none;
  }
}
@media screen and (max-width: 767px) {
  .hero-section-text-holder p.hero-pitch { margin-top: 18px; text-align: left; font-size: 14.5px; max-width: none; }
  .hero-section-images-wrapper > .hero-text-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
    padding-top: 14px;
    border-top: 2px solid var(--d-ink);
  }
  .hero-section-images-wrapper > .hero-text-wrapper .right-align { text-align: left; }
  .hero-section-images-holder._01 .artist-signature { left: 0; bottom: 14px; }
}
html[data-theme="dark"] .hero-section-images-grid::after { color: rgba(243, 237, 225, .45); }
html[data-theme="dark"] .hero-section-images-holder._01 .artist-signature { color: var(--d-cream); }

/* Cover kept quiet: name, script, roles, two buttons, two credits. */
@media screen and (min-width: 768px) {
  .hero-cta { margin-top: 5vh; }
  .hero-section-images-wrapper > .hero-text-wrapper .right-align { text-align: right; }
}
@media screen and (max-width: 767px) {
  .hero-section-images-wrapper > .hero-text-wrapper .right-align { text-align: right; }
}
@media screen and (min-width: 768px) {
  .hero-section-images-wrapper > .hero-text-wrapper { width: auto; min-width: 0; }
}
/* style.css gives the portrait holder align-self:start, which shrinks an
   absolutely positioned box to its content; keep it full height so the
   portrait stands on the bottom edge. */
@media screen and (min-width: 768px) {
  .hero-section-images-holder._01 { align-self: stretch; justify-self: stretch; height: 100%; }
}

/* ==========================================================================
   Clients — a credits page. Each group is a ruled row: the [ label ] in the
   running-header column, then the names set inline in display type with a
   red slash between them.
   ========================================================================== */
.clients {
  position: relative;
  padding: calc(var(--d-bar-h) + 10px) var(--d-pad) 12vh;
  background: var(--d-paper);
  color: var(--d-ink);
}
.clients-head {
  display: grid;
  grid-template-columns: var(--d-head-col) 1fr;
  gap: 8px;
  align-items: end;
  margin: 2vh 0 7vh;
}
.clients-title {
  margin: 0;
  font-family: var(--d-display);
  font-weight: 400;
  font-size: clamp(46px, 6.2vw, 120px);
  line-height: .9;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--d-ink);
}
.clients-script {
  font-family: var(--d-script);
  font-size: clamp(30px, 3vw, 54px);
  line-height: 1;
  color: var(--d-red);
  transform: rotate(-4deg);
  justify-self: start;
}
.clients-group {
  display: grid;
  grid-template-columns: var(--d-head-col) 1fr;
  gap: 8px;
  padding: 20px 0 26px;
  border-top: 2px solid var(--d-ink);
}
.clients-label {
  padding-top: 6px;
  font-family: var(--paragraph);
  font-size: 11px;
  font-weight: 700;
  color: var(--d-red);
}
.clients-group ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clients-group li {
  font-family: var(--d-display);
  font-size: clamp(30px, 3.6vw, 64px);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--d-ink);
  transition: color .2s ease;
}
.clients-group li:not(:last-child)::after {
  content: "/";
  margin: 0 .24em;
  color: var(--d-red);
}
.clients-group li.clients-ar {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 3vw, 54px);
  line-height: 1.25;
}
@media (hover: hover) {
  .clients-group li:hover { color: var(--d-red); }
}
@media screen and (max-width: 767px) {
  .clients { padding: 40px var(--d-pad) 56px; }
  .clients-head { grid-template-columns: 1fr; gap: 10px; margin: 0 0 30px; }
  .clients-title { font-size: clamp(46px, 15vw, 72px); }
  .clients-script { font-size: 30px; margin-left: 12%; }
  .clients-group { grid-template-columns: 1fr; gap: 10px; padding: 16px 0 20px; }
  .clients-label { padding-top: 0; }
  .clients-group li { font-size: 30px; }
  .clients-group li.clients-ar { font-size: 26px; }
}
html[data-theme="dark"] .clients { color: var(--d-cream); }
html[data-theme="dark"] .clients-title,
html[data-theme="dark"] .clients-group li { color: var(--d-cream); }
html[data-theme="dark"] .clients-group { border-top-color: var(--d-cream); }
.clients-group li { unicode-bidi: isolate; }

/* ==========================================================================
   Clients as a logo wall: each client is a white card with its real logo
   (or its name set as a wordmark where there is no logo file) and a
   bracketed caption. Cards lift with a red offset shadow on hover / focus,
   the same move as the Studio card.
   ========================================================================== */
.clients-group { grid-template-columns: var(--d-head-col) 1fr; }
.clients-group ul.clients-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.clients-wall .client,
.clients-wall .client:hover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 14% 12% 18%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  font-size: 0;
  color: var(--d-ink);
  transition: transform .3s var(--d-spring), box-shadow .3s var(--d-spring);
}
.clients-wall .client::after { content: none !important; }
.clients-wall .client img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}
.clients-wall .client > span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-family: var(--paragraph);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  color: rgba(0, 0, 0, .45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 20px);
}
.clients-wall .client > span::before { content: "[ "; }
.clients-wall .client > span::after { content: " ]"; }
.clients-wall .client-word b {
  font-family: var(--d-display);
  font-weight: 400;
  font-size: clamp(22px, 2.3vw, 40px);
  line-height: .95;
  text-align: center;
  text-transform: uppercase;
  color: var(--d-ink);
}
.clients-wall .client-ar b {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 2.4vw, 42px);
  line-height: 1.2;
  text-transform: none;
}
@media (hover: hover) {
  .clients-wall .client:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--d-red); }
}
.clients-wall .client.is-focus { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--d-red); }
html[data-theme="dark"] .clients-wall .client { border-color: transparent; }
html[data-theme="dark"] .clients-wall .client-word b { color: var(--d-ink); }

@media screen and (max-width: 991px) {
  .clients-group ul.clients-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 767px) {
  .clients-group { grid-template-columns: 1fr; }
  .clients-group ul.clients-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .clients-wall .client { padding: 16% 14% 22%; }
  .clients-wall .client-word b { font-size: 24px; }
  .clients-wall .client > span { font-size: 9.5px; left: 8px; bottom: 6px; }
}
.clients-wall .client,
.clients-wall .client:hover { overflow: hidden; min-height: 0; }
.clients-wall .client img { width: 100%; height: 100%; max-width: none; max-height: none; }
.clients-wall .client.is-focus { transform: none; box-shadow: none; }
.clients-wall .client-word b { font-size: clamp(20px, 2vw, 34px); }
@media screen and (max-width: 767px) {
  .clients-wall .client-word b { font-size: 22px; }
}

/* ==========================================================================
   Phone cover, a magazine cover. Giant name on red, the cut-out portrait
   standing in front of it (head over AYMAN), the script line written on
   across the shoulder, roles and the hire buttons set over the dark jacket.
   Entrance: the name rises line by line, the portrait lifts in, the script
   writes itself, then the controls. While scrolling, the name drifts slower
   than the portrait for depth. Desktop is untouched.
   ========================================================================== */
@media screen and (max-width: 767px) {
  #Home {
    --cover-top: calc(env(safe-area-inset-top) + 56px + 44vw);
    position: relative;
    overflow: hidden;
  }
  #Home .container { padding: 0 var(--d-pad); }
  #Home .hero-section { position: relative; }
  #Home .hero-section-text-holder {
    position: relative;
    display: block;
    min-height: calc(var(--cover-top) + 137vw);
    padding-top: calc(env(safe-area-inset-top) + 70px);
  }
  #Home .hero-section-text-holder > .perspective:first-child { position: relative; z-index: 1; }

  /* the name, each line set to the full width */
  #Home .hero-text {
    margin: 4px 0 0;
    line-height: .82;
    translate: 0 calc(var(--cv, 0) * 240px);
  }
  #Home .hero-text span { display: block; }
  #Home .hero-text .ht-l1 { font-size: calc((100vw - 36px) / 1.81); color: var(--d-ink); }
  #Home .hero-text .ht-l2 { font-size: calc((100vw - 36px) / 2.64); color: var(--d-cream); margin-top: .02em; }

  /* the portrait in front of the name */
  #Home .hero-section-images-wrapper { display: block; margin: 0; }
  #Home .hero-section-images-grid {
    position: absolute;
    z-index: 2;
    top: var(--cover-top);
    left: calc(-14vw - var(--d-pad));
    width: 150vw;
    height: 137vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: none;
    pointer-events: none;
    transform-origin: 50% 100%;
    scale: calc(1 + var(--cv, 0) * .08);
  }
  #Home .hero-section-images-grid::after {
    content: "";
    position: absolute;
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    height: 42%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6));
    writing-mode: horizontal-tb;
    transform: none;
  }
  #Home .hero-section-images-holder._01 {
    position: absolute;
    inset: 0;
    display: block;
    min-height: 0;
    border: 0;
    overflow: visible;
  }
  #Home .hero-section-images._01 { width: 100%; height: auto; max-width: none; }
  #Home .hero-section-images-holder._01 .handwritten-note {
    top: 24%;
    right: 27%;
    bottom: auto;
    font-size: 21px;
    padding: 0 10px;
    z-index: 3;
  }

  /* script line across the shoulder */
  #Home .m-sign {
    position: absolute;
    z-index: 3;
    right: 0;
    top: calc(var(--cover-top) + 66vw);
    margin: 0;
    font-size: 50px;
    color: var(--d-cream);
    text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
  }

  /* roles and buttons over the jacket */
  #Home .hero-section-text-holder ._100width {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 96px;
  }
  #Home .hero-section-text-holder .hero-text-wrapper { margin: 0; border-top-color: rgba(243, 237, 225, .7); }
  #Home .hero-section-text-holder .hero-text-wrapper .hero-section-small-text { color: var(--d-cream); }
  #Home .hero-cta {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 26px;
    margin: 0;
  }
  #Home .hero-cta-main { background: var(--d-red); color: #fff; }
  #Home .hero-cta-alt { border-color: var(--d-cream); color: var(--d-cream); }
  #Home .hero-cta-main:active { background: var(--d-cream); color: var(--d-ink); }

  /* credits under the cover */
  #Home .hero-section-images-wrapper > .hero-text-wrapper {
    position: relative;
    z-index: 4;
    margin: 0;
    padding: 18px 0 30px;
    background: var(--d-red);
    border-top: 2px solid var(--d-ink);
  }

  /* entrance */
  #Home .ht-l1 { animation: cvRise .95s cubic-bezier(.16, 1, .3, 1) .1s both; }
  #Home .ht-l2 { animation: cvRise .95s cubic-bezier(.16, 1, .3, 1) .22s both; }
  #Home .hero-section-images-grid { animation: cvLift 1.15s cubic-bezier(.16, 1, .3, 1) .38s both; }
  #Home .m-sign { animation: cvWrite 1.1s cubic-bezier(.6, 0, .2, 1) 1s both; }
  #Home .hero-section-text-holder > .perspective:first-child { animation: cvUp .7s ease .55s both; }
  #Home .hero-section-text-holder ._100width { animation: cvUp .7s ease .85s both; }
  #Home .hero-cta { animation: cvUp .7s ease 1s both; }
  #Home.cover-replay .ht-l1 { animation-name: cvRise2; animation-delay: .45s; }
  #Home.cover-replay .ht-l2 { animation-name: cvRise2; animation-delay: .57s; }
  #Home.cover-replay .hero-section-images-grid { animation-name: cvLift2; animation-delay: .7s; }
  #Home.cover-replay .m-sign { animation-name: cvWrite2; animation-delay: 1.35s; }
  #Home.cover-replay .hero-section-text-holder > .perspective:first-child { animation-name: cvUp2; animation-delay: .9s; }
  #Home.cover-replay .hero-section-text-holder ._100width { animation-name: cvUp2; animation-delay: 1.2s; }
  #Home.cover-replay .hero-cta { animation-name: cvUp2; animation-delay: 1.35s; }
}
@keyframes cvRise { from { transform: translateY(45%); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(0 0 -10% 0); } }
@keyframes cvRise2 { from { transform: translateY(45%); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(0 0 -10% 0); } }
@keyframes cvLift { from { opacity: 0; transform: translateY(12%); } to { opacity: 1; transform: none; } }
@keyframes cvLift2 { from { opacity: 0; transform: translateY(12%); } to { opacity: 1; transform: none; } }
@keyframes cvWrite { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -5% -20% 0); } }
@keyframes cvWrite2 { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -5% -20% 0); } }
@keyframes cvUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cvUp2 { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media screen and (max-width: 767px) and (prefers-reduced-motion: reduce) {
  #Home .ht-l1, #Home .ht-l2, #Home .hero-section-images-grid, #Home .m-sign,
  #Home .hero-section-text-holder > .perspective:first-child,
  #Home .hero-section-text-holder ._100width, #Home .hero-cta { animation: none !important; }
  #Home .hero-text, #Home .hero-section-images-grid { translate: none; scale: none; }
}

/* ==========================================================================
   Splash, "the edit": the red cover sheet. EYAD rises above a frame, AYMAN
   below it, and inside the frame the work hard-cuts like a video edit
   (seven pieces, 0.14s each) and lands on the portrait on paper; then
   "since 2017" writes itself across the corner. No counter, no bar. On
   exit the name lifts away, the frame pushes in and the sheet wipes up.
   ========================================================================== */
.intro-cut {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(22px + env(safe-area-inset-top)) var(--d-pad) calc(24px + env(safe-area-inset-bottom));
  background: var(--d-red);
  color: var(--d-ink);
}
.intro-cut .intro-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6vh;
  min-height: 0;
  --name: min(17vw, 24vh);
  --frame-h: min(34vh, 62vw);
}
.intro-cut .intro-l1,
.intro-cut .intro-l2 {
  display: block;
  font-family: var(--d-display);
  line-height: .82;
  letter-spacing: 0;
  text-transform: uppercase;
  animation: introRise .95s cubic-bezier(.16, 1, .3, 1) both;
}
.intro-cut .intro-l1 { font-size: var(--name); color: var(--d-ink); animation-delay: .1s; }
.intro-cut .intro-l2 { font-size: calc(var(--name) * .686); color: var(--d-cream); animation-delay: .22s; }

.intro-cut .intro-frame {
  position: relative;
  height: var(--frame-h);
  aspect-ratio: 4 / 5;
}
.intro-cut .intro-reel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--d-cream);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .35);
  animation: introOpen .6s cubic-bezier(.7, 0, .2, 1) .3s both;
}
.intro-cut .intro-reel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: introCut .01s steps(1) both;
  animation-delay: calc(.55s + var(--k) * .14s);
}
.intro-cut .intro-reel img.intro-last {
  object-fit: contain;
  object-position: 50% 100%;
  background: var(--d-cream);
  filter: grayscale(1) contrast(1.05);
}
.intro-cut .intro-script {
  position: absolute;
  z-index: 3;
  right: -34%;
  bottom: 8%;
  font-family: var(--d-script);
  font-size: calc(var(--frame-h) * .2);
  line-height: 1;
  white-space: nowrap;
  color: var(--d-cream);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
  transform: rotate(-7deg);
  animation: cvWrite .9s cubic-bezier(.6, 0, .2, 1) 1.65s both;
}
@keyframes introOpen { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes introCut { from { opacity: 0; } to { opacity: 1; } }

.intro-cut .intro-head { animation-delay: .15s; }
.intro-cut .intro-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; animation-delay: .9s; }

/* exit */
.intro-cut.is-leaving .intro-l1,
.intro-cut.is-leaving .intro-l2 { animation: introChOut .5s cubic-bezier(.7, 0, .3, 1) forwards; }
.intro-cut.is-leaving .intro-l2 { animation-delay: .05s; }
.intro-cut.is-leaving .intro-frame { transition: transform .7s cubic-bezier(.7, 0, .3, 1), opacity .5s ease .15s; transform: scale(1.18); opacity: 0; }
.intro-cut.is-leaving .intro-head,
.intro-cut.is-leaving .intro-foot { transition: opacity .25s ease; opacity: 0 !important; }

@media screen and (max-width: 767px) {
  .intro-cut .intro-stack { --name: calc((100vw - 36px) / 1.81); --frame-h: min(34svh, 64vw); gap: 12px; }
  .intro-cut .intro-l2 { font-size: calc((100vw - 36px) / 2.64); }
  .intro-cut .intro-head { grid-template-columns: 1fr auto; }
  .intro-cut .intro-head span:last-child { display: none; }
  .intro-cut .intro-script { right: -26%; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-cut .intro-l1, .intro-cut .intro-l2, .intro-cut .intro-reel,
  .intro-cut .intro-reel img, .intro-cut .intro-script { animation: none !important; }
  .intro-cut .intro-reel img { opacity: 0; }
  .intro-cut .intro-reel img.intro-last { opacity: 1; }
}

/* Splash fixes: the script line was held at opacity 0 by the old splash
   rule; the last cut fills the frame; wide screens set EYAD, the frame and
   AYMAN in one row across the full width. */
.intro-cut .intro-script { opacity: 1; top: auto; left: auto; }
.intro-cut .intro-reel img.intro-last { object-fit: cover; object-position: 42% 100%; }
@media screen and (min-width: 768px) {
  .intro-cut .intro-stack {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    --name: min(calc((100vw - 2 * var(--d-pad)) / 6.1), 30vh);
    --frame-h: calc(var(--name) * 1.4);
  }
  .intro-cut .intro-l2 { font-size: var(--name); }
  .intro-cut .intro-script { right: -18%; bottom: -10%; }
}

/* ==========================================================================
   Arabic (html.is-ar, set by i18n.js). Arabic body text in Cairo, display
   lines in Cairo Black so the deck keeps its weight, and the page mirrored
   right-to-left. The name EYAD AYMAN, the logos and the media stay as they
   are.
   ========================================================================== */
.lang-toggle {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  font-weight: 900;
  cursor: pointer;
}
.m-bar-lang { display: none; }
@media screen and (max-width: 991px) {
  .nav-lang { display: none; }
  .m-bar-lang {
    display: inline-flex;
    position: absolute;
    top: calc(env(safe-area-inset-top) + 8px);
    right: 106px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid currentColor;
    background: transparent;
    color: inherit;
    font-size: 17px;
    line-height: 1;
    pointer-events: auto;
  }
  html.is-ar .m-bar-lang { font-family: var(--headings); font-size: 12px; letter-spacing: .08em; }
  .m-bar { padding-right: 160px; }
}

html.is-ar body,
html.is-ar p,
html.is-ar .contact-lede,
html.is-ar [data-about-bio],
html.is-ar .process-desc,
html.is-ar .faq-item-answer,
html.is-ar .btw-lede,
html.is-ar .btw-stepbtn em,
html.is-ar .m-lede,
html.is-ar .brief-opts button,
html.is-ar .brief-head,
html.is-ar .hero-section-small-text,
html.is-ar .section-number,
html.is-ar .m-page-head,
html.is-ar .m-bar,
html.is-ar .nav-link-big,
html.is-ar .clients-label,
html.is-ar .project-index,
html.is-ar .small-title,
html.is-ar .process-detail,
html.is-ar .faq-item summary,
html.is-ar .contact-card-label,
html.is-ar .sp-kicker,
html.is-ar .m-spec,
html.is-ar .intro-head,
html.is-ar .intro-foot,
html.is-ar .whatsapp-button,
html.is-ar .brief-label,
html.is-ar .brief-send,
html.is-ar .hero-cta-main,
html.is-ar .hero-cta-alt,
html.is-ar .signoff-cta,
html.is-ar .signoff-readout,
html.is-ar .download-button,
html.is-ar .btw-bridge-cta,
html.is-ar .sp-cta,
html.is-ar .hire-toast,
html.is-ar .clients-wall .client > span,
html.is-ar .footer-link {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  letter-spacing: 0;
}

/* display lines: Cairo Black, a touch smaller than the Latin display face */
html.is-ar .about-me-title,
html.is-ar .clients-title,
html.is-ar .showreel-title,
html.is-ar .btw-title,
html.is-ar .btw-step h4,
html.is-ar .btw-stepbtn strong,
html.is-ar .btw-bridge-line,
html.is-ar .sp-title,
html.is-ar .editorial-break-text,
html.is-ar .signoff-headline,
html.is-ar .m-index a,
html.is-ar .navbar.nav-open .nav-link-big {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
}
html.is-ar .clients-title { font-size: clamp(40px, 5.2vw, 100px); }
html.is-ar .signoff-headline { line-height: 1.1; }
html.is-ar .m-index a { font-size: clamp(40px, min(5.6vw, 11vh), 120px); line-height: 1.2; }
html.is-ar .navbar.nav-open .nav-link-big { font-size: clamp(34px, 11vw, 64px); line-height: 1.25; }

/* the name and the script lines stay Latin */
html.is-ar .hero-text,
html.is-ar .intro-l1,
html.is-ar .intro-l2,
html.is-ar .m-sign,
html.is-ar .intro-script,
html.is-ar .clients-script,
html.is-ar .handwritten-inline,
html.is-ar .handwritten-note { direction: ltr; }
html.is-ar .handwritten-inline,
html.is-ar .handwritten-note,
html.is-ar .clients-script,
html.is-ar .btw-note { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; font-weight: 800; }
html.is-ar .handwritten-inline { font-size: 24px; direction: rtl; }
html.is-ar .clients-script { font-size: clamp(22px, 2.2vw, 38px); direction: rtl; }
html.is-ar .handwritten-note { direction: rtl; font-size: 20px; }
html.is-ar .btw-note { font-size: 16px; line-height: 1.3; }

/* mirrored bits */
html.is-ar .btw-stepbtn,
html.is-ar .brief-head,
html.is-ar .contact-card::after { content: "\2196"; margin-left: 0; margin-right: auto; }
html.is-ar .whatsapp-button { padding-left: 54px; padding-right: 20px; }
html.is-ar .whatsapp-button::after { content: "\2190"; right: auto; left: 20px; }
html.is-ar .process-block,
html.is-ar .process-block:first-child { border-left: 0; border-right: 1px solid rgba(243, 237, 225, .35); }
html.is-ar .process-block-current { border-right-color: var(--d-red); }
@media screen and (max-width: 767px) {
  html.is-ar .process-block,
  html.is-ar .process-block:first-child { padding: 16px 22px 18px 0; margin: 0 5px 0 0; }
  html.is-ar .process-block::before { left: auto; right: -6px; }
}
html.is-ar .faq-item summary { padding: 17px 40px 17px 40px; }
html.is-ar .faq-item summary::before { left: auto; right: 0; }
html.is-ar .faq-item summary::after { right: auto; left: 4px; }
html.is-ar .faq-item-answer { padding: 0 40px 20px 6px; }
html.is-ar .hero-section-images-wrapper > .hero-text-wrapper .right-align { text-align: left; }
html.is-ar .section-number::before { content: "بورتفوليو"; }
@media screen and (min-width: 768px) {
  html.is-ar #Home { background: linear-gradient(270deg, var(--d-paper) 50%, var(--d-red) 50%); }
}
html.is-ar .about-me-title .handwritten-inline { margin-top: 1.5em; line-height: 1.4; }
html.is-ar .hero-section-text-holder > .perspective:first-child .hero-section-small-text::before { content: "[ المصمم ]"; font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; }
@media screen and (max-width: 991px) {
  .m-bar { grid-template-columns: auto 1fr; column-gap: 16px; padding-right: 158px; }
}

/* Bio: a large lead line, body paragraphs, and the closing line set as a
   red display headline. */
[data-about-bio] p { margin: 0 0 1.1em; font: inherit; color: inherit; text-transform: none; break-inside: avoid; }
[data-about-bio] .bio-lead {
  font-family: var(--paragraph);
  font-size: 1.45em;
  font-weight: 600;
  line-height: 1.35;
  color: var(--d-ink);
}
[data-about-bio] .bio-close {
  margin: .4em 0 0;
  font-family: var(--d-display);
  font-size: clamp(30px, 2.6vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--d-red);
}
html[data-theme="dark"] [data-about-bio] .bio-lead { color: var(--d-cream); }
html.is-ar [data-about-bio] .bio-lead { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; font-weight: 700; }
html.is-ar [data-about-bio] .bio-close { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; font-weight: 900; line-height: 1.3; }
@media screen and (min-width: 768px) {
  [data-about-bio] .bio-lead { column-span: all; max-width: 34em; margin-bottom: 1.2em; }
}
[data-about-bio] .bio-close { margin-bottom: 0; }
[data-about-bio] { padding-bottom: 6px; }
@media screen and (max-width: 767px) { .hey-there-layout { padding-bottom: 36px; } }
