/* A featured project, residential portraits and compact workplace tiles.
   Visual placement follows the existing filter / sort / keyboard order. */
.project-bento #hybrid-explorer #portfolio-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 14vw, 210px);
  grid-auto-flow: row;
  align-items: stretch;
  gap: 18px;
}
.project-wall.project-bento .hybrid-explorer #hybrid-explorer #portfolio-grid > .editorial-project {
  grid-column: span 4;
  grid-row: span 2;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(39, 43, 40, .08);
  border-radius: 14px;
  isolation: isolate;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(39, 43, 40, .025);
  animation: none;
}
.project-wall.project-bento .hybrid-explorer #hybrid-explorer #portfolio-grid > [data-bento-kind="featured"] {
  grid-column: span 8;
  background: var(--ink);
  color: white;
}
.project-wall.project-bento .hybrid-explorer #hybrid-explorer #portfolio-grid > [data-bento-kind="commercial"] {
  grid-row: span 1;
  background: var(--ink);
  color: white;
}
.project-bento #hybrid-explorer .editorial-project-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.project-bento #hybrid-explorer .editorial-project .editorial-project-media {
  position: relative;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}
.project-bento #hybrid-explorer .editorial-project-image {
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  translate: 0 var(--project-depth-y, 0px);
  transition: transform 1800ms cubic-bezier(.16, .55, .24, 1);
}
.project-bento #hybrid-explorer .editorial-project-media::after {
  background: linear-gradient(180deg, rgba(18, 24, 21, .1), transparent 48%);
  opacity: 1;
}
.project-bento #hybrid-explorer .editorial-project-copy {
  position: static;
  padding: 20px 24px;
  border: 0;
  transform: none;
  transition: none;
}
.project-bento #hybrid-explorer .editorial-project-title {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: clamp(21px, 1.9vw, 29px);
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.project-bento #hybrid-explorer .editorial-project-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
  line-height: 1.6;
}
.project-bento #hybrid-explorer .editorial-project-location {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.project-bento .bento-card-topline {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.project-bento .bento-card-label,
.project-bento .bento-card-year {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: white;
  background: rgba(24, 30, 26, .58);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .06em;
}
.project-bento .bento-card-year { font-variant-numeric: tabular-nums; }
.project-bento .bento-card-year[hidden] { display: none; }
.project-bento .bento-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  color: var(--gold-dark);
  font-size: 11px;
  line-height: 1.5;
}
.project-bento .bento-card-arrow {
  display: none;
}
.project-bento #hybrid-explorer :is([data-bento-kind="featured"], [data-bento-kind="commercial"]) .editorial-project-media {
  position: absolute;
  inset: 0;
}
.project-bento #hybrid-explorer :is([data-bento-kind="featured"], [data-bento-kind="commercial"]) .editorial-project-media::after {
  background: linear-gradient(180deg, rgba(15, 24, 20, .18), rgba(15, 24, 20, .04) 24%, rgba(15, 24, 20, .85) 100%);
}
.project-bento #hybrid-explorer :is([data-bento-kind="featured"], [data-bento-kind="commercial"]) .editorial-project-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
}
.project-bento #hybrid-explorer :is([data-bento-kind="featured"], [data-bento-kind="commercial"]) .editorial-project-title {
  color: white;
}
.project-bento #hybrid-explorer :is([data-bento-kind="featured"], [data-bento-kind="commercial"]) :is(.editorial-project-meta, .editorial-project-location) {
  color: rgba(255, 255, 255, .85);
}
.project-bento :is([data-bento-kind="featured"], [data-bento-kind="commercial"]) .bento-card-action {
  color: #f0e0b6;
}
.project-bento #hybrid-explorer [data-bento-kind="featured"] .editorial-project-copy {
  padding: clamp(24px, 3vw, 42px);
}
.project-bento #hybrid-explorer [data-bento-kind="featured"] .editorial-project-title {
  max-width: 16ch;
  margin-bottom: 10px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.2;
  letter-spacing: .045em;
}
.project-bento [data-bento-kind="featured"] .bento-card-topline { inset: 24px 24px auto; }
.project-bento [data-bento-kind="featured"] .bento-card-label { border-color: #cbb882; color: #f0e0b6; }
.project-bento #hybrid-explorer [data-bento-kind="commercial"] .editorial-project-copy {
  padding: 18px 20px;
}
.project-bento #hybrid-explorer [data-bento-kind="commercial"] .editorial-project-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(19px, 1.55vw, 24px);
}
.project-bento #hybrid-explorer [data-bento-kind="commercial"] .editorial-project-meta {
  margin-bottom: 6px;
  font-size: 9px;
}
.project-bento [data-bento-kind="commercial"] .bento-card-topline { inset: 12px 14px auto; }
.project-bento [data-bento-kind="commercial"] .bento-card-label,
.project-bento [data-bento-kind="commercial"] .bento-card-year { padding: 4px 8px; font-size: 9px; }
.project-bento [data-bento-kind="commercial"] .bento-card-action { display: none; }
.project-bento [data-bento-kind="commercial"] .bento-card-action-label { display: none; }
.project-bento #hybrid-explorer .editorial-project:focus-visible { outline-offset: -5px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-bento #hybrid-explorer .editorial-project:is(:hover, :focus-visible) .editorial-project-image { transform: scale(1.045); }
}
/* Only JavaScript-prepared, unseen cards wait below the fold. Initial HTML
   remains visible without scripting, and FLIP continues to own the outer link. */
.project-bento #hybrid-explorer .editorial-project-body[data-project-reveal="pending"] {
  opacity: 0;
  transform: translateY(12px);
  transition: none;
}
.project-bento #hybrid-explorer .editorial-project-body[data-project-reveal="visible"] {
  opacity: 1;
  transform: none;
  transition: opacity 1000ms cubic-bezier(.22, .68, .12, 1) var(--project-reveal-delay, 0ms), transform 1200ms cubic-bezier(.22, .68, .12, 1) var(--project-reveal-delay, 0ms);
}
.project-bento #hybrid-explorer .editorial-project-body[data-project-reveal="ready"],
.project-bento #hybrid-explorer .editorial-project:focus-within .editorial-project-body {
  opacity: 1;
  transform: none;
  transition: none;
}
@media (min-width: 768px) and (max-width: 1199px) {
  .project-bento #hybrid-explorer #portfolio-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: 190px; }
  .project-wall.project-bento .hybrid-explorer #hybrid-explorer #portfolio-grid > .editorial-project { grid-column: span 4; }
  .project-wall.project-bento .hybrid-explorer #hybrid-explorer #portfolio-grid > [data-bento-kind="featured"] { grid-column: span 8; }
}
@media (max-width: 767px) {
  .project-bento #hybrid-explorer #portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 174px; gap: 12px; }
  .project-wall.project-bento .hybrid-explorer #hybrid-explorer #portfolio-grid > .editorial-project { grid-column: span 2; }
  .project-wall.project-bento .hybrid-explorer #hybrid-explorer #portfolio-grid > [data-bento-kind="commercial"] { grid-column: span 1; }
  .project-bento #hybrid-explorer .editorial-project-copy { padding: 16px 18px; }
  .project-bento #hybrid-explorer .editorial-project-title { font-size: 23px; }
  .project-bento .bento-card-topline { inset: 14px 14px auto; }
  .project-bento .bento-card-action { margin-top: 10px; }
  .project-bento #hybrid-explorer [data-bento-kind="featured"] .editorial-project-copy { padding: 24px; }
  .project-bento [data-bento-kind="featured"] .bento-card-topline { inset: 18px 18px auto; }
  .project-bento #hybrid-explorer [data-bento-kind="featured"] .editorial-project-title { font-size: 34px; }
  .project-bento #hybrid-explorer [data-bento-kind="commercial"] .editorial-project-copy { padding: 12px; }
  .project-bento #hybrid-explorer [data-bento-kind="commercial"] .editorial-project-title { font-size: 16px; margin-bottom: 4px; }
  .project-bento #hybrid-explorer [data-bento-kind="commercial"] .editorial-project-meta { font-size: 8px; margin-bottom: 4px; letter-spacing: 0; }
  .project-bento #hybrid-explorer [data-bento-kind="commercial"] .editorial-project-location { font-size: 10px; }
  .project-bento [data-bento-kind="commercial"] .bento-card-topline { inset: 10px 10px auto; gap: 4px; flex-wrap: wrap; }
  .project-bento [data-bento-kind="commercial"] .bento-card-label,
  .project-bento [data-bento-kind="commercial"] .bento-card-year { padding: 3px 6px; font-size: 8px; }
  .project-bento #hybrid-explorer .editorial-project-body[data-project-reveal="pending"] { transform: translateY(8px); }
  .project-bento #hybrid-explorer .editorial-project-image { translate: none; }
}
@media (hover: none), (pointer: coarse) {
  .project-bento #hybrid-explorer .editorial-project .editorial-project-image { transform: scale(1.02); translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  .project-bento #hybrid-explorer .editorial-project .editorial-project-image { transition: none; transform: none; translate: none; }
  .project-bento #hybrid-explorer .editorial-project-body[data-project-reveal] { opacity: 1; transform: none; transition: none; }
}
@media print {
  .project-bento #hybrid-explorer .editorial-project-body[data-project-reveal] { opacity: 1; transform: none; transition: none; }
  .project-bento #hybrid-explorer .editorial-project .editorial-project-image { transform: none; translate: none; transition: none; }
}
