/* Talk now (GRW-20). A small button that appears, upper right, once the page has surfaced.
   It grows into a form in the middle of the screen; the boat slides to the left behind it. */

/* The line and the button share one right edge in the sky. */
.sky-cta {
  position: fixed; z-index: 45; top: calc(var(--rds-nav-h, 64px) + 34px); right: calc(var(--gauge-lane, 0px) + 28px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 22px; pointer-events: none;
}
.sky-cta > * { pointer-events: auto; }
.sky-line {
  margin: 0; text-align: right; font: 700 clamp(2.1rem, 3.5vw, 3.4rem)/1.08 var(--rds-font); letter-spacing: -.02em;
  filter: drop-shadow(0 0 22px rgba(255, 232, 160, .6)) drop-shadow(0 2px 10px rgba(6, 34, 46, .38));
  visibility: hidden; opacity: 0; transition: opacity .4s ease, visibility 0s linear .4s;
}
.sky-row { display: block; }
/* each word is filled with light that keeps moving, like sun on water */
.sky-w {
  display: inline-block; color: transparent; opacity: 0;
  background: linear-gradient(100deg, #fff 0%, #fff 30%, #ffe7a6 45%, #fffdf3 55%, #fff 70%, #fff 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text;
}
html.is-surfaced .sky-line { visibility: visible; opacity: 1; transition-delay: 0s; }
html.is-surfaced .sky-w { animation: sky-break 1.5s cubic-bezier(.16, 1, .3, 1) calc(.5s + var(--i) * .16s) both, sky-shine 7s linear calc(2.4s + var(--i) * .16s) infinite; }
html.talk-open .sky-line { opacity: 0; visibility: hidden; transition: none; }
/* a word starts as a wide blur of bright light and gathers into letters */
@keyframes sky-break {
  0% { opacity: 0; filter: blur(22px) brightness(2.6); transform: translateY(16px) scale(1.12); }
  45% { opacity: 1; filter: blur(7px) brightness(1.9); }
  100% { opacity: 1; filter: blur(0) brightness(1); transform: none; }
}
@keyframes sky-shine { from { background-position: 100% 0; } to { background-position: -50% 0; } }

.talk-pill {
  position: static;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 .86rem/1 var(--rds-font); color: #172C2D; background: var(--rds-gold);
  box-shadow: 0 6px 22px rgba(23, 44, 45, .22), 0 0 0 0 color-mix(in srgb, var(--rds-gold) 50%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.9);
  transition: opacity .5s ease, transform .6s cubic-bezier(.34, 1.4, .64, 1), visibility 0s linear .6s, background-color .15s;
}
.talk-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #172C2D; }
.talk-pill:hover { background: color-mix(in srgb, var(--rds-gold) 82%, #fff); }
.talk-pill:focus-visible { outline: 2px solid #172C2D; outline-offset: 3px; }
html.is-surfaced .talk-pill { opacity: 1; visibility: visible; transform: none; transition-delay: 1.6s, 1.6s, 0s, 0s; animation: talk-ring 2.6s ease-out 2.6s 3; }
html.talk-open .talk-pill { opacity: 0; visibility: hidden; transition: none; animation: none; }
@keyframes talk-ring { 0% { box-shadow: 0 6px 22px rgba(23, 44, 45, .22), 0 0 0 0 color-mix(in srgb, var(--rds-gold) 55%, transparent); } 70%, 100% { box-shadow: 0 6px 22px rgba(23, 44, 45, .22), 0 0 0 16px color-mix(in srgb, var(--rds-gold) 0%, transparent); } }
/* the bar's own button steps aside while this one is up */
html.ocean .bar-cta { transition: opacity .3s ease, background-color var(--rds-dur-fast), color var(--rds-dur-fast); }
html.is-surfaced .bar-cta { opacity: 0; pointer-events: none; }

/* the boat drifts to the left while the form is open */
@media (min-width: 761px) {
  html.talk-open .sea-film { transform: scale(1.1) translateX(-3%); }
}

.talk {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto;
  border: 1px solid color-mix(in srgb, var(--rds-gold) 55%, transparent); border-radius: 22px; color: var(--rds-text);
  background: rgba(255, 255, 255, .93); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(8, 40, 52, .34);
  transform-origin: 0 0;
}
.talk::backdrop { background: rgba(6, 30, 40, .16); }
.talk-in { padding: clamp(24px, 4vw, 38px); }
.talk .eyebrow { margin-bottom: 8px; }
.talk h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.15; letter-spacing: var(--rds-tracking-tight); color: var(--rds-ink); }
.talk-sub { margin: 10px 0 22px; color: var(--rds-text-2); font-size: .95rem; }
.talk form { display: grid; gap: 14px; }
.talk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.talk label { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 600; color: var(--rds-ink); }
.talk input, .talk textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--rds-line-strong); border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--rds-text); background: #fff;
}
.talk textarea { min-height: 92px; resize: vertical; }
.talk input:focus-visible, .talk textarea:focus-visible { outline: none; border-color: var(--rds-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rds-teal) 18%, transparent); }
.talk-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; }
.talk-foot a { font-size: .86rem; color: var(--rds-text-2); }
.talk-note { margin: 0; font-size: .86rem; color: var(--rds-neg-ink); }
.talk-x {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--rds-text-2);
}
.talk-x:hover { background: var(--rds-surface-2); color: var(--rds-ink); }
.talk-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.talk-cal { min-height: 620px; margin: 0 -8px -8px; }
.talk.is-cal { width: min(720px, calc(100vw - 32px)); }

@media (max-width: 760px) {
  .sky-cta { left: 16px; right: 16px; top: calc(var(--rds-nav-h, 64px) + 20px); align-items: flex-start; gap: 16px; }
  .sky-line { text-align: left; font-size: clamp(1.9rem, 9vw, 2.5rem); }
  .talk-row { grid-template-columns: 1fr; }
  .talk-foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
}
