.concept-gallery {
  margin: clamp(32px, 6vw, 72px) 0 clamp(56px, 9vw, 120px);
}

.work .concept-gallery-title {
  margin: 0 0 20px;
  font: 600 clamp(26px, 3vw, 46px)/1.08 var(--display);
}

.concept-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 38px);
}

.concept-example {
  display: block;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}

.concept-example:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 6px;
}

.concept-example-shot {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #312a20;
}

.concept-example-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.concept-example:hover img { transform: scale(1.035); }
.concept-app-shot img { object-position: center top; }

.concept-example-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #564d3f;
}

.concept-example h4 {
  margin: 0;
  font: 600 clamp(23px, 2.4vw, 36px)/1.1 var(--display);
}

.concept-example p {
  margin: 4px 0 0;
  color: var(--stone);
  font-size: .94rem;
}

.concept-example-arrow {
  flex: none;
  color: var(--glow);
  font-size: 1.3rem;
}

.concept-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 18px; }

.language-options {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 8px 0;
  color: var(--ink);
}
.language-options button {
  display: grid;
  place-items: center;
  min-width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid var(--stone);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font: 650 12px/1 var(--text);
  cursor: pointer;
}
.language-options button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.language-options button:focus-visible, .project-close:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }
.top .nav { align-items: center; }

.project-preview {
  width: min(94vw, 1500px);
  height: 91dvh;
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--stone);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.project-preview[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.project-preview::backdrop { background: #15140fbd; }
.project-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 10px 4px 16px; }
.project-bar h2 { margin: 0; font: 650 19px/1.2 var(--display); }
.project-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 24px; cursor: pointer; }
.project-close:hover { background: var(--ivory); }
.project-preview iframe { width: 100%; height: 100%; border: 0; background: var(--white); }
body:has(.project-preview[open]) { overflow: hidden; }

@media (max-width: 720px) {
  .concept-gallery-grid { grid-template-columns: 1fr; gap: 24px; }
  .concept-example-shot { aspect-ratio: 3 / 2; }
  .project-preview { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
}
@media (max-width: 980px) {
  .top .nav { align-items: stretch; }
  .language-options { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .concept-example-shot img { transition: none; }
}
