/* Portfolio homepage — light editorial redesign, 2026-10-19.
   The existing site.css remains shared with standalone pages.
   This file owns the homepage presentation; no content or images are replaced.
   Adobe Fonts: Acumin Pro 700; Source Sans 3 400/600. */

/* Palette and readable type */
body:has(.home-main--simple) {
  --editorial-ink: #172c40;
  --editorial-muted: #40566a;
  --editorial-paper: #f5f8fb;
  --editorial-surface: #ffffff;
  --editorial-line: #d6e1eb;
  --editorial-blue: #17527b;
  --editorial-blue-hover: #103d5d;
  --editorial-blue-light: #4a9fd7;
  --home-paper: var(--editorial-paper);
  --home-ink: var(--editorial-ink);
  --home-blue: var(--editorial-muted);
  --home-steel: var(--editorial-blue);
  --home-surface: var(--editorial-surface);
  --home-rule: var(--editorial-line);
  --home-rule-strong: #bacddc;
  --home-navy: var(--editorial-blue);
  --home-ochre: var(--editorial-blue-light);
  --home-red: var(--editorial-blue);
  --on-dark-muted: #cad8e5;
  --font-sans: "source-sans-3", "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --section-pad: clamp(3.25rem, 5.2vw, 5rem);
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --home-measure: 73.75rem;
  --h2: clamp(1.875rem, 3vw, 2.35rem);
  --body: 1.0625rem;
  --lede: 1.125rem;
  --lede-lg: 1.25rem;
  --small: .875rem;
  --lh-body: 1.6;
  color: var(--editorial-ink);
  background: var(--editorial-paper);
  background-image: none;
  font-family: var(--font-sans);
  font-size: var(--body);
  text-rendering: optimizeLegibility;
}

body:has(.home-main--simple) :where(p, li) { overflow-wrap: break-word; }
body:has(.home-main--simple) :where(h2, h3) {
  font-family: "acumin-pro", "source-sans-3", Arial, sans-serif;
  letter-spacing: -.025em;
  line-height: 1.16;
  font-weight: 700;
}
body:has(.home-main--simple) .simple-section-heading h2,
body:has(.home-main--simple) .performance-evidence-heading h2 {
  max-width: none;
  font-size: var(--h2);
  margin: 0 0 .55rem;
  color: var(--editorial-ink);
  overflow-wrap: normal;
}
body:has(.home-main--simple) .simple-section-heading,
body:has(.home-main--simple) .performance-evidence-heading {
  max-width: 68rem;
  margin: 0 0 1.75rem;
}
body:has(.home-main--simple) .simple-section-heading::before {
  width: 2.25rem;
  height: .19rem;
  margin-bottom: .85rem;
  background: var(--editorial-blue-light);
}
body:has(.home-main--simple) .simple-section-heading > p:last-child,
body:has(.home-main--simple) #systems .simple-section-heading > p:last-child,
body:has(.home-main--simple) .performance-evidence-heading > p:last-child,
body:has(.home-main--simple) .workflow-section .simple-section-heading > p:last-child {
  color: var(--editorial-muted);
  max-width: 71ch;
  font-size: 1.0625rem;
  line-height: 1.6;
}
body:has(.home-main--simple) .eyebrow {
  color: var(--editorial-blue);
  font-size: .75rem;
  letter-spacing: .095em;
}
body:has(.home-main--simple) .home-main > section:not(.portfolio-hero):not(.capability-strip):not(.contact-section--simple) {
  padding-block: var(--section-pad);
  padding-inline: max(var(--gutter), calc((100% - var(--home-measure)) / 2));
  border-top: 1px solid var(--editorial-line);
  border-bottom: 0;
  background: var(--editorial-paper);
  background-image: none;
  color: var(--editorial-ink);
}
body:has(.home-main--simple) .home-main > section:nth-of-type(2n + 1):not(.portfolio-hero):not(.capability-strip):not(.contact-section--simple) {
  background: #f9fbfd;
}
body:has(.home-main--simple) .home-main > section :where(p, li) {
  line-height: 1.58;
}

/* Keep the black original header and existing distinctive hero artwork intact. */
body:has(.home-main--simple) .site-header {
  background: #000;
  border-bottom-color: #263c52;
}
/* Match the text-only site identity to the editorial heading typeface. */
body:has(.home-main--simple) .site-brand--webops .brand-name {
  font-family: "acumin-pro", "source-sans-3", Arial, sans-serif;
}

body:has(.home-main--simple) .site-header .nav-list a {
  font-family: "source-sans-3", "Segoe UI", Arial, sans-serif;
  font-size: .84rem;
  letter-spacing: .03em;
}
body:has(.home-main--simple) .portfolio-hero {
  background: #2e5e79 url("../images/hero/hero-artwork.jpg") 55% center / 100% no-repeat;
}
body:has(.home-main--simple) .portfolio-hero h1 {
  font-family: "acumin-pro", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #e2e9e9;
}
body:has(.home-main--simple) .portfolio-hero .portfolio-hero__offers .portfolio-hero__action,
body:has(.home-main--simple) .portfolio-hero .portfolio-hero__offers .portfolio-hero__action:nth-child(3) {
  min-height: 2.35rem;
  padding: .5rem .6rem;
  border: 1px solid rgba(242,244,247,.55);
  border-radius: .3rem;
  background: rgba(8,24,38,.7);
  color: #f2f4f7;
  font-family: "source-sans-3", Arial, sans-serif;
  font-size: .8125rem;
  font-weight: 600;
}
body:has(.home-main--simple) .portfolio-hero .portfolio-hero__offers .portfolio-hero__action:hover,
body:has(.home-main--simple) .portfolio-hero .portfolio-hero__offers .portfolio-hero__action:focus-visible {
  color: #fff;
  background: #244461;
  border-color: #a8cdec;
}

/* A quiet skills strip separates the blue hero from the light editorial page. */
body:has(.home-main--simple) .capability-strip {
  background: #eaf1f7;
  padding-block: 1rem;
  border-block: 1px solid var(--editorial-line);
}
body:has(.home-main--simple) .tech-strip,
body:has(.home-main--simple) .tech-strip__item { color: #244461; }
body:has(.home-main--simple) .tech-strip__item:not(:last-child)::after { color: #a9bbca; }

/* Unified CTA and hover states on light sections. */
body:has(.home-main--simple) .home-main > section:not(.portfolio-hero):not(.capability-strip):not(.contact-section--simple) .button,
body:has(.home-main--simple) .home-main > section:not(.portfolio-hero):not(.capability-strip):not(.contact-section--simple) .button:visited {
  min-height: 2.65rem;
  width: fit-content;
  padding: .65rem 1.1rem;
  border: 1px solid var(--editorial-blue);
  border-radius: .36rem;
  background: var(--editorial-blue);
  color: #fff;
  box-shadow: none;
  font-family: "source-sans-3", Arial, sans-serif;
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-transform: none;
  text-decoration: none;
}
body:has(.home-main--simple) .home-main > section:not(.portfolio-hero):not(.capability-strip):not(.contact-section--simple) .button:is(:hover,:visited:hover) {
  background: var(--editorial-blue-hover);
  border-color: var(--editorial-blue-hover);
  color: #fff;
}
body:has(.home-main--simple) .home-main a:not(.button),
body:has(.home-main--simple) .home-main a:not(.button):visited {
  color: var(--editorial-blue);
}
body:has(.home-main--simple) .home-main a:not(.button):hover {
  color: var(--editorial-blue-hover);
  text-decoration: underline;
}
body:has(.home-main--simple) .home-main :focus-visible {
  outline: 3px solid #3a85b4;
  outline-offset: 3px;
}

/* Web Development: section title outside the card; original project screenshot unchanged. */
body:has(.home-main--simple) .feature-section { min-width: 0; }
body:has(.home-main--simple) .feature-project {
  grid-template-areas: "heading image" "copy image";
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 1rem clamp(2rem, 4vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  background: #fff;
  border: 1px solid var(--editorial-line);
  border-radius: .55rem;
  box-shadow: 0 6px 22px rgba(12,38,62,.06);
}
body:has(.home-main--simple) .feature-project .simple-section-heading {
  margin: 0;
  align-self: end;
}
body:has(.home-main--simple) .feature-project .simple-section-heading::before { margin-bottom: .9rem; }
body:has(.home-main--simple) .feature-project .simple-section-heading h2 {
  color: var(--editorial-ink);
  font-size: var(--h2);
  white-space: normal;
  margin-bottom: 0;
}
body:has(.home-main--simple) .feature-project-copy {
  grid-area: copy;
  align-self: start;
  padding: 0;
  border: 0;
}
body:has(.home-main--simple) .feature-project-copy h3 {
  color: var(--editorial-ink);
  font-size: 1.3rem;
  margin: .5rem 0 .65rem;
}
body:has(.home-main--simple) .feature-project-copy h3::after { display: none; }
body:has(.home-main--simple) .feature-project-copy > p:not(.project-facts),
body:has(.home-main--simple) .feature-project-copy .project-facts {
  color: var(--editorial-muted);
  font-size: 1.0625rem;
}
body:has(.home-main--simple) .feature-project-copy .project-facts {
  margin: 1.15rem 0;
  border-color: var(--editorial-line);
  font-size: .9rem;
}
body:has(.home-main--simple) .feature-project-image {
  grid-area: image;
  overflow: hidden;
  border: 1px solid var(--editorial-line);
  border-radius: .4rem;
  background: #e7eef5;
}
body:has(.home-main--simple) .feature-project-image img { filter: none; }

/* Performance Tuning: balanced 2-column editorial layout, no invented metrics. */
body:has(.home-main--simple) .performance-evidence-section {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-areas: "pheading pfigure" "pcta pfigure";
  align-items: center;
  gap: 1.2rem clamp(2rem, 4vw, 4rem);
}
body:has(.home-main--simple) .performance-evidence-heading {
  grid-area: pheading;
  align-self: end;
  margin: 0;
}
body:has(.home-main--simple) .performance-evidence-figure {
  grid-area: pfigure;
  width: 100%;
  max-width: none;
  margin: 0;
  min-width: 0;
}
body:has(.home-main--simple) .performance-evidence-figure img {
  width: 100%;
  border: 1px solid var(--editorial-line);
  border-radius: .4rem;
  box-shadow: 0 5px 18px rgba(12,38,62,.06);
  background: white;
}
body:has(.home-main--simple) .performance-evidence-figure figcaption {
  color: var(--editorial-muted);
  font-size: .8125rem;
  font-family: "source-sans-3", Arial, sans-serif;
}
body:has(.home-main--simple) .performance-evidence-cta {
  grid-area: pcta;
  align-self: start;
  margin: 0;
}

/* Let the Technical Case Studies introduction use the full section width. */
body:has(.home-main--simple) #systems .simple-section-heading {
  max-width: none;
}
body:has(.home-main--simple) #systems .simple-section-heading > p:last-child {
  max-width: none;
}

/* Match the second How I Work paragraph to the first paragraph's measure. */
body:has(.home-main--simple) #workflow .simple-section-heading > p:last-child {
  max-width: none;
}

/* How I Work: six steps, in two readable rows rather than a cramped strip. */
body:has(.home-main--simple) .workflow-section .simple-section-heading { margin-bottom: 1.6rem; }
body:has(.home-main--simple) .workflow {
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body:has(.home-main--simple) .workflow__steps {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
}
body:has(.home-main--simple) .workflow__steps li {
  display: grid;
  grid-template-columns: 3rem minmax(0,1fr);
  grid-template-rows: auto auto;
  align-content: start;
  column-gap: 1rem;
  row-gap: .35rem;
  padding: 1.3rem clamp(.7rem, 2vw, 1.6rem);
  border: 0;
  border-bottom: 1px solid var(--editorial-line);
}
body:has(.home-main--simple) .workflow__steps li + li,
body:has(.home-main--simple) .workflow__steps li:nth-child(4) {
  border-left: 0;
}
body:has(.home-main--simple) .workflow__steps li:nth-child(3n+2),
body:has(.home-main--simple) .workflow__steps li:nth-child(3n+3) {
  border-left: 1px solid var(--editorial-line);
}
body:has(.home-main--simple) .workflow__number {
  grid-row: 1 / span 2;
  font-family: "acumin-pro", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #498cc5;
}
body:has(.home-main--simple) .workflow__steps strong {
  color: var(--editorial-ink);
  font-family: "source-sans-3", Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0;
}
body:has(.home-main--simple) .workflow__steps li > span:last-child {
  grid-column: 2;
  color: var(--editorial-muted);
  font-size: .98rem;
  line-height: 1.45;
}

/* Architecture: quiet disclosure rows, maintain ALL seven details bodies. */
body:has(.home-main--simple) .case-study-list { gap: .45rem; }
body:has(.home-main--simple) .case-study,
body:has(.home-main--simple) .case-study[open] {
  background: #fff;
  border: 1px solid var(--editorial-line);
  border-radius: .35rem;
  box-shadow: none;
  padding-inline: 1.25rem;
}
body:has(.home-main--simple) .case-study[open] { border-color: #84accb; }
body:has(.home-main--simple) .case-study__summary {
  display: grid;
  grid-template-columns: 2.2rem minmax(11rem,.48fr) minmax(0,1fr) auto;
  gap: .5rem .9rem;
  align-items: center;
  padding: 1rem 1.6rem 1rem 0;
  color: var(--editorial-ink);
  font-family: "source-sans-3", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}
body:has(.home-main--simple) .case-study__index {
  font-family: "source-sans-3", Arial, sans-serif;
  color: var(--editorial-blue);
  font-size: .85rem;
  letter-spacing: .02em;
}
body:has(.home-main--simple) .case-study__name {
  color: var(--editorial-ink);
  font-size: 1.02rem;
}
body:has(.home-main--simple) .accordion-description,
body:has(.home-main--simple) .case-study__meta {
  color: var(--editorial-muted);
  font-family: "source-sans-3", Arial, sans-serif;
  font-size: .91rem;
  font-weight: 400;
  letter-spacing: 0;
}
body:has(.home-main--simple) .case-study__meta {
  grid-column: 3;
  grid-row: 2;
  margin-left: 0;
  font-size: .82rem;
}
body:has(.home-main--simple) .case-study__summary::after {
  color: var(--editorial-blue);
  right: 0;
}
body:has(.home-main--simple) .case-study__summary:hover .case-study__name {
  color: var(--editorial-blue);
}
body:has(.home-main--simple) .case-study__body {
  max-width: 100%;
  color: var(--editorial-ink);
}
body:has(.home-main--simple) .case-study__full {
  border-color: var(--editorial-line);
}
body:has(.home-main--simple) .case-study__section :where(h2,p,li),
body:has(.home-main--simple) .case-study__full :where(p,li) { color: var(--editorial-ink); }
body:has(.home-main--simple) .case-study__section h2 {
  font-family: "acumin-pro", Arial, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
body:has(.home-main--simple) .case-study__full a,
body:has(.home-main--simple) .case-study__full a:visited {
  color: var(--editorial-blue);
  text-decoration: underline;
}
body:has(.home-main--simple) .case-study__full :where(code,pre) {
  background: #ecf3f9;
  color: var(--editorial-ink);
  border-color: var(--editorial-line);
}
body:has(.home-main--simple) .systems-section .whitepapers-cta {
  background: var(--editorial-blue);
  border-color: var(--editorial-blue);
  color: #fff;
}
body:has(.home-main--simple) .whitepapers-cta { margin-top: 1.5rem; }

/* About: a single introduction, portrait and two readable paragraphs. */
/* The legacy dark About rule also targets this heading.
   Use the heading ID to lock its colour to the light editorial palette. */
body:has(.home-main--simple) #about-heading {
  color: #172c40;
}
body:has(.home-main--simple) .about-section .simple-section-heading {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
body:has(.home-main--simple) .about-profile {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3rem);
  width: 100%;
  max-width: 72rem;
  margin: 0;
}
body:has(.home-main--simple) .about-profile__portrait {
  width: 11.5rem;
  max-width: 100%;
  margin-inline: 0;
}
body:has(.home-main--simple) .about-section .about-profile__copy > p {
  max-width: 80ch;
  margin: 0;
  color: var(--editorial-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}
body:has(.home-main--simple) .about-section .about-profile__copy > p + p {
  margin-top: 1.15rem;
}

/* Contact is the purposeful dark finish, not an unexplained color band. */
body:has(.home-main--simple) .pacman-wrap { display: none; }
body:has(.home-main--simple) .home-main > section.contact-section--simple {
  background: #082943;
  color: #fff;
  border-top: 0;
  grid-template-columns: minmax(0,1fr) minmax(17rem,.9fr);
  gap: 3rem;
  min-height: 0;
  padding-block: clamp(3.5rem, 5vw, 5.25rem);
}
body:has(.home-main--simple) .contact-section--simple::after {
  border-color: rgba(137,181,213,.22);
}
body:has(.home-main--simple) .contact-section--simple :where(h2,p) { color: #fff; }
body:has(.home-main--simple) .contact-section--simple h2 {
  max-width: 17ch;
  font-family: "acumin-pro", Arial, sans-serif;
  font-size: clamp(2rem, 3.7vw, 3.2rem);
  line-height: 1.12;
}
body:has(.home-main--simple) .contact-section--simple .eyebrow { color: #9cceef; }
body:has(.home-main--simple) .contact-section--simple p:not(.eyebrow) { color: #d1dfeb; }
body:has(.home-main--simple) .contact-section--simple .contact-resource-label {
  color: #bfdaed;
  font-size: .85rem;
}
body:has(.home-main--simple) .contact-section--simple .contact-resource-link,
body:has(.home-main--simple) .contact-section--simple .contact-resource-link:visited {
  width: 100%;
  color: #fff;
  background: #124467;
  border: 1px solid #477b9d;
  border-radius: .35rem;
  padding: .7rem 1rem;
  font-size: .96rem;
}
body:has(.home-main--simple) .contact-section--simple .contact-resource-link:is(:hover,:visited:hover) {
  background: #18557f;
  border-color: #9cceef;
  color: #fff;
}
body:has(.home-main--simple) .contact-section--simple .contact-resource-link__icon--upwork { color: #9cceef; }
body:has(.home-main--simple) .contact-resource-link__text { overflow-wrap: anywhere; }
body:has(.home-main--simple) .site-footer {
  background: #061f33;
  color: #d1dfeb;
  border-color: #2c536d;
  padding-block: 1rem;
}
body:has(.home-main--simple) .site-footer p { color: #d1dfeb; }

/* Tablet: strong image/body readability, calm rhythm. */
@media (max-width: 64rem) {
  body:has(.home-main--simple) .feature-project {
    grid-template-areas: "heading" "image" "copy";
    grid-template-columns: minmax(0,1fr);
  }
  body:has(.home-main--simple) .performance-evidence-section {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "pheading" "pfigure" "pcta";
  }
  body:has(.home-main--simple) .performance-evidence-cta { grid-area: pcta; }
  body:has(.home-main--simple) .case-study__summary {
    grid-template-columns: 2rem minmax(0,1fr) auto;
  }
  body:has(.home-main--simple) .case-study__summary .accordion-description {
    grid-column: 2 / 3;
    grid-row: 2;
  }
  body:has(.home-main--simple) .case-study__meta {
    grid-column: 2 / 3;
    grid-row: 3;
  }
  body:has(.home-main--simple) .workflow__steps {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  body:has(.home-main--simple) .workflow__steps li:nth-child(n) { border-left: 0; }
  body:has(.home-main--simple) .workflow__steps li:nth-child(2n) {
    border-left: 1px solid var(--editorial-line);
  }
}
@media (max-width: 48rem) {
  body:has(.home-main--simple) {
    --section-pad: 3rem;
    --gutter: 1.25rem;
    --h2: clamp(1.75rem,6vw,2.15rem);
    --body: 1rem;
  }
  body:has(.home-main--simple) .home-main > section:not(.portfolio-hero):not(.capability-strip):not(.contact-section--simple) {
    padding-block: 3rem;
  }
  body:has(.home-main--simple) .feature-project { padding: 1.25rem; }
  body:has(.home-main--simple) .workflow__steps { grid-template-columns: 1fr; }
  body:has(.home-main--simple) .workflow__steps li:nth-child(n) {
    border-left: 0;
    padding-inline: .25rem;
  }
  body:has(.home-main--simple) .about-profile {
    grid-template-columns: minmax(0,1fr);
    gap: 1.15rem;
  }
  body:has(.home-main--simple) .about-profile__portrait {
    width: 9rem;
    margin-inline: 0;
  }
  body:has(.home-main--simple) .home-main > section.contact-section--simple {
    grid-template-columns: minmax(0,1fr);
    gap: 2rem;
  }
  body:has(.home-main--simple) .contact-section--simple > div > p:last-child {
    white-space: normal;
  }
  body:has(.home-main--simple) .contact-resource-index { margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body:has(.home-main--simple) .elevated { transform: none; transition: none; }
}
