:root {
  --canvas: #f7f6f3;
  --surface: #ffffff;
  --ink: #141413;
  --ink-soft: #3d3d3a;
  --muted: #75756f;
  --faint: #a3a39c;
  --hairline: #e5e4de;
  --accent: #141413;
  --accent-text: #ffffff;
  --sans: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ink);
  color: var(--canvas);
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.nav {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  transition:
    background 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.nav.scrolled {
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  box-shadow: 0 1px 0 var(--hairline);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav-inner {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.wordmark .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--faint);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 168px;
  padding-bottom: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  max-width: 800px;
  margin: 28px 0 30px;
  font-size: clamp(52px, 5.6vw, 84px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 500px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 42px;
}

.hero-foot {
  display: flex;
  gap: 40px;
  margin-top: 64px;
}

.hero-foot .item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-foot .item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  opacity: 0.6;
}

.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-backdrop {
  position: absolute;
  inset: -8% -16%;
  border-radius: 50%;
  background: radial-gradient(60% 55% at 50% 42%, rgba(20, 20, 19, 0.055), transparent 70%);
  pointer-events: none;
}

[data-motion="on"] .phone-float {
  animation: phoneFloat 7s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.phone {
  position: relative;
  width: 249px;
  height: 542px;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.12);
}

.dynamic-island {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 50%;
  width: 78px;
  height: 23px;
  border-radius: 24px;
  background: #000;
  transform: translateX(-50%);
}

.status-bar {
  position: absolute;
  z-index: 15;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 15px 21px 0;
  color: #fff;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.status-icons {
  letter-spacing: 1px;
}

.phone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1a19 0%, #0d0d0c 100%);
}

.phone-state {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.phone-state.is-active {
  opacity: 1;
  pointer-events: auto;
}

.call-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.monogram {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-top: 93px;
  border-radius: 50%;
  background: #f4f3ef;
  color: #141413;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.monogram.small {
  width: 44px;
  height: 44px;
  margin: 0;
  font-size: 18px;
}

.pulse {
  animation: clydePulse 2s ease-out infinite;
}

@keyframes clydePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 243, 239, 0.35);
  }
  70% {
    box-shadow: 0 0 0 26px rgba(244, 243, 239, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 243, 239, 0);
  }
}

.call-screen h2 {
  margin-top: 16px;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.call-status {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.call-actions {
  display: flex;
  gap: 54px;
  margin-top: auto;
  margin-bottom: 56px;
}

.call-actions span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
}

.call-actions svg {
  width: 19px;
  height: 19px;
  fill: #fff;
}

.decline {
  background: #e94b3c;
}

.decline svg {
  transform: rotate(135deg);
}

.accept {
  background: #34c759;
  animation: clydeBounce 1.6s ease-in-out infinite;
}

@keyframes clydeBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.chat-screen {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1a1a19 0%, #0d0d0c 100%);
}

.chat-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-top: 74px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.chat-head strong {
  font-size: 14px;
  font-weight: 500;
}

.chat-head span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.chat-head i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
}

.messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  min-height: 0;
  padding: 22px 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.messages::-webkit-scrollbar {
  display: none;
}

.bubble {
  display: none;
  max-width: 76%;
  padding: 12px 16px;
  border-radius: 20px;
  font-size: 15.5px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.bubble.is-visible {
  display: block;
  opacity: 1;
  transform: none;
}

.bubble.user {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: #f4f3ef;
  color: #141413;
}

.bubble.clyde {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: #2a2a28;
  color: #f0efea;
}

.bubble-empty {
  width: 100%;
  max-width: 100%;
  min-height: 84px;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.typing {
  display: none;
  align-self: flex-start;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 20px;
  border-bottom-left-radius: 6px;
  background: #2a2a28;
}

.typing.is-visible {
  display: flex;
}

.typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8a8a82;
  animation: clydeDot 1.2s ease-in-out infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.18s;
}

.typing span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes clydeDot {
  0%,
  60%,
  100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.home-indicator {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: 8px;
  left: 0;
  width: 86px;
  height: 3px;
  margin: 0 auto;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
}

.strip {
  position: relative;
  overflow: hidden;
  contain: paint;
  margin-top: 72px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
}

.strip::before,
.strip::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
}

.strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--canvas), transparent);
}

.strip::after {
  right: 0;
  background: linear-gradient(-90deg, var(--canvas), transparent);
}

.marquee {
  display: flex;
  width: max-content;
}

[data-motion="on"] .marquee {
  animation: marquee 46s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee span {
  padding-right: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.marquee span::after {
  content: "·";
  padding-left: 18px;
  color: var(--faint);
}

.section {
  padding: 140px 0;
}

#work {
  padding-top: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 72px;
}

.section-head h2 {
  margin-top: 22px;
  font-size: clamp(36px, 3.4vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-head .lede {
  max-width: 360px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--hairline);
}

.step {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 44px 40px 48px;
  background: var(--surface);
  transition: background 0.35s;
}

.step:hover {
  background: color-mix(in srgb, var(--surface) 70%, var(--canvas));
}

.step .num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
}

.step h3 {
  margin-top: auto;
  padding-top: 80px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.step p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 36px 32px 32px;
  background: var(--surface);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.case:hover {
  box-shadow: 0 24px 48px -24px rgba(20, 20, 19, 0.16);
  transform: translateY(-6px);
}

.case .tag {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case h3 {
  margin-top: 26px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.case .body {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

.case .outcome {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
}

.case .outcome .label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case .outcome .value {
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.vision {
  margin: 0 24px;
  border-radius: 28px;
  padding: 150px 0;
  background: #131312;
  color: #f4f3ef;
}

.vision .wrap {
  max-width: 1080px;
}

.vision .eyebrow {
  color: #8a8a82;
}

.vision .eyebrow::before {
  background: #4a4a45;
}

.vision blockquote {
  margin-top: 36px;
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.034em;
  text-wrap: balance;
}

.vision blockquote em {
  color: #6e6e66;
  font-style: normal;
}

.vision .vision-sub {
  max-width: 520px;
  margin-top: 40px;
  color: #a0a098;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.cta {
  padding: 170px 0 150px;
  text-align: center;
}

.cta .eyebrow {
  justify-content: center;
}

.cta .eyebrow::before {
  display: none;
}

.cta h2 {
  max-width: 14ch;
  margin: 26px auto 0;
  font-size: clamp(48px, 5.2vw, 78px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.cta p {
  max-width: 440px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.cta .hero-actions {
  justify-content: center;
  margin-top: 44px;
}

.footer {
  border-top: 1px solid var(--hairline);
  padding: 36px 0 44px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer .fine {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--ink);
}

/* Motion-library (motion.dev) enhancement layer */
.nav.is-hidden {
  transform: translateY(-100%);
}

.nav {
  transition:
    background 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    transform 0.45s var(--ease);
}

.progress-bar {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.marquee:hover {
  animation-play-state: paused;
}

body[data-motion-lib] .phone-float {
  animation: none;
}

body[data-motion-lib] .case:hover {
  transform: none;
}

/* Live call panel (ElevenLabs voice agent) */
.call-overlay {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 20, 19, 0.5);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.call-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.call-panel {
  display: flex;
  width: min(360px, 100%);
  flex-direction: column;
  align-items: center;
  border-radius: 28px;
  padding: 52px 36px 36px;
  background: linear-gradient(180deg, #1a1a19 0%, #0d0d0c 100%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
  color: #f4f3ef;
  text-align: center;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.4s var(--ease);
}

.call-overlay.is-open .call-panel {
  transform: none;
}

.call-orb {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  background: #f4f3ef;
  color: #141413;
  font-size: 34px;
  font-weight: 600;
  transition: box-shadow 0.3s;
}

.call-orb.is-listening {
  animation: clydePulse 2s ease-out infinite;
}

.call-orb.is-speaking {
  animation: callSpeak 1.1s ease-in-out infinite;
}

@keyframes callSpeak {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(244, 243, 239, 0.25);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 16px rgba(244, 243, 239, 0);
  }
}

.call-name {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.call-state {
  min-height: 1.4em;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.call-end {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-top: 34px;
  border: 0;
  border-radius: 50%;
  background: #e94b3c;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s;
}

.call-end:hover {
  background: #d8412f;
  transform: scale(1.06);
}

.call-end svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  transform: rotate(135deg);
}

.call-note {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.w-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.w-mask .w {
  display: inline-block;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  body.reveals-armed[data-motion="on"] .reveal {
    transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
  }

  body.reveals-armed[data-motion="on"] .reveal:not(.in) {
    opacity: 0;
    transform: translateY(26px);
  }
}

@media (max-width: 1180px) {
  .phone {
    width: 217px;
    height: 472px;
  }

  .monogram {
    margin-top: 82px;
  }
}

@media (max-width: 980px) {
  .wrap {
    padding: 0 28px;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-phone {
    order: 2;
  }

  .steps,
  .cases {
    grid-template-columns: 1fr;
  }

  .step,
  .case {
    min-height: 0;
  }

  .step h3 {
    padding-top: 36px;
  }

  .case .outcome {
    margin-top: 26px;
    padding-top: 22px;
  }

  .section {
    padding: 96px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 48px;
  }

  .nav-links {
    display: none;
  }

  .vision {
    margin: 0 12px;
    padding: 100px 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

  .nav-inner {
    height: 68px;
  }

  .btn-sm {
    display: none;
  }

  .hero {
    padding-top: 110px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-actions,
  .hero-foot,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-foot {
    gap: 14px;
    margin-top: 42px;
  }

  .phone {
    width: min(270px, 74vw);
    height: min(590px, 92vh);
    max-height: 590px;
  }

  .strip {
    margin-top: 56px;
  }

  .section-head h2 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .step,
  .case {
    padding: 30px 24px;
  }

  .vision {
    border-radius: 22px;
  }

  .cta {
    padding: 110px 0 104px;
  }
}
