/* Static SLOI previews keep the gallery light: the 3D scene loads in the shop. */
.sloi-example .sloi-preview {
  color: #272622;
  background: #ede8df;
  display: grid;
  grid-template-columns: 45% 55%;
}
.sloi-preview-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(18px, 2.6vw, 36px) 0 clamp(18px, 2.6vw, 36px) clamp(18px, 2.6vw, 36px);
}
.sloi-preview-brand {
  display: block;
  font: 600 clamp(28px, 3.6vw, 52px)/1 Manrope, Arial, sans-serif;
  letter-spacing: -.08em;
}
.sloi-preview-brand > span {
  display: block;
  margin-top: 9px;
  font-size: clamp(9px, .9vw, 12px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .02em;
  color: #695e54;
}
.sloi-preview-title {
  display: block;
  margin-top: 12px;
  font: 400 clamp(24px, 3vw, 40px)/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}
.sloi-preview-title em { color: #a04e33; font-weight: 400; }
.example-preview.sloi-preview img {
  position: relative;
  inset: auto;
  align-self: center;
  min-width: 0;
  width: 100%;
  height: 90%;
  object-fit: contain;
  object-position: center;
}
.sloi-preview .preview-open { z-index: 2; color: #fff9f1; background: #38392f; }
.sloi-example .example-meta { color: #975034; }
.sloi-example .example-tags li { background: #f2ede6; color: #6c5647; }
.sloi-example .button-dark { background: #38392f; color: #fff9f1; }
.sloi-example .button-dark:hover { background: #a04e33; }
.sloi-example .example-actions a { max-width: 100%; white-space: normal; }

/* Six examples form three complete rows; a wide final card is for odd counts. */
.page-examples .example-card:last-child:nth-child(even) { grid-column: auto; display: flex; }
.page-examples .example-card:last-child:nth-child(even) .example-preview { aspect-ratio: 16 / 10; min-height: 0; border-bottom: 1px solid #1717190a; }
.page-examples .example-card:last-child:nth-child(even) .example-copy { justify-content: initial; padding: 28px; }
.page-examples .example-card:last-child:nth-child(even) .example-actions { margin-top: auto; }

.page-works .sloi-case {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #f7f4ed;
  color: #272622;
  border-bottom: 1px solid #39352b26;
}
.sloi-case > * { min-width: 0; }
.sloi-case .sloi-case-media {
  position: relative;
  min-height: 680px;
  height: 100%;
  isolation: isolate;
  background: #e7e0d5;
  border-color: #39352b26;
}
.sloi-case .sloi-case-media > img {
  position: absolute;
  inset: 22% 2% 14%;
  width: 96%;
  height: 64%;
  object-fit: contain;
  object-position: center;
}
.sloi-case-heading { position: absolute; top: 34px; left: 34px; right: 24px; z-index: 1; }
.sloi-case-heading > span { display: block; font: 600 clamp(46px, 5vw, 76px)/1 Manrope, Arial, sans-serif; letter-spacing: -.08em; }
.sloi-case-heading > small { display: block; margin-top: 10px; font-size: 13px; color: #695e54; }
.sloi-case-note {
  position: absolute;
  right: 28px;
  bottom: 90px;
  z-index: 1;
  color: #a04e33;
  font: italic 400 clamp(30px, 3.4vw, 48px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
}
.sloi-case .case-media > a { left: 34px; right: auto; bottom: 28px; min-height: 48px; padding: 12px 18px; border-radius: 28px; background: #38392f; color: #fff9f1; font-size: 12px; }
.sloi-case .case-media > a:hover { background: #a04e33; color: #fff9f1; }
.sloi-case .case-copy { padding: clamp(28px, 4vw, 66px); }
.sloi-case .case-copy h2 { font: 600 clamp(46px, 5vw, 70px)/1.05 Manrope, Arial, sans-serif; letter-spacing: -.065em; }
.sloi-case .case-status { color: #975034; }
.sloi-case .case-status i { flex: 0 0 8px; background: #ac6945; }
.sloi-case .case-lead { font-size: 16px; color: #625a4f; }
.sloi-case .case-details { margin-top: 28px; border-color: #39352b26; }
.sloi-case .case-details > div { grid-template-columns: 118px minmax(0, 1fr); gap: 20px; padding: 17px 0; border-color: #39352b26; }
.sloi-case .case-details dt { color: #37372f; font-weight: 650; }
.sloi-case .case-details dd { color: #625a4f; }
.sloi-case .case-tags { margin-top: 22px; }
.sloi-case .case-tags span { color: #695e54; border-color: #39352b26; border-radius: 20px; padding: 8px 11px; }
.sloi-case .visual-links { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 28px; }
.sloi-case .visual-links .button { max-width: 100%; min-height: 48px; padding: 14px 20px; background: #38392f; color: #fff9f1; font-size: 14px; border: 0; border-radius: 28px; white-space: normal; }
.sloi-case .visual-links .button:hover { background: #a04e33; }
.sloi-case .sloi-discuss { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; color: #37372f; text-decoration: underline; text-underline-offset: 5px; }
.sloi-case a:focus-visible { outline: 3px solid #a04e33; outline-offset: 5px; }

@media (max-width: 960px) {
  .page-works .sloi-case { grid-template-columns: 1fr; }
  .sloi-case .sloi-case-media { min-height: 0; height: auto; aspect-ratio: 16 / 11; border-right: 0; border-bottom: 1px solid #39352b26; }
}
@media (max-width: 700px) {
  .sloi-preview-copy { padding: 24px 0 24px 24px; }
  .sloi-preview-brand { font-size: 40px; }
  .sloi-preview-brand > span { font-size: 11px; }
  .sloi-preview-title { font-size: clamp(25px, 6vw, 38px); }
  .page-examples .example-card:last-child:nth-child(even) .example-copy { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .sloi-preview-copy { padding: 18px 0 20px 18px; }
  .sloi-preview-brand { font-size: 30px; }
  .sloi-preview-brand > span { display: none; }
  .sloi-preview-title { font-size: clamp(21px, 5.4vw, 26px); }
  .sloi-preview .preview-open { right: 10px; bottom: 10px; padding: 9px 12px; font-size: 10px; }
  .sloi-case .sloi-case-media { aspect-ratio: 4 / 5; }
  .sloi-case-heading { top: 24px; left: 24px; }
  .sloi-case-heading > span { font-size: 56px; }
  .sloi-case-heading > small { font-size: 12px; }
  .sloi-case-note { bottom: 98px; right: 24px; font-size: 36px; }
  .sloi-case .case-media > a { left: 24px; bottom: 24px; font-size: 12px; }
  .sloi-case .case-details > div { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .sloi-case .case-media img, .sloi-preview .preview-open { transition: none; }
  .sloi-case .case-media:hover img, .sloi-preview:hover .preview-open { transform: none; }
}
