/* MASTER-J DEV HUB — reference-faithful first-screen layout */
@media (min-width: 981px) {
  html { scroll-padding-top: 58px; }
  body {
    background: #010503;
  }
  .site-header,
  .hero,
  .projects-section,
  .content-section,
  .contact-section,
  .site-footer {
    width: min(100% - 80px, 1120px);
  }
  .site-header {
    min-height: 54px;
    height: 54px;
    gap: 18px;
    border-bottom-color: rgba(110,255,174,.22);
    background: rgba(1,6,4,.94);
  }
  .brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; font-size: 31px; }
  .brand-mark i { font-size: 19px; }
  .brand-copy { gap: 2px; }
  .brand-copy strong { font-size: 16px; letter-spacing: -.5px; }
  .brand-copy small { font-size: 7px; letter-spacing: 1.45px; }
  .main-nav { height: 54px; gap: clamp(18px, 2.8vw, 36px); }
  .nav-link { font-size: 11px; }
  .nav-link::after { bottom: 10px; height: 2px; }
  .header-actions { gap: 14px; }
  .icon-button { width: 30px; height: 30px; }
  .outline-cta { padding: 8px 15px; border-radius: 9px; font-size: 10px; }

  .hero {
    min-height: 350px;
    height: 350px;
    overflow: hidden;
    border-bottom: 0;
    background: linear-gradient(90deg, rgba(0,12,6,.04), rgba(0,8,5,.15));
  }
  .hero-backdrop {
    background:
      radial-gradient(ellipse at 9% 57%, rgba(0,255,111,.23), transparent 37%),
      radial-gradient(ellipse at 82% 45%, rgba(0,132,76,.17), transparent 34%),
      linear-gradient(90deg, rgba(0,20,10,.08), rgba(0,7,4,.2));
  }
  .circuit-grid { opacity: .11; background-size: 44px 44px; }
  .orb-a { width: 270px; height: 270px; top: 12%; left: 14%; opacity: .6; }
  .orb-b { width: 130px; height: 130px; right: 13%; bottom: 5%; opacity: .55; }
  .hero-layout {
    grid-template-columns: 36% 28% 36%;
    gap: 0;
    min-height: 350px;
    height: 350px;
    padding: 0;
    align-items: stretch;
  }
  .portrait-panel { min-height: 350px; height: 350px; }
  .portrait-frame {
    inset: 0;
    border-radius: 0;
    background: transparent;
  }
  .portrait-frame::before {
    background: linear-gradient(90deg, transparent 68%, rgba(0,6,3,.2)),
      linear-gradient(0deg, rgba(0,7,3,.75), transparent 16%, transparent 88%, rgba(0,7,3,.2));
  }
  .portrait-frame::after { inset: 0; border: 0; border-radius: 0; box-shadow: none; }
  .portrait-aura { width: 85%; height: 100%; left: 6%; top: 3%; border-radius: 50% 50% 12% 12%; opacity: .45; }
  .hero-portrait {
    width: 100%; height: 100%; left: 0; bottom: 0;
    object-fit: cover; object-position: center 20%;
    filter: contrast(1.04) saturate(1.04);
    mask-image: linear-gradient(to bottom, black 0 94%, transparent 100%);
  }
  .portrait-hud { display: none; }
  .portrait-caption, .portrait-side-label, .portrait-edge { display: none; }

  .hero-copy {
    align-self: center;
    min-width: 0;
    padding: 20px 14px 15px 13px;
    margin-top: -2px;
  }
  .eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 7px;
    letter-spacing: .65px;
    white-space: nowrap;
    color: #b5d7c3;
  }
  .eyebrow-line { display: none; }
  .hero-copy h1 {
    font-size: clamp(33px, 3.2vw, 39px);
    line-height: .99;
    letter-spacing: -2.3px;
    font-weight: 800;
  }
  .hero-copy h1 span { white-space: nowrap; }
  .title-cursor { display: none; }
  .hero-description {
    max-width: 315px;
    margin: 10px 0 13px;
    font-size: 10px;
    line-height: 1.48;
    color: #e0e9e3;
  }
  .hero-buttons { gap: 9px; flex-wrap: nowrap; }
  .primary-cta, .secondary-cta {
    min-height: 39px;
    padding: 0 12px;
    gap: 7px;
    border-radius: 9px;
    font-size: 9px;
    white-space: nowrap;
  }
  .primary-cta { box-shadow: 0 0 20px rgba(0,255,136,.2); }
  .primary-cta b { font-size: 13px; }
  .button-icon { font-size: 13px; }
  .user-icon { font-size: 11px; }
  .hero-highlights {
    gap: 13px;
    justify-content: flex-start;
    margin-top: 19px;
  }
  .highlight-item { gap: 6px; font-size: 7px; line-height: 1.3; }
  .highlight-icon { font-size: 17px; }
  .hero-bottom-note, .hero-scroll-cue { display: none; }

  .workspace-panel {
    display: block;
    min-height: 350px;
    height: 350px;
    overflow: hidden;
    background: radial-gradient(ellipse at 56% 75%, rgba(0,255,136,.11), transparent 52%);
  }
  .quote-block { left: -39px; top: 42px; padding: 4px 7px; transform: rotate(-5deg); }
  .quote-block p { font-size: clamp(15px, 1.55vw, 21px); line-height: 1.17; letter-spacing: -.7px; }
  .quote-block .signature { font-size: 15px; }
  .quote-block small { margin-top: 4px; font-size: 6px; }
  .neon-poster {
    top: 0; right: 0; width: 116px; height: 133px;
    padding: 14px 11px; gap: 1px;
    border-right: 1px solid rgba(0,255,136,.2);
  }
  .neon-poster span { font-size: 16px; line-height: 1.08; }
  .desk-scene { left: -28px; right: -8px; bottom: 13px; height: 63%; min-height: 0; }
  .monitor-back { width: 66%; height: 51%; right: 3%; top: 1%; }
  .monitor-front { width: 76%; height: 57%; left: 1%; top: 25%; }
  .coffee-cup { right: 2%; bottom: 18%; width: 43px; height: 59px; }
  .workspace-label { display: none; }
  .hero-scroll-cue { display: none; }

  .projects-section {
    position: relative;
    z-index: 5;
    padding: 0 0 48px;
    margin-top: -1px;
  }
  .section-topline { display: none; }
  .project-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
  .project-card {
    height: 196px;
    min-height: 196px;
    border-radius: 13px;
    border-color: rgba(71,255,153,.3);
    background: linear-gradient(160deg, rgba(4,18,11,.98), rgba(1,7,4,.99));
    box-shadow: 0 8px 22px rgba(0,0,0,.38), inset 0 0 16px rgba(0,255,136,.035);
  }
  .project-card:hover {
    border-color: rgba(0,255,136,.8);
    box-shadow: 0 10px 26px rgba(0,0,0,.5), 0 0 20px rgba(0,255,136,.13);
  }
  .card-visual {
    position: absolute;
    top: 43px; left: 0; right: 0; bottom: 0;
    height: auto;
    border: 0;
    opacity: .97;
  }
  .card-visual::after {
    background: linear-gradient(0deg, rgba(1,7,4,.95), rgba(1,7,4,.08) 52%, rgba(1,7,4,.08)),
      linear-gradient(90deg, rgba(0,13,7,.15), transparent 25%, transparent 75%, rgba(0,13,7,.15));
  }
  .project-card-content {
    position: absolute;
    inset: 0;
    min-height: 0;
    padding: 0;
    z-index: 5;
    pointer-events: none;
  }
  .project-heading {
    position: absolute;
    top: 8px; left: 10px; right: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0;
  }
  .project-icon {
    flex: 0 0 25px;
    width: 25px; height: 25px;
    font-size: 19px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .project-heading h3 { font-size: clamp(9px, .91vw, 12px); letter-spacing: -.25px; white-space: nowrap; }
  .project-heading p { margin-top: 2px; font-size: 7px; white-space: nowrap; }
  .project-number { display: none; }
  .project-description {
    position: absolute;
    left: 11px; right: 42px; bottom: 10px;
    max-width: none;
    margin: 0;
    font-size: 8px;
    line-height: 1.42;
    color: #e0e9e3;
  }
  .card-arrow {
    right: 10px; bottom: 13px;
    width: 29px; height: 29px;
    font-size: 16px;
    pointer-events: auto;
  }
  .card-bottom-line, .project-footnote, .empty-search { display: none; }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .site-header,.hero,.projects-section,.content-section,.contact-section,.site-footer { width: calc(100% - 40px); }
  .hero-layout { grid-template-columns: 34% 30% 36%; }
  .hero-copy { padding-left: 10px; padding-right: 8px; }
  .hero-copy h1 { font-size: clamp(30px, 3.1vw, 36px); }
  .hero-description { font-size: 9px; }
  .project-grid { gap: 7px; }
  .project-card { height: 190px; min-height: 190px; }
  .project-heading { left: 7px; gap: 5px; }
  .project-icon { flex-basis: 22px; width: 22px; }
  .project-heading h3 { font-size: 9px; }
  .project-heading p { font-size: 6px; }
  .project-description { left: 8px; font-size: 7px; }
  .card-arrow { width: 25px; height: 25px; right: 7px; bottom: 10px; }
}

@media (max-width: 980px) {
  .hero { height: auto; }
  .section-topline { display: flex; }
  .projects-section { margin-top: 0; }
}

@media (min-width: 981px) {
  .brand { margin-left: 55px; }
  .main-nav { gap: clamp(20px, 2.35vw, 29px); }
  .header-actions { margin-right: 41px; }
  .hero-copy { padding-left: 20px; margin-top: 5px; }
  .workspace-panel { overflow: visible; }
  .quote-block { left: -36px; }
  .neon-poster { width: 132px; }
  .card-visual { bottom: 52px; }
  .visual-caption { display: none; }
  .project-description { bottom: 10px; font-size: 8px; line-height: 1.45; }
  .projects-section { width: min(100% - 144px, 1072px); }
}
@media (min-width: 981px) and (max-width: 1120px) {
  .brand { margin-left: 16px; }
  .header-actions { margin-right: 12px; }
  .projects-section { width: calc(100% - 64px); }
}

@media (min-width: 981px) {
  .outline-cta { padding: 7px 12px; gap: 5px; }
  .hero-copy h1 { font-size: clamp(34px, 3.35vw, 40px); line-height: 1.02; }
  .hero-description { margin-top: 12px; margin-bottom: 15px; }
  .hero-highlights { margin-top: 20px; }
  .quote-block p { font-size: clamp(15px, 1.42vw, 19px); }
  .desk-scene { left: -28px; right: -8px; bottom: 13px; height: 63%; }
  .monitor-back { width: 55%; height: 48%; right: 18%; top: 7%; }
  .monitor-front { width: 54%; height: 57%; left: 26%; top: 10%; }
  .coffee-cup { right: 17%; bottom: 18%; }
  .project-heading h3 { font-size: clamp(9.5px, .92vw, 11px); }
  .project-heading p { font-size: 7px; }
  .project-description { font-size: 9px; line-height: 1.4; }
  .projects-section {
    width: min(calc(100% - 129px), 1072px);
    margin-left: max(32px, calc((100% - 1056px) / 2));
    margin-right: auto;
  }
}
@media (min-width: 981px) and (max-width: 1120px) {
  .projects-section { width: calc(100% - 64px); margin-left: auto; margin-right: auto; }
  .project-description { font-size: 8px; }
}

.card-art-image { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card-visual > :not(.card-art-image) { display: none !important; }

/* Fluid desktop scaling beyond the 1200px reference canvas */
@media (min-width: 1201px) {
  .site-header, .hero { width: min(calc(100% - 80px), 1600px); }
  .hero, .hero-layout, .portrait-panel, .workspace-panel {
    height: clamp(350px, 37vh, 470px);
    min-height: clamp(350px, 37vh, 470px);
  }
  .hero-layout { grid-template-columns: 36% 28% 36%; }
  .hero-copy h1 { font-size: clamp(40px, 3.35vw, 58px); }
  .eyebrow { font-size: clamp(7px, .58vw, 10px); }
  .hero-description { font-size: clamp(10px, .78vw, 14px); max-width: 94%; }
  .primary-cta, .secondary-cta { min-height: clamp(39px, 3.2vw, 52px); font-size: clamp(9px, .65vw, 12px); }
  .hero-highlights { gap: clamp(13px, 1.4vw, 25px); }
  .highlight-item { font-size: clamp(7px, .55vw, 10px); }
  .quote-block p { font-size: clamp(19px, 1.42vw, 27px); }
  .neon-poster { width: clamp(132px, 8vw, 170px); }
  .neon-poster span { font-size: clamp(16px, 1.15vw, 22px); }
  .projects-section {
    width: min(calc(100% - 129px), 1540px);
    margin-left: calc((100% - min(100% - 80px, 1600px)) / 2 + 32px);
    margin-right: auto;
  }
  .project-grid { gap: clamp(10px, .75vw, 16px); }
  .project-card { height: clamp(196px, 20vh, 240px); min-height: clamp(196px, 20vh, 240px); }
  .card-visual { bottom: 58px; }
  .project-heading h3 { font-size: clamp(11px, .75vw, 14px); }
  .project-heading p { font-size: clamp(7px, .48vw, 9px); }
  .project-description { font-size: clamp(9px, .67vw, 12px); line-height: 1.42; bottom: 12px; }
  .card-arrow { width: clamp(29px, 2.3vw, 38px); height: clamp(29px, 2.3vw, 38px); }
}

@media (min-width: 981px) {
  .card-visual::after {
    background: linear-gradient(0deg, rgba(1,7,4,.16), transparent 44%),
      linear-gradient(90deg, rgba(0,14,8,.12), transparent 25%, transparent 75%, rgba(0,14,8,.12));
  }
}

/* 2026-10-31: full-bleed cinematic hero background refinement.
   Keep the established navigation and project-card layout; replace only the
   upper hero's boxed/vector backdrop with one continuous photographic scene. */
@media (min-width: 981px) {
  .hero {
    width: 100%;
    max-width: none;
    height: 350px;
    min-height: 350px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #010503;
  }

  .hero-backdrop {
    z-index: 0;
    inset: 0;
    background-image:
      linear-gradient(90deg, rgba(0, 6, 3, .04) 0%, rgba(0, 6, 3, .08) 46%, rgba(0, 6, 3, .16) 100%),
      linear-gradient(0deg, rgba(0, 5, 3, .30), transparent 30%, transparent 76%, rgba(0, 5, 3, .12)),
      url("assets/hero-workspace.webp");
    background-size: cover;
    background-position: center 52%;
    background-repeat: no-repeat;
  }

  .hero-backdrop > .circuit-grid,
  .hero-backdrop > .light-beam,
  .hero-backdrop > .orb {
    display: none !important;
  }

  .hero-layout {
    width: min(calc(100% - 80px), 1120px);
    max-width: 1120px;
    height: 350px;
    min-height: 350px;
    margin: 0 auto;
    padding: 0;
    grid-template-columns: 36% 28% 36%;
    gap: 0;
    align-items: stretch;
    overflow: visible;
  }

  .portrait-panel,
  .portrait-frame,
  .workspace-panel {
    height: 350px;
    min-height: 350px;
    border-radius: 0;
  }

  .portrait-frame {
    inset: 0;
    background: transparent;
  }

  .portrait-frame::before {
    background:
      linear-gradient(90deg, transparent 70%, rgba(0, 5, 3, .12)),
      linear-gradient(0deg, rgba(0, 5, 3, .62), transparent 18%, transparent 88%, rgba(0, 5, 3, .12));
  }

  .portrait-frame::after {
    display: none;
  }

  .hero-portrait {
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    object-fit: cover;
    object-position: center 20%;
    mask-image: linear-gradient(to bottom, black 0 96%, transparent 100%);
  }

  .hero-copy {
    padding: 20px 14px 15px 20px;
    margin: 0;
    align-self: center;
  }

  .workspace-panel {
    overflow: visible;
    background: transparent;
  }

  /* The photographic backdrop already contains the desk and monitors. */
  .desk-scene,
  .coffee-cup,
  .workspace-label {
    display: none !important;
  }

  .quote-block {
    left: -30px;
    top: 43px;
    padding: 4px 7px;
    transform: rotate(-5deg);
  }

  .neon-poster {
    top: 8px;
    right: 0;
    width: 116px;
    min-height: 123px;
    padding: 12px 10px;
    border: 0;
    border-left: 1px solid rgba(0, 255, 136, .22);
    border-bottom: 1px solid rgba(0, 255, 136, .18);
    background: linear-gradient(135deg, rgba(0, 20, 12, .40), rgba(0, 8, 5, .10));
    box-shadow: none;
  }

  .hero-scroll-cue {
    display: none;
  }
}

/* The hero art bleeds to the viewport edges; the cards retain their approved sizing. */
@media (min-width: 981px) and (max-width: 1120px) {
  .hero-layout {
    width: calc(100% - 40px);
  }
}

/* MASTER-J DEV HUB — expanded services catalogue */
.services-section { padding-top: 76px; padding-bottom: 88px; }
.services-intro { align-items: end; margin-bottom: 22px; }
.services-intro h2 { max-width: 760px; }
.services-intro > p { max-width: 310px; }
.services-promise { display: flex; align-items: center; gap: 15px; margin: 0 0 24px; padding: 15px 18px; border: 1px solid rgba(0,245,138,.2); border-radius: 12px; background: linear-gradient(100deg,rgba(0,245,138,.09),rgba(4,21,13,.72) 55%,rgba(5,17,12,.7)); }
.promise-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(0,245,138,.32); border-radius: 9px; color: var(--green); font-size: 18px; box-shadow: inset 0 0 15px rgba(0,245,138,.08),0 0 14px rgba(0,245,138,.06); }
.services-promise p { flex: 1; margin: 0; color: #9bb4a4; font-size: 10px; line-height: 1.7; }
.services-promise p strong { color: #e8fff1; font-size: 11px; }
.promise-link { flex: 0 0 auto; color: var(--green-2); font-size: 10px; font-weight: 700; white-space: nowrap; }
.promise-link span { margin-left: 5px; }
.service-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start; }
.service-category { min-width: 0; overflow: hidden; border: 1px solid rgba(87,255,166,.2); border-radius: 13px; background: linear-gradient(150deg,rgba(7,27,17,.88),rgba(2,10,6,.96)); box-shadow: 0 10px 28px rgba(0,0,0,.16); transition: border-color .25s,box-shadow .25s,transform .25s; }
.service-category:hover,.service-category[open] { border-color: rgba(0,245,138,.43); box-shadow: 0 12px 30px rgba(0,0,0,.24),0 0 20px rgba(0,245,138,.055); }
.service-category > summary { position: relative; min-height: 116px; display: flex; align-items: center; gap: 13px; padding: 19px 17px; list-style: none; cursor: pointer; }
.service-category > summary::-webkit-details-marker { display: none; }
.service-category > summary::marker { content: ''; }
.service-category-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(0,245,138,.32); border-radius: 11px; background: rgba(0,245,138,.075); color: var(--green); font-size: 22px; text-shadow: 0 0 14px rgba(0,245,138,.36); }
.service-category-title { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 5px; }
.service-category-title small { color: #6ea88a; font: 8px var(--mono); letter-spacing: 1.2px; }
.service-category-title strong { color: #edfff4; font-size: 14px; font-weight: 800; line-height: 1.25; letter-spacing: -.25px; }
.service-category-title em { color: #8fa99a; font-size: 9px; font-style: normal; line-height: 1.55; }
.service-category-count { align-self: flex-start; margin-top: 3px; padding: 5px 7px; border: 1px solid rgba(87,255,166,.16); border-radius: 5px; color: #8cc9a6; font: 7px var(--mono); letter-spacing: .6px; white-space: nowrap; }
.service-chevron { flex: 0 0 23px; width: 23px; height: 23px; display: grid; place-items: center; margin-left: 1px; border: 1px solid rgba(0,245,138,.38); border-radius: 50%; color: var(--green); font: 16px var(--sans); transition: transform .25s,background .25s; }
.service-category[open] .service-chevron { transform: rotate(45deg); background: rgba(0,245,138,.1); }
.service-category-body { padding: 0 19px 19px; border-top: 1px solid rgba(87,255,166,.11); animation: serviceOpen .25s ease; }
.catalog-lead { margin: 15px 0 10px; color: #9ab4a3; font-size: 10px; line-height: 1.65; }
.service-list { display: grid; grid-template-columns: 1fr; gap: 0 18px; margin: 13px 0 0; padding: 0; list-style: none; }
.service-list-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.service-list li { position: relative; min-width: 0; padding: 8px 5px 8px 17px; border-bottom: 1px solid rgba(87,255,166,.085); color: #c0d2c7; font-size: 9px; line-height: 1.45; }
.service-list li::before { content: ''; position: absolute; top: 13px; left: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(0,245,138,.5); }
.delivery-options { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.delivery-options strong { flex-basis: 100%; margin-bottom: 2px; color: #e5fff0; font-size: 9px; }
.delivery-options span { padding: 6px 9px; border: 1px solid rgba(0,245,138,.18); border-radius: 20px; background: rgba(0,245,138,.055); color: #a6d9bb; font-size: 8px; }
.catalog-note { margin: 12px 0 0; color: #789585; font-size: 8px; line-height: 1.65; }
.special-concept { display: flex; gap: 11px; margin-top: 16px; padding: 13px; border: 1px solid rgba(0,245,138,.2); border-radius: 9px; background: rgba(0,245,138,.055); }
.special-concept > span { color: var(--green); font-size: 17px; }
.special-concept strong { color: #ddffeb; font-size: 10px; }
.special-concept p { margin: 5px 0 0; color: #91ad9c; font-size: 8px; line-height: 1.65; }
.industry-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding-top: 15px; }
.industry-card { min-height: 126px; padding: 12px; border: 1px solid rgba(87,255,166,.13); border-radius: 9px; background: rgba(255,255,255,.018); }
.industry-card > span { color: var(--green); font-size: 18px; }
.industry-card h4 { margin: 5px 0; color: #eafff1; font-size: 10px; }
.industry-card p { margin: 0; color: #8da797; font-size: 8px; line-height: 1.55; }
@keyframes serviceOpen { from { opacity: .65; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) {
  .service-catalog { grid-template-columns: 1fr; }
  .service-category > summary { min-height: 100px; }
}
@media (max-width: 620px) {
  .services-promise { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 13px; }
  .services-promise p { flex-basis: calc(100% - 46px); }
  .promise-link { margin-left: 44px; }
  .service-category > summary { min-height: 92px; gap: 9px; padding: 13px 11px; }
  .service-category-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 8px; font-size: 18px; }
  .service-category-title small { font-size: 6px; letter-spacing: .8px; }
  .service-category-title strong { font-size: 11px; }
  .service-category-title em { font-size: 8px; }
  .service-category-count { display: none; }
  .service-chevron { flex-basis: 21px; width: 21px; height: 21px; }
  .service-category-body { padding: 0 12px 14px; }
  .service-list-two { grid-template-columns: 1fr; }
  .service-list li { font-size: 9px; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .service-category-body { animation: none; }
  .service-category { transition: none; }
}

/* 2026-10-31: portrait must read as part of the full-bleed hero scene,
   never as a framed or square image card. Preserve the approved card row. */
@media (min-width: 981px) {
  .hero-layout {
    width: min(calc(100% - 80px), 1500px);
    max-width: 1500px;
    grid-template-columns: 36% 28% 36%;
    gap: 0;
  }

  .portrait-panel {
    position: relative;
    width: calc(100% + 40px);
    height: inherit;
    min-height: inherit;
    margin-left: -40px;
    overflow: visible;
    perspective: none;
    z-index: 2;
  }

  .portrait-frame {
    position: absolute;
    inset: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
  }

  .portrait-frame::before {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, transparent 0%, transparent 57%, rgba(1,6,3,.10) 72%, rgba(1,6,3,.27) 100%),
      linear-gradient(0deg, rgba(1,6,3,.22), transparent 19%, transparent 89%, rgba(1,6,3,.08));
  }

  .portrait-frame::after,
  .portrait-edge,
  .portrait-caption,
  .portrait-side-label,
  .portrait-hud {
    display: none !important;
  }

  .portrait-aura {
    display: block;
    position: absolute;
    z-index: 0;
    width: 86%;
    height: 112%;
    left: -2%;
    top: -7%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0,255,125,.20), rgba(0,140,75,.08) 48%, transparent 72%);
    filter: blur(24px);
    opacity: .75;
  }

  .hero-portrait {
    position: absolute;
    z-index: 1;
    display: block;
    width: 84%;
    height: 116%;
    left: -1%;
    bottom: -9%;
    object-fit: cover;
    object-position: center 18%;
    border: 0;
    border-radius: 0;
    filter: contrast(1.06) saturate(1.08) drop-shadow(0 8px 22px rgba(0,0,0,.20));
    transform: none;
    /* Feather the portrait into the photographic background instead of
       exposing a rectangular image edge. Keep the face and hood fully clear. */
    -webkit-mask-image: radial-gradient(ellipse 84% 108% at 39% 47%, #000 57%, rgba(0,0,0,.96) 70%, rgba(0,0,0,.62) 84%, transparent 100%);
    mask-image: radial-gradient(ellipse 84% 108% at 39% 47%, #000 57%, rgba(0,0,0,.96) 70%, rgba(0,0,0,.62) 84%, transparent 100%);
  }

  .hero-copy {
    position: relative;
    z-index: 4;
    padding-left: 20px;
  }

  .workspace-panel {
    position: relative;
    z-index: 2;
  }
}
