/* Local-only subpage design-system Preview. Shared rules apply to existing page structure without rewriting copy. */
.inner-preview {
  --inner-forest: #083f2c;
  --inner-olive: #68734f;
  --inner-sage: #8d9a75;
  --inner-gold: #b8952f;
  --inner-ivory: #f8f6ed;
  --inner-paper: #fbfaf7;
  background: var(--inner-ivory);
  overflow-x: clip;
}

.inner-preview main > .page-hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(88px, 10vw, 144px);
  padding-bottom: clamp(84px, 9vw, 128px);
}

.inner-preview main > .page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline: calc((100% - 100vw) / 2);
  background: linear-gradient(112deg, rgba(141, 154, 117, .12), rgba(237, 239, 229, .30) 54%, rgba(247, 241, 233, .05));
}

.inner-preview main > .section {
  position: relative;
  isolation: isolate;
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(72px, 8vw, 112px);
}

.inner-preview main > .section:nth-of-type(even)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline: calc((100% - 100vw) / 2);
  background: linear-gradient(108deg, rgba(141, 154, 117, .105), rgba(237, 239, 229, .28) 58%, rgba(247, 241, 233, .04));
}

.inner-preview main h1,
.inner-preview main h2,
.inner-preview main h3 {
  color: var(--inner-forest);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "MS PMincho", serif;
  font-weight: 600;
  letter-spacing: .035em;
}

.inner-preview main h1,
.inner-preview main h2 {
  line-height: 1.45;
}

.inner-preview main h3 {
  line-height: 1.55;
}

.inner-preview .page-hero .eyebrow,
.inner-preview .section-kicker,
.inner-preview .tag {
  color: var(--inner-olive);
}

.inner-preview .page-hero .eyebrow::before,
.inner-preview .section-kicker::before {
  background: var(--inner-gold);
}

.inner-preview .section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.inner-preview .section-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
}

.inner-preview .panel,
.inner-preview .service-card,
.inner-preview .step-card,
.inner-preview .case-card {
  border-color: rgba(8, 63, 44, .16);
  border-radius: 2px;
  background-color: rgba(252, 250, 246, .84);
  box-shadow: none;
}

.inner-preview .case-card {
  overflow: hidden;
}

.inner-preview .case-card h3 {
  font-size: 20px;
  letter-spacing: .01em;
}

.inner-preview .brand-mark {
  width: 40px;
  height: 42px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  color: inherit;
  font-size: inherit;
}

.inner-preview .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
}

.inner-preview .case-visual {
  min-height: 92px;
  padding: 0;
  border-bottom-color: rgba(184, 149, 47, .48);
}

.inner-preview .case-visual.team,
.inner-preview .case-visual.market {
  background: linear-gradient(135deg, #f3f2e9, #e5e9dd);
}

.inner-preview .case-visual.care,
.inner-preview .case-visual.attendance {
  background: linear-gradient(135deg, #f5f1e9, #e9eadf);
}

.inner-preview .case-visual.invoice,
.inner-preview .case-visual.mail {
  background: linear-gradient(135deg, #f4f1e8, #e2e8dc);
}

.inner-preview .case-visual.soon,
.inner-preview .case-visual.photo {
  background: linear-gradient(135deg, #f7f3ea, #e8eadf);
}

.inner-preview .case-link,
.inner-preview .text-link {
  text-decoration-color: rgba(184, 149, 47, .72);
  text-underline-offset: 5px;
}

.inner-preview .cta-band {
  border: 1px solid rgba(184, 149, 47, .58);
  border-radius: 2px;
  background: #414b36;
  color: #f7f1e9;
}

.inner-preview .cta-band h2,
.inner-preview .cta-band h3,
.inner-preview .cta-band p {
  color: #f7f1e9;
}

.inner-preview .cta-band .button {
  min-height: 48px;
  border-color: #f7f1e9;
  background: #f7f1e9;
  color: #36412f;
}

.inner-preview a:focus-visible,
.inner-preview button:focus-visible,
.inner-preview input:focus-visible,
.inner-preview textarea:focus-visible,
.inner-preview select:focus-visible {
  outline: 2px solid var(--inner-gold);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .inner-preview main > .page-hero {
    padding-top: 72px;
    padding-bottom: 68px;
  }

  .inner-preview main > .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .inner-preview main h1,
  .inner-preview main h2 {
    line-height: 1.5;
  }
}

/* Quiet Field inspired card-top artwork; preserve card content and structure. */
.inner-preview .case-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  border-bottom-color: rgba(190, 162, 85, .48);
}
.inner-preview .case-visual.team,
.inner-preview .case-visual.soon,
.inner-preview .case-visual.attendance {
  background:
    radial-gradient(ellipse at 12% 4%, rgba(250, 248, 229, .48), transparent 42%),
    linear-gradient(132deg, #d9ddc7 0%, #89956c 48%, #254b36 100%);
}
.inner-preview .case-visual.care,
.inner-preview .case-visual.mail {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(239, 234, 191, .66), transparent 45%),
    linear-gradient(128deg, #e5e7d4 0%, #84916a 55%, #38583d 100%);
}
.inner-preview .case-visual.invoice,
.inner-preview .case-visual.market {
  background:
    radial-gradient(ellipse at 16% 2%, rgba(234, 238, 207, .54), transparent 44%),
    linear-gradient(134deg, #254a35 0%, #536b45 58%, #9aa17a 100%);
}
.inner-preview .case-visual.photo {
  background:
    radial-gradient(ellipse at 88% 6%, rgba(250, 247, 224, .60), transparent 46%),
    linear-gradient(128deg, #e7e8d7 0%, #9ca583 54%, #405b40 100%);
}

.inner-preview .case-visual {
  min-height: clamp(112px, 10.5vw, 146px);
}
@media (max-width: 860px) {
  .inner-preview .case-visual {
    min-height: 112px;
  }
}

/* Alternate the supplied abstract artworks across Works cards only. */
.inner-preview .grid.four > .case-card:nth-child(odd) .case-visual,
.inner-preview .grid.four > .case-card:nth-child(even) .case-visual {
  padding: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.inner-preview .grid.four > .case-card:nth-child(odd) .case-visual {
  background-color: #183f2d;
  background-image: url("assets/works-card-art/flowing-gold-green.png");
}
.inner-preview .grid.four > .case-card:nth-child(even) .case-visual {
  background-color: #dfe5cf;
  background-image: url("assets/works-card-art/soft-leaves-green.png");
}
.inner-preview .grid.four > .case-card:nth-child(odd) .case-visual::before,
.inner-preview .grid.four > .case-card:nth-child(odd) .case-visual::after,
.inner-preview .grid.four > .case-card:nth-child(even) .case-visual::before,
.inner-preview .grid.four > .case-card:nth-child(even) .case-visual::after {
  content: none;
}

/* Compact only the Works index cards; detail-page status labels remain intact. */
.inner-preview .works-cards-grid {
  align-items: start;
}

.inner-preview .works-cards-grid > .case-card {
  min-height: 0;
}

.inner-preview .works-cards-grid > .case-card .case-body {
  flex: 0 0 auto;
  gap: 10px;
  padding: 16px 18px 18px;
}

.inner-preview .works-cards-grid > .case-card .case-link {
  margin-top: 0;
  font-weight: 600 !important;
}

/* On wider layouts, let each grid row size to its tallest card and align CTAs. */
@media (min-width: 861px) {
  .inner-preview .works-cards-grid {
    align-items: stretch;
  }

  .inner-preview .works-cards-grid > .case-card .case-body {
    flex: 1 1 auto;
  }

  .inner-preview .works-cards-grid > .case-card .case-link {
    margin-top: auto;
  }
}
