:root {
  color-scheme: dark;
  --ink: #f7f1e7;
  --muted: #bcb4a7;
  --coal: #151617;
  --panel: #202226;
  --panel-2: #2c3036;
  --line: #454a52;
  --gold: #ffc857;
  --red: #ef476f;
  --green: #50c878;
  --sky: #5ec8e5;
  --blue: #264e86;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(120deg, rgba(255, 200, 87, 0.12), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(94, 200, 229, 0.16), transparent 28%),
    linear-gradient(160deg, #121313 0%, #1a1d21 52%, #101112 100%);
  color: var(--ink);
}

button {
  font: inherit;
}

noscript p {
  max-width: 720px;
  margin: 16px auto;
  padding: 12px 16px;
  border: 1px solid var(--gold);
  background: rgba(255, 200, 87, 0.12);
  color: var(--ink);
}

.stage {
  width: min(1440px, 100%);
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(18px, 3vw, 34px);
}

.intro {
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.intro p:last-child {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
}

.site-footer {
  width: min(880px, calc(100% - 32px));
  margin: -14px auto 16px;
  display: block;
  color: rgba(247, 241, 231, 0.58);
  font-size: 0.66rem;
  line-height: 1.35;
  text-align: center;
}

.site-footer > div:last-child {
  text-align: center;
}

.site-footer p {
  margin: 2px 0;
}

.site-footer a {
  color: rgba(255, 200, 87, 0.82);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

.experience {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(320px, 460px);
  align-items: stretch;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 30px);
}

@media (min-width: 1180px) {
  .stage {
    width: min(1280px, 100%);
    grid-template-rows: auto 1fr;
    align-content: center;
    justify-content: center;
    gap: 28px;
  }

  .intro {
    max-width: none;
    text-align: center;
  }

  h1 {
    font-size: clamp(4.5rem, 7vw, 7.2rem);
    line-height: 0.9;
    white-space: nowrap;
  }

  .intro p:last-child {
    max-width: none;
    margin-top: 14px;
    white-space: nowrap;
  }

  .intro p:last-child br {
    display: none;
  }

  .experience {
    grid-template-columns: minmax(300px, 360px) minmax(360px, 430px);
    align-items: start;
  }

  .caller-panel {
    min-height: 0;
    height: var(--phone-height, auto);
    max-height: var(--phone-height, none);
    padding: 14px;
    overflow: hidden;
  }

  .caller-list {
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: calc(100% - 46px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-color: var(--gold) transparent;
    scrollbar-width: thin;
    overscroll-behavior: contain;
  }

  .caller-list::-webkit-scrollbar {
    width: 4px;
  }

  .caller-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .caller-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--gold);
  }

  .caller-card {
    min-height: 84px;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    padding: 8px;
  }

  .caller-card img {
    width: 64px;
    height: 64px;
  }

  .caller-card strong {
    font-size: 0.88rem;
    line-height: 1.15;
  }

  .caller-card span {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .phone-wrap {
    min-height: 0;
    align-self: stretch;
  }
}


.caller-panel {
  min-height: 520px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(32, 34, 38, 0.8);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: -2px -2px 14px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 200, 87, 0.42);
  background: rgba(255, 200, 87, 0.08);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.caller-list {
  min-height: 0;
  display: grid;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: auto;
}

.caller-card {
  width: 100%;
  min-height: 98px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  background: var(--panel-2);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.caller-card:hover,
.caller-card:focus-visible,
.caller-card.active {
  transform: translateY(-2px);
  border-color: var(--gold);
  outline: none;
}

.caller-card img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.caller-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.caller-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.caller-card > span > span {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.phone-wrap {
  min-height: 560px;
  display: grid;
  place-items: center;
  position: relative;
}

.signal-bars {
  position: absolute;
  inset: 8% auto auto 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.signal-bars span {
  width: 10px;
  height: 44px;
  border-radius: 999px;
  background: var(--gold);
  transform-origin: bottom;
}

.is-ringing .signal-bars {
  opacity: 1;
}

.is-ringing .signal-bars span:nth-child(1) {
  animation: ringWave 800ms infinite ease-in-out;
}

.is-ringing .signal-bars span:nth-child(2) {
  animation: ringWave 800ms 80ms infinite ease-in-out;
}

.is-ringing .signal-bars span:nth-child(3) {
  animation: ringWave 800ms 160ms infinite ease-in-out;
}

.is-ringing .signal-bars span:nth-child(4) {
  animation: ringWave 800ms 240ms infinite ease-in-out;
}

.phone {
  width: min(380px, 86vw);
  aspect-ratio: 0.49;
  padding: 18px;
  border: 10px solid #050506;
  border-radius: 46px;
  background: #08090a;
  box-shadow:
    inset 0 0 0 2px #272b30,
    0 18px 34px rgba(0, 0, 0, 0.32);
  position: relative;
}

.volume-buttons {
  position: absolute;
  top: 20%;
  right: -20px;
  z-index: 5;
  display: grid;
  gap: 18px;
}

.volume-buttons button {
  width: 12px;
  height: 68px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #2d3238;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, #111317, #262b31);
  color: #f7f1e7;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.volume-buttons button:hover,
.volume-buttons button:focus-visible {
  color: var(--gold);
  outline: none;
}

.volume-buttons button:focus-visible {
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(255, 200, 87, 0.34);
}

.is-ringing .phone {
  animation: phoneShake 500ms infinite;
}

.speaker {
  width: 82px;
  height: 7px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #2b3036;
}

.screen {
  height: calc(100% - 44px);
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(38, 78, 134, 0.52), rgba(21, 22, 23, 0.88)),
    #14171b;
  overflow: hidden;
  position: relative;
}

.call-top {
  position: relative;
  z-index: 4;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.call-top span {
  position: relative;
  z-index: 2;
  color: #fff8ec;
  text-shadow: 0 1px 6px rgba(5, 7, 10, 0.9);
}

.lock-clock {
  margin: 22px 0 2px;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.lock-clock span {
  color: #f2eadf;
  font-size: clamp(0.78rem, 2.4vw, 0.95rem);
  font-weight: 650;
}

.lock-clock strong {
  color: #fff8ec;
  font-size: clamp(2.55rem, 10vw, 3.65rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.lock-notification {
  display: none;
  width: 100%;
  max-width: 250px;
  box-sizing: border-box;
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(238, 242, 248, 0.86);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  color: #15191f;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transform-origin: top center;
  pointer-events: none;
}

.lock-notification-secondary {
  margin-top: 8px;
}

.lock-notification-update {
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  text-align: left;
}

.lock-notification-update img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
}

.lock-notification-update span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lock-notification-update a {
  color: #15191f;
  text-decoration: underline;
  overflow-wrap: anywhere;
  pointer-events: auto;
}

.screen.is-idle.show-lock-notification #lock-notification,
.screen.is-idle.show-lock-notification-secondary .lock-notification-secondary,
.screen.is-idle.show-lock-notification-update .lock-notification-update {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: notificationPop 360ms cubic-bezier(0.2, 1.35, 0.35, 1) both;
}

.screen.is-idle.show-lock-notification-update .lock-notification-update {
  display: flex;
  pointer-events: auto;
}

.screen:not(.is-idle) .lock-notification {
  display: none;
}

.caller-avatar {
  width: clamp(96px, 12vw, 146px);
  height: clamp(96px, 12vw, 146px);
  margin: 4px auto 0;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--gold), var(--sky), var(--red));
}

.caller-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
}

.volume-hud {
  position: absolute;
  left: 50%;
  top: 64px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 7, 10, 0.72);
  color: #fff8ec;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, -8px) scale(0.96);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  pointer-events: none;
}

.volume-hud span {
  color: var(--gold);
  font-size: 0.88rem;
}

.screen.show-volume-hud .volume-hud {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.screen.is-idle .caller-avatar {
  display: none;
}

.screen.is-idle .call-top,
.screen.is-idle .caller-name,
.screen.is-idle .call-copy,
.screen.is-idle .message-thread,
.screen.is-idle .phone-actions {
  display: none;
}

.screen.is-call-mode .lock-clock {
  display: none;
}

.screen.is-ended .phone-actions {
  display: none;
}

.screen.is-incoming .message-thread,
.screen.is-connected .call-copy,
.screen.is-ended .call-copy {
  display: none;
}

.caller-name {
  margin: 0;
  text-align: center;
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  font-weight: 850;
  line-height: 1;
}

.call-copy {
  margin: 0;
  color: #e3dccf;
  font-size: clamp(0.96rem, 2.6vw, 1.08rem);
  line-height: 1.45;
  text-align: center;
}

.message-thread {
  width: 100%;
  min-height: 0;
  max-height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 18px 2px 62px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 18px,
    #000 calc(100% - 62px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 18px,
    #000 calc(100% - 62px),
    transparent 100%
  );
  overscroll-behavior: contain;
}

.message-thread::-webkit-scrollbar {
  display: none;
}

.message-bubble {
  max-width: 84%;
  margin: 0;
  padding: 9px 12px;
  border-radius: 18px;
  font-size: clamp(0.78rem, 2.35vw, 0.94rem);
  line-height: 1.35;
  word-wrap: break-word;
}

.message-bubble.alberta {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: #d9d9dd;
  color: #161719;
}

.message-bubble.answerer {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: #0a84ff;
  color: #fff;
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 54px;
  min-height: 34px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.52;
  animation: typingDot 900ms infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 140ms;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 280ms;
}

.audio-visualizer {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(172px, calc(100% - 48px));
  height: 28px;
  display: none;
  align-items: end;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 7, 10, 0.34);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.82;
}

.screen.is-audio-playing .audio-visualizer {
  display: flex;
}

.audio-visualizer span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sky), var(--gold));
  animation: visualizerBar 760ms infinite ease-in-out;
}

.audio-visualizer span:nth-child(2n) {
  animation-duration: 620ms;
}

.audio-visualizer span:nth-child(3n) {
  animation-duration: 920ms;
}

.audio-visualizer span:nth-child(4n) {
  animation-delay: 160ms;
}

.phone-actions {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.phone-actions button {
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #08100d;
  font-weight: 850;
  cursor: pointer;
}

.phone-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.phone-actions button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.answer {
  background: var(--green);
}

.decline {
  background: var(--red);
  color: #fff;
}

.home-indicator {
  width: 110px;
  height: 5px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: #2b3036;
}

.muted {
  margin: 0;
  color: var(--muted);
}

@keyframes phoneShake {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-3px) rotate(-1deg);
  }
  75% {
    transform: translateX(3px) rotate(1deg);
  }
}

@keyframes ringWave {
  0%,
  100% {
    transform: scaleY(0.42);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes notificationPop {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }

  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes typingDot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.42;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes visualizerBar {
  0%,
  100% {
    height: 7px;
    opacity: 0.54;
  }

  50% {
    height: 15px;
    opacity: 1;
  }
}

@media (max-width: 1040px) {
  .experience {
    grid-template-columns: minmax(240px, 320px) 1fr;
  }
}

@media (max-width: 720px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .stage {
    height: calc(100dvh - 44px);
    min-height: 0;
    padding: 8px 14px;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    overflow: hidden;
  }

  .site-footer {
    width: calc(100% - 20px);
    display: block;
    margin: 3px auto 5px;
    font-size: 0.48rem;
    line-height: 1.15;
    text-align: center;
  }

  .site-footer > div:last-child {
    text-align: center;
  }

  .site-footer p {
    margin: 1px 0;
  }

  .intro {
    max-width: none;
  }

  h1 {
    font-size: clamp(1.75rem, 10.5vw, 2.9rem);
    line-height: 0.88;
  }

  .kicker {
    margin-bottom: 3px;
    font-size: 0.58rem;
  }

  .intro p:last-child {
    margin: 5px auto 0;
    font-size: clamp(0.68rem, 3vw, 0.82rem);
    line-height: 1.25;
  }

  .experience {
    grid-template-columns: clamp(108px, 31vw, 126px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 0;
    overflow: visible;
  }

  .caller-panel {
    min-height: 0;
    height: var(--phone-height, auto);
    max-height: var(--phone-height, none);
    align-self: start;
    padding: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  }

  .caller-panel {
    grid-column: 1;
  }

  .phone-wrap {
    grid-column: 2;
    min-height: 0;
    height: auto;
    max-height: 100%;
    align-self: start;
  }

  .panel-heading {
    min-height: 30px;
    margin: -1px -1px 8px;
    padding: 6px 4px;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .caller-list {
    grid-template-columns: 1fr;
    gap: 8px;
    height: calc(100% - 38px);
    max-height: calc(100% - 38px);
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 9px;
    scrollbar-width: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .caller-list::-webkit-scrollbar {
    display: none;
  }

  .caller-card {
    min-height: 96px;
    display: block;
    position: relative;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.08);
    background: #1b1d21;
  }

  .caller-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(5, 7, 10, 0.06) 0%,
      rgba(5, 7, 10, 0.18) 34%,
      rgba(5, 7, 10, 0.66) 72%,
      rgba(5, 7, 10, 0.88) 100%
    );
    pointer-events: none;
  }

  .caller-card img {
    width: 100%;
    height: 100%;
    min-height: 96px;
    display: block;
    object-fit: cover;
    aspect-ratio: auto;
    border: 0;
  }

  .caller-card > span {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    display: block;
    padding: 0 8px 8px;
  }

  .caller-card strong {
    margin: 0;
    color: #fff8ec;
    font-size: clamp(0.74rem, 2.55vw, 0.86rem);
    line-height: 1.08;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  }

  .caller-card > span > span {
    display: block;
    margin-top: 2px;
    min-width: 0;
    color: rgba(247, 241, 231, 0.9);
    font-size: clamp(0.58rem, 1.85vw, 0.68rem);
    line-height: 1.08;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
    white-space: normal;
  }

  .caller-card[data-caller="worker"] > span > span {
    font-size: clamp(0.54rem, 1.72vw, 0.62rem);
  }

  .caller-card[data-caller="brad"] > span > span {
    font-size: clamp(0.56rem, 1.8vw, 0.66rem);
    line-height: 1.02;
  }

  .caller-scrollbar {
    position: absolute;
    top: 46px;
    right: 4px;
    bottom: 8px;
    width: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
  }

  .caller-scrollbar-thumb {
    position: absolute;
    inset: 0 0 auto;
    min-height: 28px;
    border-radius: inherit;
    background: var(--gold);
    transform: translateY(0);
  }

  .phone {
    width: min(calc(100% - 22px), 280px);
    border-width: 8px;
    border-radius: 36px;
    padding: 12px;
    box-shadow: inset 0 0 0 2px #272b30;
  }

  .screen {
    padding: 14px;
    gap: 12px;
    border-radius: 24px;
  }

  .lock-clock strong {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .lock-notification {
    max-width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 0.74rem;
  }

  .caller-avatar {
    width: clamp(58px, 18vw, 76px);
    height: clamp(58px, 18vw, 76px);
    margin-top: 0;
    padding: 3px;
  }

  .message-thread {
    gap: 7px;
    padding-bottom: 58px;
  }

  .message-bubble {
    max-width: 88%;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .phone-actions button {
    height: 44px;
    min-height: 44px;
  }
}

@media (max-width: 460px) {
  .experience {
    grid-template-columns: clamp(86px, 26vw, 100px) minmax(0, 1fr);
    gap: 6px;
  }

  .caller-panel {
    padding: 6px;
  }

  .caller-card {
    min-height: 88px;
  }

  .caller-card img {
    min-height: 88px;
  }

  .caller-card > span {
    padding: 0 7px 7px;
  }

  .caller-card strong {
    font-size: clamp(0.7rem, 2.55vw, 0.8rem);
  }

  .caller-card > span > span {
    font-size: clamp(0.54rem, 1.9vw, 0.64rem);
    line-height: 1.04;
  }

  .caller-card[data-caller="worker"] > span > span {
    font-size: clamp(0.5rem, 1.68vw, 0.58rem);
  }

  .caller-card[data-caller="brad"] > span > span {
    font-size: clamp(0.52rem, 1.72vw, 0.62rem);
  }

  .phone {
    width: min(calc(100% - 16px), 268px);
  }

  .phone-actions {
    gap: 8px;
  }
}

.av-funnel-locked {
  overflow: hidden;
}

.av-funnel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.46);
}

.av-funnel-dialog,
.av-funnel-endpoint {
  color: var(--ink, #17202a);
  background: var(--av-funnel-bg, #fff);
  border: var(--av-funnel-border, 1px solid rgba(0, 0, 0, 0.18));
  border-radius: var(--av-funnel-radius, 8px);
  box-shadow: var(--av-funnel-shadow, 0 24px 70px rgba(0, 0, 0, 0.22));
}

.av-funnel-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(24px, 4vw, 38px);
}

.av-funnel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--av-funnel-radius, 8px);
  color: inherit;
  background: transparent;
  font-weight: 900;
}

.av-funnel-eyebrow {
  margin: 0 0 10px;
  color: var(--av-funnel-accent, currentColor);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.av-funnel-dialog h2,
.av-funnel-endpoint h2 {
  margin: 0 0 12px;
  color: var(--av-funnel-heading, inherit);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.av-funnel-dialog p,
.av-funnel-endpoint p {
  margin: 0 0 18px;
}

.av-funnel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.av-funnel-primary,
.av-funnel-secondary,
.av-funnel-continue {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--av-funnel-radius, 8px);
  font-weight: 850;
  text-decoration: none;
}

.av-funnel-primary {
  color: var(--av-funnel-primary-color, #fff);
  background: var(--av-funnel-primary-bg, #004a73);
}

.av-funnel-secondary,
.av-funnel-continue {
  color: var(--av-funnel-secondary-color, inherit);
  background: var(--av-funnel-secondary-bg, transparent);
  border: var(--av-funnel-secondary-border, 1px solid currentColor);
}

.av-funnel-text {
  color: inherit;
  font-weight: 750;
  text-underline-offset: 4px;
  opacity: 0.82;
}

.av-funnel-continue {
  margin-top: 18px;
}

.av-funnel-endpoint {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 36px);
}

@media (max-width: 640px) {
  .av-funnel-backdrop {
    align-items: end;
    padding: 10px;
  }

  .av-funnel-dialog {
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }

  .av-funnel-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .av-funnel-dialog,
  .av-funnel-endpoint {
    animation: avFunnelIn 180ms ease-out both;
  }
}

@keyframes avFunnelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

:root {
  --av-funnel-bg: var(--panel);
  --av-funnel-border: 1px solid var(--line);
  --av-funnel-radius: 0;
  --av-funnel-shadow: var(--shadow);
  --av-funnel-accent: var(--gold);
  --av-funnel-heading: var(--gold);
  --av-funnel-primary-bg: var(--gold);
  --av-funnel-primary-color: #111827;
  --av-funnel-secondary-color: var(--ink);
  --av-funnel-secondary-border: 1px solid var(--line);
}

.experience .av-funnel-endpoint {
  grid-column: 1 / -1;
  width: min(780px, 100%);
  margin-inline: auto;
}

.av-funnel-dialog [data-av-funnel-click="donate"],
.av-funnel-endpoint [data-av-funnel-click="donate"] {
  color: var(--ink);
  background: var(--panel-2);
  border-color: var(--line);
}

.av-funnel-dialog [data-av-funnel-click="donate"]:hover,
.av-funnel-dialog [data-av-funnel-click="donate"]:focus-visible,
.av-funnel-endpoint [data-av-funnel-click="donate"]:hover,
.av-funnel-endpoint [data-av-funnel-click="donate"]:focus-visible {
  color: var(--ink);
  background: #3a3f47;
  border-color: #5a616c;
}

.av-funnel-dialog .av-funnel-continue {
  color: #08100d;
  background: var(--gold);
  border-color: var(--gold);
}

.av-funnel-dialog .av-funnel-continue:hover,
.av-funnel-dialog .av-funnel-continue:focus-visible {
  color: #08100d;
  background: #ffd979;
  border-color: #ffd979;
}

.av-funnel-dialog .av-funnel-continue {
  color: #08100d;
  background: var(--gold);
  border-color: var(--gold);
}

.av-funnel-dialog .av-funnel-continue:hover,
.av-funnel-dialog .av-funnel-continue:focus-visible {
  color: #08100d;
  background: #ffd979;
  border-color: #ffd979;
}

.av-funnel-dialog .av-funnel-continue {
  color: #08100d;
  background: var(--gold);
  border-color: var(--gold);
}

.av-funnel-dialog .av-funnel-continue:hover,
.av-funnel-dialog .av-funnel-continue:focus-visible {
  color: #08100d;
  background: #ffd979;
  border-color: #ffd979;
}

.av-funnel-dialog .av-funnel-continue {
  color: #08100d;
  background: var(--gold);
  border-color: var(--gold);
}

.av-funnel-dialog .av-funnel-continue:hover,
.av-funnel-dialog .av-funnel-continue:focus-visible {
  color: #08100d;
  background: #ffd979;
  border-color: #ffd979;
}
