/* ============================================================================
   COHEN & ASSOCIATES — about.css  (About page · editorial layer)
   ----------------------------------------------------------------------------
   Loads AFTER style.css and reuses its :root tokens. Adds an editorial layer:
   Fraunces display type, hairline rules, drop cap, pull quotes, clip-wipe
   image reveals, and a staggered headline.

   JS CONTRACT (handled in js/about.js):
     • .js-ab-progress            → width set on scroll (reading bar)
     • [data-hero]                → .is-in (staggered headline lines)
     • .ed-frame[data-reveal-img] → .is-in (clip-path image wipe)
   (Counters [data-count] and [data-reveal] run from main.js.)

   CONTENTS
     01. READING PROGRESS BAR
     02. EDITORIAL TYPE SYSTEM
     03. HERO
     04. STORY LEDE (drop cap)
     05. FIGURES BAND
     06. PRINCIPLES / CREED
     07. TIMELINE
     08. FOUNDERS
     09. PULL-QUOTE BAND
     10. EDITORIAL CTA
     11. KEYFRAMES
     12. RESPONSIVE
     13. MOTION SAFETY
============================================================================ */


/* ============================================================================
   01. READING PROGRESS BAR
============================================================================ */
.ab-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 350;
    background: transparent;
    pointer-events: none;
}
.ab-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--grad-copper);
    box-shadow: 0 0 12px rgba(170, 86, 52, 0.5);
}


/* ============================================================================
   02. EDITORIAL TYPE SYSTEM
============================================================================ */
/* Small-caps kicker */
.ed-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--copper);
}

/* Full-bleed hairline */
.ed-rule {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(26, 35, 126, 0.14);
}

/* Fraunces display + section heads */
.ed-display {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--navy);
}
.ed-display em { font-style: italic; font-weight: 500; color: var(--copper); }

.ed-h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--navy);
}
.ed-h2 em { font-style: italic; font-weight: 500; color: var(--copper); }

.ed-h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--navy);
}

/* Drop cap */
.dropcap::first-letter {
    float: left;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 4.4em;
    line-height: 0.78;
    padding: 0.05em 0.14em 0 0;
    color: var(--copper);
}

/* Pull quote — margin (default) + inline variant */
.ed-pull { position: relative; padding-top: 1.25rem; }
.ed-pull::before {
    content: '';
    display: block;
    width: 48px; height: 2px;
    margin-bottom: 1.25rem;
    background: var(--grad-copper);
    border-radius: var(--r-full);
}
.ed-pull p {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
    line-height: 1.25;
    color: var(--navy);
}
.ed-pull--inline {
    padding: 0.1rem 0 0.1rem 1.4rem;
    margin: 1.75rem 0;
    border-left: 3px solid var(--copper);
}
.ed-pull--inline::before { display: none; }
.ed-pull--inline p { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }

/* Editorial image frame + clip-wipe reveal */
.ed-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: var(--r-sm);
    box-shadow: var(--sh-lg);
    background: var(--cream-2);
}
.ed-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
/* hidden until JS adds .is-in (gated by .js so non-JS still shows) */
.js .ed-frame[data-reveal-img] img {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.12);
    transition: clip-path 1s var(--ease), transform 1.4s var(--ease);
}
.ed-frame[data-reveal-img].is-in img {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
}


/* ============================================================================
   03. HERO
============================================================================ */
.abhero {
    position: relative;
    background: var(--paper);
    padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 2.75rem));
    padding-bottom: clamp(2.5rem, 6vw, 5rem);
    overflow: hidden;
}

/* Running head (masthead) */
.abhero__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--g-500);
}
.abhero__meta-r { color: var(--copper); }

.abhero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding-top: clamp(2rem, 5vw, 4rem);
}

.abhero__title {
    font-size: clamp(2.8rem, 1.6rem + 5vw, 5.8rem);
    line-height: 1.0;
    margin: 1rem 0 1.5rem;
}
.abhero__title .line { display: block; }

.abhero__lede {
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--g-600);
    max-width: 46ch;
    margin-bottom: 2.25rem;
}

/* Fact strip */
.abhero__facts { display: flex; flex-wrap: wrap; }
.abhero__facts li {
    display: flex;
    flex-direction: column;
    padding: 0.25rem clamp(1rem, 2.4vw, 1.85rem);
}
.abhero__facts li:first-child { padding-left: 0; }
.abhero__facts li + li { border-left: 1px solid var(--g-200); }
.abhero__facts-num {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
    line-height: 1;
    color: var(--navy);
}
.abhero__facts-label {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--g-500);
}

/* Hero figure */
.abhero__media { position: relative; }
.abhero__media .ed-frame { aspect-ratio: 4 / 5; }
.abhero__media figcaption {
    position: relative;
    margin-top: 0.9rem;
    padding-left: 1.5rem;
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 0.92rem;
    color: var(--g-500);
}
.abhero__media figcaption::before {
    content: '';
    position: absolute;
    left: 0; top: 0.7em;
    width: 1rem; height: 1px;
    background: var(--copper);
}
.abhero__year {
    position: absolute;
    top: -0.7rem; left: -1rem;
    z-index: 2;
    font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
    color: var(--copper);
    transform: rotate(-8deg);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.6);
}

/* Scroll cue */
.abhero__cue {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: max-content;
    margin: clamp(2rem, 4vw, 3rem) auto 0;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--g-500);
    transition: color var(--t-base);
}
.abhero__cue span { width: 40px; height: 1px; background: var(--g-300); position: relative; overflow: hidden; }
.abhero__cue span::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--copper);
    transform: translateX(-100%);
    animation: abLine 1.8s ease-in-out infinite;
}
.abhero__cue:hover { color: var(--navy); }


/* ============================================================================
   04. STORY LEDE (drop cap)
============================================================================ */
.ablede { padding: var(--section-py) 0; background: var(--cream); }
.ablede__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.ablede__head .ed-h2 { margin-top: 0.75rem; max-width: 20ch; }

.ablede__body {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
.ablede__col p {
    font-size: 1.08rem;
    line-height: 1.78;
    color: var(--g-700);
    margin-bottom: 1.35rem;
    max-width: 60ch;
}
.ablede__col p:last-child { margin-bottom: 0; }

.ablede__aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.ablede__photo .ed-frame--sm { aspect-ratio: 3 / 4; }


/* ============================================================================
   05. FIGURES BAND
============================================================================ */
.abfig { background: var(--paper); }
.abfig .shell { padding-block: clamp(2.75rem, 5vw, 4.25rem); }

.abfig__kicker {
    text-align: center;
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--copper);
}
.abfig__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
}
.abfig__item {
    position: relative;
    text-align: center;
    padding: clamp(0.5rem, 1.5vw, 1rem) 1rem;
}
.abfig__item + .abfig__item::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 54px;
    background: var(--g-200);
}
.abfig__num {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4rem);
    line-height: 1;
    color: var(--navy);
}
.abfig__label {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--g-500);
}


/* ============================================================================
   06. PRINCIPLES / CREED
============================================================================ */
.abcreed { padding: var(--section-py) 0; background: var(--cream); }
.abcreed__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.abcreed__head .ed-h2 { margin-top: 0.75rem; }

.abcreed__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 5rem);
}
.abcreed__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    padding-top: 1.75rem;
    border-top: 1px solid var(--g-300);
}
.abcreed__num {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem);
    line-height: 1;
    color: var(--copper);
}
.abcreed__item h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--navy); }
.abcreed__item p { font-size: 0.98rem; line-height: 1.65; color: var(--g-600); }


/* ============================================================================
   07. TIMELINE
============================================================================ */
.abtime { padding: var(--section-py) 0; background: var(--paper); }
.abtime__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.abtime__head .ed-h2 { margin-top: 0.75rem; }

.abtime__item {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: baseline;
    padding: clamp(1.75rem, 3vw, 2.5rem) 0;
    border-top: 1px solid var(--g-200);
    transition: padding-left var(--t-base);
}
.abtime__item:last-child { border-bottom: 1px solid var(--g-200); }
.abtime__item:hover { padding-left: 0.5rem; }
.abtime__year {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
    line-height: 1.1;
    color: var(--copper);
}
.abtime__body h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
    margin-bottom: 0.5rem;
    color: var(--navy);
}
.abtime__body p { font-size: 1rem; line-height: 1.65; color: var(--g-600); max-width: 60ch; }


/* ============================================================================
   08. FOUNDERS
============================================================================ */
.abfounder { padding: var(--section-py) 0; background: var(--cream); }
.abfounder__head { max-width: 760px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.abfounder__head .ed-h2 { margin-top: 0.75rem; }
.abfounder__intro {
    margin-top: 1rem;
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--g-600);
    max-width: 48ch;
}

.abprofile {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.abprofile:last-child { margin-bottom: 0; }
.abprofile--flip .abprofile__media { order: 2; }

.abprofile__media { position: relative; }
.abprofile__media .ed-frame { aspect-ratio: 4 / 5; }
.abprofile__no {
    position: absolute;
    top: -0.5em; right: -0.15em;
    z-index: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(4rem, 3rem + 5vw, 8rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(26, 35, 126, 0.16);
}
.abprofile--flip .abprofile__no { right: auto; left: -0.15em; }

.abprofile__name { margin: 0.5rem 0 1.25rem; }
.abprofile__body > p { font-size: 1.05rem; line-height: 1.7; color: var(--g-700); }

.abprofile__foot { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }
.abprofile__sign { font-size: 2.4rem; color: var(--navy); line-height: 0.8; }
.abprofile__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border: 1.5px solid rgba(170, 86, 52, 0.3);
    border-radius: var(--r-full);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--copper);
    transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.abprofile__link:hover {
    background: var(--copper);
    border-color: var(--copper);
    color: #fff;
    transform: translateY(-2px);
}


/* ============================================================================
   09. PULL-QUOTE BAND
============================================================================ */
.abquote {
    position: relative;
    padding: clamp(4rem, 9vw, 8rem) 0;
    background: var(--grad-navy);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.abquote::before {
    content: '';
    position: absolute; inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 80% 18%, rgba(170, 86, 52, 0.3), transparent 55%);
}
.abquote blockquote { position: relative; text-align: center; }
.abquote blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.42em; left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(6rem, 12vw, 11rem);
    line-height: 1;
    color: rgba(221, 133, 99, 0.22);
}
.abquote__text {
    color: #fff;
    font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.4rem);
    line-height: 1.08;
}
.abquote__text em { font-style: italic; color: var(--copper-light); }
.abquote cite {
    display: block;
    margin-top: 1.75rem;
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}


/* ============================================================================
   10. EDITORIAL CTA
============================================================================ */
.abcta { padding: var(--section-py) 0; background: var(--paper); text-align: center; }
.abcta__inner { max-width: 720px; margin-inline: auto; }
.abcta__title { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); margin: 1rem 0 1.25rem; }
.abcta__text {
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--g-600);
    max-width: 50ch;
    margin: 0 auto 2.25rem;
}
.abcta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.75rem;
}
.abcta__call {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--navy);
}
.abcta__call i { color: var(--copper); }
.abcta__call:hover { color: var(--copper-dark); }


/* ============================================================================
   11. KEYFRAMES
============================================================================ */
@keyframes abLine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* Staggered headline lines (triggered by [data-hero].is-in) */
.js .abhero__title[data-hero] .line {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .abhero__title[data-hero] .line:nth-child(2) { transition-delay: 0.12s; }
.abhero__title[data-hero].is-in .line { opacity: 1; transform: none; }


/* ============================================================================
   12. RESPONSIVE
============================================================================ */
@media (max-width: 900px) {
    .abhero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .abhero__media { order: -1; max-width: 460px; }
    .abhero__media .ed-frame { aspect-ratio: 16 / 11; }

    .ablede__body { grid-template-columns: 1fr; gap: 2.5rem; }
    .ablede__aside { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
    .ablede__aside .ed-pull { flex: 1 1 280px; }
    .ablede__photo { flex: 1 1 220px; }

    .abprofile { grid-template-columns: 1fr; gap: 2rem; }
    .abprofile__media { order: -1 !important; max-width: 420px; }
    .abprofile__media .ed-frame { aspect-ratio: 4 / 5; }
}

@media (max-width: 760px) {
    .abfig__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
    .abfig__item + .abfig__item::before { display: none; }

    .abcreed__grid { grid-template-columns: 1fr; gap: 0; }
    .abcreed__item { margin-top: 1.75rem; }
}

@media (max-width: 600px) {
    .abhero__facts li { padding-inline: 0.85rem; }
    .abtime__item { grid-template-columns: 1fr; gap: 0.5rem; }
    .abprofile__foot { gap: 1.1rem; }
}

@media (max-width: 400px) {
    .abfig__grid { grid-template-columns: 1fr; }
}


/* ============================================================================
   13. MOTION SAFETY
============================================================================ */
@media (prefers-reduced-motion: reduce) {
    .ab-progress { display: none; }
    .abhero__cue span::after { animation: none !important; }

    .js .ed-frame[data-reveal-img] img,
    .ed-frame[data-reveal-img].is-in img {
        clip-path: none !important;
        transform: none !important;
    }
    .js .abhero__title[data-hero] .line {
        opacity: 1 !important;
        transform: none !important;
    }
}
