/* Scroll choreography adapted for Maya's native, buildless page. */
.hero {
  grid-template-columns: 60% 36%;
  gap: 4%;
  padding-block: 4.5vw 7vw;
  overflow: clip;
}
.hero-phone {
  padding: 2vw 0;
}
.hero-phone::before {
  content: "";
  position: absolute;
  inset: 8% -4%;
  background: var(--sage);
  border-radius: 48% 48% 43% 43%;
  transform: rotate(-7deg);
}
.hero-phone .phone {
  --phone-w: 23vw;
  box-shadow: 0 1.5vw 3vw #123e2b20;
}
.hero-phone .chat {
  overflow: hidden;
}
.hero-phone #chat-messages {
  gap: calc(18 * var(--s));
}
.hero-phone .bubble {
  font-size: calc(21 * var(--s));
}
.scroll-story {
  padding-block: 3vw;
  position: relative;
}
.story-chapter {
  display: grid;
  grid-template-columns: 45% 48%;
  gap: 7%;
  align-items: center;
  padding: 7vw 0;
}
.story-copy h2 {
  font-size: 5vw;
  font-weight: 600;
  line-height: 1.04;
}
.story-copy > p {
  margin-top: 2.5vw;
  font-size: var(--lead);
  line-height: 1.5;
  color: #d8e2d3;
  max-width: 37ch;
}
.story-details {
  margin-top: 2.4vw;
  font-size: var(--small);
  color: #d8e2d3;
}
.story-details li {
  border-top: 1px solid #ffffff26;
  padding: 0.7em 0;
}
.story-details li::before {
  content: "";
  width: 0.3em;
  height: 0.3em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  display: inline-block;
  margin-right: 0.8em;
  color: var(--fresh);
}
.story-visual {
  min-width: 0;
  width: 100%;
}
.scene-inner {
  padding: 2.1vw;
  background: #244d3a;
  border: 1px solid #ffffff13;
  border-radius: 2vw;
  display: flex;
  flex-direction: column;
  gap: 1.7vw;
}
.pull-conversation {
  display: flex;
  flex-direction: column;
  gap: 1.2vw;
}
.pull-conversation p {
  font-size: max(0.95rem, 1.25vw);
  line-height: 1.45;
  padding: 1.2em 1.35em;
  white-space: normal;
  box-shadow: 0 0.7vw 1.6vw #00180e12;
}
.pull-conversation p > span {
  display: block;
  font-size: 0.7em;
  font-weight: 600;
  margin-bottom: 0.55em;
  opacity: 0.66;
}
.pull-prompt {
  align-self: flex-end;
  background: var(--fresh);
  color: var(--forest);
  border-radius: 1.5em 1.5em 0.35em 1.5em;
  max-width: 87%;
}
.pull-reply {
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
  border-radius: 1.5em 1.5em 1.5em 0.35em;
  max-width: 94%;
}
.shortlist-card {
  background: #fcfbf5;
  color: var(--ink);
  border-radius: 1vw;
  padding: 1.6vw;
  transform: rotate(-2deg);
  margin: 0.4vw 0.5vw;
}
.shortlist-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: max(0.75rem, 0.9vw);
  margin-bottom: 1.3vw;
}
.small-maya {
  width: 2.3em;
  height: 2.3em;
  background: var(--forest);
  color: var(--fresh);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.role-line {
  display: flex;
  align-items: center;
  gap: 1em;
  justify-content: space-between;
}
.role-line strong {
  font-family: Manrope;
  font-size: max(1rem, 1.2vw);
}
.role-line p,
.role-reason,
.role-watch {
  font-size: max(0.78rem, 0.95vw);
}
.role-line p {
  color: var(--muted);
  margin-top: 0.4em;
}
.role-line b {
  border: 1px solid #b7ccaa;
  width: 3.4em;
  height: 3.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1.15;
}
.role-line small {
  font-size: 0.45em;
}
.role-reason {
  margin-top: 1.2em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
}
.role-watch {
  color: var(--muted);
  margin-top: 0.8em;
}
.resume-stack {
  display: grid;
}
.resume-version {
  padding: 2.3vw;
  background: var(--paper);
  color: var(--ink);
  border-radius: 1.2vw;
}
.resume-before {
  margin-bottom: 1.5vw;
}
.resume-label {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  font-size: var(--small);
  color: var(--muted);
  margin-bottom: 2.2vw;
}
.resume-label > span {
  border: 1px solid var(--line);
  padding: 0.1em 0.7em;
  border-radius: 2em;
}
.resume-version h3 {
  font-size: max(1.4rem, 2vw);
}
.large-score {
  font-size: 8vw;
  font-family: Manrope;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.065em;
  margin: 1.7vw 0;
}
.large-score > span {
  font-size: 0.4em;
  margin-left: 0.12em;
}
.resume-after .large-score {
  color: var(--forest);
}
.score-track {
  height: 0.5vw;
  min-height: 5px;
  border-radius: 1em;
  background: #dce3d7;
  overflow: hidden;
}
.score-track span {
  display: block;
  height: 100%;
  background: #95a489;
}
.resume-after .score-track span {
  background: var(--forest);
}
.resume-version > p {
  font-size: max(0.8rem, 1vw);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1em;
  margin-top: 1.4vw;
}
.resume-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5vw;
  padding-top: 1.5vw;
}
.resume-keywords span {
  font-size: max(0.75rem, 0.9vw);
  padding: 0.45em 0.65em;
  background: #e0e9d7;
  border-radius: 0.4em;
}
.resume-keywords .missing {
  background: #ebe0ca;
}
.resume-lines {
  display: flex;
  flex-direction: column;
  gap: 0.8vw;
  margin-top: 2.5vw;
}
.resume-lines i {
  height: 0.5vw;
  min-height: 5px;
  width: 90%;
  background: #dce3d7;
  border-radius: 1em;
}
.resume-lines i:nth-child(2) {
  width: 74%;
}
.resume-lines i:nth-child(3) {
  width: 82%;
}
.resume-comparison {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em;
  font-size: var(--small);
}
.resume-comparison strong {
  color: var(--fresh);
}
.interview-note {
  padding: 1.3vw 1.5vw 2vw;
}
.interview-note > span {
  font-size: var(--small);
  color: #b9cdb0;
}
.interview-note > p {
  margin-top: 1vw;
  font-family: Manrope;
  font-size: 2.5vw;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.interview-note strong {
  font-weight: 550;
  color: var(--fresh);
}
.reminder-note {
  display: flex;
  align-items: center;
  gap: 1.3vw;
  padding: 1.5vw;
  border: 1px solid #ffffff30;
  border-radius: 1.3vw;
}
.reminder-note > .reminder-icon {
  width: 2.2em;
  height: 2.2em;
  flex-shrink: 0;
  color: var(--fresh);
}
.reminder-note strong {
  font-size: max(1rem, 1.3vw);
  font-weight: 500;
}
.reminder-note p {
  font-size: var(--small);
  color: #b9cdb0;
  margin-top: 0.3em;
}
.decision-note {
  padding: 1vw 0.7vw;
  font-size: var(--small);
  color: #c7d8c0;
}
/* Enhanced only when the complete visual fits the viewport. */
.scroll-enhanced {
  display: grid;
  grid-template-columns: 45% 48%;
  column-gap: 7%;
}
.scroll-enhanced .story-chapter {
  display: contents;
}
.scroll-enhanced .story-copy {
  grid-column: 1;
  grid-row: var(--chapter-row);
  min-height: max(85svh, 48vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5vw 0;
}
.scroll-enhanced .story-visual {
  grid-column: 2;
  grid-row: 1 / 6;
  align-self: start;
  position: sticky;
  top: calc((100svh - var(--scene-height)) / 2);
  height: var(--scene-height);
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5vw);
  transition: none;
  pointer-events: none;
}
.scroll-enhanced .story-visual.is-active {
  transition:
    opacity 0.45s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.scroll-enhanced .scene-inner {
  width: 100%;
}
.scroll-enhanced .pull-prompt,
.scroll-enhanced .pull-reply {
  transform: translateY(1.2vw);
  opacity: 0;
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease;
}
.scroll-enhanced .is-active .pull-prompt,
.scroll-enhanced .is-active .pull-reply {
  transform: none;
  opacity: 1;
}
.scroll-enhanced .is-active .pull-prompt {
  transition-delay: 0.08s;
}
.scroll-enhanced .is-active .pull-reply {
  transition-delay: 0.24s;
}
.autoplay-enhanced .resume-version {
  grid-area: 1/1;
  margin: 0;
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.autoplay-enhanced .resume-after {
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5vw) rotate(2deg);
}
.autoplay-enhanced.show-after .resume-before {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1vw) rotate(-2deg);
}
.autoplay-enhanced.show-after .resume-after {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.motion-enabled:not(.scroll-enhanced) .pull-conversation p {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.motion-enabled:not(.scroll-enhanced) .is-revealed .pull-conversation p {
  opacity: 1;
  transform: none;
}
.motion-enabled:not(.scroll-enhanced) .is-revealed .pull-reply {
  transition-delay: 0.18s;
}
@media (max-width: 950px) {
  .hero {
    grid-template-columns: 57% 39%;
  }
  .hero h1 {
    font-size: 5.8vw;
  }
  .hero-phone .phone {
    --phone-w: 30vw;
  }
  .story-chapter {
    grid-template-columns: 1fr;
    gap: 7vw;
    padding-block: 10vw;
  }
  .story-copy h2 {
    font-size: 8vw;
  }
  .story-copy > p {
    font-size: max(1rem, 2.2vw);
    max-width: 48ch;
    margin-top: 4vw;
  }
  .story-details {
    margin-top: 4vw;
  }
  .scene-inner {
    padding: 5vw;
    gap: 4vw;
    border-radius: 3vw;
  }
  .pull-conversation {
    gap: 3vw;
  }
  .pull-conversation p {
    font-size: max(1rem, 2.2vw);
  }
  .shortlist-card {
    padding: 4vw;
    border-radius: 2vw;
    margin: 1vw;
  }
  .shortlist-heading {
    margin-bottom: 3vw;
    font-size: 1rem;
  }
  .role-line strong {
    font-size: max(1rem, 2.5vw);
  }
  .role-line p,
  .role-reason,
  .role-watch {
    font-size: max(0.85rem, 1.9vw);
  }
  .resume-version {
    padding: 5vw;
    border-radius: 2vw;
  }
  .resume-before {
    margin-bottom: 4vw;
  }
  .resume-label {
    margin-bottom: 5vw;
  }
  .resume-version h3 {
    font-size: max(1.4rem, 3.5vw);
  }
  .large-score {
    font-size: 18vw;
    margin: 4vw 0;
  }
  .resume-keywords {
    gap: 1vw;
    padding-top: 4vw;
  }
  .resume-version > p {
    margin-top: 4vw;
    font-size: max(0.85rem, 1.8vw);
  }
  .resume-lines {
    gap: 2vw;
    margin-top: 5vw;
  }
  .resume-lines i {
    height: 1vw;
  }
  .interview-note > p {
    font-size: 5.5vw;
    margin-top: 3vw;
  }
  .reminder-note {
    padding: 4vw;
    gap: 3vw;
    border-radius: 2vw;
  }
  .reminder-note > .reminder-icon {
    width: 2em;
    height: 2em;
  }
  .reminder-note strong {
    font-size: max(1rem, 2.5vw);
  }
}
@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 12vw;
    padding-block: 10vw 12vw;
  }
  .hero h1 {
    font-size: 10.1vw;
  }
  .hero-phone {
    padding: 4vw 0;
  }
  .hero-phone::before {
    inset: 8% 0;
  }
  .hero-phone .phone {
    --phone-w: 65vw;
  }
  .story-copy h2 {
    font-size: 10.8vw;
  }
  .story-copy > p {
    margin-top: 6vw;
  }
  .story-chapter {
    padding-block: 14vw;
    gap: 9vw;
  }
  .story-details {
    margin-top: 6vw;
  }
  .scene-inner {
    padding: 4vw;
    gap: 5vw;
  }
  .pull-conversation p {
    padding: 1em;
  }
  .pull-reply {
    max-width: 100%;
  }
  .shortlist-heading {
    font-size: 0.8rem;
  }
  .role-line {
    gap: 0.6em;
  }
  .role-line b {
    font-size: 0.9rem;
  }
  .interview-note > p {
    font-size: 7vw;
  }
  .resume-comparison {
    font-size: 0.8rem;
  }
  .resume-keywords {
    gap: 1.6vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-visual,
  .pull-conversation p,
  .resume-version {
    transition: none !important;
    transform: none !important;
  }
}

.hero-phone .bubble {
  white-space: normal;
}

/* Calm, text-only actions with balanced spacing in every placement. */
.button,
.header .button,
.closing .button {
  justify-content: center;
  gap: 0;
  padding: 0.9em 1.65em;
  min-height: 48px;
  line-height: 1.2;
  font-weight: 600;
}

/* Maya: headline perch, circular profile avatar, and a shared scroll companion. */
.hero-phone {
  isolation: isolate;
}
.hero-phone::before {
  z-index: -2;
}
.hero-phone .phone {
  z-index: 2;
}
.hero-bird {
  position: absolute;
  width: 1.4em;
  max-width: none;
  height: auto;
  left: 0.01em;
  bottom: calc(100% - 0.28em);
  z-index: 3;
  pointer-events: none;
  transform-origin: 50% 90%;
}
.bird-avatar,
.message-card-head .bird-avatar {
  background: #397052;
  overflow: hidden;
  border-radius: 50%;
}
.bird-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.small-maya.bird-avatar {
  width: 2.7em;
  height: 2.7em;
}
.bird-calendar {
  width: 6.4vw;
  flex-shrink: 0;
  position: relative;
  padding-top: 3.5vw;
}
.perched-bird {
  position: absolute;
  width: 8vw;
  max-width: none;
  height: auto;
  top: -1vw;
  left: -1vw;
  transform-origin: 45% 85%;
}
.calendar-page {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--paper);
  color: var(--forest);
  border-radius: 0.6vw;
  overflow: hidden;
}
.calendar-page > span {
  display: block;
  background: var(--forest);
  color: var(--paper);
  font-size: max(0.6rem, 0.7vw);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.35em;
}
.calendar-page svg {
  width: 3.7vw;
  height: 3.7vw;
  margin: 0.2vw auto;
}
.scene-followup .reminder-note {
  padding-top: 2.5vw;
}
.hero-copy.bird-arrived .hero-bird {
  animation: bird-land 850ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.scene-followup.bird-arrived .perched-bird {
  animation: bird-nudge 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes bird-land {
  from {
    opacity: 0;
    transform: translate(1.2vw, -1.5vw) rotate(5deg);
  }
  70% {
    opacity: 1;
    transform: translate(0, 0.18vw) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bird-nudge {
  0% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-0.6vw);
  }
  70% {
    transform: translateY(0.08vw);
  }
  100% {
    transform: none;
  }
}
@media (max-width: 950px) {
  .bird-calendar {
    width: 12vw;
    padding-top: 6.8vw;
  }
  .perched-bird {
    width: 15vw;
    top: -1.5vw;
    left: -1.7vw;
  }
  .calendar-page {
    border-radius: 1vw;
  }
  .calendar-page svg {
    width: 7vw;
    height: 7vw;
    margin: 0.5vw auto;
  }
  .scene-followup .reminder-note {
    padding-top: 4vw;
  }
}
@media (max-width: 600px) {
  .hero-phone .phone {
    --phone-w: 61vw;
    transform: translateX(-3vw);
  }

  .hero-phone .phone {
    transform: none;
  }
  .hero-phone::before {
    inset: 8% 1%;
  }
  .bird-calendar {
    width: 17vw;
    padding-top: 9vw;
  }
  .perched-bird {
    width: 21vw;
    top: -2.3vw;
    left: -2.2vw;
  }
  .calendar-page svg {
    width: 9vw;
    height: 9vw;
  }
  .calendar-page > span {
    font-size: 0.6rem;
  }
  .scene-followup .reminder-note {
    gap: 4vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bird,
  .bird-avatar img,
  .perched-bird {
    animation: none !important;
  }
}

/* One-colour swoop stays part of the Sign in hit area. */
.header .sign-in {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.flight-bird {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  flex-shrink: 0;
}
.bird-frame {
  position: absolute;
  inset: 0;
  background-image: url("assets/bird-flight-generated.png");
  background-size: 300% 200%;
  background-repeat: no-repeat;
  visibility: hidden;
}
/* Align the eyes/body across generated cells; preserve each drawn wing pose. */
.frame-0 {
  background-position: 0 0;
  transform: translate(-1.4%, -0.4%);
}
.frame-1 {
  background-position: 50% 0;
  transform: translate(2.9%, -0.4%);
}
.frame-2 {
  background-position: 100% 0;
  transform: translate(1.2%, -0.4%);
}
.frame-3 {
  background-position: 0 100%;
  transform: translate(-1.4%, 19.9%);
}
.frame-4 {
  background-position: 50% 100%;
  transform: translate(1.6%, 18.4%);
}
.frame-5 {
  background-position: 100% 100%;
  transform: translate(1.2%, 13.3%);
}
[data-frame="0"] > .frame-0,
[data-frame="1"] > .frame-1,
[data-frame="2"] > .frame-2,
[data-frame="3"] > .frame-3,
[data-frame="4"] > .frame-4,
[data-frame="5"] > .frame-5 {
  visibility: visible;
}

.interview-note {
  position: relative;
}
.scroll-bird {
  position: absolute;
  width: 13vw;
  aspect-ratio: 1;
  right: -0.5vw;
  top: -1vw;
  pointer-events: none;
}

@media (max-width: 950px) {
  .interview-note {
  }
  .scroll-bird {
    width: 23vw;
    right: 0;
    top: -3vw;
  }
}
@media (max-width: 600px) {
  .header nav {
    gap: 3vw;
  }
  .header .sign-in {
    gap: 0.2em;
  }
  .interview-note {
  }
  .scroll-bird {
    width: 25vw;
    right: -2vw;
    top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flight-bird > .bird-frame {
    visibility: hidden;
  }
  .flight-bird > .frame-0 {
    visibility: visible;
  }
}

/* Headline bird belongs to the word, so its perch follows the type at any size. */
.hero h1 > .maya-name {
  position: relative;
  display: inline-block;
  color: inherit;
}
.hero {
  align-items: end;
  padding-bottom: 0;
}
.hero-copy {
  padding-bottom: 5vw;
}
.hero-phone {
  --hero-phone-width: 23vw;
  padding: 0;
}
.hero-phone::before {
  display: none;
}
.hero-phone .phone {
  --phone-w: var(--hero-phone-width);
  box-shadow: none;
  filter: none;
  transform: none;
}
.phone-crop {
  width: var(--hero-phone-width);
  height: calc(var(--hero-phone-width) * 1.47);
  overflow: hidden;
}
.hero-phone .phone-input,
.hero-phone .home-bar {
  display: none;
}

/* A single bird spans the whole five-chapter story, independent of scene swaps. */
.story-flight {
  position: sticky;
  top: 1vw;
  height: 0;
  z-index: 4;
  pointer-events: none;
}
.story-flight .scroll-bird {
  position: absolute;
  width: 9vw;
  aspect-ratio: 1;
  right: 0;
  top: 0;
}
.scroll-enhanced .story-flight {
  grid-column: 2;
  grid-row: 1 / 6;
  align-self: start;
  height: var(--scene-height);
  top: max(1vw, calc((100svh - var(--scene-height)) / 2 - 9vw));
}
.frame-1 {
  clip-path: inset(0 3% 0 0);
}
@media (max-width: 950px) {
  .hero-phone {
    --hero-phone-width: 30vw;
  }
  .hero-copy {
    padding-bottom: 4vw;
  }
  .story-flight {
    top: 0;
    height: 16vw;
    margin-top: -3vw;
    background: var(--forest);
  }
  .story-flight .scroll-bird {
    width: 14vw;
    top: 0;
    right: 0;
  }
}
@media (max-width: 600px) {
  .hero {
    padding-top: 19vw;
    gap: 9vw;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .hero-phone {
    --hero-phone-width: 72vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-flight {
    position: relative;
  }
}

/* Center the bird and card together, reserving a clear flight lane above every scene. */
.scroll-enhanced {
  padding-top: 12vw;
}
.scroll-enhanced .story-visual {
  top: calc((100svh - var(--scene-height) + 9vw) / 2);
}
.scroll-enhanced .story-flight {
  top: calc((100svh - var(--scene-height) + 9vw) / 2);
  transform: translateY(-9vw);
}
.scroll-story:not(.scroll-enhanced) .story-flight {
  top: 0;
  height: 10vw;
  background: var(--forest);
}
@media (max-width: 950px) {
  .scroll-story:not(.scroll-enhanced) .story-flight {
    height: 16vw;
  }
}
@media (max-width: 600px) {
  .scroll-story:not(.scroll-enhanced) .story-flight {
    height: 22vw;
  }
  .story-flight .scroll-bird {
    width: 20vw;
  }
}

/* Baseline landing, one larger story mascot, and illustrated setup. */
.hero-landing {
  position: absolute;
  left: calc(100% + 0.05em);
  bottom: 0.14em;
  width: 1.35em;
  height: 1em;
  pointer-events: none;
}
.hero-landing .hero-bird {
  width: 100%;
  left: 0;
  bottom: -0.075em;
  animation: none;
}
.hero-landing .hero-flier {
  position: absolute;
  bottom: -0.25em;
  display: none;
}
.hero-landing.awaiting-flight .hero-bird,
.hero-landing.is-flying .hero-bird {
  visibility: hidden;
}
.hero-landing.is-flying .hero-flier {
  display: block;
}
.hero-copy.bird-arrived .hero-bird {
  animation: none;
}
.bird-calendar {
  padding-top: 0;
}
.story-flight .scroll-bird {
  width: 14vw;
}
.scroll-enhanced {
  padding-top: 17vw;
}
.scroll-enhanced .story-visual,
.scroll-enhanced .story-flight {
  top: calc((100svh - var(--scene-height) + 14vw) / 2);
}
.scroll-enhanced .story-flight {
  transform: translateY(-14vw);
}
.scroll-story:not(.scroll-enhanced) .story-flight {
  height: 14vw;
}
.setup-art {
  width: 15vw;
  height: 15vw;
  object-fit: contain;
  margin: 1vw 0 2vw;
}
.button {
  position: relative;
  overflow: visible;
}
.button-peek {
  position: absolute;
  bottom: calc(100% - 0.13em);
  right: 0.65em;
  width: 2.7em;
  height: 1.85em;
  overflow: hidden;
  pointer-events: none;
}
.button-peek img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(100%) rotate(8deg);
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.button:focus-visible .button-peek img {
  transform: translateY(-0.18em) rotate(-5deg);
}
@media (hover: hover) {
  .button:hover .button-peek img {
    transform: translateY(-0.18em) rotate(-5deg);
  }
}
.header .button-peek {
  width: 2.2em;
  height: 1.3em;
}
html.lenis,
html.lenis body {
  scroll-behavior: auto;
}
@media (max-width: 950px) {
  .story-flight .scroll-bird {
    width: 18vw;
  }
  .scroll-story:not(.scroll-enhanced) .story-flight {
    height: 18vw;
  }
}
@media (max-width: 600px) {
  .hero {
    padding-top: 10vw;
  }
  .story-flight .scroll-bird {
    width: 24vw;
  }
  .scroll-story:not(.scroll-enhanced) .story-flight {
    height: 24vw;
  }
  .setup-art {
    width: 36vw;
    height: 36vw;
    margin: 0 0 4vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button-peek img {
    transition: none;
  }
}
@media (max-width: 600px) {
  .setup-steps > li {
    grid-template-columns: 30% 1fr;
    gap: 2vw 5vw;
  }
  .setup-art {
    grid-row: 1 / 3;
    width: 100%;
    height: auto;
    margin: 0;
    align-self: center;
  }
  .setup-steps p {
    grid-column: 2;
  }
}

/* A single generated sequence includes the final resting frame: no asset swap. */
.hero-landing {
  width: 1.22em;
  height: 1.16em;
}
.landing-sprite {
  position: absolute;
  width: 100%;
  aspect-ratio: 470 / 443.5;
  bottom: -0.073em;
  background: url("assets/bird-landing-coherent.png") no-repeat;
  background-size: 377.447% 200%;
  background-position: 99.356% 100%;
  translate: 0 6.5%;
}
.awaiting-flight .landing-sprite {
  visibility: hidden;
}
.landing-sprite[data-pose="0"] {
  background-position: 0.514% 0;
  translate: 0 0;
}
.landing-sprite[data-pose="1"] {
  background-position: 33.535% 0;
  translate: 0 0;
}
.landing-sprite[data-pose="2"] {
  background-position: 66.641% 0;
  translate: 0 0;
}
.landing-sprite[data-pose="3"] {
  background-position: 99.356% 0;
  translate: 0 0;
}
.landing-sprite[data-pose="4"] {
  background-position: 0.514% 100%;
}
.landing-sprite[data-pose="5"] {
  background-position: 33.535% 100%;
}
.landing-sprite[data-pose="6"] {
  background-position: 66.641% 100%;
}
.landing-sprite[data-pose="7"] {
  background-position: 99.356% 100%;
}

/* Double-size flight gets its own space above the copy, beside the pinned card. */
.story-flight .scroll-bird {
  width: 28vw;
}
.scroll-enhanced {
  padding-top: 3vw;
}
.scroll-enhanced .story-flight {
  grid-column: 1;
  height: 28vw;
  top: 0;
  transform: none;
  background: var(--forest);
}
.scroll-enhanced .story-flight .scroll-bird {
  right: auto;
  left: 5vw;
}
.scroll-enhanced .story-visual {
  top: calc((100svh - var(--scene-height)) / 2);
}
.scroll-enhanced .story-copy {
  min-height: max(100svh, 60vw);
  padding-top: 28vw;
}
.scroll-story:not(.scroll-enhanced) .story-flight {
  height: 28vw;
}
@media (max-width: 950px) {
  .story-flight .scroll-bird {
    width: 36vw;
  }
  .scroll-story:not(.scroll-enhanced) .story-flight {
    height: 36vw;
  }
}
@media (max-width: 600px) {
  .story-flight .scroll-bird {
    width: 48vw;
  }
  .scroll-story:not(.scroll-enhanced) .story-flight {
    height: 48vw;
  }
}
.landing-sprite {
  clip-path: inset(0 0 0 10%);
}

/* Content and bird occupy separate columns/rows. No masking layer. */
.story-flight,
.scroll-enhanced .story-flight,
.scroll-story:not(.scroll-enhanced) .story-flight {
  background: transparent;
}
.scroll-enhanced .story-track {
  grid-column: 1 / -1;
  min-height: 100svh;
  pointer-events: none;
}
.scroll-enhanced .story-copy {
  grid-column: 1;
  grid-row: 1 / 6;
  align-self: start;
  position: sticky;
  top: calc((100svh - var(--scene-height)) / 2);
  height: var(--scene-height);
  min-height: 0;
  padding: 28vw 0 0;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}
.scroll-enhanced .story-copy.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.scroll-enhanced .story-flight {
  top: calc((100svh - var(--scene-height)) / 2);
  height: var(--scene-height);
}
.scroll-story:not(.scroll-enhanced) {
  display: grid;
  grid-template-columns: 32% 62%;
  column-gap: 6%;
}
.scroll-story:not(.scroll-enhanced) .story-flight {
  grid-column: 1;
  grid-row: 1 / 6;
  align-self: start;
  top: 8svh;
  height: 28vw;
  margin: 0;
}
.scroll-story:not(.scroll-enhanced) .story-flight .scroll-bird {
  width: 28vw;
  right: 0;
}
.scroll-story:not(.scroll-enhanced) .story-chapter {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 4vw;
  align-items: stretch;
}
@media (max-width: 950px) {
  .scroll-story:not(.scroll-enhanced) {
    grid-template-columns: 30% 64%;
  }
  .scroll-story:not(.scroll-enhanced) .story-flight,
  .scroll-story:not(.scroll-enhanced) .story-flight .scroll-bird {
    width: 27vw;
    height: 27vw;
  }
  .story-copy h2 {
    font-size: 6vw;
  }
}
@media (max-width: 600px) {
  .scroll-story:not(.scroll-enhanced) {
    grid-template-columns: 26% 69%;
    column-gap: 5%;
  }
  .scroll-story:not(.scroll-enhanced) .story-flight,
  .scroll-story:not(.scroll-enhanced) .story-flight .scroll-bird {
    width: 24vw;
    height: 24vw;
  }
  .story-copy h2 {
    font-size: 7.5vw;
  }
  .scene-inner {
    padding: 3vw;
  }
  .pull-conversation p {
    padding: 1em;
    max-width: 100%;
  }
  .reminder-note {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-story:not(.scroll-enhanced) .story-flight {
    position: relative;
    top: 0;
  }
}

/* A shared entrance rhythm for every authored heading. No clipping masks. */
.heading-reveal {
  opacity: 0;
  transform: translateY(0.35em);
  transition:
    opacity 650ms ease,
    transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
}
.heading-reveal.heading-visible {
  opacity: 1;
  transform: none;
}
.setup-steps > li:nth-child(2) .heading-reveal {
  transition-delay: 80ms;
}
.setup-steps > li:nth-child(3) .heading-reveal {
  transition-delay: 160ms;
}
/* Sticky headings replay with each active scene, including reverse scrolling. */
.scroll-enhanced .heading-reveal {
  opacity: 1;
  transform: none;
  transition: none;
  animation: none;
}
.scroll-enhanced .story-copy.is-active h2.heading-visible,
.scroll-enhanced .story-visual.is-active h3.heading-visible {
  animation: heading-arrive 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.scroll-enhanced .autoplay-enhanced .resume-after h3 {
  animation: none;
}
.scroll-enhanced .is-active .autoplay-enhanced.show-after .resume-after h3 {
  animation: heading-arrive 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
[data-scene-transcript] .heading-reveal {
  opacity: 1;
  transform: none;
  transition: none;
  animation: none;
}
@keyframes heading-arrive {
  from {
    opacity: 0;
    transform: translateY(0.35em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .setup-steps > li .heading-reveal {
    transition-delay: 0ms;
  }
}
@media (prefers-reduced-motion: reduce) {
  .heading-reveal,
  .scroll-enhanced .story-copy.is-active h2.heading-visible,
  .scroll-enhanced .story-visual.is-active h3,
  .scroll-enhanced .is-active .autoplay-enhanced.show-after .resume-after h3 {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* A generous peek, layered above nearby copy and seated on the pill edge. */
.button:hover,
.button:focus-visible {
  z-index: 6;
}
.button-peek {
  width: 4.2em;
  height: 2.65em;
  right: 0.15em;
  bottom: calc(100% - 0.14em);
  z-index: 1;
}
.button > span:not(.button-peek) {
  position: relative;
  z-index: 2;
}
.button:focus-visible .button-peek img {
  transform: translateY(-0.3em) rotate(-5deg);
}
@media (hover: hover) {
  .button:hover .button-peek img {
    transform: translateY(-0.3em) rotate(-5deg);
  }
}
.header .button-peek {
  width: 3.8em;
  height: 2.05em;
}
.hero-action {
  position: relative;
  z-index: 5;
}

/* Flight, landing, blink, and fidget all use one registered character sheet. */
.landing-sprite {
  aspect-ratio: 1;
  bottom: -0.02em;
  background-image: url("assets/bird-flight-idle.png");
  background-size: 400% 300%;
  clip-path: none;
}
.landing-sprite[data-pose="0"] {
  background-position: 0 0;
  translate: -4% 0;
}
.landing-sprite[data-pose="1"] {
  background-position: 33.333% 0;
  translate: -3% 0;
}
.landing-sprite[data-pose="2"] {
  background-position: 66.667% 0;
  translate: -1.5% 0;
}
.landing-sprite[data-pose="3"] {
  background-position: 100% 0;
  translate: 0 0;
}
.landing-sprite[data-pose="4"] {
  background-position: 0 50%;
  translate: -4% 0;
}
.landing-sprite[data-pose="5"] {
  background-position: 33.333% 50%;
  translate: -3% 0;
}
.landing-sprite[data-pose="6"] {
  background-position: 66.667% 50%;
  translate: -1.5% 0;
}
.landing-sprite[data-pose="7"] {
  background-position: 100% 50%;
  translate: 0 0;
}
.landing-sprite[data-pose="8"] {
  background-position: 0 100%;
  translate: -4% 11.6%;
}
.landing-sprite[data-pose="9"] {
  background-position: 33.333% 100%;
  translate: -3% 11.6%;
}
.landing-sprite[data-pose="10"] {
  background-position: 66.667% 100%;
  translate: -1.5% 11.6%;
}
.landing-sprite[data-pose="11"] {
  background-position: 100% 100%;
  translate: 0 11.6%;
}
/* Keep neighboring-cell antialiasing out of the sprite window. */
.landing-sprite {
  clip-path: inset(3% 0 0 3%);
}

/* The pill face occludes the mascot; only the label sits above this surface. */
.button {
  isolation: isolate;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  pointer-events: none;
  z-index: 2;
}
.button > span:not(.button-peek) {
  z-index: 3;
}
.button-peek {
  bottom: calc(100% - 0.6em);
  height: 3.11em;
  z-index: 1;
}
.header .button-peek {
  height: 2.51em;
}

/* Section choreography includes body text, cards, FAQ rows, artwork, and actions. */
.reveal-body.heading-reveal {
  transform: translateY(1.35rem);
  transition:
    opacity 650ms ease var(--reveal-delay, 100ms),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 100ms);
}
.reveal-body.heading-visible {
  transform: none;
}
.hero-action,
.closing-bottom > .button {
  --reveal-delay: 220ms;
}
.setup-steps p {
  --reveal-delay: 180ms;
}
.faq-list details:nth-child(2n) {
  --reveal-delay: 140ms;
}
.scene-inner > :nth-child(2) {
  --reveal-delay: 130ms;
}
.scene-inner > :nth-child(3) {
  --reveal-delay: 220ms;
}
.scroll-enhanced .reveal-body {
  transform: none;
  transition: none;
  animation: none;
}
.scroll-enhanced .story-copy.is-active > p.heading-visible,
.scroll-enhanced .story-visual.is-active .scene-inner > .heading-visible {
  animation: section-content-arrive 800ms cubic-bezier(0.22, 1, 0.36, 1)
    var(--reveal-delay, 140ms) both;
}
/* A focused link or expanded FAQ must never be hidden during its entrance. */
.heading-reveal:focus-within,
.heading-reveal[open] {
  opacity: 1;
  transform: none;
}
[data-scene-transcript] .heading-reveal {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}
@keyframes section-content-arrive {
  from {
    opacity: 0;
    transform: translateY(1.35rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-body.heading-reveal,
  .scroll-enhanced .story-copy.is-active > p.heading-visible,
  .scroll-enhanced .story-visual.is-active .scene-inner > .heading-visible {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* A single role connects the hero to every stage of the search. */
.phone-job {
  background: #eef2e9;
  border: 1px solid #d7dfd0;
  border-radius: 1em;
  padding: 1em;
  font-size: calc(18 * var(--s));
  line-height: 1.3;
  width: 94%;
  align-self: flex-start;
}
.phone-job > span { display: block; color: #526451; font-size: .8em; margin-bottom: .7em; }
.phone-job > strong { display: block; font-size: 1.4em; letter-spacing: -.04em; }
.phone-job > b { display: block; color: var(--forest); margin-top: .6em; }
.phone-job > p { margin-top: .7em; font-size: .9em; }
.hero-phone #chat-messages { gap: calc(12 * var(--s)); }
.hero-phone .bubble { font-size: calc(19 * var(--s)); }
.phone-crop { height: calc(var(--hero-phone-width) * 1.63); }
.testimonial { background: var(--paper); display: grid; grid-template-columns: 15% 78%; gap: 7%; padding-block: 8vw; }
.quote-mark { font-family: Georgia, serif; color: #729061; font-size: 20vw; line-height: .9; }
.testimonial figure { margin: 0; }
.testimonial blockquote { font-family: Manrope, sans-serif; font-size: 3.5vw; font-weight: 500; line-height: 1.25; letter-spacing: -.045em; margin: 0; max-width: 27ch; }
.testimonial figcaption { display: flex; align-items: center; gap: 1em; margin-top: 2.5vw; font-size: max(1rem, 1.15vw); color: var(--muted); }
.testimonial figcaption strong { color: var(--ink); }
.quote-avatar { display: grid; place-items: center; width: 3em; height: 3em; border-radius: 50%; background: var(--sage); color: var(--forest); font-family: Manrope; font-weight: 600; }
.maya-modal { margin: auto; border: 0; border-radius: 2rem; background: var(--paper); color: var(--ink); padding: 2.5rem; width: min(92vw, 32rem); max-height: 92svh; overflow-y: auto; text-align: center; box-shadow: 0 2rem 7rem #001c1645; }
.maya-modal::backdrop { background: #092b23a8; backdrop-filter: blur(7px); }
.maya-modal[open] { animation: modal-arrive 300ms cubic-bezier(.22,1,.36,1); }
.modal-close { position: absolute; top: .8rem; right: .8rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--forest); font: 2rem/1 Arial; cursor: pointer; }
.modal-close:hover { background: var(--sage); }
.modal-avatar { display: block; width: 3.5rem; height: 3.5rem; border-radius: 50%; margin: 0 auto 1rem; }
.maya-modal h2 { font: 600 2.35rem/1.08 Manrope, sans-serif; letter-spacing: -.06em; }
.maya-modal > p { font-size: 1rem; line-height: 1.4; margin-top: 1rem; }
.qr-frame { background: white; border-radius: 1.2rem; padding: .7rem; margin: 1.5rem auto 1rem; width: min(100%, 15rem); }
.qr-frame img { display: block; width: 100%; height: auto; }
.maya-modal .modal-mobile-note { color: var(--muted); font-size: .9rem; }
.maya-modal .modal-continue { font-size: 1rem; padding: 1em 1.5em; margin-top: .7rem; }
.maya-modal .modal-footnote { font-size: .8rem; color: var(--muted); }
.maya-modal-open { overflow: hidden; }
@keyframes modal-arrive { from { opacity: 0; transform: translateY(1rem) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 950px) {
  .scroll-story:not(.scroll-enhanced) { grid-template-columns: 100%; column-gap: 0; padding-block: 10vw; }
  .scroll-story:not(.scroll-enhanced) .story-flight { grid-column: 1; grid-row: 1 / 6; width: 100%; height: 0; top: 2svh; }
  .scroll-story:not(.scroll-enhanced) .story-flight .scroll-bird { width: 27vw; height: 27vw; right: -2vw; top: 0; }
  .scroll-story:not(.scroll-enhanced) .story-chapter { grid-column: 1; padding-block: 7vw 12vw; gap: 5vw; }
  .story-copy { padding-right: 28vw; }
  .story-copy h2 { font-size: 7.4vw; }
  .story-copy > p { max-width: 34ch; font-size: max(1.1rem, 2.4vw); }
  .scene-inner { padding: 4vw; gap: 4vw; }
  .pull-conversation p { font-size: max(1rem, 2.4vw); }
  .testimonial blockquote { font-size: 4.6vw; }
}
@media (max-width: 600px) {
  .hero { padding-top: 13vw; padding-bottom: 0; gap: 10vw; }
  .hero h1 { font-size: 12vw; line-height: 1.02; letter-spacing: -.065em; }
  .hero-description { font-size: 5.1vw; line-height: 1.45; margin-top: 7vw; max-width: 31ch; }
  .hero-action { margin-top: 7vw; }
  .hero-action .button { font-size: 5vw; padding: 1em 1.65em; }
  .hero-phone { --hero-phone-width: 84vw; }
  .scroll-story:not(.scroll-enhanced) .story-flight .scroll-bird { width: 32vw; height: 32vw; right: -3vw; }
  .story-copy { padding-right: 27vw; }
  .story-copy h2 { font-size: 9vw; }
  .story-copy > p { font-size: 4.3vw; line-height: 1.5; margin-top: 5vw; }
  .scroll-story:not(.scroll-enhanced) .story-chapter { gap: 8vw; padding-block: 10vw 16vw; }
  .scene-inner { padding: 5vw; border-radius: 6vw; gap: 5vw; }
  .shortlist-card { padding: 5vw; border-radius: 3vw; }
  .pull-conversation { gap: 4vw; }
  .pull-conversation p { font-size: 4.3vw; }
  .resume-version { padding: 5vw; }
  .reminder-note { flex-direction: row; align-items: center; }
  .testimonial { grid-template-columns: 100%; gap: 0; padding-block: 15vw; }
  .quote-mark { font-size: 25vw; height: 15vw; }
  .testimonial blockquote { font-size: 7.6vw; }
  .testimonial figcaption { margin-top: 7vw; font-size: 4vw; }
  .maya-modal { padding: 1.6rem 1.25rem; border-radius: 1.5rem; }
  .maya-modal h2 { font-size: 8.5vw; }
  .qr-frame { width: 46vw; margin-block: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .maya-modal[open] { animation: none; }
}
