/* Soft-weight sculpted hero cards, shared with the retained design previews. */
/* Reserve the finished frame before fonts, modules or physics load. The main
   scroller already excludes the contact bar, so this keeps the floor at 80vh. */
#agency-site .gc-hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: visible;
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr);
  height: calc(100% - 20dvh);
  min-height: min-content;
  padding-top: clamp(18px, 4svh, 40px);
  padding-bottom: 0;
}
/* Let the shadow tail show through the gutter. Only the actual next panel is
   opaque and above the cards, after a small allowance for the softened shadow. */
#agency-site .gc-hero + .taste-opening { position: relative; z-index: 1; background: transparent; padding-top: clamp(26px, 2.2cqi, 32px); }
#agency-site .gc-hero .taste-goodbye {
  position: relative;
  top: clamp(16px, 1.8cqi, 26px);
  z-index: 2;
  pointer-events: none;
  font-size: clamp(40px, min(13.5cqi, 13svh), 154px);
}
#agency-site .gc-stage {
  --gc-fit-scale: 1;
  --gc-card-height: 76px;
  --gc-font-size: 21px;
  --gc-radius: 24px;
  --gc-left: 12px;
  --gc-right: 20px;
  --gc-gap: 12px;
  --gc-mark-size: 36px;
  --gc-mark-font: 25px;
  --gc-emoji-size: 27px;
  --gc-fade-top: 80px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: 150px;
  /* Card wrapping and the canvas must never determine the frame's size. */
  contain: size;
  margin-top: 12px;
  overflow: visible;
  touch-action: pan-y pinch-zoom;
}
#agency-site .gc-stage[data-enhanced="true"] { display: block; }
#agency-site .gc-card {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: max-content;
  min-width: min-content;
  max-width: calc(100% - 28px);
  height: calc(var(--gc-card-height) * var(--gc-fit-scale));
  padding: 0;
  border: 0;
  border-radius: calc(var(--gc-radius) * var(--gc-fit-scale));
  background: transparent;
  color: #143e38;
  font-family: 'Outfit', sans-serif;
  font-size: calc(var(--gc-font-size) * var(--gc-fit-scale));
  font-weight: 500;
  letter-spacing: -.022em;
  text-align: left;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
#agency-site .gc-stage[data-enhanced="true"] .gc-card {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  transform-origin: 50% 50%;
}
#agency-site .gc-face {
  display: flex;
  align-items: center;
  gap: calc(var(--gc-gap) * var(--gc-fit-scale));
  width: 100%;
  height: 100%;
  padding: calc(10px * var(--gc-fit-scale)) calc(var(--gc-right) * var(--gc-fit-scale)) calc(10px * var(--gc-fit-scale)) calc(var(--gc-left) * var(--gc-fit-scale));
  border: 1px solid #c9ddd1;
  border-radius: inherit;
  background: linear-gradient(110deg, #edf5ef, #fbfdfc);
  box-shadow: 0 2px 0 #e5eee8, inset 0 1px 0 #fefffe;
}
#agency-site .gc-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 calc(var(--gc-mark-size) * var(--gc-fit-scale));
  height: calc(var(--gc-mark-size) * var(--gc-fit-scale));
  border-radius: 0;
  background: transparent;
  color: #143e38;
  font-size: calc(var(--gc-mark-font) * var(--gc-fit-scale));
  line-height: 1;
  font-weight: 400;
  touch-action: pan-y pinch-zoom;
}
#agency-site .gc-mark::after { content: ''; position: absolute; width: 44px; height: 44px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
#agency-site .gc-mark svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
/* Orange icon discs belong only to the retained comparison previews. */
#agency-site .gc-stage[data-gc-preview] .gc-mark:not([data-gc-emoji]) { border-radius: 50%; background: #ffb17a; }
#agency-site .gc-emoji {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: calc(var(--gc-emoji-size) * var(--gc-fit-scale));
  line-height: 1;
  pointer-events: none;
}
#agency-site [data-gc-emoji-rotation="45"] .gc-emoji { transform: rotate(45deg); }
#agency-site .gc-emoji-strike {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84.85%;
  height: 7.5%;
  border-radius: 999px;
  background: #236e5f;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}
#agency-site .gc-stage[data-interactive="true"] .gc-mark { touch-action: none; }
#agency-site .gc-label {
  flex: 0 0 auto;
  min-width: min-content;
  max-width: 100%;
  overflow-wrap: normal;
  white-space: pre;
  line-height: 1.25;
}
#agency-site .gc-card[data-grabbed="true"] { cursor: grabbing; }
#agency-site .gc-card[data-grabbed="true"] .gc-face { border-color: #7d9c89; }
#agency-site .gc-card:focus-visible { outline: 3px solid #236e5f; outline-offset: 3px; }
#agency-site .gc-stage[data-gc-renderer="three"] .gc-face { opacity: 0; }
#agency-site .gc-webgl {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
/* One stationary cover fades the drawing and mobile emoji together. Match the
   canvas's 32px overscan, leaving side/floor shadows and dragging unobstructed. */
#agency-site .gc-stage[data-gc-renderer="three"]::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: -32px;
  left: -32px;
  right: -32px;
  height: calc(32px + var(--gc-fade-top));
  background: linear-gradient(to bottom, var(--taste-page, #fbfdfc) 32px, transparent);
  pointer-events: none;
}
#agency-site .gc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 6px 0;
  color: #4d6961;
  font-size: 13px;
  line-height: 1.4;
}
#agency-site .gc-control-actions { display: flex; gap: 7px; flex: 0 0 auto; }
#agency-site .gc-controls button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #d8e5dd;
  padding: 8px 15px;
  border-radius: 999px;
  background: #f0f6f2;
  color: #143e38;
  font-size: 13px;
}
#agency-site .gc-controls button:hover { background: #e3eee7; }
#agency-site .gc-controls button:disabled { opacity: .5; cursor: default; }
#agency-site .gc-touch-hint { display: none; }
#agency-site .gc-message { font-size: 13px; color: #4d6961; padding: 8px 6px 0; }
.gc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@container (min-width: 901px) {
  #agency-site .gc-stage { --gc-card-height: 88px; --gc-font-size: 24px; --gc-radius: 27px; --gc-left: 16px; --gc-gap: 14px; --gc-mark-size: 40px; --gc-mark-font: 28px; --gc-emoji-size: 30px; }
}
@container (min-width: 768px) {
  #agency-site .gc-hero .taste-goodbye-line { justify-content: center; }
  #agency-site .gc-hero .taste-goodbye-to {
    position: relative;
    left: clamp(-76px, -5cqi, -48px);
    margin-inline: auto;
  }
}
@container (max-width: 650px) {
  #agency-site .gc-hero { padding-inline: 3%; }
  #agency-site .gc-hero .taste-goodbye { padding-inline: 2%; }
  /* Keep the same headline overlap before and after JavaScript starts. */
  #agency-site .gc-hero .taste-goodbye-to { position: absolute; top: 100%; }
  #agency-site .gc-stage { --gc-card-height: 60px; --gc-font-size: 16px; --gc-radius: 21px; --gc-left: 10px; --gc-right: 16px; --gc-gap: 10px; --gc-mark-size: 32px; --gc-mark-font: 23px; --gc-emoji-size: 24px; --gc-fade-top: 64px; gap: 12px; margin-top: 4px; }
  /* Mobile Safari can omit colour emoji rasterised into a WebGL texture.
     Overlay only the native emoji and strike while the 3D canvas draws the card. */
  #agency-site .gc-stage[data-gc-renderer="three"] .gc-face {
    opacity: 1;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
  #agency-site .gc-stage[data-gc-renderer="three"] .gc-label { visibility: hidden; }
  #agency-site .gc-controls { flex-wrap: wrap; justify-content: center; text-align: center; padding-inline: 12px; }
  #agency-site .gc-controls p { flex-basis: 100%; }
}
@media (pointer: coarse) {
  #agency-site .gc-touch-hint { display: inline; }
  #agency-site .gc-mouse-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #agency-site .gc-stage { min-height: 0; padding-block: 30px; }
}
