/* Portfolio page (/portfolio): Websites, Automation, SaaS, SEO, AI, Mobile, Support and Stack
   (order set in the page data with tools/reorder_sections.py), followed by the footer. */
#sidekick, #agentic, #online, #retail { display: none !important; }
li:has(> a[href$="#sidekick"]), li:has(> a[href$="#agentic"]), li:has(> a[href$="#online"]),
li:has(> a[href$="#retail"]) { display: none !important; }

/* keep the page (and its fixed sidebar) in one layer below the footer, as on the home page */
.main-wrapper { position: relative; z-index: 6; }

/* no hero on this page: the first section (Websites) opens the page */
main > div:has(+ #main-content) { display: none !important; }

/* The page's centred title box normally docks into the left sidebar once you scroll past the hero
   (attribute data-scrolled="true"). With no hero here, keep it docked from the start: these are the
   page's own "scrolled" rules without the scroll condition. */
@media (min-width: 940px) {
  [data-section-name="side-and-lines"] h2 {
    --tw-translate-x: calc(-50cqi + 170px - .5rem) !important;
    --tw-translate-y: calc(-50cqb + 274px) !important;
    translate: var(--tw-translate-x) var(--tw-translate-y) !important;
  }
  [data-section-name="side-and-lines"] ul {
    --tw-translate-y: calc(50cqb - 293px) !important;
    width: 145px !important;
    translate: var(--tw-translate-x) var(--tw-translate-y) !important;
  }
  [data-section-name="side-and-lines"] li {
    --tw-translate-x: calc(-50cqi + 170px - .5rem) !important;
    translate: var(--tw-translate-x) var(--tw-translate-y) !important;
  }
  [data-section-name="side-and-lines"] .title { scale: .75 !important; }
  [data-section-name="side-and-lines"] .subtitle,
  [data-section-name="side-and-lines"] .davinci-lines__border { opacity: 0 !important; }
}
/* phones and small tablets: no sidebar, so drop the box entirely (the header menu covers navigation) */
@media (max-width: 939px) {
  [data-section-name="side-and-lines"] nav { visibility: hidden !important; }   /* not display:none: its intro animation must still finish */
}


/* Mobile: no projects yet, so drop the original demo material (the big feature card with the demo store
   video and the picture cards); the section title, intro and feature list stay */
#marketing #chatgpt-xxl,
#marketing .bg-light article.card-container { display: none !important; }
