/* A responsive, pointer-aware profile card with safe defaults for every browser. */
#about.about-section {
    position: relative;
    isolation: isolate;
}
#about.about-section::after {
    position: absolute;
    z-index: -1;
    top: 20%;
    left: 7%;
    width: min(54vw, 680px);
    aspect-ratio: 1;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,207,61,.12), rgba(245,207,61,.035) 42%, transparent 72%);
    filter: blur(35px);
    pointer-events: none;
}
#about.about-section .container > h2 {
    width: fit-content;
    margin: 0 auto clamp(28px, 5vh, 52px);
    color: var(--paper);
    font: 700 clamp(3rem, 7vw, 6.2rem)/.96 var(--street-heading);
    letter-spacing: -.075em;
    text-align: center;
    text-transform: none;
}
#about.about-section .container > h2::after {
    display: block;
    width: 52px;
    height: 3px;
    margin: 16px auto 0;
    content: "";
    border-radius: 2px;
    background: linear-gradient(90deg, var(--lime), var(--mint));
    box-shadow: 0 0 14px rgba(228,187,40,.24);
}
#identity-intro + #about.about-section { border-top: 0; }
#about .about-content {
    --about-pointer-x: 50%;
    --about-pointer-y: 48%;
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, .88fr) minmax(0, 1.12fr);
    align-items: stretch;
    width: 100%;
    max-width: 1080px;
    min-height: 570px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 22px;
    background:
        radial-gradient(520px circle at var(--about-pointer-x) var(--about-pointer-y), rgba(245,207,61,.095), transparent 72%),
        linear-gradient(135deg, rgba(255,255,255,.075), transparent 42%),
        rgba(27,29,33,.66);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    backdrop-filter: blur(22px) saturate(135%);
    box-shadow: 0 34px 100px rgba(0,0,0,.28), 0 0 60px rgba(245,207,61,.045), inset 0 1px 0 rgba(255,255,255,.12);
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    transition: border-color .35s ease, box-shadow .4s ease, background-position .25s ease;
}
#about .about-content::before {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--studio-yellow, #f5cf3d), rgba(245,207,61,.18) 68%, transparent);
    transform: scaleX(var(--about-scroll-progress, 0));
    transform-origin: left center;
    pointer-events: none;
}
#about .about-content::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    background: radial-gradient(360px circle at var(--about-pointer-x) var(--about-pointer-y), rgba(255,235,153,.075), transparent 72%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
#about .about-content.about-pointer-active::after { opacity: 1; }
#about .about-image {
    position: relative;
    z-index: 1;
    align-self: stretch;
    width: auto;
    min-width: 0;
    min-height: 570px;
    overflow: hidden;
    background: #171719;
    perspective: 1100px;
}
#about .about-photo-card {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: perspective(1100px) rotateX(var(--about-tilt-y, 0deg)) rotateY(var(--about-tilt-x, 0deg));
    transform-style: preserve-3d;
    transition: transform .22s ease-out;
    will-change: transform;
}
#about .about-photo-top {
    position: absolute;
    z-index: 2;
    top: 22px;
    right: 22px;
    left: 22px;
    color: #fff;
}
#about .about-photo-visual {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    border-radius: 0;
}
#about .about-photo-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(7,8,10,.12), transparent 36%, rgba(7,8,10,.76));
    pointer-events: none;
}
#about .about-photo-visual img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 0;
    box-shadow: none;
    transition: transform .85s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
#about .about-photo-caption {
    position: absolute;
    z-index: 2;
    right: 25px;
    bottom: 25px;
    left: 25px;
    color: #fff;
}
#about .about-photo-caption strong { color: #fff; }
#about .about-photo-caption small { color: rgba(255,255,255,.76); }
#about .about-story {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    align-items: center;
    padding: clamp(30px, 4.5vw, 62px);
}
#about .about-story .about-chapter {
    width: 100%;
    max-width: 620px;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
    opacity: 1;
    transform: none;
}
#about .about-chapter::after { display: none; }
#about .about-chapter h3 { margin-bottom: 22px; font-size: clamp(2.1rem, 3.5vw, 3.2rem); }
#about .about-chapter p { font-size: clamp(.98rem, 1.15vw, 1.08rem); line-height: 1.8; }
#about .about-tags { margin-top: 25px; }
#about .about-directions { margin-top: 25px; }
#about .about-directions a { min-height: 48px; }
#about .about-directions a i { transition: transform .22s ease, color .22s ease; }
#about .about-directions a:hover i { color: var(--studio-yellow, #f5cf3d); transform: translate(2px,-2px); }
body:not(.dark) #about .about-content {
    background:
        radial-gradient(520px circle at var(--about-pointer-x) var(--about-pointer-y), rgba(194,157,31,.1), transparent 72%),
        linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.24) 48%),
        rgba(248,246,238,.64);
    border-color: rgba(130,107,25,.2);
    box-shadow: 0 34px 100px rgba(70,60,35,.12), 0 0 60px rgba(194,157,31,.045), inset 0 1px 0 rgba(255,255,255,.8);
}
body:not(.dark) #about .about-photo-caption strong { color: #fff; }

/* A staged entrance plays once as the single profile section enters the viewport. */
body.about-motion-ready #about:not(.about-in-view) .container > h2,
body.about-motion-ready #about:not(.about-in-view) .about-content {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(30px) scale(.985);
}
body.about-motion-ready #about .container > h2 {
    transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1), filter .85s ease;
}
body.about-motion-ready #about .about-content {
    transition: opacity .8s cubic-bezier(.2,.7,.2,1) .13s, transform .9s cubic-bezier(.2,.7,.2,1) .13s, filter .9s ease .13s, border-color .35s ease, box-shadow .4s ease;
}
body.about-motion-ready #about.about-in-view .container > h2,
body.about-motion-ready #about.about-in-view .about-content {
    opacity: 1;
    filter: blur(0);
    transform: none;
}
body.about-motion-ready #about.about-in-view .about-image {
    animation: about-image-enter .85s cubic-bezier(.2,.7,.2,1) .15s both;
}
body.about-motion-ready #about.about-in-view .about-story {
    animation: about-story-enter .85s cubic-bezier(.2,.7,.2,1) .28s both;
}
@keyframes about-image-enter {
    from { opacity: 0; transform: translateX(-24px) scale(.985); filter: blur(5px); }
    to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}
@keyframes about-story-enter {
    from { opacity: 0; transform: translateY(18px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (hover: hover) and (pointer: fine) {
    #about .about-image:hover .about-photo-visual img { transform: scale(1.045); filter: saturate(1.08); }
    #about .about-image:hover .about-photo-card { transition-duration: .12s; }
    #about .about-content:hover { border-color: rgba(245,207,61,.35); }
}
@media (max-width: 800px) {
    #about .about-content { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    #about .about-image { min-height: 0; height: min(66svh, 510px); }
    #about .about-story { padding: clamp(27px, 6vw, 42px); }
}
@media (max-width: 520px) {
    #about .about-content { border-radius: 16px; }
    #about .about-image { height: min(61svh, 430px); min-height: 310px; }
    #about .about-photo-top { top: 16px; right: 16px; left: 16px; }
    #about .about-photo-caption { right: 17px; bottom: 17px; left: 17px; }
    #about .about-story { padding: 27px 20px 29px; }
    #about .about-kicker { gap: 7px; }
    #about .about-chapter h3 { font-size: clamp(1.9rem, 9vw, 2.55rem); }
    #about .about-directions a { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    #about .about-content,
    #about .about-content::after,
    #about .about-photo-card,
    #about .about-photo-visual img,
    #about .about-directions a i,
    body.about-motion-ready #about .about-image,
    body.about-motion-ready #about .about-story { transition: none; animation: none; }
    #about .about-content::after,
    body.about-motion-ready #about .container > h2,
    body.about-motion-ready #about .about-content,
    body.about-motion-ready #about .about-image,
    body.about-motion-ready #about .about-story { opacity: 1; filter: none; transform: none; }
}
