/* ============================================================
   Greenspace — Woodland Trust app concept case study
   (rides on project.css cs-* system; woodland green/cream theme)
   ============================================================ */
.gs {
  --navy: #2f3a23;        /* deep woodland green — labels, buttons */
  --navy-deep: #2f3a23;   /* flat display headings + extruded shadow */
  --navy-text: #2f3a23;
  --navy-bio: #3c4632;    /* body text on light sections */
  --pink: #8a9a5b;        /* sage/olive accent (eyebrow rules, CTA) */
  --pale: #eef0e6;        /* cream text on dark */
  --blue-light: #f3f2ee;  /* warm cream section band */
  background: #ffffff;
}

/* shared image button */
.gs .tl-shot { cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0; background: none; overflow: hidden; line-height: 0; }
.gs .tl-shot img { width: 100%; display: block; transition: transform 0.6s var(--ease); }
.gs .tl-shot:hover img { transform: scale(1.035); }

/* hero */
.gs-hero__overlay { background: rgba(28,34,20,0.5); }
.gs-hero__title {
  font-size: clamp(44px, 7.5vw, 88px);
  color: #eef0e6;
  text-shadow:
    2px 2px 0 #2f3a23, 4px 4px 0 #2f3a23, 6px 6px 0 #2f3a23, 8px 8px 0 #2f3a23,
    10px 10px 0 #2f3a23, 12px 12px 0 #2f3a23, 14px 14px 0 #2f3a23, 16px 16px 0 #2f3a23;
}
.gs-hero__sub { color: #eef0e6; }

/* cream research bands */
.gs-research { background: #f3f2ee; }

/* two-up boards */
.gs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3.4vw, 60px); align-items: start; max-width: 1400px; margin-inline: auto; }
.gs-board .tl-shot { box-shadow: 0 30px 60px -38px rgba(47,58,35,0.5); }
@media (max-width: 860px) { .gs-pair { grid-template-columns: 1fr; max-width: 620px; } }

/* feature image (moodboard) */
.gs-feature { max-width: 1400px; margin-inline: auto; }
.gs-feature .tl-shot { box-shadow: 0 40px 80px -44px rgba(47,58,35,0.5); }
/* development photo grid (2x2, uncropped) under the heading */
.gs-devgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2vw, 32px); max-width: 1300px; margin: 0 auto; align-items: start; }
.gs-devshot .tl-shot { box-shadow: 0 24px 50px -32px rgba(47,58,35,0.5); border-radius: 6px; }
.gs-devshot .tl-shot img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .gs-devgrid { grid-template-columns: 1fr; max-width: 520px; } }
/* text-only feature block */
.gs-feat--text { display: block; max-width: 860px; margin-inline: auto; text-align: center; }
.gs-feat--text .gs-feat__copy { text-align: center; }
.gs-feat--text .cs-body { text-align: center; margin-inline: auto; }

/* ---------- interactive phone mockup ---------- */
.gs-interactive__grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(40px, 6vw, 110px); align-items: center; max-width: 1200px; margin-inline: auto; }
.gs-interactive__copy { text-align: left; }
.gs-interactive__h { text-align: left; }
.gs-interactive__text { text-align: left; margin-inline: 0; max-width: 520px; }
@media (max-width: 820px) {
  .gs-interactive__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .gs-interactive__copy, .gs-interactive__h, .gs-interactive__text { text-align: center; }
  .gs-interactive__text { margin-inline: auto; }
}
/* reversed variant — phone left, copy right */
.gs-interactive__grid--rev { grid-template-columns: auto 1fr; }
@media (max-width: 820px) {
  /* Digital Archive: collapse to 1 col, copy on top, phone below */
  .gs-interactive__grid--rev { grid-template-columns: 1fr; }
  .gs-interactive__grid--rev .gs-interactive__phone { order: 2; }
  .gs-interactive__grid--rev .gs-interactive__copy { order: 1; }
}

/* carousel phone — arrows on either side, dots, per-shot scroll memory */
.gs-carousel { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 22px); }
.gs-arrow {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 30px; line-height: 1; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 4px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.gs-arrow:hover { background: var(--navy); color: #fff; transform: scale(1.06); }
.gs-arrow:active { transform: scale(0.96); }
.gs-dots {
  position: absolute;
  left: 50%; bottom: -34px; transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 3;
}
.gs-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); opacity: 0.28; transition: opacity 0.2s var(--ease); }
.gs-dot.is-active { opacity: 1; }
.gs-interactive__phone--carousel { display: flex; justify-content: center; }
.gs-interactive__phone--carousel .gs-phone__screen { background: #4a4a2e; }
@media (max-width: 820px) { .gs-arrow { width: 46px; height: 46px; font-size: 26px; } }

/* Leaderboard carousel overflows fixed-width phone+arrows past the mobile margins — shrink to fit.
   Uses the same 820px breakpoint as the rest of the mobile layout so there's no gap where the
   fixed-size phone + arrows can still exceed a narrow viewport. */
@media (max-width: 820px) {
  .gs-interactive__phone--carousel .gs-carousel { gap: clamp(6px, 2vw, 14px); max-width: 100%; }
  .gs-interactive__phone--carousel .gs-arrow { width: 34px; height: 34px; font-size: 18px; flex: none; }
  .gs-interactive__phone--carousel .gs-phone {
    width: min(200px, 48vw);
    height: auto;
    aspect-ratio: 300 / 620;
    padding: 9px;
    border-radius: 34px;
    flex: none;
  }
  .gs-interactive__phone--carousel .gs-phone__screen { border-radius: 24px; }
  .gs-interactive__phone--carousel .gs-phone__island { width: 56px; height: 16px; top: 12px; }
}
/* Belt-and-braces: never let this row force horizontal overflow, whatever the exact viewport */
.gs-interactive__phone--carousel .gs-carousel { max-width: 100%; }
.gs-interactive__grid { min-width: 0; }
.gs-interactive__grid > * { min-width: 0; }

/* dark-bezel iPhone frame (static); screenshot scrolls inside */
.gs-phone {
  position: relative;
  width: 300px;
  height: 620px;
  background: #0d0d0f;
  border-radius: 50px;
  padding: 13px;
  box-shadow: 0 2px 0 1px #2a2a2e inset, 0 50px 90px -40px rgba(47,58,35,0.6), 0 0 0 2px #050506;
}
.gs-phone__island {
  position: absolute;
  top: 26px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #050506;
  border-radius: 16px;
  z-index: 3;
}
.gs-phone__screen {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: #F4F2EF;
  cursor: ns-resize;
}
.gs-phone__shot {
  width: 100%; display: block;
  transform: translateY(0);
  will-change: transform;
}
.gs-phone__hint {
  position: absolute;
  left: 50%; bottom: -34px; transform: translateX(-50%);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--navy); opacity: 0.55; white-space: nowrap;
}
@media (max-width: 820px) { .gs-phone__hint { position: static; transform: none; display: block; margin-top: 32px; } }
@media (max-width: 820px) { .gs-interactive.section { padding-bottom: clamp(72px, 12vw, 140px); } }

/* app screen rows */
.gs-screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 32px); align-items: center; max-width: 1300px; margin: clamp(40px,5vw,80px) auto 0; }
.gs-screens--more { grid-template-columns: repeat(3, 1fr); margin-top: clamp(28px,3vw,52px); }
.gs-screen .tl-shot { box-shadow: none; border-radius: 6px; background: transparent; }
@media (max-width: 760px) { .gs-screens, .gs-screens--more { grid-template-columns: 1fr 1fr; } }

/* identity: logo + colour palette side by side */
.gs-identity {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 5vw, 90px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto clamp(48px, 6vw, 90px);
}
.gs-identity__logo .tl-shot { box-shadow: none; }
.gs-identity__logo .tl-shot img { max-width: 360px; margin-inline: auto; }
.gs-identity__palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.4vw, 22px); }
.gs-swatch { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gs-swatch__chip { width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; }
.gs-swatch__hex { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--navy); opacity: 0.7; }
@media (max-width: 760px) { .gs-identity { grid-template-columns: 1fr; max-width: 460px; } }

/* alternating feature rows */.gs-features { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 100px); max-width: 1300px; margin-inline: auto; }
.gs-feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 80px); align-items: center; }
.gs-feat--rev .gs-feat__media { order: 2; }
.gs-feat__media .tl-shot { box-shadow: 0 30px 60px -38px rgba(47,58,35,0.5); border-radius: 6px; }
.gs-feat__copy { text-align: left; }
.gs-feat__h { margin: 0 0 16px; font-weight: 800; font-size: clamp(26px, 2.6vw, 40px); text-transform: uppercase; letter-spacing: -0.01em; color: var(--navy-deep); }
.gs-feat .cs-body { text-align: left; margin-inline: 0; }

/* match the Challenge/Solution copy to the standard body size */
.gs .cs-bc__text { font-weight: 300; font-size: clamp(17px, 1.3vw, 23px); line-height: 1.55; }

/* match the Research / Audience / Design intro copy to the standard body size */
.gs .cs-concept__lead { font-weight: 300; font-size: clamp(17px, 1.3vw, 23px); line-height: 1.55; }

/* Creative Placemaking — match body text size to Greenspace's cs-body */
.cp .cs-bc__text,
.cp .cs-concept__lead,
.cp .cs-action__lead,
.cp .cs-sun__lead { font-weight: 300; font-size: clamp(17px, 1.3vw, 23px); line-height: 1.55; }
.cp .cs-hero__sub { font-weight: 300; font-size: clamp(14px, 1.2vw, 18px); line-height: 1.5; }
@media (max-width: 760px) {
  .gs-feat { grid-template-columns: 1fr; }
  .gs-feat--rev .gs-feat__media { order: 0; }
}

/* Touchpoint — large square poster with copy alongside on the beige band */
.gs-feat--touch { grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 5vw, 90px); }
.gs-feat--touch .gs-feat__media .tl-shot { aspect-ratio: 1 / 1; }
.gs-feat--touch .gs-feat__media .tl-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 760px) { .gs-feat--touch { grid-template-columns: 1fr; } }

/* Touchpoint heading promoted to the section's main title */
.gs-feat__title { margin: 0 0 clamp(20px, 2.2vw, 32px); text-align: left; }
