/* Portfolio pages (2026-10-23): drafting-grid header, room filters, masonry photo grid. Matches the home hero. */
.rgp-wrap { max-width: 1480px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }

.rgp-head { position: relative; padding: clamp(48px, 8vw, 110px) 0 clamp(36px, 5vw, 64px); background-color: #222;
  background-image: radial-gradient(ellipse at center, rgba(34,34,34,0) 35%, #222 85%),
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 100% 100%, 100px 100px, 100px 100px, 20px 20px, 20px 20px; background-position: center; background-repeat: no-repeat, repeat, repeat, repeat, repeat; }
.rgp-label { font: 400 12px/1 Poppins, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 0 0 22px; display: flex; align-items: center; gap: 14px; }
.rgp-label::before { content: ""; width: 48px; height: 1px; background: rgba(255,255,255,.6); }
.rgp-head h1 { font: 300 clamp(34px, 5.4vw, 72px)/1.05 Poppins, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 22px; }
.rgp-intro { max-width: 640px; font: 300 17px/1.7 Poppins, sans-serif; color: rgba(255,255,255,.82); margin: 0 0 34px; }
.rgp-tabs { display: flex; flex-wrap: wrap; gap: 6px 30px; border-bottom: 1px solid rgba(255,255,255,.14); }
.rgp-tabs a { font: 500 12px/1 Poppins, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); text-decoration: none; padding: 0 0 16px; margin-bottom: -1px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.rgp-tabs a:hover, .rgp-tabs a:focus { color: #fff; text-decoration: none; }
.rgp-tabs a.is-on { color: #fff; border-bottom-color: #fff; }

.rgp { padding: 8px 0 clamp(60px, 8vw, 110px); }
.rgp-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.rgp-filters button { font: 400 13px/1 Poppins, sans-serif; letter-spacing: .06em; color: rgba(255,255,255,.75); background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 10px 16px; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.rgp-filters button span { font-size: 11px; color: rgba(255,255,255,.45); }
.rgp-filters button:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.rgp-filters button.is-on { background: #fff; border-color: #fff; color: #111; }
.rgp-filters button.is-on span { color: rgba(0,0,0,.5); }

.rgp-grid { columns: 3 340px; column-gap: 18px; }
.rgp-item { display: block; position: relative; margin: 0 0 18px; break-inside: avoid; overflow: hidden; background: #2a2a2a; outline-offset: 3px; }
.rgp-item[hidden] { display: none; }
.rgp-item img { display: block; width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; }
.rgp-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 45%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.rgp-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font: 400 13px/1.3 Poppins, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; display: flex; align-items: baseline; gap: 12px; }
.rgp-no { font-size: 11px; color: rgba(255,255,255,.65); letter-spacing: .1em; }
.rgp-item:hover img, .rgp-item:focus-visible img { transform: scale(1.035); }
.rgp-item:hover::after, .rgp-item:focus-visible::after, .rgp-item:hover .rgp-cap, .rgp-item:focus-visible .rgp-cap { opacity: 1; transform: none; }

.rgp-cta { margin-top: clamp(40px, 6vw, 80px); padding-top: 36px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.rgp-cta p { font: 300 clamp(20px, 2.4vw, 30px)/1.3 Poppins, sans-serif; color: #fff; margin: 0; }
.rgp-btn { font: 500 13px/1 Poppins, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.55); padding: 16px 26px; text-decoration: none; transition: background .25s, color .25s; }
.rgp-btn:hover, .rgp-btn:focus { background: #fff; color: #111; text-decoration: none; }

@media (hover: none) {
  .rgp-item::after, .rgp-cap { opacity: 1; transform: none; }
}
@media (max-width: 767.98px) {
  .rgp-head { background-size: 100% 100%, 60px 60px, 60px 60px, 12px 12px, 12px 12px; }
  .rgp-grid { columns: 2; column-gap: 10px; }
  .rgp-item { margin-bottom: 10px; }
  .rgp-cap { left: 10px; right: 10px; bottom: 9px; font-size: 10px; letter-spacing: .1em; gap: 6px; }
  .rgp-no { display: none; }
  .rgp-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 22px; padding: 0 16px 4px; scrollbar-width: none; }
  .rgp-filters::-webkit-scrollbar { display: none; }
  .rgp-filters button { flex: 0 0 auto; }
  .rgp-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 22px; scrollbar-width: none; }
  .rgp-tabs::-webkit-scrollbar { display: none; }
  .rgp-tabs a { flex: 0 0 auto; font-size: 11px; letter-spacing: .14em; }
  .rgp-label { font-size: 10px; letter-spacing: .22em; gap: 10px; margin-bottom: 16px; }
  .rgp-label::before { width: 24px; }
  .rgp-intro { font-size: 15px; margin-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) { .rgp-item img, .rgp-cap, .rgp-item::after { transition: none; } }
