:root {
  color-scheme: light;
  --page: #f3f7f9;
  --surface-strong: #ffffff;
  --ink: #2e373d;
  --ink-soft: #4f5c64;
  --muted: #85929a;
  --line: #dfe7eb;
  --blue: #1697da;
  --blue-dark: #087dba;
  --blue-soft: #e7f4fb;
  --radius-control: 14px;
  --content: 720px;
  --video-widget-size: clamp(184px, 18vw, 224px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-synthesis: none;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(22, 151, 218, 0.28);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
}

.ai-layout {
  display: grid;
  grid-template-columns: var(--video-widget-size) minmax(0, var(--content));
  justify-content: center;
  column-gap: clamp(48px, 6vw, 72px);
}

.ai-video-column {
  min-width: 0;
  padding-top: clamp(56px, 7vw, 84px);
}

.ai-content-column {
  min-width: 0;
}

.conversation {
  width: 100%;
  padding: clamp(56px, 7vw, 84px) 0 28px;
}

.intro,
.reveal {
  max-width: var(--content);
}

.page-title {
  margin: 0 0 34px;
  color: var(--ink);
  font-size: clamp(29px, 3.6vw, 39px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-wrap: balance;
}

.video-widget {
  position: sticky;
  top: 48px;
  z-index: 2;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.profile-home-main {
  flex: 1 0 auto;
  display: flex;
}

.profile-home-main > .ai-layout {
  flex: 1 0 auto;
  width: 100%;
}

.profile-home-main .ai-content-column {
  display: flex;
  flex-direction: column;
}

.profile-avatar {
  width: var(--video-widget-size);
  height: var(--video-widget-size);
  overflow: hidden;
  border: 3px solid var(--surface-strong);
  border-radius: 50%;
  background: #d8d7d0;
  box-shadow: 0 18px 42px rgba(44, 65, 77, 0.16);
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.profile-intro {
  padding-bottom: 24px;
}

.profile-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.profile-description p {
  margin-bottom: 16px;
}

.profile-description p:last-child {
  margin-bottom: 0;
}

.profile-description > p:first-child {
  margin-bottom: 8px;
}

.profile-description .profile-podcast {
  margin-bottom: 8px;
}

.profile-description .profile-consulting {
  margin-bottom: 8px;
}

.profile-inline-icon {
  width: 1em;
  height: 1em;
  margin-right: 0.26em;
  vertical-align: -0.14em;
}

.profile-inline-icon-youtube {
  width: 1.16em;
  height: 0.8em;
  transform: translateY(-2px);
  vertical-align: middle;
}

.profile-ratings,
.profile-consulting-detail,
.profile-guests {
  color: #74818a;
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(14px, 1.45vw, 16px);
  font-weight: 500;
  line-height: 1.6;
}

.video-widget-frame {
  position: relative;
  width: var(--video-widget-size);
  height: var(--video-widget-size);
  overflow: visible;
  border: 3px solid var(--surface-strong);
  border-radius: 50%;
  background: #d8d7d0;
  box-shadow: 0 18px 42px rgba(44, 65, 77, 0.16);
  pointer-events: auto;
  transform-origin: center;
  transition: box-shadow 260ms ease, transform 260ms ease;
}

.video-widget-frame.is-sound {
  box-shadow: 0 22px 52px rgba(44, 65, 77, 0.2);
  transform: scale(1.18);
}

.video-widget-media {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.video-widget-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: background-color 160ms ease, opacity 160ms ease;
}

.video-widget-button:hover,
.video-widget-button:focus-visible {
  opacity: 1;
}

.video-widget-frame:not(.is-sound) .video-widget-button {
  opacity: 0.72;
}

.video-widget-close {
  position: absolute;
  top: -7px;
  right: -13px;
  z-index: 3;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 3px 10px rgba(44, 65, 77, 0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: background-color 160ms ease, opacity 160ms ease;
}

.video-widget-frame.is-sound .video-widget-close {
  opacity: 0.78;
  pointer-events: auto;
}

.video-widget-close:hover,
.video-widget-close:focus-visible {
  background: rgba(255, 255, 255, 0.82);
  opacity: 1;
}

.video-widget-close::before,
.video-widget-close::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 6px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(46, 55, 61, 0.82);
}

.video-widget-close::before {
  transform: rotate(45deg);
}

.video-widget-close::after {
  transform: rotate(-45deg);
}

.video-widget-play {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 6px 14px rgba(44, 65, 77, 0.1);
}

.video-widget-play::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 13px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--ink);
}

.video-widget-frame.is-playing .video-widget-play::before {
  top: 10px;
  left: 11px;
  width: 3px;
  height: 12px;
  border: 0;
  background: var(--ink);
  box-shadow: 8px 0 0 var(--ink);
}

p {
  margin-top: 0;
}

.prose {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 19px);
  letter-spacing: -0.006em;
  line-height: 1.58;
}

.prose p {
  margin-bottom: 22px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 22px;
  padding-left: 1.25em;
}

.prose .list-lead {
  margin-bottom: 7px;
}

.prose ol {
  padding-left: 1.5em;
}

.prose li {
  margin-bottom: 7px;
  padding-left: 0.15em;
}

.prose li:last-child {
  margin-bottom: 0;
}

.prose a,
.profile-description a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(79, 92, 100, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.prose a:hover,
.profile-description a:hover {
  color: var(--blue-dark);
  text-decoration-color: currentColor;
}

.reveal {
  margin-top: 38px;
}

.reveal.is-visible {
  animation: reveal-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.final-step .prose {
  scroll-margin-top: 24px;
}

.action-slot {
  margin-top: 32px;
}

.intro-action-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.skip-link {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 180ms ease;
}

.skip-link:hover {
  color: var(--blue-dark);
}

.choice-button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  border: 0;
  border-radius: var(--radius-control);
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.choice-button {
  width: fit-content;
  max-width: 100%;
  padding: 15px 24px;
  gap: 10px;
  cursor: pointer;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(22, 151, 218, 0.2);
}

.choice-button:not(:disabled):hover {
  background: var(--blue-dark);
  box-shadow: 0 14px 30px rgba(8, 125, 186, 0.24);
  transform: translateY(-2px);
}

.choice-button:disabled {
  cursor: default;
  background: #dceaf1;
  color: #507789;
  box-shadow: none;
}

.choice-check {
  display: none;
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.choice-button.is-complete .choice-check {
  display: inline-block;
}

.choice-button:active,
.contact-button:active {
  transform: translateY(0);
}

.thinking {
  margin-top: 38px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--muted);
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.thinking-pulse {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 34px;
  margin-top: 8px;
}

.thinking-pulse i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: thinking 1s ease-in-out infinite;
}

.thinking-pulse i:nth-child(2) {
  animation-delay: 140ms;
}

.thinking-pulse i:nth-child(3) {
  animation-delay: 280ms;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.contact-button {
  padding: 15px 24px;
}

.contact-button:hover {
  transform: translateY(-2px);
}

.contact-button-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(22, 151, 218, 0.2);
}

.contact-button-primary:hover {
  background: var(--blue-dark);
}

.contact-button-secondary {
  border: 1px solid #c9dce6;
  background: var(--blue-soft);
  color: #24637f;
}

.contact-button-secondary:hover {
  border-color: #a8ccdd;
  background: #dceff8;
}

.contact-note {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.noscript-note {
  width: min(calc(100% - 48px), 720px);
  margin: 24px auto;
  color: var(--ink-soft);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

@keyframes thinking {
  0%,
  60%,
  100% {
    opacity: 0.32;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: 100%;
    margin: 0;
  }

  .ai-layout {
    display: block;
  }

  .profile-home-main > .ai-layout {
    display: flex;
    flex-direction: column;
  }

  .profile-home-main .ai-content-column {
    flex: 1 0 auto;
  }

  .ai-video-column {
    padding: 42px 22px 0;
  }

  .video-widget {
    position: static;
    justify-content: flex-start;
  }

  .video-widget-frame {
    --video-widget-size: min(142px, 38vw);
  }

  .profile-avatar {
    width: min(142px, 38vw);
    height: min(142px, 38vw);
  }

  .video-widget-button {
    opacity: 1;
  }

  .video-widget-frame.is-playing .video-widget-button {
    opacity: 0;
  }

  .video-widget-frame.is-playing .video-widget-button:focus-visible {
    opacity: 1;
  }

  .conversation {
    padding: 34px 22px 24px;
  }

}

@media (max-width: 700px) {
  .page-title {
    margin-bottom: 28px;
    font-size: 28px;
    line-height: 1.18;
  }

  .prose {
    font-size: 16px;
    line-height: 1.58;
  }

  .reveal {
    margin-top: 36px;
  }

  .thinking {
    margin-top: 36px;
  }

  .choice-button,
  .contact-button {
    min-height: 58px;
    font-size: 15px;
  }

  .intro-action-slot {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .skip-link {
    font-size: 14px;
  }

  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (hover: none) and (pointer: coarse) {
  .video-widget-frame.is-playing .video-widget-button,
  .video-widget-frame.is-playing .video-widget-button:hover,
  .video-widget-frame.is-playing .video-widget-button:focus-visible {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
