/* Website additions follow ERS's existing bronze/teal, restrained corners,
   generous section rhythm, and image-first project presentation. */
.project-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.project-heading h3 { margin:0; font-size:clamp(1.5rem,3vw,2rem); font-weight:650; line-height:1.2; color:#1d4045; letter-spacing:-.025em; }
.project-eyebrow { margin:0 0 8px; color:#667577; font-size:.7rem; text-transform:uppercase; letter-spacing:.13em; font-weight:600; }
.project-text-link { color:#295a60; font-size:.875rem; font-weight:500; text-decoration:none; white-space:nowrap; }
.project-text-link:hover { text-decoration:underline; text-underline-offset:5px; }
.project-viewer { min-width:0; outline-offset:8px; }
.project-viewer__stage { position:relative; aspect-ratio:3/2; background:#172e32; overflow:hidden; border-radius:5px; }
.project-viewer__image { display:block; width:100%; height:100%; object-fit:contain; }
.photo-arrow { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; display:flex; align-items:center; justify-content:center; padding:0; border:1px solid rgb(255 255 255 / 50%); border-radius:50%; background:rgb(255 255 255 / 94%); color:#1d4045; box-shadow:0 2px 12px rgb(0 0 0 / 10%); cursor:pointer; transition:background .15s ease, color .15s ease; }
.photo-arrow:hover { background:#295a60; color:white; }
.photo-arrow--previous { left:20px; }
.photo-arrow--next { right:20px; }
.project-viewer__meta { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-top:16px; color:#657174; font-size:.85rem; line-height:1.5; }
.project-viewer__counter { flex-shrink:0; font-variant-numeric:tabular-nums; font-size:.75rem; letter-spacing:.09em; color:#295a60; padding-top:2px; }
.project-viewer__thumbnails { display:flex; position:relative; gap:12px; overflow-x:auto; overscroll-behavior-x:contain; padding:7px 4px 12px; margin:20px -4px 0; scrollbar-width:thin; scrollbar-color:#b9c2c0 transparent; }
.project-viewer__thumbnails[hidden] { display:none; }
.photo-thumbnail { flex:0 0 88px; padding:0; border:0; border-radius:3px; background:transparent; opacity:.55; cursor:pointer; transition:opacity .15s; }
.photo-thumbnail:hover, .photo-thumbnail[aria-pressed="true"] { opacity:1; }
.photo-thumbnail[aria-pressed="true"] { outline:2px solid #b4965e; outline-offset:3px; }
.photo-thumbnail img { display:block; width:100%; height:60px; object-fit:cover; border-radius:3px; }
.photo-arrow:focus-visible, .photo-thumbnail:focus-visible, .portfolio-filters button:focus-visible, .portfolio-card a:focus-visible, .photo-lightbox__close:focus-visible { outline:3px solid #b4965e; outline-offset:4px; }
.project-archive { margin-top:32px; border-top:1px solid #dce1df; }
.project-archive summary { display:flex; align-items:center; justify-content:space-between; padding:22px 0; cursor:pointer; list-style:none; color:#295a60; font-weight:500; font-size:.9rem; }
.project-archive summary::-webkit-details-marker { display:none; }
.project-archive summary span { font-size:1.4rem; font-weight:300; }
.project-archive[open] summary span { transform:rotate(45deg); }
.project-archive__body { padding-top:12px; }
.project-viewer__fallback { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:32px; }
.project-viewer__fallback img { width:100%; height:auto; }
.project-viewer__fallback figcaption { font-size:.8rem; color:#657174; margin-top:8px; }

/* Center incomplete rows rather than leaving new team members stranded in a
   grid slot. Native details preserve supplied bios without unequal text walls. */
.team-roster { display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-start; gap:56px 32px; }
.team-roster > .team-card { flex:0 1 calc((100% - 64px)/3); min-width:0; }
.team-card-photo { aspect-ratio:1; overflow:hidden; margin-bottom:24px; }
.team-card-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.team-card h3 { font-size:1.3rem; line-height:1.3; letter-spacing:.025em; }
.team-card > p { font-size:.72rem; line-height:1.6; letter-spacing:.09em; margin-bottom:0; }
.team-bio { border-top:1px solid rgb(255 255 255 / 16%); margin-top:20px; }
.team-bio summary { display:flex; justify-content:space-between; align-items:center; list-style:none; padding:14px 0 0; color:rgb(255 255 255 / 80%); font-size:.8rem; cursor:pointer; }
.team-bio summary::-webkit-details-marker { display:none; }
.team-bio summary::after { content:"+"; font-size:1.15rem; color:#b4965e; }
.team-bio[open] summary::after { content:"−"; }
.team-bio p { padding-top:14px; }

/* One continuous masonry gallery, not a second catalogue stacked above it. */
.portfolio-section { padding:32px 0 112px; }
.portfolio-toolbar { display:flex; justify-content:space-between; align-items:center; gap:24px; border-bottom:1px solid #e4e8e6; margin-bottom:36px; }
.portfolio-toolbar[hidden] { display:none; }
.portfolio-filters { display:flex; gap:28px; overflow-x:auto; scrollbar-width:none; }
.portfolio-filters::-webkit-scrollbar { display:none; }
.portfolio-filters button { position:relative; flex-shrink:0; min-height:56px; padding:12px 0; background:none; border:0; border-bottom:2px solid transparent; color:#6b7475; font-size:.875rem; cursor:pointer; white-space:nowrap; }
.portfolio-filters button[aria-pressed="true"] { color:#1d4045; border-bottom-color:#b4965e; font-weight:600; }
.portfolio-filters button:hover { color:#1d4045; }
.portfolio-count { flex-shrink:0; color:#899190; font-size:.75rem; font-variant-numeric:tabular-nums; }
.portfolio-grid { columns:3; column-gap:24px; }
.portfolio-card { break-inside:avoid; margin:0 0 28px; }
.portfolio-card[hidden] { display:none; }
.portfolio-card a { position:relative; display:block; overflow:hidden; border-radius:4px; background:#edf0ed; }
.portfolio-card img { width:100%; height:auto; display:block; transition:transform .35s ease; }
.portfolio-card a:hover img { transform:scale(1.025); }
.portfolio-card__expand { position:absolute; right:12px; bottom:12px; display:grid; place-items:center; width:34px; height:34px; color:#fff; background:rgb(25 45 49 / 62%); border-radius:50%; opacity:0; transition:opacity .2s; }
.portfolio-card a:hover .portfolio-card__expand, .portfolio-card a:focus-visible .portfolio-card__expand { opacity:1; }
.portfolio-card figcaption { padding:10px 0 0; font-size:.75rem; font-weight:500; color:#657174; }
.portfolio-footnote { text-align:center; margin-top:40px; padding-top:32px; border-top:1px solid #e4e8e6; }
.photo-lightbox { position:fixed; inset:0; margin:auto; width:min(1280px,94vw); max-width:none; height:auto; max-height:94dvh; padding:0; border:0; background:transparent; color:white; overflow:visible; }
.photo-lightbox::backdrop { background:rgb(8 21 25 / 94%); }
.photo-lightbox__header { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:14px; }
.photo-lightbox__header h2 { font-size:1rem; font-weight:500; letter-spacing:.01em; }
.photo-lightbox__close { width:44px; height:44px; display:grid; place-items:center; color:white; background:rgb(255 255 255 / 10%); border:0; border-radius:50%; cursor:pointer; }
.photo-lightbox__stage { position:relative; height:74dvh; }
.photo-lightbox__stage img { width:100%; height:100%; object-fit:contain; }
.photo-lightbox__footer { display:flex; justify-content:space-between; gap:24px; margin-top:16px; color:#ccd2d1; font-size:.85rem; }
.photo-lightbox__footer span { flex-shrink:0; font-variant-numeric:tabular-nums; }
@media (min-width:1200px) {
  .team-roster--seven > .team-card { flex-basis:calc((100% - 96px)/4); }
}
@media (max-width:1023px) {
  .team-roster > .team-card { flex-basis:calc((100% - 32px)/2); }
  .portfolio-grid { columns:2; }
  .portfolio-filters { gap:22px; }
  .portfolio-count { display:none; }
}
@media (max-width:639px) {
  .project-heading { align-items:flex-start; flex-direction:column; gap:12px; margin-bottom:20px; }
  .project-heading .project-text-link { font-size:.8rem; }
  .project-viewer__meta { gap:12px; font-size:.75rem; margin-top:12px; }
  .project-viewer__counter { font-size:.7rem; }
  .photo-arrow { width:42px; height:42px; }
  .photo-arrow--previous { left:10px; }
  .photo-arrow--next { right:10px; }
  .photo-thumbnail { flex-basis:64px; }
  .photo-thumbnail img { height:44px; }
  .project-viewer__thumbnails { gap:10px; margin-top:16px; }
  .project-viewer__fallback { grid-template-columns:1fr; }
  .team-roster { gap:40px; }
  .team-roster > .team-card { flex-basis:100%; max-width:400px; }
  .portfolio-section { padding-top:12px; padding-bottom:72px; }
  .portfolio-toolbar { margin-bottom:24px; }
  .portfolio-filters { gap:22px; }
  .portfolio-filters button { font-size:.8rem; }
  .portfolio-grid { columns:1; }
  .portfolio-card { margin-bottom:24px; }
  .portfolio-card__expand { opacity:1; }
  .photo-lightbox { width:calc(100vw - 24px); max-height:96dvh; }
  .photo-lightbox__stage { height:65dvh; }
  .photo-lightbox__footer { font-size:.75rem; gap:12px; }
}
@media (prefers-reduced-motion:reduce) {
  .portfolio-card img, .photo-thumbnail, .photo-arrow { transition:none; }
}
