/*
 * Premium interactive layer for the Sonya Abazary website.
 * Engineering Consulting is intentionally visible only as the final footer link.
 */

:root {
  --experience-wine: #4b1730;
  --experience-wine-deep: #270b19;
  --experience-plum: #712d50;
  --experience-rose: #d98ba2;
  --experience-blush: #f6e5df;
  --experience-cream: #fff8ef;
  --experience-gold: #d3ad72;
  --experience-ink: #29151f;
  --experience-muted: #775f6a;
  --experience-line: rgba(75, 23, 48, 0.15);
  --experience-shadow: 0 28px 80px rgba(38, 8, 24, 0.16);
}

/* The engineering service belongs only in the footer link group. */
.experience-upgrade .site-nav a[href*="engineering-consulting"],
.experience-upgrade .other-service-strip {
  display: none !important;
}

html {
  scroll-padding-top: 110px;
  scrollbar-color: var(--experience-plum) var(--experience-blush);
}

body.experience-upgrade {
  overflow-x: hidden;
}

body.experience-upgrade::after {
  content: "";
  position: fixed;
  z-index: 9996;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: radial-gradient(rgba(45, 13, 29, 0.65) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

body.experience-upgrade::-webkit-scrollbar {
  width: 10px;
}

body.experience-upgrade::-webkit-scrollbar-track {
  background: var(--experience-blush);
}

body.experience-upgrade::-webkit-scrollbar-thumb {
  border: 2px solid var(--experience-blush);
  border-radius: 999px;
  background: linear-gradient(var(--experience-rose), var(--experience-plum));
}

/* Page-load veil */
.experience-upgrade .site-header,
.experience-upgrade main,
.experience-upgrade .site-footer {
  animation: experiencePageIn 0.65s ease both;
}

@keyframes experiencePageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reading progress */
.experience-progress {
  position: fixed;
  z-index: 10050;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
}

.experience-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--experience-gold), #f3cbb7 47%, #c44e78 100%);
  box-shadow: 0 0 18px rgba(211, 173, 114, 0.9);
  will-change: transform;
}

/* Header polish */
.experience-upgrade .site-header {
  transition: min-height 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.experience-upgrade .site-header.is-condensed {
  min-height: 72px;
  background: rgba(255, 248, 239, 0.96);
  box-shadow: 0 16px 42px rgba(45, 13, 29, 0.11);
}

.experience-upgrade .site-header.is-condensed .header-inner {
  min-height: 72px;
}

.experience-upgrade .site-name {
  position: relative;
}

.experience-upgrade .site-name::before {
  content: "";
  position: absolute;
  right: -23px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--experience-gold);
  box-shadow: 0 0 0 5px rgba(211, 173, 114, 0.12), 0 0 20px rgba(211, 173, 114, 0.8);
  transform: translateY(-50%);
}

/* Pointer glow */
.experience-cursor-glow {
  position: fixed;
  z-index: 9995;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(211, 173, 114, 0.18), rgba(190, 77, 119, 0.08) 34%, transparent 69%);
  filter: blur(7px);
  transition: opacity 0.35s ease;
  will-change: transform;
}

.experience-cursor-glow.is-active {
  opacity: 1;
}

/* Entrance reveals */
.experience-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

.experience-reveal:nth-child(2) { transition-delay: 0.08s; }
.experience-reveal:nth-child(3) { transition-delay: 0.16s; }
.experience-reveal:nth-child(4) { transition-delay: 0.24s; }

/* Hero atmosphere */
.experience-upgrade .home-hero {
  isolation: isolate;
  min-height: calc(100vh - 88px);
  display: grid;
  align-items: center;
  padding-top: 104px;
}

.experience-upgrade .home-hero .content-width {
  position: relative;
  z-index: 2;
}

.experience-stars {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.experience-stars span {
  position: absolute;
  left: var(--star-x);
  top: var(--star-y);
  width: var(--star-size);
  height: var(--star-size);
  border-radius: 50%;
  opacity: 0.35;
  background: #fff5df;
  box-shadow: 0 0 14px rgba(255, 239, 211, 0.9), 0 0 30px rgba(211, 173, 114, 0.48);
  animation: experienceStarFloat var(--star-duration) var(--star-delay) ease-in-out infinite alternate;
}

.experience-stars span:nth-child(3n) {
  border-radius: 0;
  transform: rotate(45deg);
}

@keyframes experienceStarFloat {
  from { opacity: 0.16; translate: 0 9px; scale: 0.72; }
  to { opacity: 0.78; translate: 0 -12px; scale: 1.15; }
}

.hero-kicker {
  margin: 0 auto 19px;
  color: var(--experience-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-align: center;
  text-transform: uppercase;
}

.experience-upgrade .home-hero h1 {
  max-width: 1060px;
  background: linear-gradient(112deg, #fffaf6 0%, #fffaf6 45%, #edc99f 65%, #fff6ef 81%, #fffaf6 100%);
  background-size: 230% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
  animation: experienceTitleGlow 9s ease-in-out infinite;
}

@keyframes experienceTitleGlow {
  0%, 22%, 100% { background-position: 0% 50%; }
  58% { background-position: 100% 50%; }
}

.hero-intro {
  max-width: 720px;
  margin: -35px auto 54px;
  color: rgba(255, 245, 240, 0.78);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.75;
  text-align: center;
  text-wrap: balance;
}

.experience-upgrade .home-image-grid {
  perspective: 1300px;
  transform-style: preserve-3d;
}

.experience-upgrade .home-image-grid figure {
  will-change: transform;
}

.experience-upgrade .home-photo {
  transform: translate3d(calc(var(--hero-x, 0) * -0.55px), calc(var(--hero-y, 0) * -0.45px + 18px), 0) rotate(-1.2deg);
}

.experience-upgrade .home-message {
  transform: translate3d(calc(var(--hero-x, 0) * 0.48px), calc(var(--hero-y, 0) * 0.38px - 10px), 0) rotate(1.4deg);
}

.experience-upgrade .home-image-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(122deg, rgba(255,255,255,0.26), transparent 28%, transparent 70%, rgba(255,255,255,0.08));
  mix-blend-mode: soft-light;
}

.hero-signals {
  display: flex;
  max-width: 790px;
  margin: 35px auto 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
}

.hero-signals span {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 250, 246, 0.84);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-signals span::before {
  content: "✦";
  color: var(--experience-gold);
}

/* Infinite inspiration ribbon */
.inspiration-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(75,23,48,0.1);
  color: var(--experience-wine-deep);
  background: var(--experience-cream);
}

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

.inspiration-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--experience-cream), transparent);
}

.inspiration-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--experience-cream), transparent);
}

.inspiration-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 42px;
  padding: 17px 0;
  animation: experienceMarquee 28s linear infinite;
}

.inspiration-track span {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.inspiration-track span::after {
  content: "✦";
  color: var(--experience-gold);
  font-size: 10px;
}

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

/* Interactive focus lab */
.focus-lab {
  position: relative;
  overflow: hidden;
  padding: 125px 0;
  color: var(--experience-ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(211,173,114,0.2), transparent 25rem),
    radial-gradient(circle at 92% 88%, rgba(217,139,162,0.25), transparent 28rem),
    linear-gradient(135deg, #fffaf4, #f7e6e2);
}

.focus-lab::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -360px;
  top: -350px;
  border: 1px solid rgba(75,23,48,0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(75,23,48,0.022), 0 0 0 170px rgba(75,23,48,0.014);
}

.focus-lab-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(52px, 8vw, 110px);
  align-items: center;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--experience-plum);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.focus-lab h2,
.reflection-copy h2,
.values-section h2 {
  color: var(--experience-wine-deep);
  text-wrap: balance;
}

.focus-lab-copy > p:last-child {
  max-width: 490px;
  margin: 27px 0 0;
  color: var(--experience-muted);
  font-size: 16px;
}

.focus-experience {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(75,23,48,0.1);
  border-radius: 34px;
  background: rgba(255, 250, 244, 0.64);
  box-shadow: var(--experience-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.focus-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.focus-choice {
  position: relative;
  min-height: 84px;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid var(--experience-line);
  border-radius: 20px;
  color: var(--experience-ink);
  text-align: left;
  background: rgba(255,255,255,0.68);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.focus-choice::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  right: -38px;
  bottom: -42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,139,162,0.32), transparent 70%);
}

.focus-choice:hover,
.focus-choice:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(75,23,48,0.32);
  box-shadow: 0 15px 32px rgba(45,13,29,0.09);
}

.focus-choice.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--experience-wine), var(--experience-plum));
  box-shadow: 0 16px 38px rgba(75,23,48,0.23);
}

.focus-choice small,
.focus-choice strong {
  display: block;
  position: relative;
  z-index: 1;
}

.focus-choice small {
  margin-bottom: 7px;
  color: var(--experience-gold);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.focus-choice strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 400;
}

.focus-panel {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 48px);
  border-radius: 24px;
  color: #fff8f3;
  background:
    radial-gradient(circle at 92% 6%, rgba(217,139,162,0.35), transparent 17rem),
    linear-gradient(145deg, var(--experience-wine-deep), var(--experience-wine));
}

.focus-panel::before {
  content: "“";
  position: absolute;
  right: 24px;
  top: -20px;
  color: rgba(255,255,255,0.07);
  font-family: Georgia, serif;
  font-size: 190px;
  line-height: 1;
}

.focus-panel.is-changing > * {
  animation: focusContentSwap 0.34s ease both;
}

@keyframes focusContentSwap {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.focus-panel-label {
  margin: 0 0 15px;
  color: var(--experience-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.focus-panel h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #fffaf6;
  font-size: clamp(34px, 4.5vw, 57px);
}

.focus-panel-copy {
  position: relative;
  z-index: 1;
  max-width: 590px;
  margin: 0 0 25px;
  color: rgba(255,245,240,0.78);
}

.focus-question {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: #f0cfb9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
}

/* Reflection + guided reset */
.reflection-section {
  position: relative;
  overflow: hidden;
  padding: 125px 0;
  color: #fff;
  background:
    radial-gradient(circle at 75% 22%, rgba(189,78,119,0.42), transparent 28rem),
    radial-gradient(circle at 10% 85%, rgba(211,173,114,0.2), transparent 25rem),
    linear-gradient(135deg, var(--experience-wine-deep), #3a1027 55%, var(--experience-plum));
}

.reflection-section::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -330px;
  bottom: -360px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255,255,255,0.018), 0 0 0 180px rgba(255,255,255,0.012);
}

.reflection-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.reflection-copy .section-kicker {
  color: var(--experience-gold);
}

.reflection-copy h2 {
  color: #fffaf6;
}

.reflection-prompt {
  min-height: 100px;
  margin: 34px 0 24px;
  padding-left: 27px;
  border-left: 2px solid var(--experience-gold);
  color: #f5ddd2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 38px);
  font-style: italic;
  line-height: 1.35;
}

.prompt-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.8);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.prompt-button::after {
  content: "↻";
  color: var(--experience-gold);
  font-size: 17px;
  transition: transform 0.35s ease;
}

.prompt-button:hover::after {
  transform: rotate(160deg);
}

.reset-orb-wrap {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
}

.reset-orb-wrap::before,
.reset-orb-wrap::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50%;
  animation: resetOrbit 10s linear infinite;
}

.reset-orb-wrap::before {
  width: 365px;
  height: 365px;
}

.reset-orb-wrap::after {
  width: 305px;
  height: 305px;
  animation-direction: reverse;
  animation-duration: 14s;
}

@keyframes resetOrbit {
  to { transform: rotate(360deg); }
}

.reset-orb {
  position: relative;
  z-index: 2;
  display: grid;
  width: 235px;
  height: 235px;
  place-items: center;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.25), transparent 24%),
    linear-gradient(145deg, rgba(217,139,162,0.65), rgba(75,23,48,0.82));
  box-shadow: 0 30px 80px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.28);
  cursor: pointer;
  animation: resetPulse 5.5s ease-in-out infinite;
}

.reset-orb:hover,
.reset-orb:focus-visible {
  box-shadow: 0 38px 95px rgba(0,0,0,0.36), 0 0 0 14px rgba(211,173,114,0.08), inset 0 1px 0 rgba(255,255,255,0.32);
}

@keyframes resetPulse {
  0%, 100% { transform: scale(0.96); }
  50% { transform: scale(1.035); }
}

.reset-orb strong,
.reset-orb small {
  display: block;
}

.reset-orb strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
}

.reset-orb small {
  max-width: 150px;
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.55;
  text-transform: uppercase;
}

/* Reset dialog */
.reset-dialog {
  width: min(520px, calc(100% - 34px));
  padding: 0;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 5%, rgba(217,139,162,0.42), transparent 18rem),
    linear-gradient(145deg, var(--experience-wine-deep), var(--experience-wine));
  box-shadow: 0 45px 120px rgba(24,5,15,0.55);
}

.reset-dialog::backdrop {
  background: rgba(23,5,15,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.reset-dialog-inner {
  position: relative;
  padding: 42px;
  text-align: center;
}

.reset-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.reset-dialog .section-kicker {
  color: var(--experience-gold);
}

.reset-dialog h2 {
  margin-bottom: 10px;
  color: #fffaf6;
  font-size: clamp(34px, 7vw, 50px);
}

.reset-dialog-copy {
  margin-bottom: 30px;
  color: rgba(255,255,255,0.7);
}

.breathing-circle {
  display: grid;
  width: 180px;
  height: 180px;
  margin: 0 auto 28px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,213,198,0.38), rgba(217,139,162,0.16) 50%, transparent 72%);
  box-shadow: 0 0 0 18px rgba(255,255,255,0.025), 0 0 65px rgba(211,173,114,0.2);
  transform: scale(0.78);
}

.breathing-circle.is-running {
  animation: breathingCycle 12s ease-in-out infinite;
}

@keyframes breathingCycle {
  0%, 100% { transform: scale(0.78); }
  34%, 50% { transform: scale(1.08); }
}

.breathing-circle span {
  max-width: 120px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.2;
}

.reset-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.reset-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--experience-gold), #f7ded0);
}

.reset-progress span.is-running {
  animation: resetTimeline 36s linear forwards;
}

@keyframes resetTimeline {
  to { transform: scaleX(1); }
}

/* About impact and values */
.impact-section {
  padding: 0 0 112px;
  background: var(--experience-cream);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--experience-line);
  border-radius: 30px;
  background: rgba(255,255,255,0.72);
  box-shadow: var(--experience-shadow);
}

.impact-card {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px;
  text-align: center;
}

.impact-card + .impact-card {
  border-left: 1px solid var(--experience-line);
}

.impact-card strong {
  margin-bottom: 12px;
  color: var(--experience-wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  line-height: 1;
}

.impact-card span {
  color: var(--experience-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.values-section {
  position: relative;
  overflow: hidden;
  padding: 118px 0;
  background:
    radial-gradient(circle at 88% 15%, rgba(211,173,114,0.2), transparent 24rem),
    linear-gradient(135deg, #f8e9e4, #fffaf4);
}

.values-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.values-heading p:last-child {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--experience-muted);
}

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

.value-card {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  padding: 38px 32px;
  border: 1px solid var(--experience-line);
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 18px 52px rgba(45,13,29,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 70px rgba(45,13,29,0.14);
}

.value-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -80px;
  bottom: -95px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,139,162,0.32), transparent 68%);
}

.value-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--experience-wine), var(--experience-plum));
  box-shadow: 0 12px 28px rgba(75,23,48,0.2);
  font-family: Georgia, serif;
  font-size: 20px;
}

.value-card h3 {
  margin: 0 0 14px;
  color: var(--experience-wine-deep);
  font-size: 29px;
}

.value-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--experience-muted);
}

/* Testimonial experience */
.testimonial-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--experience-line);
}

.testimonial-toolbar p {
  margin: 0;
  color: var(--experience-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
}

.story-randomizer {
  flex: 0 0 auto;
}

.experience-upgrade .story-card {
  isolation: isolate;
}

.experience-upgrade .story-card::after {
  content: "“";
  position: absolute;
  z-index: -1;
  right: 22px;
  top: 0;
  color: rgba(75,23,48,0.055);
  font-family: Georgia, serif;
  font-size: 105px;
  line-height: 1;
}

.story-card.is-highlighted {
  animation: highlightedStory 1.4s ease;
}

@keyframes highlightedStory {
  0%, 100% { box-shadow: 0 18px 52px rgba(45,13,29,0.08); }
  38% { box-shadow: 0 0 0 7px rgba(211,173,114,0.24), 0 35px 90px rgba(75,23,48,0.24); }
}

/* Floating conversion tools */
.floating-whatsapp {
  position: fixed;
  z-index: 10010;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 8px 18px 8px 9px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--experience-wine), var(--experience-plum));
  box-shadow: 0 20px 50px rgba(34,7,21,0.32);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), opacity 0.4s ease, box-shadow 0.25s ease;
}

.floating-whatsapp.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 27px 65px rgba(34,7,21,0.42);
}

.floating-whatsapp-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--experience-wine);
  background: var(--experience-cream);
  font-size: 19px;
}

.floating-whatsapp-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  animation: floatingRing 2.6s ease-out infinite;
}

@keyframes floatingRing {
  0% { opacity: 0.7; transform: scale(0.82); }
  80%, 100% { opacity: 0; transform: scale(1.38); }
}

.floating-whatsapp-copy strong,
.floating-whatsapp-copy small {
  display: block;
}

.floating-whatsapp-copy strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.floating-whatsapp-copy small {
  color: rgba(255,255,255,0.68);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.back-to-top {
  position: fixed;
  z-index: 10009;
  right: 29px;
  bottom: 94px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(75,23,48,0.14);
  border-radius: 50%;
  color: var(--experience-wine);
  background: rgba(255,248,239,0.9);
  box-shadow: 0 12px 32px rgba(45,13,29,0.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(15px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Footer: engineering remains the final bottom-right link. */
.experience-upgrade .footer-links a[href*="engineering-consulting"] {
  position: relative;
  color: #f3d2b6;
}

.experience-upgrade .footer-links a[href*="engineering-consulting"]::before {
  content: "✦";
  margin-right: 7px;
  color: var(--experience-gold);
}

/* Magnetic elements use JS variables. */
.experience-magnetic {
  transform: translate3d(var(--magnetic-x, 0), var(--magnetic-y, 0), 0);
  will-change: transform;
}

/* Focus and keyboard accessibility */
.experience-upgrade button:focus-visible,
.experience-upgrade a:focus-visible {
  outline: 3px solid rgba(211,173,114,0.72);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .focus-lab-grid,
  .reflection-grid {
    grid-template-columns: 1fr;
  }

  .focus-lab-copy {
    max-width: 720px;
  }

  .reset-orb-wrap {
    min-height: 365px;
  }

  .impact-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .impact-card + .impact-card {
    border-left: 0;
    border-top: 1px solid var(--experience-line);
  }

  .impact-card {
    min-height: 165px;
  }
}

@media (max-width: 900px) {
  .experience-upgrade .site-name::before {
    display: none;
  }

  .experience-cursor-glow {
    display: none;
  }

  .experience-upgrade .home-photo,
  .experience-upgrade .home-message {
    transform: none;
  }

  .floating-whatsapp-copy {
    display: none;
  }

  .floating-whatsapp {
    width: 58px;
    padding: 7px;
  }

  .back-to-top {
    right: 30px;
  }
}

@media (max-width: 680px) {
  .experience-upgrade .home-hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-intro {
    margin-top: -15px;
    margin-bottom: 38px;
  }

  .hero-signals {
    gap: 8px;
  }

  .hero-signals span {
    font-size: 8px;
  }

  .focus-lab,
  .reflection-section,
  .values-section {
    padding: 82px 0;
  }

  .focus-experience {
    padding: 12px;
    border-radius: 25px;
  }

  .focus-choices {
    grid-template-columns: 1fr;
  }

  .focus-choice {
    min-height: 72px;
  }

  .focus-panel {
    min-height: 0;
    padding: 30px 24px;
  }

  .reflection-prompt {
    padding-left: 20px;
  }

  .reset-orb-wrap {
    min-height: 320px;
  }

  .reset-orb-wrap::before {
    width: 290px;
    height: 290px;
  }

  .reset-orb-wrap::after {
    width: 245px;
    height: 245px;
  }

  .reset-orb {
    width: 205px;
    height: 205px;
  }

  .reset-dialog-inner {
    padding: 40px 24px 32px;
  }

  .testimonial-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-randomizer {
    width: 100%;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
  }

  .back-to-top {
    right: 22px;
    bottom: 84px;
  }
}

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

  .experience-reveal {
    opacity: 1;
    transform: none;
  }

  .experience-cursor-glow {
    display: none;
  }
}
