/* Portfolio review: immediate content, consistent actions, readable case visuals. */
.page-content,
.c-hero__location { opacity: 1; transition: none; }
.c-hero__location { color: rgb(255 255 255 / 60%); }
.c-hero__title { margin: 0; }
.c-hero__actions { gap: 12px; }
.c-story-block__visual { opacity: 1; transform: none; transition: none; }
.c-story-block__visual--pricing { max-width: min(100%, 360px); justify-self: center; }
.portfolio-zoom { display: block; cursor: zoom-in; }
.portfolio-zoom:focus-visible { outline: 2px solid #6e9aff; outline-offset: 6px; }
.portfolio-caption { color: rgb(255 255 255 / 60%); font-size: 16px; line-height: 1.5; margin-bottom: 12px; }
@media (max-width: 768px) {
  .c-hero__actions { gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 96px); }
  .c-hero__actions .c-button { font-size: 14px; padding: 10px 8px; min-height: 44px; }
  .c-hero__actions .c-button__icon { display: none; }
  .c-story-block__visual--pricing { max-width: min(100%, 300px); }
}

.image-viewer {
  position: fixed; inset: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgb(0 0 0 / 94%); color: white;
}
.image-viewer::backdrop { background: black; }
.image-viewer__tools {
  position: absolute; z-index: 1; top: 12px; right: 16px;
  display: flex; gap: 8px;
}
.image-viewer__tools button {
  min-height: 44px; padding: 10px 16px; border: 1px solid #666;
  border-radius: 8px; color: white; background: #181818;
  font: 16px/24px sans-serif; cursor: pointer;
}
.image-viewer__tools button:focus-visible { outline: 2px solid #6e9aff; outline-offset: 3px; }
.image-viewer__stage {
  position: absolute; inset: 76px 0 0; padding: 16px;
  overflow: auto; overscroll-behavior: contain;
  display: grid; place-items: center;
}
.image-viewer__stage img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: calc(100dvh - 108px);
  cursor: zoom-in;
}
.image-viewer.is-zoomed .image-viewer__stage { display: block; }
.image-viewer.is-zoomed img {
  width: auto; max-width: none; max-height: none; margin: auto; cursor: zoom-out;
}

@media (max-width: 768px) {
  /* Keep reading space clear once the introductory header scrolls away. */
  .c-hero { position: absolute; }
  .c-header .c-profile__name { display: none; }
  .c-header__actions { gap: 8px; }
}

/* Same author sizes and spacing as the homepage reviews. */
.case-testimonial { margin: 0; max-width: 680px; scroll-margin-top: 100px; display: flex; flex-direction: column; gap: 24px; }
.case-testimonial blockquote { margin: 0; }
.case-testimonial blockquote p { margin: 0; color: #fff; font: 400 18px/24px var(--font-ui); }
.case-testimonial figcaption { order: -1; display: flex; align-items: center; gap: 16px; }
.case-testimonial__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.case-testimonial figcaption a { color: var(--color-link); font: 500 20px/26px var(--font-display); text-decoration: none; }
.case-testimonial figcaption a:hover { text-decoration: underline; }
.case-testimonial figcaption span { display: block; color: rgb(255 255 255 / 60%); font: 400 16px/22px var(--font-ui); }

.c-story-block__body > .case-testimonial { margin-top: 32px; max-width: none; }

#retention { scroll-margin-top: 100px; }
/* The table is text content, not a rounded image. */
.sober-block__media.retention-table-wrap { width: 100%; max-width: 1120px; border-radius: 0; overflow: visible; }
.retention-table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.retention-table caption { text-align: left; color: #fff; font-size: 20px; font-weight: 500; line-height: 1.5; padding: 0 0 24px; }
.retention-table caption span { display: block; color: rgb(255 255 255 / 60%); font-size: 16px; font-weight: 400; margin-top: 4px; }
.retention-table th, .retention-table td { padding: 20px 24px; text-align: right; border-bottom: 1px solid rgb(255 255 255 / 12%); font-size: 22px; line-height: 1.4; color: #fff; white-space: nowrap; }
.retention-table thead { background: rgb(255 255 255 / 5%); }
.retention-table thead th { font-size: 16px; font-weight: 500; color: rgb(255 255 255 / 60%); vertical-align: bottom; }
.retention-table thead th span { display: block; font-size: 13px; font-weight: 400; margin-top: 4px; }
.retention-table th:first-child { text-align: left; }
.retention-table tbody th { font-size: 18px; font-weight: 500; }
.retention-table .retention-current { font-weight: 600; }
.retention-table .retention-change { display: block; margin-top: 5px; color: #65c879; font-size: 16px; font-weight: 400; }
.retention-table abbr { text-decoration: none; font-size: .8em; font-weight: 400; }
.retention-footnote { margin: 16px 0 0; color: rgb(255 255 255 / 60%); font: 400 14px/1.5 var(--font-ui); }
@media (max-width: 600px) {
 .retention-table th, .retention-table td { padding: 16px 5px; font-size: 15px; }
 .retention-table tbody th { font-size: 14px; }
 .retention-table .retention-change { font-size: 12px; }
 .retention-table thead th { font-size: 13px; }
 .retention-table thead th span { font-size: 10px; }
 .retention-table caption { font-size: 18px; padding-bottom: 20px; }
 .retention-table caption span, .retention-footnote { font-size: 13px; }
}

/* Reserve room for the badge; only its glow overlaps the table edge. */
.sober-block__media.retention-table-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: center; max-width: 1400px; }
.retention-badge { width: 280px; margin: 0 0 0 -70px; position: relative; pointer-events: none; }
.retention-badge figcaption { margin: -18px 0 0 70px; color: rgb(255 255 255 / 60%); font: 400 12px/1.5 var(--font-ui); }
@media (max-width: 700px) {
 .sober-block__media.retention-table-wrap { grid-template-columns: minmax(0, 1fr); }
 .retention-badge { display: none; }
}

#financials { scroll-margin-top: 100px; }
.financial-note { margin: 12px 0 0; color: rgb(255 255 255 / 60%); font: 400 14px/1.5 var(--font-ui); }
.financial-panel { position: relative; min-height: 300px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 12px; background: #0b0b0b; overflow: hidden; }
.financial-panel [hidden] { display: none !important; }
.financial-placeholder { padding: 24px; filter: blur(7px); opacity: .45; user-select: none; pointer-events: none; }
.financial-placeholder > div { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid #444; font: 400 20px/1.4 var(--font-ui); }
.financial-placeholder span { text-align: right; }
.financial-unlock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: rgb(0 0 0 / 35%); }
.financial-unlock label { color: #fff; text-align: center; font: 500 18px/1.4 var(--font-ui); }
.financial-unlock__controls { display: flex; gap: 10px; margin-top: 20px; width: min(100%, 400px); }
.financial-unlock input { min-width: 0; width: 100%; border: 1px solid #666; border-radius: 8px; background: #111; color: #fff; padding: 12px 14px; font: 400 16px/1.5 var(--font-ui); }
.financial-panel button { border: 1px solid #666; border-radius: 8px; padding: 12px 18px; color: #fff; background: #161616; font: 500 16px/1.5 var(--font-ui); cursor: pointer; white-space: nowrap; }
.financial-unlock button { background: #2864ed; border-color: #2864ed; }
.financial-panel button:disabled { opacity: .6; cursor: wait; }
.financial-panel :focus-visible { outline: 2px solid #69a4ff; outline-offset: 3px; }
.financial-error { min-height: 22px; margin-top: 12px; color: #ffb6ae; font: 400 14px/1.5 var(--font-ui); text-align: center; }
.financial-results { padding: 16px; }
.financial-table-scroll { overflow-x: auto; }
.financial-table tbody th { white-space: normal; min-width: 170px; }
.financial-results__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.financial-results__footer .financial-note { margin: 0; }
@media (max-width: 600px) {
 .financial-results { padding: 8px; }
 .financial-table { min-width: 540px; }
 .financial-results__footer { align-items: flex-start; padding: 8px; }
 .financial-unlock { padding: 16px; }
 .financial-panel button { padding: 12px; }
}

.about-experience { position: relative; scroll-margin-top: 100px; }
.about-experience .about-experience__portrait { width: 100%; }
.about-experience__companies { position: absolute; right: 2%; bottom: 3%; width: 48%; border-radius: 8px; box-shadow: 0 8px 32px rgb(0 0 0 / 35%); }
.about-experience__companies img { width: 100%; }
@media (max-width: 768px) {
 .about-experience__companies { position: static; display: block; width: 100%; margin-top: 16px; box-shadow: none; }
}
