/* NICO HUA / Webdesign — compact grid and mobile-derived device composition.
   Scoped to the two requested sections; existing layouts <= 900px stay intact. */
@media (min-width: 901px) {
  html:root .score-shell[data-page="webdesign"] .signature-web {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    column-gap: clamp(16px, 2vw, 36px);
    row-gap: clamp(24px, 2.2vw, 36px) !important;
    padding-block: clamp(76px, 8svh, 112px) !important;
    padding-inline: max(clamp(24px, 5vw, 96px), calc((100% - 1680px) / 2));
    min-height: 0;
    isolation: isolate;
  }
  html:root .score-shell[data-page="webdesign"] .signature-web .signature-copy > span {
    grid-area: 1 / 1 / 2 / -1;
    position: relative;
    z-index: 2;
  }
  html:root .score-shell[data-page="webdesign"] .signature-web .signature-copy h2 {
    grid-area: 2 / 1 / 3 / -1;
    position: relative;
    z-index: 2;
    font-size: clamp(52px, 6vw, 112px) !important;
    line-height: 1.02 !important;
    max-width: 100%;
    margin: 0;
    text-shadow: 0 2px 28px rgb(5 8 7 / 35%);
  }
  html:root .score-shell[data-page="webdesign"] .signature-web .signature-copy p {
    grid-area: 3 / 1 / 4 / 5;
    position: relative;
    z-index: 2;
    max-width: 32ch;
    margin: 0;
    font-size: clamp(15px, 1.05vw, 18px);
  }
  html:root .score-shell[data-page="webdesign"] .signature-web > figure {
    grid-area: 2 / 5 / 5 / -1 !important;
    position: relative;
    inset: auto;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 420px;
    max-height: none;
    min-width: 0;
    aspect-ratio: auto;
    margin: 0;
    z-index: 0;
  }
  html:root .score-shell[data-page="webdesign"] .signature-web > figure img {
    position: absolute;
    inset: 0;
    object-position: 58% 50%;
  }
  html:root .score-shell[data-page="webdesign"] .signature-web > figure::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #0b0d0c 0%, rgb(11 13 12 / 38%) 24%, transparent 54%),
      linear-gradient(180deg, rgb(11 13 12 / 62%), transparent 44%, rgb(11 13 12 / 16%));
    pointer-events: none;
  }
  html:root .score-shell[data-page="webdesign"] .signature-web .signature-points {
    grid-area: 4 / 1 / 5 / 5;
    align-self: end;
    position: relative;
    z-index: 2;
    margin: 0;
  }
  html:root .score-shell[data-page="webdesign"] .signature-web .signature-points b {
    min-height: 48px;
    padding-block: 14px;
  }

  html:root .score-shell[data-page="webdesign"] .web-matter {
    min-height: 0;
    grid-template-columns: minmax(220px, .68fr) minmax(0, 1.32fr);
    gap: clamp(32px, 5vw, 96px);
    padding-block: clamp(72px, 8svh, 112px);
    padding-inline: max(clamp(24px, 5vw, 96px), calc((100% - 1680px) / 2));
    align-items: center;
  }
  html:root .score-shell[data-page="webdesign"] .web-matter > header h2 {
    font-size: clamp(28px, 11.5cqw, 64px) !important;
  }
  html:root .score-shell[data-page="webdesign"] .web-matter > header p {
    max-width: 32ch;
    margin: 28px 0 0;
    font-size: clamp(14px, 1.05vw, 18px);
  }
  html:root .score-shell[data-page="webdesign"] .web-matter-stage {
    position: relative;
    display: block;
    perspective: none;
    width: 100%;
    max-width: min(880px, max(480px, calc(100svh - 180px)));
    height: auto;
    min-height: 0;
    padding: 0 0 4px;
    justify-self: end;
  }
  html:root .score-shell[data-page="webdesign"] .web-matter-frame {
    position: relative;
    inset: auto;
    height: auto;
    max-height: none;
    margin: 0;
    transform: none !important;
  }
  html:root .score-shell[data-page="webdesign"] .web-matter-wide {
    z-index: 1;
    width: 90%;
    aspect-ratio: 16 / 10;
  }
  html:root .score-shell[data-page="webdesign"] .web-matter-tablet {
    z-index: 2;
    width: 54%;
    aspect-ratio: 3 / 2;
    margin: -17% 0 0 auto;
  }
  html:root .score-shell[data-page="webdesign"] .web-matter-phone {
    z-index: 3;
    width: 33%;
    aspect-ratio: 2 / 3;
    margin: -28% 0 0 10%;
    border-radius: clamp(14px, 1.5vw, 24px);
  }
  html:root .score-shell[data-page="webdesign"] .web-matter-axis {
    position: relative;
    inset: auto;
    margin-top: clamp(18px, 2vw, 28px);
    font-size: clamp(6px, .5vw, 9px);
  }
}
