/* Lena's own story; the scroll-drawn line connects the dated stations. */
.v4-person-opening { position: relative; min-height: 900px; height: 105svh; overflow: hidden; isolation: isolate; background: #000; }
.v4-person-opening::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(0deg,#000,rgb(0 0 0 / .78) 36%,transparent 70%); }
.v4-person-opening .v4-person-portrait { position: absolute; inset: 0 0 0 28%; margin: 0; z-index: -1; }
.v4-person-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; mask-image: linear-gradient(90deg,transparent,#000 22%,#000 94%,transparent),linear-gradient(180deg,#000 68%,transparent); mask-composite: intersect; }
.v4-person-opening-copy { position: absolute; z-index: 1; left: var(--v4-gutter); right: var(--v4-gutter); bottom: 13%; }
.v4-person-page :is(#mein-weg,#meisterstueck) { scroll-margin-top: calc(var(--v4-person-header-height,110px) + var(--v4-toolbar-offset,0px) + 16px); }
.v4-person-opening h1 { font-size: clamp(100px,12vw,210px); line-height: .95; letter-spacing: -.035em; margin-top: 35px; }
.v4-person-opening .v4-person-motto { font: 400 clamp(30px,3vw,52px)/1.15 'Bodoni Moda',Georgia,serif; max-width: 12ch; }
.v4-person-opening .v4-person-role { margin-top: 30px; font-size: 15px; color: var(--v4-mauve); }
.v4-person-links { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 36px !important; }
.v4-person-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.v4-person-intro { display: grid; grid-template-columns: .9fr 1fr; gap: 12%; padding: 70px var(--v4-gutter) 110px; }
.v4-person-intro h2 { max-width: 10ch; }
.v4-person-intro-copy { max-width: 53ch; }
.v4-person-intro-copy p + p { margin-top: 28px; color: var(--v4-muted); }
.v4-person-way { padding: 80px var(--v4-gutter) 30px; background: linear-gradient(#000,var(--v4-plum) 35%,var(--v4-plum) 80%,#000); }
.v4-person-way > h2 { margin-bottom: 70px; }
.v4-time-track { position: relative; }
.v4-time-row { position: relative; padding: 52px 8% 90px; min-height: 0; }
.v4-time-stop { position: relative; width: 60%; padding-top: 38px; }
.v4-time-row:nth-of-type(even) .v4-time-stop { margin-left: auto; }
.v4-time-stop::before { content: ''; position: absolute; top: -6px; left: -6px; width: 13px; height: 13px; border: 1px solid var(--v4-mauve); border-radius: 50%; background: var(--v4-plum); }
body:not(.editor-styles-wrapper) .v4-time-stop::before { top: -58px; }
.v4-time-row:nth-of-type(even) .v4-time-stop::before { left: auto; right: -6px; }
.v4-time-stop.v4-time-reached::before { background: var(--v4-mauve); }
.v4-person-page .v4-time-year { color: var(--v4-mauve); font: 400 clamp(64px,6.5vw,108px)/1 'Bodoni Moda',Georgia,serif; letter-spacing: -.025em; }
.v4-time-stop h3 { font-size: clamp(30px,3vw,46px); line-height: 1.12; margin-top: 22px; }
.v4-time-emphasis .v4-time-stop h3 { position: relative; }
.v4-time-emphasis .v4-time-stop h3::after {
  content: ''; position: absolute; left: 0; bottom: -13px; width: 84px; height: 1px;
  background: var(--v4-mauve); opacity: 0;
  transform: scaleX(var(--v4-station,0)); transform-origin: left;
}
.v4-time-emphasis .v4-time-current h3::after { opacity: var(--v4-station,0); }
.v4-time-emphasis .v4-time-current::before { border-color: var(--v4-paper); background: var(--v4-paper); }
.v4-time-stop > p:last-child { max-width: 49ch; margin-top: 25px; color: var(--v4-muted); }
.v4-time-art { display: none; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.v4-time-ready .v4-time-art { display: block; }
.v4-time-art path { fill: none; stroke: var(--v4-mauve); stroke-width: 2; vector-effect: non-scaling-stroke; }
.v4-time-art .v4-time-base { opacity: .22; }
.v4-time-art .v4-time-live { stroke-width: 2.5; }
.v4-time-art circle { fill: var(--v4-paper); }
.v4-time-row-photo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 8%; align-items: start; }
.v4-time-row.v4-time-row-photo .v4-time-stop { width: auto; min-width: 0; margin-inline: 0; grid-column: 1; grid-row: 1; }
.v4-time-row-photo:nth-of-type(even) .v4-time-stop { grid-column: 2; }
.v4-time-row-photo .v4-time-photo {
  position: relative; grid-column: 2; grid-row: 1; align-self: center; justify-self: end;
  width: 100%; max-width: 400px; min-width: 0; margin: 56px 0 0 !important;
}
.v4-time-row-photo:nth-of-type(even) .v4-time-photo { grid-column: 1; justify-self: start; }
.v4-time-row-photo .v4-person-masterpiece-photo { max-width: 620px; }
.v4-time-row-photo .v4-time-photo-detail { max-width: 360px; }
.v4-time-photo img:not(.v4-photo-light) { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.v4-time-photo-detail img:not(.v4-photo-light) { aspect-ratio: 1; object-fit: cover; object-position: 50% 35%; }
.v4-time-photo-interview img:not(.v4-photo-light) { object-position: 50% 20%; }
.v4-time-photo figcaption {
  position: absolute; z-index: 4; inset: auto 12px 12px; margin: 0;
  padding: 12px 16px; background: var(--v4-plum); color: var(--v4-paper);
  border: 1px solid var(--v4-line); font-size: 15px; line-height: 1.6;
  visibility: hidden; opacity: 0; pointer-events: none;
}
.v4-time-photo:is(:hover,:focus-within,.v4-tip-open):not(.v4-tip-dismissed) figcaption { visibility: visible; opacity: 1; pointer-events: auto; }
.v4-time-photo[tabindex]:focus-visible { outline: 1px solid var(--v4-mauve); outline-offset: 6px; }
.v4-person-experience { display: grid; grid-template-columns: 1fr .8fr; gap: 12%; align-items: start; padding: 80px var(--v4-gutter) 130px; }
.v4-person-experience-copy p { max-width: 49ch; margin-top: 30px; color: var(--v4-muted); }
.v4-person-experience-copy > p:first-child { margin-top: 0; }
.v4-person-contact { padding: 70px var(--v4-gutter) 90px; }
.v4-person-contact p { max-width: 48ch; margin-top: 30px; color: var(--v4-muted); }
.v4-person-contact .wp-block-buttons { margin-top: 36px; }
/* Match the reading comfort of the homepage, without scaling display years. */
.v4-person-page :is(.v4-person-intro-copy,.v4-time-stop,.v4-person-experience-copy,.v4-person-contact) > p:not(.v4-time-year) {
  font-size: clamp(17px,1.2vw,18px); line-height: 1.8;
}
.v4-person-page .v4-time-stop > p.v4-time-date {
  margin-top: 14px; color: var(--v4-mauve); font-size: 16px; line-height: 1.5;
}
/* The text determines desktop row height; photographs align with its first line. */
@media (min-width:901px) {
  body:not(.editor-styles-wrapper) .v4-time-row-photo { align-items: stretch; }
  body:not(.editor-styles-wrapper) .v4-time-row-photo > .v4-time-photo {
    align-self: stretch; contain: size; max-width: none; min-height: 0;
    margin: 38px 0 0 !important;
  }
  body:not(.editor-styles-wrapper) .v4-time-photo-sequence {
    display: grid; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 20px;
    grid-column: 2; grid-row: 1; align-self: stretch; contain: size;
    min-height: 0; min-width: 0; margin-top: 38px !important;
  }
  body:not(.editor-styles-wrapper) .v4-time-row-photo:nth-of-type(even) > .v4-time-photo-sequence { grid-column: 1; }
  body:not(.editor-styles-wrapper) .v4-time-photo-sequence > .v4-time-photo {
    grid-column: 1; grid-row: auto;
    align-self: stretch; contain: size; min-height: 0; max-width: none; margin: 0 !important;
  }
  body:not(.editor-styles-wrapper) .v4-time-photo .v4-photo-window { height: 100%; container-type: size; }
  body:not(.editor-styles-wrapper) .v4-time-photo img:not(.v4-photo-light) { height: 100%; object-fit: cover; }
  body:not(.editor-styles-wrapper) :is(.v4-person-masterpiece-photo,.v4-time-photo-sequence .v4-time-photo) img:not(.v4-photo-light) { object-fit: contain; }
  body:not(.editor-styles-wrapper) .v4-time-photo-workbench img { object-position: 50% 35%; }
  body:not(.editor-styles-wrapper) .v4-time-photo img[src$="hero-lena.webp"] { object-position: 75% 50%; }
  /* Frame only the photographic part of the two original story/video assets. */
  body:not(.editor-styles-wrapper) .v4-time-photo-interview.v4-photo-enhanced img:not(.v4-photo-light) {
    position: absolute; left: 50%; top: 50%; max-width: none;
    width: max(105.9603cqw,128cqh); height: max(188.4106cqw,227.6cqh);
    transform: translate(-50.3125%,-33.3919%);
  }
  body:not(.editor-styles-wrapper) .v4-time-photo-course.v4-photo-enhanced img:not(.v4-photo-light) {
    position: absolute; left: 50%; top: 50%; max-width: none;
    width: max(100cqw,115.3846cqh); height: max(177.7778cqw,205.1282cqh);
    transform: translate(-50%,-41.25%);
  }
}
@media (max-width:900px) {
  .v4-person-opening { min-height: 780px; height: 100svh; }
  .v4-person-opening .v4-person-portrait { left: 10%; }
  .v4-person-opening h1 { font-size: clamp(80px,13vw,140px); }
  .v4-person-opening .v4-person-motto { font-size: 36px; }
  .v4-person-intro { gap: 7%; padding-bottom: 80px; }
  .v4-person-way { padding-top: 50px; }
  .v4-time-row { padding-bottom: 90px; }
  .v4-time-stop { width: 80%; }
  .v4-time-row-photo { display: block; }
  .v4-time-row-photo .v4-time-photo { max-width: 420px; margin: 36px auto 0 !important; }
  .v4-person-experience { gap: 7%; padding-bottom: 90px; }
}
@media (max-width:600px) {
  .v4-person-opening { min-height: 730px; height: 100svh; }
  .v4-person-opening .v4-person-portrait { inset: 70px -40% 15% -4%; }
  .v4-person-portrait img { object-position: 100% 50%; mask-image: linear-gradient(180deg,transparent,#000 12%,#000 68%,transparent); }
  .v4-person-opening-copy { bottom: 7%; }
  .v4-person-opening h1 { font-size: clamp(60px,20vw,110px); margin-top: 24px; }
  .v4-person-opening .v4-person-motto { font-size: 28px; max-width: 11ch; }
  .v4-person-opening .v4-person-role { font-size: 13px; margin-top: 22px; }
  .v4-person-links { gap: 22px; margin-top: 20px !important; }
  .v4-person-links a { font-size: 13px; }
  .v4-person-intro { display: block; padding-top: 50px; padding-bottom: 60px; }
  .v4-person-intro-copy { margin-top: 34px !important; }
  .v4-person-way { padding-top: 40px; }
  .v4-person-way > h2 { margin-bottom: 40px; }
  .v4-time-row { padding: 42px 8% 80px; }
  body:not(.editor-styles-wrapper) .v4-time-stop::before { top: -48px; }
  .v4-time-stop { width: 100%; }
  .v4-person-page .v4-time-year { font-size: 72px; }
  .v4-time-stop h3 { font-size: 31px; hyphens: auto; overflow-wrap: anywhere; }
  .v4-time-stop > p:last-child { font-size: 15px; line-height: 1.85; margin-top: 22px; }
  .v4-person-experience { display: flex; flex-direction: column; gap: 38px; padding-block: 50px 70px; }
  .v4-person-experience-photo { width: 100%; }
  .v4-person-contact { padding-top: 30px; padding-bottom: 50px; }
}
@media (prefers-reduced-motion:reduce) { .v4-time-art circle { display: none; } }
.editor-styles-wrapper :is(.v4-person-opening,.v4-person-intro,.v4-person-way,.v4-person-masterpiece,.v4-person-experience,.v4-person-contact) { height: auto; min-height: 0; display: block; padding: 32px; }
.editor-styles-wrapper .v4-person-opening .v4-person-portrait { position: static; inset: auto; }
.editor-styles-wrapper .v4-person-portrait img { height: auto; mask-image: none; }
.editor-styles-wrapper .v4-person-opening-copy { position: static; }
.editor-styles-wrapper .v4-person-opening::after { display: none; }
.editor-styles-wrapper .v4-time-stop { width: 100%; }
.editor-styles-wrapper .v4-time-row-photo { display: block; min-height: 0; }
.editor-styles-wrapper .v4-time-row-photo .v4-time-photo { max-width: 100%; margin-top: 24px !important; }
.editor-styles-wrapper .v4-time-photo figcaption { position: static; visibility: visible; opacity: 1; pointer-events: auto; margin-top: 14px; padding: 0; border: 0; background: transparent; color: var(--v4-muted); }
