:root {
  --s4-ink: #172018;
  --s4-muted: #5d665e;
  --s4-forest: #062f25;
  --s4-forest-deep: #021f18;
  --s4-gold: #c99a43;
  --s4-gold-light: #e8c879;
  --s4-paper: #f5f0e6;
  --s4-paper-light: #fbf8f1;
  --s4-line: rgba(30, 48, 37, 0.16);
  --s4-shadow: 0 18px 50px rgba(9, 31, 23, 0.12);
  --s4-radius: 18px;
  --s4-shell: min(1180px, calc(100% - 64px));
  --s4-serif: Georgia, "Times New Roman", serif;
  --s4-sans: Inter, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

html {
  background: var(--s4-paper);
  color: var(--s4-ink);
  scroll-behavior: smooth;
}

body.s4-page {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 154, 67, 0.08), transparent 28rem),
    var(--s4-paper-light);
  color: var(--s4-ink);
  font-family: var(--s4-sans);
}

.s4-page *,
.s4-page *::before,
.s4-page *::after {
  box-sizing: border-box;
}

.s4-page img {
  display: block;
  max-width: 100%;
}

.s4-page a {
  color: inherit;
}

.s4-page main {
  min-height: 70vh;
}

.s4-breadcrumb {
  width: var(--s4-shell);
  margin: 0 auto;
  padding: 24px 0 14px;
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-size: 0.82rem;
}

.s4-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.s4-breadcrumb li:not(:last-child)::after {
  margin-left: 8px;
  content: "/";
  opacity: 0.5;
}

.s4-breadcrumb a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.s4-eyebrow {
  margin: 0 0 10px;
  color: var(--s4-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.s4-section {
  width: var(--s4-shell);
  margin: 0 auto;
  padding: 88px 0;
}

.s4-section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.s4-section-heading h2,
.s4-relationship-note h2,
.s4-final-cta h2 {
  margin: 0;
  font: 500 clamp(2rem, 4vw, 3.6rem)/1.05 var(--s4-serif);
  letter-spacing: -0.035em;
}

.s4-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 650px;
  background: var(--s4-forest-deep);
  color: #fff;
}

.s4-carousel__slides,
.s4-carousel__slide {
  min-height: inherit;
}

.s4-carousel__page-title {
  position: absolute;
  z-index: 5;
  top: clamp(28px, 4vw, 52px);
  left: clamp(36px, 7vw, 110px);
  max-width: 560px;
  pointer-events: none;
}

.s4-carousel__page-title h1 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font: 500 clamp(2.4rem, 4.2vw, 4.8rem)/0.95 var(--s4-serif);
  letter-spacing: -0.05em;
}

.s4-carousel__slide {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.35fr);
  align-items: stretch;
}

.s4-carousel__slide[hidden] {
  display: none;
}

.s4-carousel__copy {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(70px, 8vw, 120px) clamp(36px, 7vw, 110px);
  background:
    radial-gradient(circle at 10% 20%, rgba(201, 154, 67, 0.16), transparent 22rem),
    linear-gradient(135deg, #052c22, #031e17);
}

.s4-carousel__copy h2 {
  margin: 12px 0 20px;
  max-width: 650px;
  font: 500 clamp(2.3rem, 4.6vw, 4.8rem)/0.98 var(--s4-serif);
  letter-spacing: -0.045em;
}

.s4-carousel__copy > p:not(.s4-eyebrow) {
  max-width: 630px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
}

.s4-carousel__media {
  position: relative;
  min-height: 650px;
  background: #173d32;
}

.s4-carousel__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 30, 23, 0.76), transparent 32%), linear-gradient(0deg, rgba(2, 31, 24, 0.36), transparent 42%);
  content: "";
  pointer-events: none;
}

.s4-carousel__media img,
.s4-media-fallback {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.s4-media-fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 200, 121, 0.38), transparent 24%),
    repeating-radial-gradient(circle at center, transparent 0 28px, rgba(232, 200, 121, 0.11) 29px 30px),
    linear-gradient(135deg, #123d30, #061f18);
  color: rgba(232, 200, 121, 0.7);
  font: 500 1.3rem var(--s4-serif);
  letter-spacing: 0.2em;
}

.s4-carousel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.s4-carousel__meta span,
.s4-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(232, 200, 121, 0.35);
  border-radius: 999px;
  color: inherit;
  font-size: 0.72rem;
  line-height: 1.2;
}

.s4-carousel__actions,
.s4-detail-hero__actions,
.s4-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.s4-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  color: inherit;
  font-weight: 750;
  text-decoration: none;
}

.s4-button--gold {
  border-color: var(--s4-gold-light);
  background: linear-gradient(135deg, var(--s4-gold-light), var(--s4-gold));
  color: #10291f;
}

.s4-button--line {
  background: rgba(255, 255, 255, 0.04);
}

.s4-carousel__controls {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 5vw, 70px);
  bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(2, 31, 24, 0.78);
  backdrop-filter: blur(12px);
}

.s4-icon-button,
.s4-carousel__pause,
.s4-carousel__dots button {
  min-width: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.s4-carousel__pause {
  width: auto;
  padding: 0 14px;
  font-weight: 700;
}

.s4-carousel__dots {
  display: flex;
  gap: 4px;
}

.s4-carousel__dots button {
  min-width: 24px;
  min-height: 42px;
  position: relative;
}

.s4-carousel__dots button::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--s4-gold-light);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  content: "";
}

.s4-carousel__dots button[aria-current="true"]::after {
  background: var(--s4-gold-light);
  box-shadow: 0 0 0 4px rgba(232, 200, 121, 0.18);
}

.s4-featured {
  padding-top: 96px;
}

.s4-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.s4-featured-card {
  overflow: hidden;
  border-radius: var(--s4-radius);
  background: var(--s4-forest);
  color: #fff;
  box-shadow: var(--s4-shadow);
}

.s4-featured-card > a {
  display: grid;
  min-height: 100%;
  text-decoration: none;
}

.s4-featured-card__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #183d31;
}

.s4-featured-card__media img,
.s4-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s4-featured-card__copy {
  position: relative;
  padding: 24px;
}

.s4-featured-card__copy h3 {
  margin: 0 0 12px;
  font: 500 clamp(1.35rem, 2vw, 1.85rem)/1.15 var(--s4-serif);
}

.s4-featured-card__copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.s4-card-number {
  position: absolute;
  right: 18px;
  top: -44px;
  color: var(--s4-gold-light);
  font: italic 500 2.2rem var(--s4-serif);
}

.s4-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.s4-project-card .s4-tags span {
  border-color: var(--s4-line);
  color: var(--s4-muted);
}

.s4-browse {
  padding-top: 60px;
}

.s4-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr)) minmax(220px, 1.35fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--s4-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 28px rgba(9, 31, 23, 0.06);
}

.s4-filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--s4-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.s4-filter-bar select,
.s4-filter-bar input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--s4-line);
  border-radius: 8px;
  background: #fff;
  color: var(--s4-ink);
  font: 500 0.9rem var(--s4-sans);
  text-transform: none;
}

.s4-text-button {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--s4-forest);
  border-radius: 8px;
  background: transparent;
  color: var(--s4-forest);
  font-weight: 750;
  cursor: pointer;
}

.s4-results-count {
  margin: 0 0 18px;
  color: var(--s4-muted);
  font-size: 0.9rem;
}

.s4-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.s4-project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--s4-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 22px rgba(9, 31, 23, 0.07);
}

.s4-project-card[hidden] {
  display: none;
}

.s4-project-card > a {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.s4-project-card__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #d8d0c2;
}

.s4-project-card__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
}

.s4-project-card h3 {
  overflow-wrap: anywhere;
  margin: 0 0 10px;
  font: 600 1.04rem/1.3 var(--s4-serif);
}

.s4-project-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 16px;
  color: var(--s4-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.s4-card-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--s4-forest);
  font-weight: 800;
  font-size: 0.8rem;
}

.s4-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.s4-pagination a,
.s4-pagination button {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--s4-line);
  border-radius: 7px;
  background: #fff;
  color: var(--s4-ink);
  font: 750 0.85rem var(--s4-sans);
  text-decoration: none;
}

.s4-pagination [aria-current="page"] {
  border-color: var(--s4-forest);
  background: var(--s4-forest);
  color: #fff;
}

.s4-no-results {
  padding: 40px;
  border: 1px dashed var(--s4-line);
  text-align: center;
}

.s4-how {
  padding: 76px max(32px, calc((100% - 1180px) / 2));
  background:
    radial-gradient(circle at 80% 30%, rgba(201, 154, 67, 0.18), transparent 24rem),
    var(--s4-forest-deep);
  color: #fff;
}

.s4-section-heading--light {
  color: #fff;
}

.s4-how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.s4-how__grid article {
  min-height: 160px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

.s4-how__grid span {
  color: var(--s4-gold-light);
  font: 500 1.8rem var(--s4-serif);
}

.s4-how__grid h3 {
  margin: 38px 0 0;
  font: 500 1.2rem/1.3 var(--s4-serif);
}

.s4-relationship-note {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 80px;
  align-items: center;
  width: var(--s4-shell);
  margin: 0 auto;
  padding: 84px 0;
}

.s4-relationship-note > p {
  color: var(--s4-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.s4-final-cta {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  padding: 68px max(32px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(3, 35, 27, 0.97), rgba(3, 35, 27, 0.8)),
    radial-gradient(circle at 90% 50%, rgba(201, 154, 67, 0.26), transparent 32%);
  color: #fff;
}

.s4-final-cta > div:first-child {
  max-width: 680px;
}

.s4-final-cta p:not(.s4-eyebrow) {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

.s4-page :focus-visible {
  outline: 3px solid #f7c85e;
  outline-offset: 4px;
}

.s4-page .shared-header {
  background: var(--s4-forest-deep);
}

.s4-index-page > .shared-site-header,
.s4-detail-page > .shared-site-header,
.s4-child-page > .shared-site-header,
.s4-contact-page > .shared-site-header {
  position: relative;
  z-index: 20;
}
