/* layout:bastion — enqueue only when cilingir_layout=bastion */

body.cp-layout-bastion {
  --cp-bas-ink: #1b2230;
  --cp-bas-deep: #2a3140;
  --cp-bas-steel: #a8a39b;
  --cp-bas-light: #e4e0d8;
  --cp-bas-paper: #f5f2ed;
  --cp-bas-paper-deep: #e9e4dc;
  --cp-bas-card: #fffdf9;
  --cp-bas-white: #fff;
  --cp-bas-brass: #b9863c;
  --cp-bas-brass-soft: #e3c58f;
  --cp-bas-line: color-mix(in srgb, var(--cp-bas-ink) 14%, transparent);
  --cp-bas-muted: #5b6372;
  --cp-bas-shadow: rgb(40 32 20 / 0.3);
  --cp-bas-radius: 0.45rem;
  --cp-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --cp-font-body: "Figtree", "Segoe UI", sans-serif;
  color: var(--cp-bas-ink);
  background: var(--cp-bas-paper);
}

/* Full-bleed live photo: bright, true colour. Copy sits on its own light panel, not on a black wash. */
body.cp-layout-bastion .cp-hero--bastion {
  position: relative;
  display: grid;
  grid-template: minmax(34rem, 72vh) / minmax(0, 1fr);
  overflow: hidden;
  isolation: isolate;
  background: var(--cp-bas-paper-deep);
  color: var(--cp-bas-ink);
}

body.cp-layout-bastion .cp-hero--bastion .cp-hero__stage,
body.cp-layout-bastion .cp-hero--bastion .cp-hero__content {
  grid-area: 1 / 1;
}

body.cp-layout-bastion .cp-hero--bastion .cp-hero__stage,
body.cp-layout-bastion .cp-hero--bastion .cp-hero__picture,
body.cp-layout-bastion .cp-hero--bastion .cp-hero__img {
  width: 100%;
  height: 100%;
}

body.cp-layout-bastion .cp-hero--bastion .cp-hero__stage {
  position: relative;
  min-height: 0;
  padding: 0;
}

body.cp-layout-bastion .cp-hero--bastion .cp-hero__picture {
  position: absolute;
  inset: 0;
  display: block;
}

body.cp-layout-bastion .cp-hero--bastion .cp-hero__img {
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.02) brightness(1.03);
  animation: cp-bastion-photo 1.6s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

/* Scrim: only a soft pool in the lower-left where the copy panel sits. Rest of the photo stays untouched. */
body.cp-layout-bastion .cp-hero--bastion .cp-hero__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 62% 70% at 14% 100%, rgb(27 34 48 / 0.26), transparent 70%),
    linear-gradient(0deg, rgb(27 34 48 / 0.14), transparent 30%);
  pointer-events: none;
}

/* Thin door-jamb frame with a brass hinge-side edge. */
body.cp-layout-bastion .cp-hero--bastion .cp-hero__stage::after {
  content: "";
  position: absolute;
  inset: clamp(0.55rem, 1.6vw, 1rem);
  z-index: 2;
  border: 2px solid rgb(255 255 255 / 0.78);
  border-right: clamp(0.4rem, 1vw, 0.65rem) solid rgb(255 255 255 / 0.78);
  border-radius: 0.2rem;
  box-shadow:
    inset 0 0 0 1px rgb(185 134 60 / 0.55),
    0 0 0 1px rgb(27 34 48 / 0.12),
    0 0.5rem 2rem -0.8rem rgb(27 34 48 / 0.4);
  pointer-events: none;
  animation: cp-bastion-frame 0.9s cubic-bezier(0.2, 0.85, 0.25, 1) 0.1s both;
}

/* Copy panel: warm frosted paper, dark ink text. */
body.cp-layout-bastion .cp-hero--bastion .cp-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  align-self: end;
  justify-self: start;
  width: min(36rem, calc(100% - 2 * clamp(1.25rem, 4vw, 2.5rem)));
  min-height: 0;
  margin: 0 0 clamp(1.6rem, 5vw, 3.2rem) max(clamp(1.6rem, 5vw, 3.4rem), calc((100% - 76rem) / 2 + 2rem));
  padding: clamp(1.1rem, 2.6vw, 1.8rem) clamp(1.2rem, 3vw, 2rem) clamp(1.1rem, 2.6vw, 1.7rem);
  border-top: 0.28rem solid var(--cp-bas-brass);
  border-radius: 0.3rem;
  background: rgb(255 252 246 / 0.88);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  backdrop-filter: blur(10px) saturate(1.15);
  box-shadow: 0 1.4rem 2.8rem -1.4rem rgb(27 34 48 / 0.5);
  text-align: left;
  animation: cp-bastion-panel-in 0.85s cubic-bezier(0.2, 0.85, 0.25, 1) 0.35s both;
}

/* Two small brass bolts on the panel's top-right corner. */
body.cp-layout-bastion .cp-hero--bastion .cp-hero__content::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 0.5rem;
  height: 2.2rem;
  background:
    radial-gradient(circle, var(--cp-bas-brass-soft) 0 0.1rem, var(--cp-bas-brass) 0.12rem 0.22rem, transparent 0.23rem)
    50% 0 / 100% 1.1rem repeat-y;
  animation: cp-bastion-bolts 0.6s ease-out 1s both;
}

body.cp-layout-bastion .cp-hero--bastion .cp-hero__eyebrow {
  margin: 0 0 0.6rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cp-bas-brass);
  font-family: var(--cp-font-body);
  font-size: clamp(0.72rem, 1.5vw, 0.84rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  filter: brightness(0.82);
}

body.cp-layout-bastion .cp-hero--bastion .cp-hero__title {
  max-width: 14ch;
  margin: 0 0 0.6rem;
  color: var(--cp-bas-ink);
  font-family: var(--cp-font-display);
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: none;
}

body.cp-layout-bastion .cp-hero--bastion .cp-hero__lede {
  max-width: 34rem;
  margin: 0 0 0.2rem;
  color: var(--cp-bas-muted);
  font-size: clamp(0.92rem, 1.6vw, 1.04rem);
  line-height: 1.55;
}

body.cp-layout-bastion .cp-hero--bastion .cp-hero__cta {
  gap: 0.6rem;
}

body.cp-layout-bastion .cp-hero--bastion .cp-btn {
  min-height: 3rem;
  border: 1px solid var(--cp-bas-ink);
  border-radius: 0.3rem;
  font-weight: 700;
  transition: translate 0.2s ease, box-shadow 0.2s ease;
}

body.cp-layout-bastion .cp-hero--bastion .cp-btn:hover,
body.cp-layout-bastion .cp-hero--bastion .cp-btn:focus-visible {
  translate: 0 -0.12rem;
  box-shadow: 0 0.6rem 1rem -0.7rem var(--cp-bas-shadow);
}

body.cp-layout-bastion .cp-hero--bastion .cp-btn--call {
  background: var(--cp-bas-ink);
  color: var(--cp-bas-white) !important;
}

body.cp-layout-bastion .cp-hero--bastion .cp-btn--wa {
  background: var(--cp-bas-white);
  color: var(--cp-bas-ink) !important;
}

/* Sections: warm paper, soft top-light instead of a hard centre seam. */
body.cp-layout-bastion .cp-services--bastion,
body.cp-layout-bastion .cp-posts--bastion {
  background:
    linear-gradient(180deg, rgb(255 253 249 / 0.7), transparent 14rem),
    var(--cp-bas-paper);
}

body.cp-layout-bastion .cp-section__head h2,
body.cp-layout-bastion .cp-about--bastion h2,
body.cp-layout-bastion .cp-posts--bastion h2 {
  color: var(--cp-bas-ink);
  font-family: var(--cp-font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: none;
}

body.cp-layout-bastion .cp-services--bastion .cp-section__head {
  display: grid;
  grid-template-columns: 0.5rem minmax(0, 1fr);
  column-gap: 1rem;
  text-align: left;
}

body.cp-layout-bastion .cp-services--bastion .cp-section__head::before {
  content: "";
  grid-row: 1 / span 2;
  background:
    radial-gradient(circle, var(--cp-bas-brass-soft) 0 0.1rem, var(--cp-bas-brass) 0.12rem 0.22rem, transparent 0.23rem)
    center 0.35rem / 100% 1.8rem repeat-y;
}

body.cp-layout-bastion .cp-services--bastion .cp-section__head h2 {
  font-size: clamp(2.5rem, 7vw, 4.1rem);
}

body.cp-layout-bastion .cp-services--bastion .cp-section__head p,
body.cp-layout-bastion .cp-posts--bastion .cp-posts__lede {
  max-width: 50ch;
  color: var(--cp-bas-muted);
}

body.cp-layout-bastion .cp-service-bastions,
body.cp-layout-bastion .cp-service-bastion,
body.cp-layout-bastion .cp-post-bastions,
body.cp-layout-bastion .cp-post-bastion {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Service cards: photo-first when media exists, warm text plate when not. */
body.cp-layout-bastion .cp-service-bastions {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.2rem;
}

body.cp-layout-bastion .cp-service-bastion {
  animation: cp-bastion-card 0.7s cubic-bezier(0.2, 0.85, 0.25, 1) both;
  animation-delay: calc(0.08s * var(--cp-i, 0));
}

body.cp-layout-bastion .cp-service-bastion__link {
  --cp-bas-bolt: var(--cp-bas-brass);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 9rem;
  overflow: hidden;
  border: 1px solid var(--cp-bas-line);
  border-top: 0.25rem solid var(--cp-bas-brass);
  border-radius: var(--cp-bas-radius);
  background: var(--cp-bas-card);
  color: var(--cp-bas-ink);
  text-decoration: none;
  box-shadow: 0 1rem 2rem -1.6rem var(--cp-bas-shadow);
  transition: translate 0.25s ease, box-shadow 0.25s ease;
}

body.cp-layout-bastion .cp-service-bastion--media .cp-service-bastion__link {
  --cp-bas-bolt: var(--cp-bas-white);
  border-top-width: 1px;
}

body.cp-layout-bastion .cp-service-bastion__link::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 0.5rem;
  height: 2.2rem;
  z-index: 2;
  background:
    radial-gradient(circle, var(--cp-bas-bolt) 0 0.1rem, transparent 0.12rem)
    50% 0 / 100% 1.1rem repeat-y;
  filter: drop-shadow(0 1px 1px rgb(27 34 48 / 0.45));
  pointer-events: none;
}

body.cp-layout-bastion .cp-service-bastion__media {
  display: block;
  min-height: 12rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cp-bas-paper-deep), var(--cp-bas-steel));
}

body.cp-layout-bastion .cp-service-bastion__media img {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: scale 0.5s ease, filter 0.3s ease;
}

body.cp-layout-bastion .cp-service-bastion__plate {
  position: relative;
  display: grid;
  align-content: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 1rem;
  min-width: 0;
  padding: 1.25rem 1.35rem;
  background: var(--cp-bas-card);
}

body.cp-layout-bastion .cp-service-bastion:not(.cp-service-bastion--media) .cp-service-bastion__plate {
  padding-block: 1.6rem;
  background: linear-gradient(160deg, var(--cp-bas-card) 40%, var(--cp-bas-paper-deep));
}

body.cp-layout-bastion .cp-service-bastion__title {
  font-family: var(--cp-font-display);
  font-size: clamp(1.55rem, 5vw, 2.05rem);
  font-weight: 800;
  line-height: 1;
}

body.cp-layout-bastion .cp-service-bastion__desc {
  grid-column: 1;
  color: var(--cp-bas-muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

body.cp-layout-bastion .cp-service-bastion__cue {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-grid;
  place-items: center;
  align-self: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--cp-bas-ink);
  color: var(--cp-bas-white);
  font-size: 1.1rem;
  transition: translate 0.25s ease, background 0.25s ease;
}

body.cp-layout-bastion .cp-service-bastion__link:hover,
body.cp-layout-bastion .cp-service-bastion__link:focus-visible {
  translate: 0 -0.2rem;
  box-shadow: 0 1.4rem 2.2rem -1.5rem var(--cp-bas-shadow);
}

body.cp-layout-bastion .cp-service-bastion__link:hover .cp-service-bastion__media img,
body.cp-layout-bastion .cp-service-bastion__link:focus-visible .cp-service-bastion__media img {
  scale: 1.05;
  filter: saturate(1.12) contrast(1.04);
}

body.cp-layout-bastion .cp-service-bastion__link:hover .cp-service-bastion__cue,
body.cp-layout-bastion .cp-service-bastion__link:focus-visible .cp-service-bastion__cue {
  translate: 0.2rem 0;
  background: var(--cp-bas-brass);
}

/* About: light warm steel panel inside a hairline frame. */
body.cp-layout-bastion .cp-about--bastion {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cp-bas-paper-deep), #efebe4);
  color: var(--cp-bas-ink);
}

body.cp-layout-bastion .cp-about__bastion {
  position: relative;
  max-width: 62rem;
  padding: clamp(2.3rem, 7vw, 5rem) clamp(1.6rem, 8vw, 6rem);
  border-inline: 1px solid var(--cp-bas-line);
}

body.cp-layout-bastion .cp-about__bastion::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgb(185 134 60 / 0.28);
  pointer-events: none;
}

body.cp-layout-bastion .cp-about__bastion > * {
  position: relative;
  z-index: 1;
}

body.cp-layout-bastion .cp-about--bastion h2 {
  max-width: 18ch;
  color: var(--cp-bas-ink);
  font-size: clamp(2.25rem, 6vw, 4rem);
}

body.cp-layout-bastion .cp-about--bastion p,
body.cp-layout-bastion .cp-about--bastion li {
  color: color-mix(in srgb, var(--cp-bas-ink) 82%, white);
}

body.cp-layout-bastion .cp-posts--bastion .cp-posts__banner {
  border: 0;
  border-bottom: 0.25rem solid var(--cp-bas-brass);
  border-radius: 0;
  background: transparent;
}

body.cp-layout-bastion .cp-posts--bastion .cp-posts__eyebrow {
  color: var(--cp-bas-muted);
  letter-spacing: 0.12em;
}

body.cp-layout-bastion .cp-posts--bastion .cp-posts__phone {
  border-radius: 0.3rem;
  background: var(--cp-bas-ink);
}

/* Hizmet noktaları: big real photo, content card slightly overlapping the image. */
body.cp-layout-bastion .cp-post-bastions {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.6rem;
}

body.cp-layout-bastion .cp-post-bastion {
  animation: cp-bastion-card 0.7s cubic-bezier(0.2, 0.85, 0.25, 1) both;
  animation-delay: calc(0.07s * var(--cp-i, 0));
}

body.cp-layout-bastion .cp-post-bastion__link {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  border-radius: var(--cp-bas-radius);
  color: var(--cp-bas-ink);
  text-decoration: none;
  box-shadow: 0 1.2rem 2rem -1.5rem var(--cp-bas-shadow);
  transition: translate 0.25s ease, box-shadow 0.25s ease;
}

/* Photo is the whole card; caption panel sits inside the same grid cell at the bottom. */
body.cp-layout-bastion .cp-post-bastion__media,
body.cp-layout-bastion .cp-post-bastion__body {
  grid-area: 1 / 1;
}

body.cp-layout-bastion .cp-post-bastion__media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--cp-bas-radius);
  background:
    linear-gradient(90deg, transparent 0 31%, rgb(255 255 255 / 0.35) 31% calc(31% + 2px), transparent calc(31% + 2px) 69%, rgb(255 255 255 / 0.35) 69% calc(69% + 2px), transparent calc(69% + 2px)),
    linear-gradient(135deg, var(--cp-bas-paper-deep), var(--cp-bas-steel));
  clip-path: inset(0 round var(--cp-bas-radius));
  animation: cp-bastion-reveal 0.9s cubic-bezier(0.2, 0.85, 0.25, 1) both;
  animation-delay: calc(0.1s + 0.07s * var(--cp-i, 0));
}

body.cp-layout-bastion .cp-post-bastion__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.03) brightness(1.02);
  transition: scale 0.5s ease, filter 0.3s ease;
}

/* Warm paper placeholder when a card has no photo. */
body.cp-layout-bastion .cp-post-bastion__media--empty {
  background:
    linear-gradient(135deg, var(--cp-bas-paper-deep), var(--cp-bas-light));
}

/* Two bolts on the photo corner; no plate. */
body.cp-layout-bastion .cp-post-bastion__plate {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  width: 0.5rem;
  height: 2.2rem;
  background:
    radial-gradient(circle, var(--cp-bas-white) 0 0.1rem, transparent 0.12rem)
    50% 0 / 100% 1.1rem repeat-y;
  filter: drop-shadow(0 1px 1px rgb(27 34 48 / 0.5));
  pointer-events: none;
}

/* Caption: light paper plate floating over the lower edge of the photo; dark ink, no dark wash. */
body.cp-layout-bastion .cp-post-bastion__body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  align-self: end;
  gap: 0.35rem;
  margin: 0 0.7rem 0.7rem;
  padding: 0.85rem 1rem 0.9rem;
  border-top: 0.2rem solid var(--cp-bas-brass);
  border-radius: 0.3rem;
  background: rgb(255 252 246 / 0.93);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: 0 0.8rem 1.4rem -1rem rgb(27 34 48 / 0.45);
}

body.cp-layout-bastion .cp-post-bastion__title {
  color: var(--cp-bas-ink);
  font-family: var(--cp-font-display);
  font-size: clamp(1.4rem, 4.6vw, 1.7rem);
  font-weight: 800;
  line-height: 1;
  text-wrap: balance;
}

body.cp-layout-bastion .cp-post-bastion__desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--cp-bas-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.cp-layout-bastion .cp-post-bastion__more {
  margin-top: 0.15rem;
  color: var(--cp-bas-ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease, letter-spacing 0.25s ease;
}

body.cp-layout-bastion .cp-post-bastion__link:hover,
body.cp-layout-bastion .cp-post-bastion__link:focus-visible {
  translate: 0 -0.25rem;
  box-shadow: 0 1.6rem 2.4rem -1.5rem var(--cp-bas-shadow);
}

body.cp-layout-bastion .cp-post-bastion__link:focus-visible {
  outline: 2px solid var(--cp-bas-brass);
  outline-offset: 3px;
}

body.cp-layout-bastion .cp-post-bastion__link:hover .cp-post-bastion__media img,
body.cp-layout-bastion .cp-post-bastion__link:focus-visible .cp-post-bastion__media img {
  scale: 1.05;
  filter: saturate(1.12) contrast(1.04);
}

body.cp-layout-bastion .cp-post-bastion__link:hover .cp-post-bastion__more,
body.cp-layout-bastion .cp-post-bastion__link:focus-visible .cp-post-bastion__more {
  color: var(--cp-bas-brass);
  letter-spacing: 0.11em;
}

@media (min-width: 640px) {
  body.cp-layout-bastion .cp-service-bastion--media .cp-service-bastion__link {
    grid-template-columns: minmax(12rem, 0.9fr) minmax(0, 1.1fr);
  }

  body.cp-layout-bastion .cp-service-bastion:nth-child(even) .cp-service-bastion__media {
    grid-column: 2;
    grid-row: 1;
  }

  body.cp-layout-bastion .cp-service-bastion:nth-child(even) .cp-service-bastion__plate {
    grid-column: 1;
    grid-row: 1;
  }

  body.cp-layout-bastion .cp-post-bastions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.cp-layout-bastion .cp-post-bastion__media {
    aspect-ratio: 4 / 5;
  }
}

@media (min-width: 900px) {
  body.cp-layout-bastion .cp-service-bastions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  body.cp-layout-bastion .cp-service-bastion--media .cp-service-bastion__link {
    grid-template-columns: minmax(10rem, 0.95fr) minmax(0, 1.05fr);
  }

  body.cp-layout-bastion .cp-post-bastions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
  }
}

/* Mobile: hero is near-square (see shared rule); keep the photo bright and the panel compact. */
@media (max-width: 767.98px) {
  body.cp-layout-bastion .cp-hero--bastion .cp-hero__stage::before {
    background: linear-gradient(0deg, rgb(27 34 48 / 0.22), transparent 45%);
  }

  body.cp-layout-bastion .cp-hero--bastion .cp-hero__img {
    object-position: center;
  }

  body.cp-layout-bastion .cp-hero--bastion .cp-hero__content {
    overflow: hidden;
    width: calc(100% - 1.5rem);
    margin: 0 0.75rem 0.75rem;
    padding: 0.85rem 1rem 0.9rem;
  }

  body.cp-layout-bastion .cp-hero--bastion .cp-hero__content::after {
    display: none;
  }

  body.cp-layout-bastion .cp-hero--bastion .cp-hero__eyebrow {
    max-width: 100%;
    margin-bottom: 0.35rem;
    overflow: hidden;
    font-size: 0.68rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body.cp-layout-bastion .cp-hero--bastion .cp-hero__title {
    display: -webkit-box;
    max-width: 15ch;
    margin-bottom: 0.6rem;
    overflow: hidden;
    font-size: clamp(1.7rem, 8vw, 2.25rem);
    line-height: 0.95;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body.cp-layout-bastion .cp-hero--bastion .cp-hero__lede {
    display: none;
  }

  body.cp-layout-bastion .cp-hero--bastion .cp-hero__cta {
    width: 100%;
  }

  body.cp-layout-bastion .cp-hero--bastion .cp-btn {
    min-height: 2.7rem;
  }
}

/* Motion 1: photo settles into focus. 2: copy panel rises while frame draws in. 3: cards rise, photos unveil. */
@keyframes cp-bastion-photo {
  from { scale: 1.07; filter: saturate(0.92) contrast(1) brightness(1.08); }
  to { scale: 1; }
}

@keyframes cp-bastion-frame {
  from { opacity: 0; clip-path: inset(0 48%); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes cp-bastion-panel-in {
  from { opacity: 0; translate: 0 1.4rem; }
  to { opacity: 1; translate: 0; }
}

@keyframes cp-bastion-bolts {
  from { opacity: 0; scale: 0.4; }
  to { opacity: 1; scale: 1; }
}

@keyframes cp-bastion-card {
  from { opacity: 0; translate: 0 1rem; }
  to { opacity: 1; translate: 0; }
}

@keyframes cp-bastion-reveal {
  from { clip-path: inset(0 100% 0 0 round var(--cp-bas-radius)); }
  to { clip-path: inset(0 0 0 0 round var(--cp-bas-radius)); }
}

@media (prefers-reduced-motion: reduce) {
  body.cp-layout-bastion .cp-hero--bastion .cp-hero__img,
  body.cp-layout-bastion .cp-hero--bastion .cp-hero__stage::after,
  body.cp-layout-bastion .cp-hero--bastion .cp-hero__content,
  body.cp-layout-bastion .cp-hero--bastion .cp-hero__content::after,
  body.cp-layout-bastion .cp-service-bastion,
  body.cp-layout-bastion .cp-post-bastion,
  body.cp-layout-bastion .cp-post-bastion__media {
    animation: none;
  }

  body.cp-layout-bastion .cp-hero--bastion .cp-btn,
  body.cp-layout-bastion .cp-service-bastion__link,
  body.cp-layout-bastion .cp-service-bastion__media img,
  body.cp-layout-bastion .cp-service-bastion__cue,
  body.cp-layout-bastion .cp-post-bastion__link,
  body.cp-layout-bastion .cp-post-bastion__media img,
  body.cp-layout-bastion .cp-post-bastion__more {
    transition: none;
  }
}

/* ==========================================================================
   Layout: Keystone — hanging key-tag wedge hero, voussoir service cards, key-ring post cards
   Silhouette language: trapezoid (wide top, narrow seat) + brass key ring. Pack vars may be
   enriched in packs/maroon-cream.css via body.cp-pack-maroon-cream.cp-layout-keystone.
   ========================================================================== */

/* ==========================================================================
   Layout: Bastion — bright door-leaf photo, brass-bolt frame, paper-and-ink cards
   ========================================================================== */
body.cp-layout-bastion {
  --cp-bas-ink: #1b2230;
  --cp-bas-deep: #2a3140;
  --cp-bas-steel: #a8a39b;
  --cp-bas-light: #e4e0d8;
  --cp-bas-paper: #f5f2ed;
  --cp-bas-paper-deep: #e9e4dc;
  --cp-bas-card: #fffdf9;
  --cp-bas-white: #fff;
  --cp-bas-brass: #b9863c;
  --cp-bas-brass-soft: #e3c58f;
  --cp-bas-line: color-mix(in srgb, var(--cp-bas-ink) 14%, transparent);
  --cp-bas-muted: #5b6372;
  --cp-bas-shadow: rgb(40 32 20 / 0.3);
  --cp-bas-radius: 0.45rem;
  --cp-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --cp-font-body: "Figtree", "Segoe UI", sans-serif;
  color: var(--cp-bas-ink);
  background: var(--cp-bas-paper);
}
