/* Case study blurbs under folio cards + detail pages */
.ogi-folio-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ogi-folio-item .ogi-folio-card {
  width: 100%;
}

.ogi-case {
  padding: 0.85rem 0.15rem 0.25rem;
}

.ogi-case__text {
  margin: 0 0 0.7rem;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.72);
}

.ogi-case__book {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1a !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(196, 165, 116, 0.85);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ogi-case__book:hover {
  color: #9a7348 !important;
  border-bottom-color: #9a7348;
}

.ogi-case--page {
  width: min(720px, calc(100% - 2.5rem));
  margin: 1.75rem auto 0;
  padding: 1.15rem 1.25rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.ogi-case--page .ogi-case__text {
  font-size: 15px;
  color: rgba(26, 26, 26, 0.78);
  margin-bottom: 1rem;
}

.ogi-case--page .ogi-case__book.btn-main {
  border-bottom: 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 14px;
}

.ogi-proj__story {
  grid-column: 1 / -1;
  padding: clamp(1.35rem, 3vw, 2.25rem) clamp(1.15rem, 3vw, 2.5rem);
  background: #faf8f5;
  border: 1px solid rgba(184, 149, 106, 0.2);
}

.ogi-proj__band {
  grid-column: 1 / -1;
}

.ogi-proj__band--text {
  padding: clamp(1.65rem, 3.5vw, 2.75rem) clamp(1.35rem, 4vw, 3.25rem);
  background: #faf8f5;
  border: 1px solid rgba(184, 149, 106, 0.2);
}

.ogi-proj__band-lead {
  margin: 0;
  max-width: 54rem;
  font-size: clamp(1.15rem, 2.1vw, 1.38rem);
  line-height: 1.62;
  font-weight: 500;
  color: #2a2218;
}

.ogi-proj__band-copy {
  margin: 0;
  max-width: 54rem;
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  line-height: 1.74;
  font-weight: 400;
  color: rgba(42, 34, 24, 0.9);
}

.ogi-proj__band--service {
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
  border-left: 4px solid #9a7348;
  padding-left: clamp(1.5rem, 3.5vw, 2.5rem);
}

.ogi-proj__band-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a7348;
}

.ogi-proj__band-headline {
  margin: 0 0 0.6rem;
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.35;
  color: #1a140e;
}

body.ogi-service-detail .ogi-proj__band-lead {
  font-size: clamp(1.22rem, 2.3vw, 1.48rem);
  font-weight: 600;
  color: #1a140e;
}

body.ogi-service-detail .ogi-proj__band--proof {
  background: #f3ede4;
  border-left-color: rgba(154, 115, 72, 0.55);
}

body.ogi-service-detail .ogi-proj__band--proof .ogi-proj__band-copy {
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  color: rgba(42, 34, 24, 0.78);
}

.ogi-proj__story-footer {
  grid-column: 1 / -1;
  padding: clamp(1.65rem, 3.5vw, 2.75rem) clamp(1.35rem, 4vw, 3.25rem);
  background: #faf8f5;
  border: 1px solid rgba(184, 149, 106, 0.2);
}

.ogi-proj__story-lead {
  margin: 0 0 1.15rem;
  max-width: 52rem;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  font-weight: 500;
  color: #2a2218;
}

.ogi-proj__story-body p {
  margin: 0 0 0.95rem;
  max-width: 52rem;
  font-size: 15px;
  line-height: 1.68;
  color: rgba(42, 34, 24, 0.84);
}

.ogi-proj__story-body p:last-child {
  margin-bottom: 0;
}

.ogi-proj__story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0;
  padding: 0;
  border-top: 0;
}

.ogi-proj__story-block h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(0.88rem, 1.4vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a6538;
}

.ogi-proj__story-list {
  margin: 0;
  padding-left: 1.15rem;
}

.ogi-proj__story-list li {
  margin-bottom: 0.55rem;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.58;
  color: rgba(42, 34, 24, 0.88);
}

.ogi-proj__story-links {
  grid-column: auto;
  margin-top: 0;
  padding-top: 1.45rem;
  border-top: 1px solid rgba(184, 149, 106, 0.22);
}

.ogi-proj__story-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ogi-proj__story-links a {
  color: #2a2218 !important;
  font-size: clamp(1rem, 1.7vw, 1.1rem);
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(184, 149, 106, 0.45);
  padding-bottom: 2px;
}

.ogi-proj__story-links a:hover {
  color: #9a7348 !important;
  border-bottom-color: #9a7348;
}

.ogi-proj__story-book {
  margin-top: 0.35rem;
  padding-top: 1.65rem;
  border-top: 1px solid rgba(184, 149, 106, 0.22);
  text-align: center;
}

.ogi-proj__story-book-text {
  margin: 0 auto 1.15rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.9vw, 1.18rem);
  line-height: 1.65;
  font-weight: 400;
  color: rgba(42, 34, 24, 0.88);
}

.ogi-proj__story-book-btn {
  display: inline-flex;
  border-bottom: 0 !important;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 15px;
}

.ogi-proj > .ogi-case--page {
  display: none;
}

html.ogi-ready body.ogi-case-detail,
body.ogi-case-detail {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100%;
  position: static !important;
  touch-action: pan-y;
}

html.ogi-ready:has(body.ogi-case-detail) {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
}

body.ogi-case-detail main {
  overflow: visible;
}

body.ogi-case-detail .ogi-proj {
  overflow: visible;
  padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 991px) {
  body.ogi-case-detail .ogi-proj {
    padding-bottom: calc(4.5rem + 72px + env(safe-area-inset-bottom, 0px));
  }
}

.ogi-detail {
  width: min(860px, calc(100% - 2.5rem));
  margin: 1.75rem auto 0;
  padding: 0 0.25rem;
}

.ogi-detail__body p {
  margin: 0 0 1rem;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(42, 34, 24, 0.82);
}

.ogi-detail__body p:last-child {
  margin-bottom: 0;
}

.ogi-detail__block {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(184, 149, 106, 0.22);
}

.ogi-detail__heading {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a7348;
}

.ogi-detail__list,
.ogi-detail__links {
  margin: 0;
  padding-left: 1.1rem;
}

.ogi-detail__list li,
.ogi-detail__links li {
  margin-bottom: 0.45rem;
  line-height: 1.5;
  color: rgba(42, 34, 24, 0.82);
}

.ogi-detail__links {
  list-style: none;
  padding-left: 0;
}

.ogi-detail__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #2a2218 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(184, 149, 106, 0.45);
  padding-bottom: 1px;
  font-weight: 600;
}

.ogi-detail__links a:hover {
  color: #9a7348 !important;
  border-bottom-color: #9a7348;
}

.ogi-detail--project {
  margin-top: 1.25rem;
}

.ogi-proj__note {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(42, 34, 24, 0.72);
}

.ogi-prefill-note {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: rgba(184, 149, 106, 0.1);
  border: 1px solid rgba(184, 149, 106, 0.24);
  color: #2a2218;
  font-size: 13.5px;
  line-height: 1.4;
}

body.ogi-folio .ogi-case__text {
  color: rgba(26, 26, 26, 0.72);
}

@media (max-width: 575px) {
  .ogi-case--page,
  .ogi-detail {
    width: calc(100% - 1.5rem);
  }
}
