/* Work introduction and projects only. Header/hero and later sections keep their styles. */
.work-section { margin-bottom: var(--section-gap); }
.work-introduction {
  display: grid;
  grid-template-columns: 472fr 968fr;
  min-height: 202px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.work-aside { padding: 24px var(--gutter); }
.work-aside .micro { margin: 28px 0 0; max-width: 350px; font-size: 10px; line-height: 16px; letter-spacing: .05em; }
.work-heading { padding: 18px var(--gutter) 31px; border-left: 1px solid var(--line); }
.work-heading h2 { margin: 0; font-size: 63px; font-weight: 400; line-height: 1; letter-spacing: -.065em; }
.work-lead { margin: 24px 0 0; max-width: 700px; font-size: 18px; font-weight: 500; line-height: 32px; letter-spacing: -.025em; }
.work-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.work-section .stat { min-height: 128px; padding: 20px var(--gutter) 12px; }
.work-section .stat + .stat { border-top: 0; border-left: 1px solid var(--line); }
.work-section .stat strong { font-size: 56px; line-height: .95; letter-spacing: -.065em; }
.work-section .stat span { font-size: 10px; line-height: 16px; }
.work-project { display: grid; grid-template-columns: 77fr 689fr 464fr 121fr 89fr; min-height: 310px; border-bottom: 1px solid var(--line); }
.work-project > * { min-width: 0; padding: 24px var(--gutter); }
.work-project > * + * { border-left: 1px solid var(--line); }
.work-section .p-no, .work-section .p-year { font-family: var(--sans); font-size: 18px; font-weight: 500; line-height: 26px; letter-spacing: 0; }
.work-section .p-main { justify-content: space-between; gap: 28px; padding-top: 20px; padding-bottom: 22px; }
.work-section .p-title { font-size: 45px; line-height: 1; letter-spacing: -.055em; transform: none; }
.work-section .p-desc { max-width: 630px; font-size: 17px; line-height: 26px; color: #3f403c; }
.work-project-image { position: relative; padding: 0; overflow: hidden; }
.work-project-image img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.work-section .p-year { justify-content: flex-start; }
.work-section .p-arrow { font-size: 20px; line-height: 26px; align-items: flex-start; justify-content: center; }
.work-section .p-arrow:hover { background: rgba(17,18,15,.055); }
.work-section .p-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }

@media (max-width: 1200px) and (min-width: 901px) {
  .work-heading h2 { font-size: clamp(48px, 4.45vw, 64px); }
  .work-section .p-title { font-size: 36px; }
  .work-section .p-desc { font-size: 16px; line-height: 24px; }
  .work-project { grid-template-columns: 56px minmax(0, 1.5fr) minmax(0, 1fr) 80px 56px; }
}
@media (max-width: 900px) {
  .work-introduction { grid-template-columns: 1fr; }
  .work-aside { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
  .work-aside .micro { margin: 0; }
  .work-heading { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .work-heading h2 { font-size: clamp(40px, 7vw, 62px); }
  .work-lead { font-size: 18px; line-height: 28px; margin-top: 24px; }
  .work-project { grid-template-columns: 56px minmax(0,1fr) 88px 56px; }
  .work-project .p-main { grid-column: 2; grid-row: 1; padding-bottom: 28px; }
  .work-project .p-year { grid-column: 3; grid-row: 1; }
  .work-project .p-arrow { grid-column: 4; grid-row: 1; }
  .work-project-image { grid-column: 2 / -1; grid-row: 2; aspect-ratio: 3 / 2; border-top: 1px solid var(--line); }
  .work-project-image img { object-fit: contain; background: #fff; }
  .work-section .p-title { font-size: 36px; }
  .work-section .p-desc { font-size: 16px; line-height: 24px; }
}
@media (max-width: 600px) {
  .work-stats { grid-template-columns: repeat(2, 1fr); }
  .work-section .stat { min-height: 130px; }
  .work-section .stat:nth-child(3) { border-left: 0; }
  .work-section .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .work-section .stat strong { font-size: 48px; }
  .work-project { grid-template-columns: 44px minmax(0,1fr) 52px; }
  .work-project > * { padding: 18px 12px; }
  .work-project .p-main { grid-column: 2 / -1; padding-right: 52px; }
  .work-project .p-year { display: none; }
  .work-project .p-arrow { grid-column: 3; grid-row: 1; padding: 18px 12px; border-left: 0; }
  .work-project .work-project-image { grid-column: 1 / -1; border-left: 0; padding: 0; }
  .work-section .p-title { font-size: 32px; }
}

/* Desktop-only P2 adjustments keep the project grid and image geometry intact. */
@media (min-width: 1051px) {
  .work-section { margin-bottom: 45px; }
  .work-section::after {
    content: ""; position: absolute; left: 0; right: 0;
    height: 45px; background: #fff; pointer-events: none;
  }
  .work-section::after { bottom: -45px; }
  .work-lead { line-height: 28px; }
  .work-section .p-arrow { padding-top: 16px; padding-right: 42px; }
}

/* The gap after the Hero follows its desktop breakpoint, independently of Work. */
@media (min-width: 1200px) {
  .work-section::before {
    content: ""; position: absolute; left: 0; right: 0; top: -45px;
    height: 45px; background: #fff; pointer-events: none;
  }
}
