:root {
  --bg: #f4efe6;
  --paper: #fffaf3;
  --paper-strong: #fffdfa;
  --ink: #172334;
  --ink-soft: #596579;
  --navy: #1d314c;
  --blue: #5d88d9;
  --blue-soft: #dfe9fb;
  --teal: #73cbbd;
  --mint: #dff2ea;
  --orange: #e3784f;
  --orange-soft: #ffe8dd;
  --orange-deep: #c95f39;
  --line: rgba(23, 35, 52, 0.11);
  --shadow-lg: 0 40px 120px rgba(24, 34, 49, 0.18);
  --shadow-md: 0 24px 70px rgba(24, 34, 49, 0.1);
  --button-radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(93, 136, 217, 0.17), transparent 26rem),
    radial-gradient(circle at 84% 20%, rgba(227, 120, 79, 0.14), transparent 24rem),
    linear-gradient(180deg, #f7f2e9 0%, #f0e9de 100%);
  font-family: "Manrope", sans-serif;
}

a,
button,
input {
  font: inherit;
}

button {
  border: 0;
}

.page-glow {
  position: fixed;
  z-index: 0;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.48;
}

.page-glow-left {
  top: -8rem;
  left: -8rem;
  background: rgba(115, 203, 189, 0.26);
}

.page-glow-right {
  top: 22rem;
  right: -10rem;
  background: rgba(93, 136, 217, 0.18);
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1360px;
  margin: 0 auto;
  padding: 1.35rem 1.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
  font-family: "Archivo", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.top-nav {
  display: inline-flex;
  gap: 1rem;
  padding: 0.48rem 0.82rem;
  border: 1px solid rgba(23, 35, 52, 0.08);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.8);
  backdrop-filter: blur(14px);
}

.top-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
}

main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.6rem 5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(22rem, 0.9fr) minmax(38rem, 1fr);
  gap: clamp(2.2rem, 4vw, 4.5rem);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 2.1rem 0 3.6rem;
}

.eyebrow,
.note-label,
.mini-label,
.project-pill,
.queue-label {
  margin: 0;
  color: var(--orange-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.contact-section h2,
.walkthrough-copy h3,
.project-top h3,
.home-copy h2,
.phone-panel h3,
.about-cards h3 {
  font-family: "Archivo", sans-serif;
  letter-spacing: -0.04em;
}

.hero-copy h1,
.section-heading h2,
.contact-section h2 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(2.55rem, 4.15vw, 4.6rem);
  line-height: 1.03;
}

.hero-copy h1 span {
  display: block;
  color: var(--blue);
}

.hero-text,
.section-copy,
.project-card p,
.walkthrough-copy p,
.contact-section p,
.search-notes li,
.stage-note p {
  color: var(--ink-soft);
  line-height: 1.72;
  font-size: 1.04rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.55rem;
}

.primary-link,
.ghost-link,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.08rem;
  border-radius: var(--button-radius);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-link,
.primary-button {
  color: white;
  background: #254d8d;
  box-shadow: 0 12px 24px rgba(37, 77, 141, 0.22);
}

.ghost-link,
.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 35, 52, 0.1);
}

.contact-placeholder {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.88rem 1.12rem;
  border: 1px dashed rgba(23, 35, 52, 0.18);
  border-radius: var(--button-radius);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.56);
  font-weight: 700;
}

.primary-link:hover,
.ghost-link:hover,
.primary-button:hover,
.secondary-button:hover,
.app-icon:hover,
.person-pill:hover,
.split-item:hover,
.chip:hover,
.back-button:hover,
.source-chip:hover {
  transform: translateY(-2px);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-metrics li {
  min-width: 11rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(23, 35, 52, 0.08);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.72);
  box-shadow: 0 12px 24px rgba(24, 34, 49, 0.06);
}

.hero-metrics strong {
  display: block;
  font-size: 1.05rem;
}

.hero-metrics span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.hero-stage {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.phone-stack {
  position: relative;
  display: grid;
  grid-template-columns: minmax(20rem, 23rem) minmax(14rem, 17rem);
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 2vw, 2rem);
  width: min(100%, 42rem);
}

.stage-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(93, 136, 217, 0.16);
}

.stage-orbit-a {
  top: 8%;
  left: 14%;
  width: 68%;
  height: 68%;
  animation: spin 18s linear infinite;
}

.stage-orbit-b {
  right: 7%;
  bottom: 8%;
  width: 58%;
  height: 58%;
  border-color: rgba(201, 95, 57, 0.14);
  animation: spin-reverse 22s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.stage-note-group {
  position: relative;
  z-index: 4;
  display: grid;
  width: 100%;
  gap: 0.8rem;
  pointer-events: auto;
  transform: none;
}

.stage-note {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(23, 35, 52, 0.08);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.78);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(44px);
  animation: note-rise 560ms cubic-bezier(0.2, 0.9, 0.2, 1) 0.64s forwards;
}

.stage-note p {
  margin: 0.55rem 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.note-right {
  animation-delay: 0.8s;
}

@keyframes note-rise {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-shell {
  position: relative;
  justify-self: center;
  width: clamp(20rem, 30vw, 23rem);
  aspect-ratio: 390 / 760;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(160deg, #15283e 0%, #0f1b2a 36%, #213a57 100%);
  box-shadow: 0 38px 82px rgba(20, 33, 52, 0.24);
  transform-style: preserve-3d;
  transform-origin: center center;
  opacity: 0;
  animation: phone-enter 820ms cubic-bezier(0.22, 0.8, 0.2, 1) both;
}

@keyframes phone-enter {
  0% {
    opacity: 0;
    transform: perspective(1300px) translateY(38px) rotateY(-9deg) rotateX(5deg) scale(0.965);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: perspective(1300px) translateY(0) rotateY(0deg) rotateX(0deg) scale(1);
  }
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 3;
  width: 104px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: rgba(9, 15, 24, 0.92);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 10%, rgba(93, 136, 217, 0.26), transparent 18rem),
    linear-gradient(180deg, #fffaf3 0%, #f7f1e7 100%);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.42rem 1.28rem 0.1rem;
  color: rgba(23, 35, 52, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.phone-view {
  display: none;
  position: absolute;
  inset: 3.5rem 0 0;
  overflow-y: auto;
  padding: 0 1.08rem 1.08rem;
}

.phone-view.active {
  display: block;
  animation: screen-up 220ms ease;
}

@keyframes screen-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-home {
  padding: 0.8rem 0.9rem 1rem;
}

.home-gradient {
  position: relative;
  height: 6.9rem;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(29, 49, 76, 0.98), rgba(93, 136, 217, 0.84));
}

.home-copy {
  position: absolute;
  top: 1.55rem;
  left: 1.65rem;
  right: 1.65rem;
  z-index: 1;
  padding: 0;
  color: white;
}

.home-copy p {
  margin: 0;
  opacity: 0.82;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-copy h2 {
  margin: 0.28rem 0 0;
  font-size: 1.42rem;
  line-height: 1.05;
}

.app-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 0.95rem;
  margin-top: 1.25rem;
  padding: 0 0.25rem 4rem;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  min-height: 5.45rem;
  padding: 0.12rem 0.05rem;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  text-align: center;
}

.app-icon strong {
  max-width: 6.4rem;
  font-size: 0.76rem;
  line-height: 1.22;
  color: var(--ink);
  font-weight: 800;
}

.app-icon-muted {
  opacity: 0.94;
}

.app-badge {
  display: grid;
  place-items: center;
  position: relative;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 16px 26px rgba(22, 32, 49, 0.13);
}

.app-badge-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.app-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-family: "Archivo", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
}

.app-glyph-splittap {
  font-size: 1.22rem;
}

.badge-gamestate {
  background: linear-gradient(135deg, #16263d, #4f86d9);
}

.badge-splittap {
  background: linear-gradient(135deg, #b95836, #ef8f56);
}

.badge-about {
  background: linear-gradient(135deg, #7368f5, #b39df8);
}

.badge-home {
  background: linear-gradient(135deg, #3da68a, #8bdfc1);
}

.app-dock {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.35rem 0 0.95rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.back-button {
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  font-weight: 800;
}

.live-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #4dbf86;
  box-shadow: 0 0 0 8px rgba(77, 191, 134, 0.12);
}

.live-dot-lime {
  background: #d0d85c;
  box-shadow: 0 0 0 8px rgba(208, 216, 92, 0.15);
}

.phone-panel {
  padding: 1rem;
  border-radius: 18px;
  color: white;
}

.phone-panel-dark {
  background: linear-gradient(145deg, #15283e, #284971);
}

.phone-panel-warm {
  background: linear-gradient(145deg, #c65f3c, #ea8852);
}

.phone-panel h3 {
  margin: 0.45rem 0 0;
  font-size: 1.45rem;
  line-height: 1.12;
}

.supporting {
  margin: 0.62rem 0 0;
  opacity: 0.84;
  line-height: 1.55;
  font-size: 0.86rem;
}

.status-strip,
.split-people {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.95rem 0.1rem 0.25rem;
}

.chip,
.person-pill {
  flex: 0 0 auto;
  padding: 0.58rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.chip.active,
.person-pill.active {
  color: white;
  background: #254d8d;
}

.people-list,
.about-cards {
  display: grid;
  gap: 0.82rem;
  margin-top: 0.82rem;
}

.person-card,
.about-cards article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.72rem;
  border: 1px solid rgba(23, 35, 52, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.about-cards article {
  grid-template-columns: 1fr;
  align-items: start;
}

.person-avatar {
  display: block;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.phone-toast {
  position: sticky;
  top: 0.3rem;
  z-index: 4;
  max-height: 0;
  overflow: hidden;
  margin-top: 0.1rem;
  padding: 0 0.78rem;
  border-radius: 14px;
  color: #245949;
  background: rgba(223, 242, 234, 0.96);
  box-shadow: 0 12px 26px rgba(24, 34, 49, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 220ms ease, padding 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.phone-toast.visible {
  max-height: 3rem;
  padding: 0.72rem 0.78rem;
  opacity: 1;
  transform: translateY(0);
}

.person-meta strong,
.result-title,
.visual-card-header strong,
.preview-result strong {
  display: block;
}

.person-meta span,
.result-meta,
.result-subtitle,
.visual-card-header span,
.preview-result span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.person-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.52rem;
  border-radius: 12px;
  background: var(--mint);
  color: #245949;
  font-size: 0.64rem;
  font-weight: 800;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.95rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(236, 245, 255, 0.82));
}

.cta-band strong {
  display: block;
  margin-top: 0.16rem;
}

.about-cards p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

.split-items {
  display: grid;
  gap: 0.62rem;
  margin-top: 0.88rem;
}

.split-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.6rem;
  align-items: center;
  padding: 0.72rem;
  border: 1px solid rgba(23, 35, 52, 0.09);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.82);
  cursor: pointer;
}

.split-item.claimed {
  border-color: rgba(107, 172, 144, 0.7);
  background: var(--mint);
}

.split-item small {
  color: var(--orange-deep);
  font-size: 0.74rem;
  font-weight: 700;
}

.split-summary {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.9rem 0 0.2rem;
  background: linear-gradient(180deg, rgba(247, 241, 231, 0), rgba(247, 241, 231, 0.96) 35%);
}

.split-summary span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.split-summary strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1rem;
}

.primary-button:disabled,
.waiter-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.waiter-panel {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(201, 95, 57, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 239, 228, 0.88));
}

.waiter-panel strong {
  display: block;
  line-height: 1.35;
}

.waiter-panel button {
  min-height: 2.6rem;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #c95f39, #e78854);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.projects-section,
.walkthroughs-section,
.search-section,
.contact-section {
  padding-top: 5rem;
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading h2,
.contact-section h2 {
  font-size: clamp(2rem, 3.1vw, 3.35rem);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  padding: 1.45rem;
  border: 1px solid rgba(23, 35, 52, 0.08);
  border-radius: 28px;
  background: rgba(255, 250, 243, 0.82);
  box-shadow: var(--shadow-md);
}

.project-top h3 {
  margin: 0.55rem 0 0;
  font-size: 1.72rem;
}

.project-card ul,
.search-notes ul,
.walkthrough-copy ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.project-actions,
.walkthrough-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.project-actions a,
.walkthrough-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.72rem 0.95rem;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(23, 35, 52, 0.1);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.project-actions a:first-child,
.walkthrough-actions a {
  color: white;
  background: #254d8d;
  box-shadow: 0 10px 22px rgba(37, 77, 141, 0.18);
}

.project-actions a:hover,
.walkthrough-actions a:hover {
  transform: translateY(-2px);
}

.accent-blue {
  background: linear-gradient(180deg, rgba(236, 245, 255, 0.97), rgba(255, 250, 243, 0.9));
}

.accent-orange {
  background: linear-gradient(180deg, rgba(255, 238, 228, 0.97), rgba(255, 250, 243, 0.9));
}

.accent-slate {
  background: linear-gradient(180deg, rgba(243, 247, 252, 0.97), rgba(255, 250, 243, 0.9));
}

.walkthrough-list {
  display: grid;
  gap: 1.4rem;
}

.walkthrough-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid rgba(23, 35, 52, 0.08);
  border-radius: 32px;
  background: rgba(255, 252, 247, 0.82);
  box-shadow: var(--shadow-md);
}

.walkthrough-card.reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.walkthrough-card.reverse .walkthrough-visual {
  order: 2;
}

.walkthrough-card.reverse .walkthrough-copy {
  order: 1;
}

.walkthrough-visual {
  min-height: 320px;
  padding: 1.2rem;
  border-radius: 28px;
  border: 1px solid rgba(23, 35, 52, 0.08);
  overflow: hidden;
}

.visual-gamestate {
  background: linear-gradient(160deg, #132438 0%, #1f4468 55%, #3767a0 100%);
  color: white;
}

.visual-splittap {
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, #fff3ea 0%, #fffaf3 100%);
}

.visual-search {
  background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
}

.visual-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.visual-card-header strong {
  font-size: 1.1rem;
}

.visual-app-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: block;
  padding: 0;
  border-radius: 16px;
  object-fit: cover;
  background: white;
}

.visual-people {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.visual-person {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.visual-person img {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.18);
}

.visual-person strong {
  display: block;
  font-size: 1rem;
}

.visual-person span {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.visual-person em {
  padding: 0.45rem 0.68rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.receipt-preview,
.tap-queue-preview,
.preview-command,
.preview-results,
.preview-result {
  border-radius: 22px;
}

.receipt-preview {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 32px rgba(23, 35, 52, 0.07);
}

.receipt-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: #fff6f0;
}

.receipt-line.active {
  background: #dff2ea;
}

.tap-queue-preview {
  padding: 1.1rem;
  background: linear-gradient(145deg, #cb643f, #ea8a53);
  color: white;
}

.tap-queue-preview strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.32rem;
}

.tap-queue-preview p {
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.tap-queue-preview button {
  margin-top: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-weight: 800;
}

.preview-command {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(23, 35, 52, 0.08);
  background: white;
}

.preview-command em {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.preview-filters span {
  padding: 0.66rem 0.92rem;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.preview-results {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.preview-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(23, 35, 52, 0.08);
  background: white;
}

.preview-result b {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 14px;
  background: rgba(93, 136, 217, 0.16);
  color: var(--navy);
}

.walkthrough-copy {
  padding: 0.3rem 0.2rem;
}

.walkthrough-copy h3 {
  margin: 0.55rem 0 0.8rem;
  font-size: 2rem;
}

.inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.search-surface {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(290px, 0.62fr);
  gap: 1rem;
  align-items: start;
}

.search-frame {
  padding: 1rem;
  border: 1px solid rgba(23, 35, 52, 0.08);
  border-radius: 32px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 28px 90px rgba(24, 34, 49, 0.08);
}

.search-window-controls {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.search-window-controls span {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
}

.search-window-controls span:first-child { background: #ef7c5e; }
.search-window-controls span:nth-child(2) { background: #f1c55b; }
.search-window-controls span:nth-child(3) { background: #78cf9c; }

.command-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(23, 35, 52, 0.08);
  border-radius: 24px;
  background: white;
}

.command-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.search-icon,
.command-shortcut {
  color: var(--ink-soft);
}

.command-shortcut {
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  background: rgba(23, 35, 52, 0.05);
  font-size: 0.8rem;
  font-weight: 800;
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.search-insight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(223, 233, 251, 0.9), rgba(255, 255, 255, 0.82));
}

.search-insight strong {
  color: var(--navy);
  white-space: nowrap;
}

.search-insight span {
  color: var(--ink-soft);
  line-height: 1.45;
  font-size: 0.9rem;
}

.source-chip {
  padding: 0.68rem 0.92rem;
  border-radius: 14px;
  background: rgba(23, 35, 52, 0.06);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 800;
}

.source-chip.active {
  color: white;
  background: #254d8d;
}

.results-panel {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.result-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(23, 35, 52, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.result-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 14px;
  color: var(--navy);
  background: rgba(93, 136, 217, 0.16);
  font-weight: 800;
}

.result-title {
  font-size: 1rem;
  font-weight: 800;
}

.result-card button {
  padding: 0.72rem 0.92rem;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(23, 35, 52, 0.06);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.result-card button:hover {
  transform: translateY(-2px);
  background: var(--blue-soft);
}

.search-notes {
  padding: 1.2rem;
  border: 1px solid rgba(23, 35, 52, 0.08);
  border-radius: 28px;
  background: rgba(255, 250, 243, 0.74);
}

.preset-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.preset-actions button {
  min-height: 3rem;
  padding: 0.78rem 0.95rem;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 35, 52, 0.08);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.preset-actions button:hover {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 14px 28px rgba(24, 34, 49, 0.08);
}

.preset-note {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.95rem;
}

.contact-section {
  max-width: 54rem;
}

@media (max-width: 1180px) {
  .hero,
  .project-grid,
  .search-surface,
  .inline-heading,
  .walkthrough-card,
  .walkthrough-card.reverse {
    grid-template-columns: 1fr;
  }

  .walkthrough-card.reverse .walkthrough-visual,
  .walkthrough-card.reverse .walkthrough-copy {
    order: initial;
  }

  .inline-heading {
    align-items: start;
  }

  .phone-stack {
    grid-template-columns: 1fr;
    place-items: center;
  }

  .stage-note-group {
    position: static;
    width: min(100%, 34rem);
    margin-top: 1rem;
    pointer-events: auto;
    transform: none;
  }

  .hero-stage {
    min-height: auto;
  }

  .phone-shell {
    justify-self: center;
  }
}

@media (max-width: 780px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  main {
    padding-inline: 1rem;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-copy h1,
  .section-heading h2,
  .contact-section h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .phone-shell {
    width: min(92vw, 21.5rem);
    margin: 0 auto;
    justify-self: center;
  }

  .search-frame,
  .search-notes,
  .project-card,
  .walkthrough-card,
  .stage-note {
    border-radius: 24px;
  }

  .cta-band,
  .split-summary,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================================================
   Motion polish (added) — interactions, scroll reveal,
   and reduced-motion fallback. Purely additive; no layout
   rules are changed above this line.
   ========================================================= */

/* Smooth the state/hover changes on the interactive demo controls
   (previously these snapped instantly). */
.chip,
.person-pill,
.split-item,
.source-chip,
.back-button,
.app-icon,
.app-badge {
  transition: transform 180ms ease, background 180ms ease, color 180ms ease,
    border-color 180ms ease, box-shadow 180ms ease;
}

.app-icon:active .app-badge {
  transform: scale(0.94);
}

/* Scroll reveal — progressive enhancement.
   The hidden start-state ONLY applies when app.js adds .has-js to <html>,
   so if JS fails to run, all content stays fully visible. */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Respect users who ask for less motion. Also a hard safety net:
   everything is forced visible so nothing can get stuck hidden. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .stage-orbit-a,
  .stage-orbit-b {
    animation: none !important;
  }

  .phone-shell {
    opacity: 1 !important;
    transform: none !important;
  }

  .stage-note {
    opacity: 1 !important;
    transform: none !important;
  }

  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
