:root {
  --bg: #fbfbfa;
  --panel: #ffffff;
  --ink: #111827;
  --text: #354052;
  --muted: #697386;
  --soft: #f5f6f8;
  --line: #dfe5ee;
  --line-strong: #cfd7e3;
  --blue: #49627f;
  --orange: #e85d04;
  --green: #4b6043;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px max(20px, calc((100vw - 860px) / 2));
  border-bottom: 1px solid rgba(223, 229, 238, 0.8);
  background: rgba(251, 251, 250, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 14px;
}

nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.page-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 84px;
}

.profile {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.profile-visual {
  position: relative;
  min-height: 260px;
  margin-bottom: 34px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.9), transparent 12%),
    radial-gradient(circle at 52% 18%, rgba(207, 215, 227, 0.75), transparent 22%),
    linear-gradient(180deg, #eef1f6 0%, #fbfbfa 78%);
}

.hero-window {
  position: absolute;
  right: 34px;
  bottom: 0;
  left: 98px;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid rgba(207, 215, 227, 0.95);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #0f172a;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.15);
}

.window-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
}

.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cfd7e3;
}

.window-scene {
  display: flex;
  min-height: 152px;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 78% 16%, rgba(232, 93, 4, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(73, 98, 127, 0.45), transparent 48%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px),
    #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.terminal-prompt {
  color: #93c5fd;
}

.typing-line {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.typing-line::after {
  content: "";
  display: inline-block;
  height: 1em;
  margin-left: 2px;
  border-right: 2px solid rgba(255, 255, 255, 0.86);
  animation: blinkCursor 0.9s step-end infinite;
}

@keyframes blinkCursor {
  50% {
    border-color: transparent;
  }
}

.avatar-photo {
  position: absolute;
  bottom: 22px;
  left: 26px;
  width: 104px;
  height: 104px;
  border: 4px solid var(--bg);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.15), rgba(73, 98, 127, 0.2)),
    url("assets/optimized/headshot-1200.jpg") center / cover;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
form {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(2.8rem, 7vw, 5.1rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.properties {
  display: grid;
  gap: 0;
  margin-top: 24px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.properties div {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  display: grid;
  gap: 6px;
  min-height: 94px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat-card strong {
  color: #27364b;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1;
}

.stat-card--award strong {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.1;
}

.stat-card span {
  color: #526176;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.25;
}

.properties div:last-child {
  border-bottom: 0;
}

dt,
dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 11px 14px;
  font-size: 0.92rem;
}

dt {
  gap: 10px;
  color: var(--muted);
  background: var(--soft);
  font-weight: 700;
}

dt svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: #94a3b8;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

dd {
  flex-wrap: wrap;
  gap: 7px;
  color: var(--text);
}

.profile-link {
  color: #27364b;
  font-weight: 750;
}

.section {
  scroll-margin-top: 92px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-kicker {
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bio-kicker {
  max-width: 760px;
  margin-bottom: 14px;
  color: #526176;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.65;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.heading-lottie {
  display: inline-block;
  width: 50px;
  height: 50px;
  overflow: hidden;
  transform: translateY(4px);
}

.heading-lottie svg {
  display: block;
  width: 100%;
  height: 100%;
}

h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.07rem;
  line-height: 1.25;
}

.body-copy {
  max-width: 780px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
}

.body-copy p {
  margin-bottom: 16px;
}

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

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  min-height: 92px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quick-card strong {
  color: #27364b;
  font-size: 1.05rem;
}

.quick-card p {
  margin-bottom: 0;
  color: #4b5a70;
  font-size: 0.96rem;
  line-height: 1.48;
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.build-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.build-preview {
  position: relative;
  display: flex;
  min-height: 156px;
  margin: 0;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  color: #f8fafc;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}

.image-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.42)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.32), transparent 56%);
  pointer-events: none;
}

.build-preview img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.build-preview span,
.build-preview figcaption {
  position: relative;
  z-index: 1;
  margin: 0;
  text-shadow: 0 1px 12px rgba(15, 23, 42, 0.44);
}

.lottie-preview {
  isolation: isolate;
}

.lottie-preview::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 28%, rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.1), transparent 24%);
  pointer-events: none;
}

.lottie-stage {
  position: absolute;
  top: 50%;
  left: 72%;
  z-index: 0;
  display: flex;
  width: min(42%, 148px);
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 260ms ease;
  pointer-events: none;
}

.is-lottie-ready .lottie-stage {
  opacity: 0.76;
}

.lottie-stage svg {
  width: 100%;
  height: 100%;
  filter: saturate(0.92) contrast(1.04);
}

.preview-ai .lottie-stage {
  mix-blend-mode: screen;
}

.preview-emoji .lottie-stage {
  mix-blend-mode: screen;
}

.preview-wings {
  background:
    radial-gradient(circle at 76% 20%, rgba(232, 93, 4, 0.26), transparent 30%),
    linear-gradient(135deg, #10151f, #1d2d44);
}

.preview-wings img {
  object-position: center 48%;
}

.preview-learning {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 18px),
    #111827;
}

.preview-film {
  background:
    radial-gradient(circle at 68% 28%, rgba(232, 93, 4, 0.22), transparent 30%),
    linear-gradient(135deg, #18181b, #334155);
}

.preview-film img {
  object-position: 40% center;
}

.preview-ai {
  background:
    radial-gradient(circle at 25% 20%, rgba(75, 96, 67, 0.62), transparent 32%),
    linear-gradient(135deg, #172033, #0f172a);
}

.preview-emoji {
  background:
    radial-gradient(circle at 22% 24%, rgba(250, 204, 21, 0.28), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.24), transparent 28%),
    linear-gradient(135deg, #111827, #312e81);
}

.preview-b2b {
  background:
    linear-gradient(180deg, transparent 28%, rgba(15, 23, 42, 0.78)),
    radial-gradient(circle at 74% 26%, rgba(148, 163, 184, 0.26), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 16px),
    linear-gradient(135deg, #0f172a, #27364b);
}

.preview-b2b img {
  object-position: 40% center;
}

.preview-brand {
  background:
    radial-gradient(circle at 20% 30%, rgba(73, 98, 127, 0.4), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px),
    #0f172a;
}

.preview-brand img {
  object-position: center center;
}

.build-card-wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
}

.build-card-wide .build-preview {
  min-height: auto;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.build-content {
  padding: 20px;
}

.build-content p {
  margin-bottom: 0;
  color: #5d6b81;
  font-size: 0.96rem;
  line-height: 1.55;
}

.build-content h3 {
  margin-bottom: 10px;
}

.work-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: #5d6b81;
  font-size: 0.92rem;
  line-height: 1.42;
}

.work-list a {
  color: #27364b;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  text-underline-offset: 3px;
}

.work-list a:hover {
  text-decoration-color: #27364b;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.work-links a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #f8fafc;
  color: #27364b;
  font-size: 0.82rem;
  font-weight: 800;
}

.testimonials-section {
  overflow: hidden;
}

.testimonial-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.testimonial-track {
  display: flex;
  width: max-content;
  animation: testimonialScroll 54s linear infinite;
  will-change: transform;
}

.testimonial-marquee:hover .testimonial-track,
.testimonial-marquee:focus-within .testimonial-track {
  animation-play-state: paused;
}

.testimonial-group {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}

.testimonial-card {
  display: grid;
  width: clamp(260px, 30vw, 360px);
  min-height: 176px;
  align-content: space-between;
  gap: 22px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.testimonial-card p {
  margin: 0;
  color: #27364b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.testimonial-card footer {
  display: grid;
  gap: 3px;
}

.testimonial-card cite {
  color: var(--ink);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 850;
}

.testimonial-card footer span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

@keyframes testimonialScroll {
  to {
    transform: translateX(-50%);
  }
}

.contact-note {
  max-width: 720px;
  margin-bottom: 18px;
  color: #526176;
  font-size: 1rem;
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-marquee {
    overflow-x: auto;
    mask-image: none;
    scrollbar-width: thin;
  }

  .testimonial-track {
    animation: none;
  }

  .testimonial-group[aria-hidden="true"] {
    display: none;
  }

  .email-game.has-error .captcha-puzzle {
    animation: none;
  }
}

.email-game {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(280px, 1.2fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.game-copy {
  display: grid;
  gap: 8px;
}

.game-copy span,
.unlock-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-copy strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.game-copy p {
  margin: 0;
  color: #5d6b81;
  font-size: 0.94rem;
  line-height: 1.5;
}

.captcha-puzzle {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.captcha-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 10px;
}

.captcha-choices button {
  width: 100%;
  min-height: 64px;
  border-color: #cbd5e1;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.8rem;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.captcha-choices button:hover:not(:disabled) {
  border-color: #64748b;
  background: #f1f5f9;
  transform: translateY(-2px);
}

.captcha-choices button:focus-visible {
  outline: 3px solid rgba(73, 98, 127, 0.2);
  outline-offset: 2px;
}

.captcha-choices button:disabled {
  cursor: default;
  opacity: 0.42;
}

.captcha-choices button[aria-pressed="true"] {
  border-color: #1f7a55;
  background: #dcfce7;
  opacity: 1;
}

.email-game.has-error .captcha-puzzle {
  border-color: #d97706;
  animation: captchaNudge 180ms ease-in-out 2 alternate;
}

.email-game.is-unlocked .captcha-puzzle {
  border-color: #86b99f;
  background: #f0fdf4;
}

.email-game.has-error .unlock-hint {
  color: #b45309;
}

.email-game.is-unlocked .unlock-hint {
  color: #166534;
}

@keyframes captchaNudge {
  to {
    transform: translateX(3px);
  }
}

.unlock-result {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 34px;
}

.email-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background: #f8fafc;
  color: #27364b;
  font-size: 0.88rem;
  font-weight: 800;
}

.email-link[hidden] {
  display: none !important;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 13px;
  background: #fbfcfd;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #aeb9c9;
  outline: 3px solid rgba(73, 98, 127, 0.12);
}

button {
  width: fit-content;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
}

.site-footer {
  background: #111827;
  color: #d7dee9;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: center;
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #aeb9c9;
  font-size: 0.88rem;
  font-weight: 650;
}

.footer-meta strong {
  color: #ffffff;
}

.footer-location {
  color: #ffffff;
}

.footer-meta a {
  color: #ffffff;
}

.subscribe-form {
  display: grid;
  gap: 10px;
}

.subscribe-form p {
  margin: 0;
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 750;
}

.subscribe-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.beehiiv-subscribe {
  min-width: 0;
}

.beehiiv-subscribe iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
  border-radius: 8px;
}

.subscribe-form input {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.subscribe-form input::placeholder {
  color: #aeb9c9;
}

.subscribe-form button {
  border-color: #ffffff;
  background: #ffffff;
  color: #111827;
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    padding-inline: 20px;
  }

  nav {
    max-width: 230px;
  }

  .page-shell {
    width: min(100% - 28px, 860px);
    padding-top: 38px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .profile-visual {
    min-height: 210px;
  }

  .hero-window {
    right: 14px;
    left: 42px;
    min-height: 142px;
  }

  .window-scene {
    min-height: 116px;
  }

  .avatar-photo {
    width: 88px;
    height: 88px;
    left: 14px;
  }

  .properties div,
  .quick-card,
  .contact-form,
  .email-game {
    grid-template-columns: 1fr;
  }

  dt {
    border-bottom: 1px solid var(--line);
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .build-grid {
    grid-template-columns: 1fr;
  }

  .build-card-wide {
    display: block;
  }

  .build-card-wide .build-preview {
    min-height: 118px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .build-preview {
    min-height: 118px;
  }

  .contact-form {
    padding: 18px;
  }

  .unlock-result {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  .topbar {
    display: block;
  }

  nav {
    justify-content: flex-start;
    margin-top: 10px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .profile-visual {
    min-height: 176px;
  }

  .hero-window {
    left: 34px;
    min-height: 118px;
  }

  .window-scene {
    min-height: 92px;
    font-size: 0.68rem;
  }

  .section {
    padding-block: 34px;
  }
}
