.gallery { width: min(100% - 48px, 1370px); margin-inline: auto; }
.gallery-intro { padding: clamp(48px, 8vw, 112px) 0 50px; }
.gallery-intro h1 { margin: 0; font-size: clamp(3.2rem, 10vw, 8rem); font-weight: 480; line-height: .95; letter-spacing: -.087em; }
.gallery-intro p { margin: 20px 0 28px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.3rem); }
.gallery-intro nav { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-intro nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border: 1px solid #c7d0c1; border-radius: 99px; text-decoration: none; }
.gallery-intro nav a:hover { background: var(--lime); border-color: var(--lime); }
.gallery-trade { padding: 30px 0 clamp(50px, 8vw, 104px); border-top: 1px solid #c7d0c1; scroll-margin-top: 82px; }
.gallery-trade h2, .gallery-next h2 { margin: 0 0 24px; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1; font-weight: 480; letter-spacing: -.066em; }
.gallery-cards { display: grid; gap: 14px; min-width: 0; }
.gallery-card { min-width: 0; }
.gallery-card-mobile { display: none; }
.gallery-card h3 { margin: 4px 0 0; font-size: clamp(1.45rem, 3vw, 2.28rem); font-weight: 550; line-height: 1.05; letter-spacing: -.055em; }
.concept-specialty, .concept-description { color: var(--muted); margin: 0; }
.concept-specialty { font-size: .84rem; }
.concept-description { max-width: 32ch; margin-top: 11px; line-height: 1.4; }
.concept-cover { position: relative; display: grid; min-height: clamp(194px, 22vw, 280px); overflow: hidden; border-radius: 9px; isolation: isolate; container-type: inline-size; background: var(--concept-bg); color: var(--concept-text); }
.concept-content { z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px; }
.concept-content>b { font-size: .78rem; letter-spacing: -.01em; }
.concept-content>span { max-width: 11ch; font: var(--concept-head, 500 clamp(1.45rem, 8cqw, 2.9rem)/.98 Geist, Arial, sans-serif); letter-spacing: -.05em; text-wrap: balance; }
.concept-cover:has(img) .concept-content>span { max-width: min(11ch, 57%); }
.concept-content>small { padding: 7px 10px; border-radius: 99px; background: var(--concept-accent); color: var(--concept-button, #142e25); font-size: .67rem; font-weight: 650; }
.concept-cover img, .concept-pattern { position: absolute; inset: 0 0 0 auto; width: 44%; height: 100%; object-fit: cover; z-index: -1; }
.concept-pattern { background: repeating-linear-gradient(-35deg, transparent 0 20px, var(--concept-accent) 21px 22px, transparent 23px 39px); opacity: .43; }
.kauri { --concept-bg: #17382b; --concept-text: #f5f4e8; --concept-accent: #d9eeae; --concept-head: 400 clamp(1.45rem, 8cqw, 2.9rem)/1 Georgia, serif; }
.tideway { --concept-bg: #e4dbc5; --concept-text: #14314e; --concept-accent: #14314e; --concept-button: #fff; }
.tideway img { inset: auto 0 0 auto; width: 38%; height: 64%; border-radius: 75px 0 0 0; object-position: 30% center; }
.firstcall { --concept-bg: #272a28; --concept-text: #fff3d9; --concept-accent: #ffc361; }
.firstcall .concept-content>span { text-transform: uppercase; font-weight: 790; }
.rivet { --concept-bg: #1a1c1d; --concept-text: #fff; --concept-accent: #ff885d; }
.rivet img { object-fit: contain; }
.daymark { --concept-bg: #e2eef6; --concept-text: #19344b; --concept-accent: #19344b; --concept-button: #fff; }
.daymark img { inset: auto 9px 9px auto; width: 35%; height: 56%; border-radius: 5px; }
.apex { --concept-bg: #f2f2ea; --concept-text: #20251d; --concept-accent: #c9f342; }
.apex .concept-pattern { background: repeating-radial-gradient(circle at 75% 50%, #758263 0 1px, transparent 2px 13px); }
.ochre { --concept-bg: #f3e3d5; --concept-text: #4c3026; --concept-accent: #e5b79b; --concept-head: 400 clamp(1.45rem, 8cqw, 2.9rem)/1 Georgia, serif; }
.ochre img { inset: 12px 12px 12px auto; height: calc(100% - 24px); width: 41%; border-radius: 50% 50% 4px 4px / 22% 22% 4px 4px; }
.truecoat { --concept-bg: #164744; --concept-text: #f3eddf; --concept-accent: #ded5be; }
.truecoat img { width: 42%; object-position: right; filter: saturate(.55); }
.stillroom { --concept-bg: #ddd5cc; --concept-text: #4b2b42; --concept-accent: #4b2b42; --concept-button: #fff; --concept-head: 400 clamp(1.45rem, 8cqw, 2.9rem)/1 Georgia, serif; }
.stillroom .concept-pattern { background: linear-gradient(90deg, #743c57 0 33%, #a77978 33% 66%, #f0d9be 66%); opacity: .75; width: 29%; height: 58%; inset: 21% 0 auto auto; }
.gallery-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px, 5vw, 62px); margin-bottom: 65px; border-radius: 13px; background: var(--forest); color: var(--paper); }
.gallery-next h2 { margin: 0; max-width: 18ch; }
.gallery-next .pill { margin: 0; padding: 0 24px; color: var(--forest); background: var(--lime); }
.gallery-trade { display: grid; grid-template-columns: minmax(125px, 1fr) minmax(0, 4fr); gap: clamp(20px, 4vw, 60px); }
.gallery-trade h2 { font-size: clamp(2rem, 3.8vw, 3.45rem); }
.gallery-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d8ddd2;
  border-radius: 12px;
  background: #faf9f4;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.gallery-demo:hover { border-color: #9eaf9d; background: #fff; }
.gallery-demo .concept-cover { border-radius: 0; min-height: clamp(174px, 18vw, 238px); }
.gallery-demo-details { align-self: center; padding: clamp(16px, 3vw, 36px); }
.gallery-demo-label { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; font-size: .85rem; font-weight: 600; }
.gallery-demo:hover .gallery-demo-label { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 800px) {
  .gallery-trade { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 768px) {
  .gallery-card-mobile { display: block; }
  .gallery-demo-preview { display: block; width: 100%; height: auto; }
}
@media (max-width: 560px) {
  .gallery { width: calc(100% - 32px); }
  .gallery-demo { grid-template-columns: 1fr; }
  .gallery-demo-details { padding: 16px 18px 20px; }
}
