/* Custers Gardens — phone and tablet layout. Loaded after custers.css; desktop (> 900px) is untouched. */
@media (max-width: 900px) {
  /* ---------- page rhythm ---------- */
  .cg-section { padding: 64px 24px; }
  .cg-split, .cg-services__grid, .cg-details, .cg-water, .cg-process, .cg-visie, .cg-facts, .cg-contact, .cg-form, .cg-footer__top { grid-template-columns: 1fr; }
  .cg-split, .cg-visie, .cg-details, .cg-contact { gap: 32px; }
  .cg-water { gap: 40px; }
  .cg-services__grid { gap: 56px; }
  .cg-form { gap: 24px; }
  .cg-split[style*="padding-right"] { padding-right: 24px !important; }

  /* ---------- type ---------- */
  .cg-display--xxl { font-size: 56px; }
  .cg-display--xl { font-size: 44px; }
  .cg-display--l { font-size: 36px; }
  .cg-heading { font-size: 34px; }
  .cg-quote { font-size: 28px; }
  .cg-lead { font-size: 17px; }
  .cg-display + .cg-lead, .cg-split .cg-lead { margin-top: 0; }

  /* ---------- header ---------- */
  .cg-header { padding: 20px 24px; gap: 16px; }
  .cg-header__nav, .cg-header__tel { display: none; }
  .cg-header__logo img { height: 15px; }
  .cg-header .cg-btn--sm { --h: 38px; padding: 0 14px; gap: 8px; font-size: 10px; letter-spacing: .16em; white-space: nowrap; }

  /* ---------- buttons ---------- */
  .cg-btn { --h: 52px; padding: 0 20px; font-size: 11px; letter-spacing: .18em; white-space: nowrap; }
  .cg-btn__arrow { width: 22px; }

  /* ---------- intro film ---------- */
  #intro { height: 100vh; height: 100svh; min-height: 600px; max-height: none; }
  .cg-intro__lb { height: 6%; }
  .cg-intro__hero { left: 24px; right: 24px; bottom: 88px; }
  .cg-intro__hero .cg-eyebrow { margin-bottom: 18px; }
  .cg-intro__hero .cg-lead { margin-top: 18px; font-size: 16px; color: #e3ddd3; }
  .cg-intro__hero .cg-actions { margin-top: 28px; flex-direction: column; align-items: stretch; gap: 10px; }
  .cg-intro__hero .cg-btn { justify-content: space-between; }
  .cg-intro__chapter { left: 24px; right: 24px; bottom: 92px; display: block; max-width: none; }
  .cg-intro__num { display: block; font-size: 44px; margin-bottom: 10px; }
  .cg-intro__ttl { display: block; font-size: 32px; line-height: 1.08; }
  .cg-intro__sub { display: block; font-size: 14px; max-width: 30em; }
  .cg-intro__controls { left: 24px; right: 24px; bottom: 26px; gap: 16px; }
  .cg-intro__replay { height: 32px; padding: 0 12px; font-size: 10px; letter-spacing: .18em; white-space: nowrap; }
  .cg-intro__scrub { flex: 1; width: auto; min-width: 0; }

  /* ---------- garden explorer ---------- */
  #verken { height: 100vh; height: 100svh; min-height: 560px; max-height: 780px; }
  .cg-explore__head { left: 24px; right: 24px; top: 76px; }
  .cg-explore__title { font-size: 38px; margin-top: 14px; }
  .cg-explore__sub { font-size: 14px; margin-top: 10px; }
  .cg-explore__tools { right: 24px; top: 20px; }
  .cg-explore__zoom button { height: 36px; min-width: 36px; padding: 0 10px; }
  .cg-explore__light input { width: 88px; }
  .cg-explore__tabs { left: 16px; right: 16px; bottom: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; overflow: visible; }
  .cg-explore__tab { min-width: 0; padding-top: 10px; font-size: 9px; letter-spacing: .05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cg-explore__tab .cg-num { font-size: 16px; margin-bottom: 4px; }
  .cg-explore__hint { left: 24px; right: 24px; bottom: 84px; transform: none; white-space: normal; text-align: center; line-height: 1.6; font-size: 10px; padding: 10px 14px; }
  .cg-explore__card { left: 16px; right: 16px; bottom: 84px; padding: 22px; }
  .cg-explore__card .cg-heading { font-size: 28px; }
  .cg-spot__label { display: none; }

  /* ---------- services ---------- */
  .cg-services__head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .cg-service:nth-child(2) { margin-top: 0; }
  .cg-service__meta { margin-top: 20px; }

  /* ---------- signature details ---------- */
  .cg-details__list { margin-top: 32px; }
  .cg-details__item { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 16px; padding: 22px 0; }
  .cg-details__item .cg-title { font-size: 26px; }
  .cg-details__item[aria-current="true"] .cg-title { transform: none; }
  .cg-details__stage { position: relative; top: auto; aspect-ratio: 4 / 3; }

  /* ---------- water ---------- */
  .cg-water__media { height: 420px; }
  .cg-water .cg-lead { margin-top: 20px; }

  /* ---------- realisations strip ---------- */
  .cg-strip { gap: 16px; }
  .cg-strip__item, .cg-strip__item:nth-child(odd) { width: 80vw; }
  .cg-strip__item .cg-tilt__img { height: 420px; }
  .cg-strip__item:nth-child(even) .cg-tilt__img { height: 360px; margin-top: 60px; }
  .cg-projects { flex-direction: column; margin-right: 24px !important; margin-top: 40px; }
  .cg-projects a { border-right: 0; margin-right: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }

  /* ---------- process: a vertical timeline ---------- */
  .cg-process { border-top: 0; border-left: 1px solid var(--line); margin-top: 40px; padding-left: 28px !important; }
  .cg-step { padding: 0 0 32px; }
  .cg-step:last-child { padding-bottom: 0; }
  .cg-step::before { top: 10px; left: -32px; }
  .cg-step .cg-title { margin-top: 6px; }

  /* ---------- visie ---------- */
  .cg-facts { margin-top: 40px; gap: 28px; }
  .cg-fact b { font-size: 44px; }

  /* ---------- contact ---------- */
  .cg-contact__card { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
  .cg-contact__card a { word-break: break-word; }
  .cg-form { margin-top: 28px; }

  /* ---------- footer ---------- */
  .cg-footer { padding: 56px 24px 32px; }
  .cg-footer__top { gap: 32px; }
  .cg-footer__mark { font-size: 64px; margin-top: 48px; }
  .cg-footer__bottom { flex-direction: column; gap: 10px; margin-top: 40px; }
}

/* small laptops and landscape tablets: keep the header on one line */
@media (min-width: 901px) and (max-width: 1279px) {
  .cg-header { gap: 20px; }
  .cg-header__logo { flex: 0 0 auto; }
  .cg-header__logo img { height: 16px; }
  .cg-header__nav { gap: 24px; }
  .cg-header__nav a { font-size: 11px; letter-spacing: .16em; white-space: nowrap; }
  .cg-header__end { flex: 0 0 auto; gap: 20px; }
  .cg-header__tel { display: none; }
  .cg-header .cg-btn--sm { padding: 0 16px; font-size: 11px; letter-spacing: .16em; white-space: nowrap; }
}
/* the narrower end of that range: slimmer page margins (header, intro, explorer and sections move together) and a tighter menu */
@media (min-width: 901px) and (max-width: 1100px) {
  :root { --space-7: 56px; }
  .cg-split[style*="padding-right"] { padding-right: 56px !important; }
  .cg-projects[style*="margin-right"] { margin-right: 56px !important; }
  .cg-header__nav { gap: 18px; }
  .cg-header__nav a { font-size: 10px; letter-spacing: .12em; }
  .cg-header .cg-btn--sm { padding: 0 14px; font-size: 10px; letter-spacing: .14em; }
}

/* very narrow phones */
@media (max-width: 380px) {
  .cg-display--xxl { font-size: 46px; }
  .cg-display--xl { font-size: 38px; }
  .cg-intro__ttl { font-size: 28px; }
  .cg-explore__title { font-size: 32px; }
  .cg-header .cg-btn--sm { padding: 0 10px; letter-spacing: .12em; }
}
