/* ===== ABOUT ME (/about/) =====
   "Beyond the code": origins, mindset, hobbies and where Alex is heading.
   Same surfaces as the home page: #d4d8e4 background, white gradient cards,
   slate (#354c6b) accents, Playfair Display titles and Nunito text. The
   header, loader, cursor and mobile menu come from index.css; sections fade
   in through .project-animate (projects.css + scripts.js). The two teasers
   that link here (home page card, presentation modal) are at the end. */

.about-body {
    background: #d4d8e4;
}

/* Current page in the menus */
.tab-default a[aria-current="page"]::after {
    width: 100%;
    left: 0;
}

.mobile-nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(53, 76, 107, 0.1);
}

.mobile-nav-link[aria-current="page"]::before {
    height: 22px;
}

.mobile-nav.active .mobile-nav-link:nth-child(6) {
    --d: 0.37s;
}

/* The brand in the header links back home on this page */
.madelyn-torff a {
    color: inherit;
    text-decoration: none;
}

/* ----- Shared bits ----- */
.ab-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(53, 76, 107, 0.14);
    background: rgba(255, 255, 255, 0.45);
    color: #354c6b;
    font-family: var(--font-nunito), sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ab-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6fd3a8;
    box-shadow: 0 0 0 0 rgba(111, 211, 168, 0.55);
    animation: abPulse 2.4s ease-out infinite;
}

@keyframes abPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(111, 211, 168, 0.55);
    }
    70%,
    100% {
        box-shadow: 0 0 0 8px rgba(111, 211, 168, 0);
    }
}

.ab-title {
    margin: 0.9rem 0 1rem;
    font-family: var(--title-h1), serif;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: #354c6b;
    background: linear-gradient(135deg, #354c6b 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card surface (same as the technology, education and certificate cards) */
.ab-surface {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Links styled as the project buttons (same font the <button>s get) */
.ab-hero-actions .project-button,
.ab-cta .project-button,
.about-teaser .project-button {
    font-family: Arial, sans-serif;
    text-decoration: none;
}

/* ===== HERO =====
   Lives inside .profile so the header floats exactly like on the home page. */
.about-top {
    padding-bottom: 80px;
}

.about-hero {
    width: 100%;
    max-width: 1240px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
    align-items: center;
    font-family: var(--font-nunito), sans-serif;
    color: var(--color-gray-100);
    text-align: left;
}

.ab-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* The name reuses .title so scripts.js splits it into letters and the home
   page's letter-by-letter intro (index.css, "HERO INTRO") plays here too. */
.ab-name {
    margin: 1.1rem 0 1.25rem;
    font-family: var(--title-h1), serif;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.08;
    color: #101d30;
}

.ab-lead {
    margin: 0;
    max-width: 580px;
    font-size: 1.3rem;
    line-height: 1.65;
    color: #4a5568;
}

.ab-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.6rem;
}

.ab-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(53, 76, 107, 0.12);
    box-shadow: 0 4px 12px rgba(53, 76, 107, 0.08);
    font-size: 0.92rem;
    font-weight: 600;
    color: #2d3e57;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ab-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(53, 76, 107, 0.14);
}

.ab-chip-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

.ab-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

/* Photo in an organic, slowly morphing frame with two floating badges */
.ab-hero-visual {
    position: relative;
    justify-self: center;
    width: min(100%, 440px);
    aspect-ratio: 4 / 5;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ab-hero-halo {
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 76, 107, 0.18) 0%, rgba(53, 76, 107, 0) 66%);
    pointer-events: none;
}

.ab-hero-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 46% 54% 52% 48% / 44% 42% 58% 56%;
    background: linear-gradient(145deg, #354c6b 0%, #2d3748 100%);
    box-shadow: 0 30px 60px rgba(53, 76, 107, 0.28);
    animation: abBlob 14s ease-in-out infinite alternate;
}

.ab-hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@keyframes abBlob {
    0% {
        border-radius: 46% 54% 52% 48% / 44% 42% 58% 56%;
    }
    50% {
        border-radius: 54% 46% 44% 56% / 52% 58% 42% 48%;
    }
    100% {
        border-radius: 48% 52% 58% 42% / 46% 50% 50% 54%;
    }
}

.ab-float {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 243, 248, 0.85) 100%);
    border: 1px solid rgba(53, 76, 107, 0.12);
    box-shadow: 0 12px 30px rgba(53, 76, 107, 0.18);
    backdrop-filter: blur(10px);
    animation: abFloat 6s ease-in-out infinite;
}

.ab-float-1 {
    top: 9%;
    left: -12%;
}

.ab-float-2 {
    bottom: 10%;
    right: -10%;
    animation-delay: -3s;
}

.ab-float-emoji {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #354c6b 0%, #2d3748 100%);
    font-size: 1.25rem;
    line-height: 1;
}

.ab-float-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a99ae;
}

.ab-float-value {
    display: block;
    margin-top: 2px;
    font-family: var(--title-h1), serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #354c6b;
    white-space: nowrap;
}

@keyframes abFloat {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -12px;
    }
}

/* Hero intro: hidden until the loader leaves (body.loaded), then the same
   choreography as the home page using its keyframes from index.css. */
.hero-intro body:not(.loaded) .ab-eyebrow,
.hero-intro body:not(.loaded) .ab-lead,
.hero-intro body:not(.loaded) .ab-chips,
.hero-intro body:not(.loaded) .ab-hero-actions,
.hero-intro body:not(.loaded) .ab-hero-halo,
.hero-intro body:not(.loaded) .ab-hero-photo,
.hero-intro body:not(.loaded) .ab-float {
    opacity: 0;
}

.hero-intro body.loaded .ab-hero-halo {
    animation: heroHalo 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-intro body.loaded .ab-hero-photo {
    animation:
        heroPhotoIn 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both,
        abBlob 14s ease-in-out 1.45s infinite alternate;
}

.hero-intro body.loaded .ab-eyebrow {
    animation: heroWipe 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.3s both;
}

.hero-intro body.loaded .ab-lead {
    animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both;
}

.hero-intro body.loaded .ab-chips {
    animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.25s both;
}

.hero-intro body.loaded .ab-hero-actions {
    animation: heroPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.45s both;
}

.hero-intro body.loaded .ab-float {
    animation:
        heroPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.6s both,
        abFloat 6s ease-in-out 2.3s infinite;
}

.hero-intro body.loaded .ab-float-2 {
    animation-delay: 1.75s, -0.7s;
}

/* After the intro only the idle motion stays */
.hero-intro body.intro-done .ab-eyebrow,
.hero-intro body.intro-done .ab-lead,
.hero-intro body.intro-done .ab-chips,
.hero-intro body.intro-done .ab-hero-actions,
.hero-intro body.intro-done .ab-hero-halo {
    animation: none;
}

.hero-intro body.intro-done .ab-hero-photo {
    animation: abBlob 14s ease-in-out infinite alternate;
}

.hero-intro body.intro-done .ab-float {
    animation: abFloat 6s ease-in-out infinite;
}

.hero-intro body.intro-done .ab-float-2 {
    animation-delay: -3s;
}

/* ===== TICKER: a slow marquee of keywords between the hero and the story.
   Two copies of the list, moved by exactly one list width, loop seamlessly. */
.ab-ticker {
    overflow: hidden;
    padding: 0.95rem 0;
    border-top: 1px solid rgba(53, 76, 107, 0.14);
    border-bottom: 1px solid rgba(53, 76, 107, 0.14);
    background: rgba(255, 255, 255, 0.35);
    font-family: var(--font-nunito), sans-serif;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ab-ticker-track {
    display: flex;
    width: max-content;
    animation: abTicker 48s linear infinite;
}

.ab-ticker:hover .ab-ticker-track {
    animation-play-state: paused;
}

.ab-ticker-list {
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0 2.5rem 0 0;
    list-style: none;
}

.ab-ticker-list li {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #354c6b;
}

.ab-ticker-list li::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6fd3a8;
}

@keyframes abTicker {
    to {
        transform: translateX(-50%);
    }
}

/* ===== SECTIONS ===== */
.about-main {
    width: 100%;
    box-sizing: border-box;
    padding: 0 2rem 6rem;
    background: #d4d8e4;
    font-family: var(--font-nunito), sans-serif;
    color: #4a5568;
}

.ab-section {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 6.5rem;
}

.ab-section-head {
    max-width: 760px;
    margin-bottom: 3rem;
}

.ab-section-head.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ab-section-head.centered .ab-eyebrow {
    margin: 0 auto;
}

.ab-intro {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #5f7190;
}

/* ----- Story blocks: text beside a photo, alternating sides ----- */
.ab-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: center;
}

.ab-story[data-layout="image-left"] .ab-photo {
    order: -1;
}

.ab-story-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ab-story-text .ab-title {
    margin-bottom: 1.4rem;
}

.ab-story-text p {
    margin: 0 0 1.25rem;
    font-size: 1.2rem;
    line-height: 1.75;
    color: #4a5568;
    text-align: justify;
}

.ab-story-text p:last-child {
    margin-bottom: 0;
}

/* Photo frame. Until real pictures are added it shows a placeholder panel
   (same look as the project placeholders); swap the panel for an <img>. */
.ab-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 26px;
    box-shadow: 0 24px 50px rgba(53, 76, 107, 0.18);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.ab-photo:hover {
    box-shadow: 0 30px 60px rgba(53, 76, 107, 0.26);
}

.ab-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ab-photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0) 0 0 / 22px 22px,
        radial-gradient(circle at 75% 20%, rgba(111, 211, 168, 0.18), transparent 45%),
        linear-gradient(145deg, #354c6b 0%, #2d3748 100%);
}

.ab-photo-placeholder svg {
    width: 44px;
    height: 44px;
    opacity: 0.85;
}

.ab-photo-mark {
    font-family: var(--title-h1), serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.1;
    padding: 0 1rem;
}

.ab-photo-note {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.ab-photo-tag {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 1;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    font-size: 0.82rem;
    font-weight: 700;
    color: #354c6b;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* ----- Mindset cards ----- */
.ab-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.ab-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.ab-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(53, 76, 107, 0.09), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.ab-card:hover {
    transform: translateY(-6px);
    border-color: rgba(53, 76, 107, 0.2);
    box-shadow: 0 20px 40px rgba(53, 76, 107, 0.16);
}

.ab-card:hover::after {
    opacity: 1;
}

.ab-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.ab-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #354c6b 0%, #2d3748 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(53, 76, 107, 0.3);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ab-card:hover .ab-card-icon {
    transform: rotate(-6deg) scale(1.06);
}

.ab-card-icon svg {
    width: 26px;
    height: 26px;
}

.ab-card-num {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    font-variant-numeric: tabular-nums;
    color: #8a99ae;
}

.ab-card h3 {
    margin: 0 0 0.6rem;
    font-family: var(--title-h1), serif;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #354c6b;
}

.ab-card p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
}

/* ----- Hobbies: bento grid ----- */
.ab-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.4rem;
}

.ab-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.ab-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(53, 76, 107, 0.16);
}

.ab-tile-lg {
    grid-column: span 7;
}

.ab-tile-md {
    grid-column: span 5;
}

.ab-tile-sm {
    grid-column: span 3;
}

.ab-tile .ab-photo {
    flex: none;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    box-shadow: none;
}

.ab-tile-md .ab-photo {
    aspect-ratio: 4 / 3;
}

.ab-tile .ab-photo img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ab-tile:hover .ab-photo img {
    transform: scale(1.04);
}

.ab-tile-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 1.75rem 1.75rem;
}

.ab-tile-kicker {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a99ae;
}

.ab-tile h3 {
    margin: 0;
    font-family: var(--title-h1), serif;
    font-size: 1.5rem;
    line-height: 1.25;
    color: #354c6b;
}

.ab-tile-sm h3 {
    font-size: 1.25rem;
}

.ab-tile p {
    margin: 0.2rem 0 0;
    font-size: 1.02rem;
    line-height: 1.6;
}

.ab-tile-emoji {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    border-radius: 14px;
    background: rgba(53, 76, 107, 0.08);
    font-size: 1.6rem;
    line-height: 1;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ab-tile:hover .ab-tile-emoji {
    transform: rotate(-8deg) scale(1.1);
}

/* ----- Projection: a horizontal path of four steps ----- */
.ab-path {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.ab-path::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, #6fd3a8 0%, #354c6b 35%, rgba(53, 76, 107, 0.2) 100%);
}

.ab-step {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.ab-step-dot {
    width: 18px;
    height: 18px;
    flex: none;
    border-radius: 50%;
    background: #354c6b;
    box-shadow: 0 0 0 5px #d4d8e4;
}

.ab-step[data-state="now"] .ab-step-dot {
    background: #6fd3a8;
    animation: abPulse 2.4s ease-out infinite;
}

.ab-step[data-state="someday"] .ab-step-dot {
    background: #d4d8e4;
    box-shadow: 0 0 0 5px #d4d8e4, inset 0 0 0 3px rgba(53, 76, 107, 0.45);
}

.ab-step-card {
    flex: 1;
    padding: 1.8rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.ab-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(53, 76, 107, 0.16);
}

.ab-step[data-state="now"] .ab-step-card {
    background: linear-gradient(135deg, #354c6b 0%, #2d3748 100%);
    border-color: transparent;
    color: #e6ebf3;
    box-shadow: 0 16px 36px rgba(53, 76, 107, 0.32);
}

.ab-step-when {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8a99ae;
}

.ab-step[data-state="now"] .ab-step-when {
    color: #6fd3a8;
}

.ab-step-card h3 {
    margin: 0 0 0.6rem;
    font-family: var(--title-h1), serif;
    font-size: 1.3rem;
    line-height: 1.25;
    color: #354c6b;
}

.ab-step[data-state="now"] .ab-step-card h3 {
    color: #fff;
}

.ab-step-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ----- Closing card ----- */
.ab-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    margin-top: 6.5rem;
    padding: 2.75rem 3rem;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72) 0%, rgba(232, 236, 243, 0.55) 100%);
    border: 1px solid rgba(53, 76, 107, 0.14);
    box-shadow:
        0 24px 60px rgba(53, 76, 107, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ab-cta h2 {
    margin: 0 0 0.5rem;
    font-family: var(--title-h1), serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.25;
    color: #354c6b;
}

.ab-cta p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.55;
    color: #4a5568;
}

.ab-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1250px) {
    .about-hero {
        margin-top: 110px;
    }

    .ab-float-1 {
        left: -4%;
    }

    .ab-float-2 {
        right: -4%;
    }
}

@media (max-width: 1050px) {
    .about-top {
        padding-bottom: 50px;
    }

    .about-hero {
        margin-top: 50px;
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ab-hero-visual {
        order: -1;
        width: min(100%, 360px);
    }

    .ab-hero-text {
        align-items: center;
        text-align: center;
    }

    .ab-chips,
    .ab-hero-actions {
        justify-content: center;
    }

    .ab-lead {
        max-width: 640px;
    }
}

@media (max-width: 1024px) {
    .ab-section {
        padding-top: 5rem;
    }

    .ab-story {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .ab-story[data-layout="image-left"] .ab-photo,
    .ab-story .ab-photo {
        order: 1;
    }

    .ab-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ab-tile-lg,
    .ab-tile-md {
        grid-column: span 12;
    }

    .ab-tile-md .ab-photo {
        aspect-ratio: 16 / 9;
    }

    .ab-tile-sm {
        grid-column: span 6;
    }

    .ab-path {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ab-path::before {
        display: none;
    }

    .ab-step {
        flex-direction: row;
        align-items: flex-start;
    }

    .ab-step-dot {
        margin-top: 1.9rem;
    }

    .ab-cta {
        grid-template-columns: 1fr;
    }

    .ab-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .about-main {
        padding: 0 1.25rem 4rem;
    }

    .ab-section {
        padding-top: 4rem;
    }

    .ab-section-head {
        margin-bottom: 2rem;
    }

    .ab-lead,
    .ab-story-text p {
        font-size: 1.1rem;
    }

    .ab-story-text p {
        text-align: left;
    }

    .ab-cards {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .ab-card {
        padding: 1.6rem;
    }

    .ab-tile-body {
        padding: 1.25rem 1.4rem 1.5rem;
    }

    .ab-step-card {
        padding: 1.4rem;
    }

    .ab-cta {
        margin-top: 4rem;
        padding: 1.75rem;
        border-radius: 22px;
    }

    .ab-ticker-track {
        animation-duration: 32s;
    }
}

@media (max-width: 600px) {
    .ab-tile-sm {
        grid-column: span 12;
    }

    .ab-path {
        grid-template-columns: 1fr;
    }

    .ab-float {
        padding: 0.55rem 0.8rem;
    }

    .ab-float-1 {
        top: 4%;
        left: 0;
    }

    .ab-float-2 {
        bottom: 4%;
        right: 0;
    }

    .ab-float-value {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .ab-chip {
        font-size: 0.85rem;
        padding: 0.45rem 0.8rem;
    }

    .ab-hero-actions .project-button,
    .ab-cta-actions .project-button {
        padding: 0.8rem 1.4rem;
        font-size: 0.9rem;
    }

    .ab-step {
        flex-direction: column;
    }

    .ab-step-dot {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ab-eyebrow::before,
    .ab-step[data-state="now"] .ab-step-dot,
    .ab-hero-photo,
    .ab-float,
    .ab-ticker-track,
    .about-teaser-photo {
        animation: none !important;
    }

    .ab-chip:hover,
    .ab-card:hover,
    .ab-tile:hover,
    .ab-step-card:hover,
    .ab-photo:hover {
        transform: none;
    }
}

/* ===== TEASERS that lead to /about/ ===== */

/* Home page: the card between the Education section and the footer */
.about-teaser-section {
    box-sizing: border-box;
    width: 100%;
    padding: 0 2rem 6rem;
    background: #d4d8e4;
    font-family: var(--font-nunito), sans-serif;
}

.about-teaser {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem 2.75rem;
    padding: 2.25rem 2.75rem;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72) 0%, rgba(232, 236, 243, 0.55) 100%);
    border: 1px solid rgba(53, 76, 107, 0.14);
    box-shadow:
        0 24px 60px rgba(53, 76, 107, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.about-teaser::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 76, 107, 0.12) 0%, transparent 68%);
    pointer-events: none;
}

.about-teaser-photo {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 46% 54% 52% 48% / 44% 42% 58% 56%;
    background: linear-gradient(145deg, #354c6b 0%, #2d3748 100%);
    box-shadow: 0 16px 36px rgba(53, 76, 107, 0.28);
    animation: abBlob 12s ease-in-out infinite alternate;
}

.about-teaser-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-teaser-title {
    margin: 0.7rem 0 0.4rem;
    font-family: var(--title-h1), serif;
    font-size: 1.9rem;
    line-height: 1.25;
    color: #354c6b;
}

.about-teaser-sub {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.55;
    color: #4a5568;
}

.about-teaser-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

@media (max-width: 1024px) {
    .about-teaser {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .about-teaser-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .about-teaser-section {
        padding: 0 1.25rem 4rem;
    }

    .about-teaser {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 1.5rem;
        border-radius: 22px;
    }

    .about-teaser-photo {
        width: 110px;
        height: 110px;
    }

    .about-teaser-title {
        font-size: 1.5rem;
    }

    .about-teaser-sub {
        font-size: 1rem;
    }
}

/* Presentation modal: a link under the "About Me" stats */
.presentation-modal .about-more {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #354c6b 0%, #2d3748 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(53, 76, 107, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.presentation-modal .about-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(53, 76, 107, 0.4);
}

.about-more-emoji {
    width: 48px;
    height: 48px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.5rem;
    line-height: 1;
}

.about-more-text {
    flex: 1;
    min-width: 0;
}

.about-more-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.75;
}

.about-more-title {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.about-more-arrow {
    width: 40px;
    height: 40px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, background 0.3s ease;
}

.about-more-arrow svg {
    width: 18px;
    height: 18px;
}

.presentation-modal .about-more:hover .about-more-arrow {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 480px) {
    .presentation-modal .about-more {
        gap: 0.9rem;
        padding: 1rem 1.1rem;
    }

    .about-more-emoji {
        display: none;
    }
}
