:root {
  --ink: #171529;
  --muted: #6d6980;
  --line: #e4deee;
  --paper: #ffffff;
  --soft: #f6f2ff;
  --blue: #2457ff;
  --blue-2: #16b8ff;
  --red: #ff4d67;
  --green: #1e9c78;
  --gold: #f4bd4d;
  --blush: #ffe8ef;
  --rose: #c93b8b;
  --plum: #201442;
  --shadow: 0 18px 48px rgba(32, 20, 66, 0.14);
  --radius: 8px;
  --portrait-photo: url("assets/brittany-taylor.jpg");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 77, 103, 0.16), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(22, 184, 255, 0.2), transparent 30%),
    radial-gradient(circle at 52% 92%, rgba(244, 189, 77, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f5ff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(36, 87, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 87, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 80%);
}

body:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 20%), rgba(255, 77, 103, 0.34), transparent 18rem),
    linear-gradient(135deg, rgba(32, 20, 66, 0.96), rgba(36, 87, 255, 0.88));
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 220ms ease, transform 420ms cubic-bezier(.2, .8, .2, 1);
}

body.is-leaving:after {
  opacity: 1;
  transform: scale(1);
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  background: linear-gradient(90deg, var(--plum), var(--blue), var(--rose));
  color: white;
  font-size: 0.85rem;
}

.topbar-inner,
.nav-inner,
.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--plum);
  background:
    radial-gradient(circle at 38% 26%, white 0 18%, transparent 19%),
    linear-gradient(135deg, var(--red), var(--gold) 45%, var(--blue-2));
  border-radius: 50%;
  font-size: 1rem;
  box-shadow: inset 0 0 0 2px white, 0 10px 24px rgba(36, 87, 255, 0.2);
}

.brand span:last-child {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #34445f;
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links .active {
  color: var(--red);
}

.nav-links a {
  position: relative;
}

.nav-links a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--blue-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover:after,
.nav-links .active:after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: var(--blue);
  transition: transform 180ms ease, opacity 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red), var(--rose), var(--blue));
  color: white;
  box-shadow: 0 12px 24px rgba(255, 77, 103, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(36, 87, 255, 0.18);
}

.button.secondary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.button.ghost {
  color: var(--blue);
  border-color: var(--line);
  background: white;
}

.hero {
  min-height: calc(100vh - 178px);
  display: grid;
  align-items: end;
  background:
    radial-gradient(circle at 76% 24%, rgba(22, 184, 255, 0.42), transparent 24%),
    linear-gradient(105deg, rgba(32, 20, 66, 0.9) 0%, rgba(36, 87, 255, 0.66) 48%, rgba(255, 77, 103, 0.2) 100%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2200&q=85") center / cover;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 26px;
  color: white;
}

.eyebrow {
  margin: 0 0 13px;
  color: #ffe7ea;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5.2vw, 4.45rem);
  line-height: 1.01;
  letter-spacing: 0;
  text-wrap: balance;
}

h2,
h3 {
  text-wrap: balance;
}

.hero-copy {
  max-width: 660px;
  color: #eef5ff;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.55;
}

.search-panel {
  width: min(980px, 100%);
  margin-top: 20px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  animation: floatIn 620ms cubic-bezier(.2, .8, .2, 1) 160ms both;
}

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.search-tabs button,
.chip,
.filter-row button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.search-tabs button {
  padding: 10px 14px;
}

.search-tabs .selected,
.filter-row .selected {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-form input,
.contact-grid input,
.contact-grid select,
.contact-grid textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  background: rgba(255, 255, 255, 0.94);
}

.search-form input:focus,
.contact-grid input:focus,
.contact-grid select:focus,
.contact-grid textarea:focus {
  outline: 2px solid rgba(255, 77, 103, 0.22);
  border-color: var(--red);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  animation: floatIn 620ms cubic-bezier(.2, .8, .2, 1) 260ms both;
}

.quick-stats div {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.14);
}

.quick-stats strong {
  display: block;
  font-size: 1.35rem;
}

.section {
  padding: 74px 0;
}

.section.alt {
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 77, 103, 0.08), transparent 28%),
    radial-gradient(circle at 86% 4%, rgba(22, 184, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(246, 242, 255, 0.96), rgba(255, 255, 255, 0.94));
}

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

.section-head h2 {
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.06;
  color: var(--plum);
}

.section-head p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.6;
}

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

.feature-card,
.property-card,
.article-card,
.agent-card,
.value-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(16, 47, 99, 0.08);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.feature-card {
  padding: 24px;
  border-top: 3px solid var(--red);
}

.feature-card b {
  color: var(--red);
}

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

.property-card {
  overflow: hidden;
  position: relative;
  border-top: 3px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, var(--blue), var(--blue-2), var(--red)) border-box;
}

.card-link {
  display: block;
  height: 100%;
}

.property-card:hover,
.article-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: var(--shadow);
}

.feature-card:hover,
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.property-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7dfe2;
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(135deg, rgba(32, 20, 66, 0.95), rgba(36, 87, 255, 0.88));
  font-size: 0.78rem;
  font-weight: 900;
}

.property-body {
  padding: 17px;
}

.save-chip {
  margin: 0 17px 17px;
}

.price {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 1.45rem;
  font-weight: 950;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.source-note {
  margin: 12px 0 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.empty-state p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.portrait {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 77, 103, 0.26), transparent 28%),
    radial-gradient(circle at 82% 74%, rgba(22, 184, 255, 0.3), transparent 32%),
    linear-gradient(135deg, rgba(32, 20, 66, 0.96), rgba(36, 87, 255, 0.75));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait:before {
  content: "";
  width: min(72%, 340px);
  aspect-ratio: 1;
  border: 8px solid rgba(255, 255, 255, 0.84);
  border-radius: 38% 62% 55% 45% / 46% 38% 62% 54%;
  background: var(--portrait-photo) center / cover;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  animation: portraitBlob 7s ease-in-out infinite;
}

.portrait:after {
  content: "Lexington, but make it personal";
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 220px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 900;
}

.agent-card {
  padding: 30px;
  border-left: 5px solid var(--red);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 242, 255, 0.92));
}

.agent-card h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.proof-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #34445f;
}

.proof-list li:before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

.neighborhoods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.neighborhood {
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 80% 12%, rgba(22, 184, 255, 0.28), transparent 24%),
    linear-gradient(0deg, rgba(32, 20, 66, 0.72), rgba(255, 77, 103, 0.12)),
    var(--photo) center / cover;
  font-weight: 950;
  transition: transform 190ms ease, filter 190ms ease;
}

.neighborhood:hover {
  transform: translateY(-5px) scale(1.015);
  filter: saturate(1.08);
}

.rail-wrap {
  overflow: hidden;
}

.rail {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: rail 34s linear infinite;
}

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

.rail .property-card {
  width: 318px;
}

@keyframes rail {
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}

.article-card {
  overflow: hidden;
  border-top: 3px solid var(--red);
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-card.featured {
  grid-row: span 2;
}

.article-card.featured img {
  aspect-ratio: 16 / 14;
}

.article-body {
  padding: 18px;
}

.article-body small {
  color: var(--red);
  font-weight: 900;
}

.page-hero {
  padding: 74px 0 42px;
  color: white;
  background:
    radial-gradient(circle at 78% 20%, rgba(22, 184, 255, 0.36), transparent 24%),
    linear-gradient(105deg, rgba(32, 20, 66, 0.88), rgba(255, 77, 103, 0.25)),
    var(--page-photo) center / cover;
}

.detail-hero {
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: 84px 0 54px;
  color: white;
  background:
    radial-gradient(circle at 78% 20%, rgba(22, 184, 255, 0.32), transparent 24%),
    linear-gradient(105deg, rgba(32, 20, 66, 0.88), rgba(255, 77, 103, 0.22)),
    var(--detail-photo) center / cover;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.detail-body {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.75;
}

.detail-body h2,
.detail-body h3 {
  margin-top: 28px;
}

.detail-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(16, 47, 99, 0.1);
}

.listing-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.listing-facts div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.listing-facts strong {
  display: block;
  color: var(--red);
  font-size: 1.25rem;
}

.listing-facts span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.form-status {
  margin: 4px 0 0;
  color: var(--green);
  font-weight: 850;
}

.page-hero h1 {
  margin-bottom: 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-row button,
.chip {
  min-height: 40px;
  padding: 0 12px;
}

.listing-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.map-panel {
  position: sticky;
  top: 94px;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 232, 239, 0.92), transparent 22%),
    radial-gradient(circle at 70% 78%, rgba(22, 184, 255, 0.18), transparent 24%),
    linear-gradient(45deg, rgba(255, 77, 103, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(36, 87, 255, 0.08) 25%, transparent 25%),
    #f6f2ff;
  background-size: 100% 100%, 100% 100%, 58px 58px, 58px 58px, auto;
}

.map-pin {
  position: absolute;
  padding: 8px 10px;
  border-radius: 999px;
  color: white;
  background: var(--plum);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 950;
}

.value-band {
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(22, 184, 255, 0.34), transparent 24%),
    linear-gradient(105deg, rgba(32, 20, 66, 0.9), rgba(255, 77, 103, 0.58)),
    url("https://images.unsplash.com/photo-1582407947304-fd86f028f716?auto=format&fit=crop&w=2200&q=85") center / cover;
}

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

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.provider-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(16, 47, 99, 0.08);
}

.provider-card h3 {
  margin-bottom: 4px;
  color: var(--plum);
}

.provider-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.provider-tags,
.provider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.provider-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.provider-details div {
  display: grid;
  gap: 3px;
}

.provider-details dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.provider-details dd {
  margin: 0;
}

.value-card {
  padding: 22px;
  border-top: 3px solid var(--red);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 24px;
}

.form-card {
  padding: 24px;
  border-top: 4px solid var(--red);
}

.form-card form {
  display: grid;
  gap: 12px;
}

.form-card textarea {
  min-height: 140px;
  padding-top: 12px;
  resize: vertical;
}

.footer {
  padding: 42px 0;
  color: #edf4ff;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 77, 103, 0.32), transparent 24%),
    linear-gradient(90deg, var(--plum), var(--blue));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 22px;
}

.footer a,
.footer p {
  color: #dbe8fb;
}

@media (max-width: 920px) {
  .topbar-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-inner {
    flex-wrap: wrap;
    gap: 12px 16px;
    min-height: 68px;
    padding: 8px 0;
  }

  .nav-toggle {
    display: grid;
    margin-left: auto;
  }

  .nav-inner > .button {
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
    overflow: visible;
  }

  .nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 4px;
  }

  .nav.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
  }

  .search-form,
  .quick-stats,
  .feature-grid,
  .property-grid,
  .split,
  .neighborhoods,
  .blog-grid,
  .provider-grid,
  .listing-layout,
  .value-grid,
  .contact-grid,
  .detail-layout,
  .listing-facts,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: relative;
    top: 0;
    min-height: 340px;
  }

  .detail-aside {
    position: relative;
    top: 0;
  }
}

@media (max-width: 560px) {
  .topbar {
    display: none;
  }

  .nav-inner {
    min-height: 64px;
  }

  .hero-inner,
  .section {
    padding-top: 46px;
  }

  .search-panel {
    padding: 10px;
  }

  .search-tabs {
    overflow-x: auto;
  }

  .rail .property-card {
    width: 280px;
  }

  .portrait {
    min-height: 390px;
  }

  .portrait:after {
    left: 16px;
    right: 16px;
    max-width: none;
    text-align: center;
  }
}

.experience-orb {
  position: fixed;
  left: var(--cursor-x, 50%);
  top: var(--cursor-y, 50%);
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(22, 184, 255, 0.18), rgba(255, 77, 103, 0.08) 38%, transparent 68%);
  filter: blur(8px);
  transform: translate(-50%, -50%);
  transition: left 140ms ease-out, top 140ms ease-out;
}

.loading-veil {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  color: white;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 77, 103, 0.42), transparent 24%),
    radial-gradient(circle at 78% 68%, rgba(22, 184, 255, 0.34), transparent 30%),
    linear-gradient(135deg, var(--plum), var(--blue));
  animation: veilOut 780ms cubic-bezier(.2, .8, .2, 1) 260ms forwards;
}

.loading-veil:before {
  content: "BT";
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  font-weight: 950;
  animation: pulseMark 900ms ease-in-out infinite alternate;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(.2, .8, .2, 1);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero .eyebrow,
.hero h1,
.hero .hero-copy {
  animation: floatIn 760ms cubic-bezier(.2, .8, .2, 1) both;
}

.hero h1 {
  animation-delay: 80ms;
}

.hero .hero-copy {
  animation-delay: 150ms;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes portraitBlob {
  0%,
  100% {
    border-radius: 38% 62% 55% 45% / 46% 38% 62% 54%;
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    border-radius: 58% 42% 43% 57% / 40% 55% 45% 60%;
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes veilOut {
  to {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
  }
}

@keyframes pulseMark {
  to {
    transform: scale(1.08) rotate(4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .experience-orb,
  .loading-veil {
    display: none;
  }
}
