/* Desktop-only: published About profile text on the home page.
   Existing phone/tablet copy, CTA, and original notes remain untouched. */
@media (min-width:1024px) {
  body.is-home #about.desktop-about-intro-ready .mobile-about-copy {
    display:none;
  }
  body.is-home #about .desktop-about-intro {
    display:flex;
    flex-direction:column;
    gap:var(--july-space-4);
    max-width:860px;
    color:#24212c;
  }
  body.is-home #about .desktop-about-intro p {
    margin:0;
    font:400 var(--july-font-body-size)/var(--july-line-body) var(--july-font-body);
    overflow-wrap:break-word;
    hyphens:none;
  }
  body.is-home #about .home-about {
    max-width:980px;
  }
  body.is-home #about .home-about>div {
    max-width:940px;
    gap:var(--july-space-4);
  }
  body.is-home #about .mobile-about-actions {
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    max-width:860px;
    flex-wrap:wrap;
    gap:var(--july-space-5);
  }
  body.is-home #about .mobile-handnote {
    display:block;
    margin:0 22px 0 0;
    max-width:190px;
    color:var(--stasia-pink);
    font:500 28px/1.04 JulyCaveat,cursive;
    text-align:center;
    transform:rotate(-5deg);
    position:relative;
    white-space:normal;
  }
  body.is-home #about .mobile-handnote::after {
    content:"";
    position:absolute;
    height:2px;
    left:10%;
    right:0;
    bottom:-9px;
    background:currentColor;
    transform:rotate(-4deg);
  }
}
@media (max-width:1023px) {
  body.is-home #about .desktop-about-intro {display:none!important;}
}


/* Desktop editorial: source cutout photo, live handwriting, shared yellow circle. */
@media (min-width:1024px) {
  body.is-home #about::before {display:none;}
  body.is-home #about .home-about {
    display:grid;
    grid-template-columns:minmax(0,1.58fr) minmax(285px,1fr);
    align-items:end;
    gap:clamp(20px,3.4vw,46px);
    max-width:1136px;
  }
  body.is-home #about .home-about > div {
    min-width:0;
    max-width:none;
    align-self:start;
  }
  body.is-home #about .desktop-about-intro {
    width:100%;
    max-width:none;
  }
  body.is-home #about .mobile-about-actions {
    justify-content:flex-start;
    max-width:none;
  }
  body.is-home #about .mobile-about-actions .mobile-handnote {
    display:none!important;
  }
  body.is-home #about .desktop-about-portrait {
    box-sizing:border-box;
    position:relative;
    width:100%;
    height:clamp(410px,35.5vw,515px);
    min-width:0;
    padding:0;
    margin:0;
    align-self:start;
    isolation:isolate;
  }
  body.is-home #about .desktop-about-portrait::before {
    content:"";
    position:absolute;
    z-index:-1;
    width:96%;
    aspect-ratio:1;
    background:var(--stasia-yellow);
    border-radius:50%;
    top:14%;
    left:3%;
  }
  body.is-home #about .desktop-about-portrait-photo {
    display:block!important;
    position:absolute;
    z-index:1;
    bottom:0;
    right:0;
    height:100%;
    width:100%;
    object-fit:contain;
    object-position:center bottom;
    max-width:none;
  }
  body.is-home #about .desktop-about-portrait-note {
    position:absolute;
    z-index:2;
    bottom:13%;
    left:-5%;
    width:170px;
    max-width:45%;
    margin:0;
    color:var(--stasia-pink);
    font:500 31px/1.03 JulyCaveat,cursive;
    text-align:left;
    transform:rotate(-7deg);
    pointer-events:none;
    overflow-wrap:normal;
  }
  body.is-home #about .desktop-about-portrait-note::after {
    content:"";
    position:absolute;
    height:2px;
    width:90%;
    left:0;
    bottom:-8px;
    background:currentColor;
    transform:rotate(-4deg);
  }
  body.is-home #services {margin-top:var(--july-space-6);}
}
@media (max-width:1023px) {
  body.is-home #about .desktop-about-portrait {display:none!important;}
}


/* The visual column now starts on the same line as the heading. The copy
   retains the 16px title-to-content gap; portrait is less dominant. */
@media (min-width:1024px) {
  body.is-home #about .home-about {
    margin-top:-66px;
  }
  body.is-home #about .home-about > div {
    box-sizing:border-box;
    padding-top:66px;
  }
  body.is-home #about .desktop-about-portrait {
    height:clamp(450px,34vw,480px);
  }
}


/* Editorial hierarchy: quiet textual About link, less dominant portrait.
   Only on desktop. The original editor anchor stays editable. */
@media (min-width:1024px) {
  body.is-home #about .home-about > div {
    gap:var(--july-space-3);
  }
  body.is-home #about .desktop-about-portrait {
    height:clamp(385px,29vw,420px);
  }
  body.is-home #about .desktop-about-portrait::before {
    width:84%;
    top:12%;
    left:8%;
  }
  body.is-home #about .mobile-about-actions {
    width:auto;
    min-height:0;
    gap:0;
    align-items:flex-start;
    justify-content:flex-start;
  }
  body.is-home #about .mobile-about-actions a[data-july-url="home_about_more_url"] {
    display:inline-flex;
    align-items:baseline;
    gap:6px;
    min-height:0;
    width:max-content;
    max-width:100%;
    margin:0;
    padding:0 0 2px;
    border:0;
    border-bottom:1px solid currentColor;
    border-radius:0;
    box-shadow:none;
    background:transparent;
    color:var(--stasia-blue);
    font:600 16px/1.4 var(--july-font-body);
    text-decoration:none;
  }
  body.is-home #about .mobile-about-actions a[data-july-url="home_about_more_url"]::after {
    content:"↗";
    display:inline-block;
    font:600 18px/1 var(--july-font-body);
  }
  body.is-home #about .mobile-about-actions a[data-july-url="home_about_more_url"]:hover {
    background:transparent;
    color:var(--stasia-blue);
    opacity:.8;
  }
  body.is-home #about .mobile-about-actions a[data-july-url="home_about_more_url"]:focus-visible {
    outline:2px solid var(--stasia-blue);
    outline-offset:5px;
  }
}

/* Portrait and biography share the same vertical bounds.
   No fixed photo height, no zoom, no additional gap to Services. */
@media (min-width:1024px) {
  body.is-home #about .desktop-about-portrait {
    height:auto;
    min-height:0;
    align-self:stretch;
  }
  body.is-home #about .desktop-about-portrait-photo {
    transform:none;
    object-fit:contain;
    object-position:center bottom;
  }
  body.is-home #about .desktop-about-portrait::before {
    height:88%;
    width:auto;
    aspect-ratio:1;
    top:10%;
    left:50%;
    transform:translateX(-50%);
  }
  body.is-home #about .desktop-about-portrait-note {
    font-size:26px;
    left:-3%;
    bottom:10%;
  }
}


/* On desktop the About link follows the last sentence, with no button,
   arrow, separate row or extra vertical spacing. Mobile CTA unchanged. */
@media (min-width:1024px) {
  body.is-home #about.desktop-about-intro-ready .mobile-about-actions {
    display:none!important;
  }
  body.is-home #about .desktop-about-intro p a.desktop-about-inline-more {
    display:inline!important;
    position:static;
    width:auto;
    min-height:0;
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    color:var(--stasia-blue);
    font:inherit;
    text-decoration:underline;
    text-underline-offset:3px;
    white-space:nowrap;
  }
  body.is-home #about .desktop-about-intro p a.desktop-about-inline-more::before,
  body.is-home #about .desktop-about-intro p a.desktop-about-inline-more::after {
    content:none!important;
  }
  body.is-home #about .desktop-about-intro p a.desktop-about-inline-more:hover {
    opacity:.75;
  }
  body.is-home #about .desktop-about-intro p a.desktop-about-inline-more:focus-visible {
    outline:2px solid var(--stasia-blue);
    outline-offset:3px;
  }
}


/* Align the visible photo and circle with the common right edge of all cards;
   give the biography more text width and preserve its auto height. */
@media (min-width:1024px) {
  body.is-home #about .home-about {
    grid-template-columns:minmax(0,1fr) clamp(285px,30vw,360px);
    gap:clamp(20px,3vw,40px);
  }
  body.is-home #about .desktop-about-portrait::before {
    left:auto;
    right:0;
    transform:none;
    height:88%;
    width:auto;
  }
  body.is-home #about .desktop-about-portrait-photo {
    width:auto!important;
    height:100%;
    left:auto;
    right:0;
    transform:translateX(17%);
  }
  body.is-home #about .desktop-about-portrait-note {
    left:auto;
    right:51%;
    max-width:48%;
  }
}
