/* Start Your Project: one black pill on the gold. Tap it and it widens to show the email and phone. */
.cta {
  position: relative; display: inline-grid; place-items: center;
  height: 64px; padding: 0 34px;
  background: var(--black); color: var(--gold-light);
  border-radius: 999px;
  overflow: hidden;
  transition: width .9s var(--ease-premium, cubic-bezier(.16,1,.3,1)), background .4s;
}
.cta > * { grid-area: 1 / 1; }
.cta-label {
  background: none; border: 0; cursor: pointer; color: inherit;
  font: 500 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap; padding: 0;
  transition: opacity .35s ease, transform .5s var(--ease-premium, cubic-bezier(.16,1,.3,1));
}
.cta-label::after { content: ""; position: absolute; inset: 0; border-radius: 999px; }
.cta-details {
  display: flex; align-items: center; gap: 16px; white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-size: 19px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .5s ease .25s, transform .7s var(--ease-premium, cubic-bezier(.16,1,.3,1)) .2s;
}
.cta-details a { color: var(--white); border-bottom: 1px solid rgba(227, 200, 138, .45); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.cta-details a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.cta-dot { color: var(--gold); }
.cta.is-open .cta-label { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.cta.is-open .cta-label::after { display: none; }
.cta.is-open .cta-details { opacity: 1; transform: none; pointer-events: auto; }
.cta:not(.is-open):hover { background: #1c1a17; }
.cta-label:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 10px; }
@media (max-width: 600px) {
  .cta { height: auto; min-height: 60px; padding: 0 26px; }
  .cta.is-open { padding: 18px 26px; }
  .cta-details { flex-direction: column; gap: 8px; font-size: 17px; }
  .cta-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cta, .cta-label, .cta-details { transition: none; } }

/* Safari fix: no shared grid cell (its column grew to the wide details and pushed the label right).
   Closed: the label is in the flow, details float centred out of sight. Open: they swap. */
.cta { display: inline-flex; align-items: center; justify-content: center; }
.cta > * { grid-area: auto; }
.cta-details { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); }
.cta.is-open .cta-details { position: static; transform: none; }
.cta.is-open .cta-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); }
.cta-label { position: static; }
