/* Shared paper surface. Backgrounds only: no texture is placed over photographs. */
:root {
  --paper: #fafaf9;
  --paper-texture: linear-gradient(rgba(255,255,254,.84),rgba(255,255,254,.84)), url("assets/paper-fiber-gray-v1.webp");
  --paper-grain-size: 640px 640px;
}

html { background-color: var(--paper); }
body,
body.is-editorial-home,
.hr-page,
.gate,
.site-header,
.work-filters,
.hr-preview {
  background-color: var(--paper);
  background-image: var(--paper-texture);
  background-repeat: repeat;
  background-size: var(--paper-grain-size);
  background-blend-mode: normal, luminosity;
}

/* Preserve the current navigation geometry and its high-contrast hover state. */
.hr-nav { box-shadow: 0 0 0 5px rgba(250,250,249,.85); }
.hr-nav a { background-color: var(--paper); }
.hr-nav a:hover,
.hr-nav a:focus-visible { background-color: #111; }

/* The decorative field fades down 2cm farther than the previous version.
   It stays behind the page content and never overlays photographs. */
.hr-page {
  --hr-gutter: clamp(20px,3vw,56px);
  --hr-hero-extra: 80px;
  position: relative;
  isolation: isolate;
}
/* Match the other pages: a stationary 9px teal star grid behind all content. */
.hr-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("assets/profile-star-grid.svg?v=2026091906") repeat -30px -21px / 208px 208px;
}
.hr-shell { isolation: auto; max-width: 1840px; }
.hr-hero { min-height: calc(clamp(270px,34svh,350px) + var(--hr-hero-extra)); }
.hr-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: calc((100% - 100vw) / 2);
  width: 100vw;
  height: calc(116px + clamp(270px,34svh,350px) + var(--hr-hero-extra) + 45px + 2cm);
  /* Use the supplied bitmap unchanged. Screen turns its black dots into the
     tint; multiply removes the white paper against the actual page surface. */
  background-color: #72a7a0;
  background-image: url("assets/halftone-reference-v2.png");
  background-position: center 42%;
  background-size: clamp(540px,60vw,980px) auto;
  background-repeat: repeat-x;
  background-blend-mode: screen;
  mix-blend-mode: multiply;
  opacity: .32;
  -webkit-mask-image: linear-gradient(to bottom,#000 0%,rgba(0,0,0,.85) 24%,rgba(0,0,0,.38) 58%,transparent 100%);
  mask-image: linear-gradient(to bottom,#000 0%,rgba(0,0,0,.85) 24%,rgba(0,0,0,.38) 58%,transparent 100%);
  pointer-events: none;
}
.hr-hero::before { content: none; }

/* Swap the two marked blocks; keep the unmarked year in its original column.
   An explicit row prevents CSS auto-placement from creating a second row. */
@media (min-width: 721px) {
  .hr-hero > .hr-introduction { grid-column: 1/4; grid-row: 1; }
  .hr-hero > .hr-years { grid-column: 4/7; grid-row: 1; }
  .hr-hero > .hr-kicker { grid-column: 8/13; grid-row: 1; }
}

/* Keep the roomier 4 / 3 / 2-column project wall. The original homepage CSS
   supplies uniform 3:4 cover cropping and the 12px marquee gap again. */
.hr-works {
  margin-top: clamp(140px,10vw,180px);
  padding-inline: clamp(8px,1vw,16px);
}
.hr-section-head { margin-bottom: 52px; }
.hr-wall {
  row-gap: clamp(80px,7vw,112px);
  column-gap: clamp(36px,3vw,48px);
}

/* More breathing room inside the existing footer, with no rearrangement. */
.hr-footer {
  padding-top: 92px;
  padding-bottom: 64px;
  row-gap: 100px;
  border-top-color: #cfcec7;
}

@media (max-width: 720px) {
  .hr-page { --hr-hero-extra: 40px; }
  .hr-hero { min-height: calc(280px + var(--hr-hero-extra)); }
  .hr-shell::before { height: calc(420px + var(--hr-hero-extra) + 2cm); background-size: 540px auto; }
  .hr-hero > .hr-introduction { grid-column: 1/-1; grid-row: 1; }
  .hr-hero > .hr-kicker { grid-column: 1; grid-row: 2; }
  .hr-hero > .hr-years { grid-column: 2; grid-row: 2; }
  .hr-works { margin-top: 100px; padding-inline: 8px; }
  .hr-section-head { margin-bottom: 38px; }
  .hr-wall { row-gap: 58px; column-gap: 26px; }
  .hr-footer { padding-top: 64px; padding-bottom: 44px; row-gap: 62px; }
}

@media (max-width: 700px) {
  .main-nav {
    background-color: var(--paper);
    background-image: var(--paper-texture);
    background-repeat: repeat;
    background-size: var(--paper-grain-size);
    background-blend-mode: normal, luminosity;
  }
}
