.jocely-biography {
  --jb-bg: #0b0b0d;
  --jb-surface: #151518;
  --jb-surface-soft: #101012;
  --jb-text: #f5f1eb;
  --jb-muted: #aaa5a1;
  --jb-line: rgba(255, 255, 255, 0.12);
  --jb-accent: #ff4f8b;
  --jb-accent-2: #26bed2;
  --jb-width: 1240px;
  --jb-top-space: 150px;
  --jb-title-gap: 76px;
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  color: var(--jb-text);
  background: var(--jb-bg);
  background:
    radial-gradient(circle at 10% 14%, color-mix(in srgb, var(--jb-accent-2) 10%, transparent), transparent 28rem),
    radial-gradient(circle at 92% 38%, color-mix(in srgb, var(--jb-accent) 9%, transparent), transparent 30rem),
    var(--jb-bg);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.jocely-biography *,
.jocely-biography *::before,
.jocely-biography *::after {
  box-sizing: border-box;
}

.jocely-biography img {
  display: block;
  width: 100%;
}

.jocely-biography p,
.jocely-biography h1,
.jocely-biography h2,
.jocely-biography h3,
.jocely-biography figure,
.jocely-biography blockquote {
  margin-top: 0;
}

.jocely-biography a {
  color: inherit;
  text-decoration: none;
}

.jb-ambient {
  position: absolute;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(110px);
  pointer-events: none;
  animation: jb-drift 14s ease-in-out infinite alternate;
}

.jb-ambient-one {
  top: 7%;
  left: -18rem;
  background: var(--jb-accent-2);
}

.jb-ambient-two {
  top: 48%;
  right: -18rem;
  background: var(--jb-accent);
  animation-delay: -5s;
}

.jb-hero,
.jb-story,
.jb-timeline-section,
.jb-quote,
.jb-cta {
  width: min(calc(100% - 64px), var(--jb-width));
  margin-right: auto;
  margin-left: auto;
}

.jb-hero {
  min-height: 760px;
  padding: var(--jb-top-space) 0 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(64px, 8vw, 124px);
  align-items: center;
}

.jb-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 44px 0;
}

.jb-eyebrow {
  margin: 0 0 32px;
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--jb-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.jb-eyebrow > span {
  width: 30px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--jb-accent);
}

.jocely-biography .jb-hero h1 {
  margin: 0;
  color: var(--jb-text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(66px, 7vw, 112px);
  font-weight: 580;
  letter-spacing: -0.072em;
  line-height: 0.9;
}

.jocely-biography .jb-hero h1 > span {
  display: block;
  overflow-wrap: break-word;
}

.jocely-biography .jb-hero h1 .jb-title-accent {
  width: max-content;
  max-width: 100%;
  padding-right: 0.08em;
  color: transparent;
  background: linear-gradient(100deg, var(--jb-accent-2), #f3c72d 46%, var(--jb-accent));
  background-clip: text;
  -webkit-background-clip: text;
}

.jb-hero-intro {
  max-width: 590px;
  margin-top: var(--jb-title-gap);
  color: var(--jb-muted);
  font-size: clamp(17px, 1.4vw, 20px);
}

.jb-hero-intro > :last-child,
.jb-story-columns > div > :last-child {
  margin-bottom: 0;
}

.jb-handwritten {
  position: relative;
  max-width: 460px;
  margin: 46px 0 0 42px;
  padding-left: 24px;
  color: color-mix(in srgb, var(--jb-text) 86%, transparent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 1.7vw, 25px);
  font-style: italic;
  line-height: 1.45;
}

.jb-handwritten::before {
  position: absolute;
  top: 0.35em;
  bottom: 0.25em;
  left: 0;
  width: 2px;
  content: "";
  background: linear-gradient(var(--jb-accent), var(--jb-accent-2));
}

.jb-portrait-card {
  --jb-tilt-x: 0deg;
  --jb-tilt-y: 0deg;
  position: relative;
  min-width: 0;
  width: min(100%, 500px);
  margin: 0 0 0 auto;
  padding: 14px;
  border: 1px solid var(--jb-line);
  border-radius: 26px;
  background: color-mix(in srgb, var(--jb-surface) 88%, transparent);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.42);
  transform: perspective(1100px) rotateX(var(--jb-tilt-x)) rotateY(var(--jb-tilt-y));
  transform-style: preserve-3d;
  transition: transform 240ms ease, border-color 300ms ease;
}

.jb-portrait-card::before {
  position: absolute;
  z-index: -1;
  top: 11%;
  right: -26px;
  bottom: -26px;
  left: 17%;
  content: "";
  border: 1px solid color-mix(in srgb, var(--jb-accent) 42%, transparent);
  border-radius: 26px;
  transform: translateZ(-1px);
}

.jb-portrait-card:hover {
  border-color: color-mix(in srgb, var(--jb-accent-2) 42%, var(--jb-line));
}

.jb-frame-number {
  position: absolute;
  z-index: 3;
  top: 32px;
  left: -28px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--jb-line);
  border-radius: 50%;
  color: var(--jb-text);
  background: var(--jb-bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.jb-portrait-media {
  position: relative;
  height: 590px;
  overflow: hidden;
  border-radius: 17px;
  background: #0f0f11;
}

.jb-portrait-media > img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.03);
  transform: scale(1.025);
  transition: transform 900ms cubic-bezier(0.2, 0.65, 0.3, 1), filter 600ms ease;
}

.jb-portrait-card:hover .jb-portrait-media > img {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.065);
}

.jb-portrait-card figcaption {
  min-height: 60px;
  margin: 0;
  padding: 18px 6px 4px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--jb-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jb-portrait-card figcaption i {
  color: var(--jb-accent);
  font-size: 17px;
  font-style: normal;
}

.jb-portrait-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 22% 76%, color-mix(in srgb, var(--jb-accent-2) 74%, transparent), transparent 24%),
    radial-gradient(circle at 78% 26%, color-mix(in srgb, var(--jb-accent) 78%, transparent), transparent 28%),
    linear-gradient(135deg, #0b2932, #151518 46%, #3b1028);
}

.jb-portrait-placeholder::before {
  position: absolute;
  inset: -30%;
  content: "";
  opacity: 0.58;
  background: repeating-conic-gradient(from 22deg, transparent 0 10deg, rgba(255, 255, 255, 0.08) 10deg 12deg);
  animation: jb-spin 26s linear infinite;
}

.jb-placeholder-name {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7vw, 94px);
  font-style: italic;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transform: rotate(-7deg);
}

.jb-placeholder-orbit {
  position: absolute;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.jb-placeholder-orbit-one {
  width: 76%;
  height: 56%;
}

.jb-placeholder-orbit-two {
  width: 58%;
  height: 82%;
  border-color: color-mix(in srgb, var(--jb-accent) 70%, white);
  transform: rotate(31deg);
}

.jb-placeholder-palette {
  position: absolute;
  z-index: 3;
  bottom: 10%;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.jb-placeholder-palette i {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: #1d80d6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.jb-placeholder-palette i:nth-child(2) { background: #19abb0; }
.jb-placeholder-palette i:nth-child(3) { background: #f2c12c; }
.jb-placeholder-palette i:nth-child(4) { background: #ee6a2c; }
.jb-placeholder-palette i:nth-child(5) { background: #ec4386; }

.jb-story {
  padding: 136px 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(70px, 9vw, 142px);
  align-items: center;
  border-top: 1px solid var(--jb-line);
}

.jb-story-visual {
  position: relative;
  margin: 0;
}

.jb-story-visual::after {
  position: absolute;
  z-index: -1;
  top: -22px;
  right: -22px;
  width: 56%;
  height: 52%;
  content: "";
  border-top: 2px solid var(--jb-accent-2);
  border-right: 2px solid var(--jb-accent);
}

.jb-story-media {
  height: 520px;
  overflow: hidden;
  border-radius: 4px 70px 4px 4px;
  background: var(--jb-surface);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.jb-story-media > img {
  height: 100%;
  padding: 24px;
  object-fit: contain;
  transition: transform 800ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.jb-story-visual:hover .jb-story-media > img {
  transform: scale(1.035) rotate(-0.6deg);
}

.jb-story-visual figcaption {
  margin-top: 18px;
  color: var(--jb-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jb-story-copy-wide {
  grid-column: 1 / -1;
  width: min(100%, 900px);
  margin: 0 auto;
}

.jb-story-copy,
.jb-section-heading {
  min-width: 0;
}

.jocely-biography .jb-story-copy h2,
.jocely-biography .jb-section-heading h2,
.jocely-biography .jb-cta h2 {
  margin: 0;
  color: var(--jb-text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(45px, 5vw, 78px);
  font-weight: 540;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.jb-story-columns {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
  color: var(--jb-muted);
  font-size: 16px;
}

.jb-story-columns > div:first-child p:first-child::first-letter {
  margin: 0.12em 0.13em 0 0;
  float: left;
  color: var(--jb-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4em;
  line-height: 0.72;
}

.jb-timeline-section {
  padding: 130px 0 150px;
  border-top: 1px solid var(--jb-line);
}

.jb-section-heading {
  max-width: 720px;
}

.jocely-biography .jb-timeline {
  position: relative;
  margin: 120px 0 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.jb-timeline::before {
  position: absolute;
  top: 17px;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--jb-accent-2), var(--jb-line) 24%, var(--jb-line) 76%, var(--jb-accent));
}

.jb-timeline-item {
  position: relative;
  min-width: 0;
  padding: 64px 28px 0 0;
}

.jb-timeline-item::before {
  position: absolute;
  z-index: 1;
  top: 11px;
  left: 0;
  width: 13px;
  height: 13px;
  content: "";
  border: 3px solid var(--jb-bg);
  border-radius: 50%;
  background: var(--jb-accent);
  box-shadow: 0 0 0 1px var(--jb-accent), 0 0 22px color-mix(in srgb, var(--jb-accent) 52%, transparent);
}

.jb-timeline-item:nth-child(even)::before {
  background: var(--jb-accent-2);
  box-shadow: 0 0 0 1px var(--jb-accent-2), 0 0 22px color-mix(in srgb, var(--jb-accent-2) 52%, transparent);
}

.jb-timeline-number {
  position: absolute;
  top: 32px;
  right: 28px;
  color: rgba(255, 255, 255, 0.035);
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

.jb-timeline-marker {
  min-height: 3.2em;
  margin: 0 0 14px;
  color: var(--jb-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.jb-timeline-item:nth-child(even) .jb-timeline-marker {
  color: var(--jb-accent-2);
}

.jocely-biography .jb-timeline-item h3 {
  margin: 0 0 18px;
  color: var(--jb-text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.jb-timeline-text {
  max-width: 255px;
  margin: 0;
  color: var(--jb-muted);
  font-size: 14px;
  line-height: 1.7;
}

.jb-quote {
  position: relative;
  min-height: 430px;
  padding: 90px clamp(32px, 8vw, 120px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--jb-line);
  border-radius: 32px;
  background:
    linear-gradient(118deg, color-mix(in srgb, var(--jb-accent-2) 13%, transparent), transparent 34%),
    linear-gradient(302deg, color-mix(in srgb, var(--jb-accent) 13%, transparent), transparent 38%),
    var(--jb-surface);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
}

.jb-quote::after {
  position: absolute;
  right: -7%;
  bottom: -58%;
  width: 430px;
  height: 430px;
  content: "";
  border: 1px solid color-mix(in srgb, var(--jb-accent) 32%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.018), 0 0 0 88px rgba(255, 255, 255, 0.012);
}

.jb-quote-mark {
  position: absolute;
  top: 18px;
  left: 42px;
  color: color-mix(in srgb, var(--jb-accent) 28%, transparent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 230px;
  line-height: 1;
}

.jb-quote blockquote {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0;
  color: var(--jb-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 5vw, 74px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.jb-quote > p {
  position: relative;
  z-index: 1;
  margin: 40px 0 0;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--jb-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.jb-quote > p span {
  width: 28px;
  height: 1px;
  background: var(--jb-accent-2);
}

.jb-cta {
  margin-top: 142px;
  padding: 84px 0 104px;
  display: flex;
  gap: 50px;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--jb-line);
}

.jocely-biography .jb-cta h2 {
  max-width: 820px;
}

.jb-button {
  width: 168px;
  height: 168px;
  flex: 0 0 auto;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: 50%;
  color: #0a0a0c !important;
  background: var(--jb-text);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  transform: rotate(-5deg);
  transition: color 280ms ease, background 280ms ease, transform 360ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.jb-button i {
  align-self: flex-end;
  font-size: 23px;
  font-style: normal;
}

.jb-button:hover,
.jb-button:focus-visible {
  color: #fff !important;
  background: var(--jb-accent);
  transform: rotate(0deg) scale(1.04);
}

.jb-button:focus-visible {
  outline: 2px solid var(--jb-accent-2);
  outline-offset: 5px;
}

.jocely-biography.jb-animate .jb-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 720ms ease, transform 850ms cubic-bezier(0.18, 0.72, 0.25, 1);
}

.jocely-biography.jb-animate .jb-reveal.is-visible,
.elementor-editor-active .jocely-biography .jb-reveal {
  opacity: 1;
  transform: translateY(0);
}

.jb-timeline-item:nth-child(2) { transition-delay: 90ms; }
.jb-timeline-item:nth-child(3) { transition-delay: 180ms; }
.jb-timeline-item:nth-child(4) { transition-delay: 270ms; }
.jb-timeline-item:nth-child(5) { transition-delay: 360ms; }
.jb-timeline-item:nth-child(6) { transition-delay: 450ms; }

@keyframes jb-drift {
  from { transform: translate3d(0, -5%, 0) scale(0.9); }
  to { transform: translate3d(12%, 8%, 0) scale(1.1); }
}

@keyframes jb-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1120px) {
  .jb-hero,
  .jb-story,
  .jb-timeline-section,
  .jb-quote,
  .jb-cta {
    width: min(calc(100% - 48px), var(--jb-width));
  }

  .jb-hero {
    min-height: auto;
    padding: var(--jb-top-space) 0 90px;
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }

  .jb-hero-copy {
    width: min(100%, 860px);
  }

  .jocely-biography .jb-hero h1 {
    font-size: clamp(60px, 10vw, 102px);
  }

  .jb-portrait-card {
    width: min(66vw, 520px);
    margin: 0 30px 0 auto;
  }

  .jb-portrait-media {
    height: 500px;
  }

  .jb-story {
    padding: 110px 0;
    grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
    gap: 64px;
  }

  .jb-story-media {
    height: 430px;
  }

  .jb-story-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .jocely-biography .jb-timeline {
    margin-top: 88px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 54px 36px;
  }

  .jb-timeline::before {
    display: none;
  }

  .jb-timeline-item {
    padding: 40px 22px 0 0;
    border-top: 1px solid var(--jb-line);
  }

  .jb-timeline-item::before {
    top: -7px;
  }

  .jb-timeline-number {
    top: 26px;
  }
}

@media (max-width: 767px) {
  .jb-hero,
  .jb-story,
  .jb-timeline-section,
  .jb-quote,
  .jb-cta {
    width: min(calc(100% - 32px), var(--jb-width));
  }

  .jb-hero {
    padding: var(--jb-top-space) 0 72px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .jb-hero-copy {
    padding: 0;
  }

  .jb-eyebrow {
    margin-bottom: 24px;
  }

  .jocely-biography .jb-hero h1 {
    font-size: clamp(48px, 15vw, 72px);
    letter-spacing: -0.065em;
  }

  .jb-hero-intro {
    font-size: 16px;
  }

  .jb-handwritten {
    margin: 32px 0 0 12px;
    font-size: 18px;
  }

  .jb-portrait-card {
    width: calc(100% - 12px);
    margin: 0 12px 0 0;
  }

  .jb-frame-number {
    top: 24px;
    left: -17px;
    width: 46px;
    height: 46px;
  }

  .jb-portrait-media {
    height: min(124vw, 520px);
  }

  .jb-story {
    padding: 88px 0;
    grid-template-columns: 1fr;
    gap: 66px;
  }

  .jb-story-media {
    height: min(112vw, 460px);
  }

  .jb-story-visual::after {
    right: -10px;
  }

  .jocely-biography .jb-story-copy h2,
  .jocely-biography .jb-section-heading h2,
  .jocely-biography .jb-cta h2 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .jb-story-columns {
    margin-top: 36px;
  }

  .jb-timeline-section {
    padding: 88px 0 104px;
  }

  .jocely-biography .jb-timeline {
    margin-top: 62px !important;
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .jb-timeline-item {
    padding-right: 0;
  }

  .jb-timeline-text {
    max-width: 100%;
  }

  .jb-timeline-marker {
    min-height: 0;
  }

  .jb-quote {
    min-height: 360px;
    padding: 68px 28px;
    border-radius: 22px;
  }

  .jb-quote-mark {
    top: 16px;
    left: 18px;
    font-size: 150px;
  }

  .jb-quote blockquote {
    font-size: clamp(36px, 11vw, 52px);
  }

  .jb-cta {
    margin-top: 90px;
    padding: 66px 0 82px;
    flex-direction: column;
    align-items: flex-start;
  }

  .jb-button {
    width: 142px;
    height: 142px;
    padding: 22px;
    align-self: flex-end;
  }
}

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

  .jocely-biography.jb-animate .jb-reveal {
    opacity: 1;
    transform: none;
  }
}
