/* ═══════════════════════════════════════════
   ABOUT PAGE — Section-specific styles + nav overrides.
   Shared chrome (tokens, reset, base nav, footer)
   lives in style.css and is loaded first.
   ═══════════════════════════════════════════ */


/* Nav override removed — now handled globally by nav-theme.js + style.css dual-mode */



/* ═══════════════════════════════════════════
   SECTION 1 — HERO (Split Screen)
   Left: full-bleed image in a tall frame
   Right: eyebrow → headline → body
   ═══════════════════════════════════════════ */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100svh;
    background: var(--cream);
}

.about-hero__media {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-soft) var(--radius-soft);
}

.about-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroImgIn 1.8s var(--ease-smooth) forwards 0.3s;
}

@keyframes heroImgIn {
    from {
        opacity: 0;
        transform: scale(1.04);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about-hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--pad-section) var(--pad-element);
    padding-right: clamp(2rem, 4vw, 6rem);

    opacity: 0;
    animation: heroTextIn 0.8s var(--ease-smooth) 0.8s forwards;
}

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-hero__eyebrow {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: clamp(0.75rem, 0.5vw + 0.4rem, 0.95rem);
    /* Increased size */
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--charcoal);
    /* Increased contrast */
    margin-bottom: 1.5rem;
}

.about-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw + 0.5rem, 3rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--charcoal);
    margin-bottom: 1.8rem;
}

.about-hero__body {
    font-family: 'Lato', sans-serif;
    font-size: var(--fs-body);
    font-weight: 300;
    font-style: normal;
    /* Force normal to prevent inheriting italics */
    line-height: var(--leading-body);
    color: rgba(42, 42, 42, 0.85);
    max-width: 48ch;
}

/* Section divider — faint gradient line */
.section-divider {
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%,
            var(--sage-green) 30%,
            var(--sage-green) 70%,
            transparent 100%);
    opacity: 0.3;
    max-width: 1200px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════════
   SECTION 2 — PHILOSOPHY (Split Scroll-Story)
   Left: sticky arch-masked image
   Right: clean crossfading text
   ═══════════════════════════════════════════ */
.philosophy {
    position: relative;
    height: 300svh;
    background: var(--cream);
}

.philosophy__sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(2rem, 4vw, 4rem);
    gap: clamp(2rem, 4vw, 5rem);
}

/* Left column — the arch-masked image */
.philosophy__media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.philosophy__img-wrap {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-arch);
    overflow: hidden;
    position: relative;
    /* Soft glass overlay instead of harsh drop shadow */
    box-shadow:
        0 20px 60px rgba(42, 42, 42, 0.06),
        0 4px 16px rgba(42, 42, 42, 0.04);
}

/* Warm overlay — lifts the dark tones */
.philosophy__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(230, 228, 221, 0.15) 0%,
            rgba(230, 228, 221, 0.0) 40%,
            rgba(230, 228, 221, 0.2) 100%);
    pointer-events: none;
}

.philosophy__img {
    width: 100%;
    height: auto;
    display: block;
}


/* Right column — crossfading text blocks */
.philosophy__text {
    position: relative;
    min-height: 280px;
    /* Provide enough room for mobile text */
    display: flex;
    align-items: center;
}

.philosophy__block {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
    pointer-events: none;
}

.philosophy__block.is-active {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
}

.philosophy__block.is-exiting {
    opacity: 0;
    transform: translateY(-60%);
}

.philosophy__block-number {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: var(--fs-tag);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sage-deep, #5A6457);
    margin-bottom: 1.5rem;
}

.philosophy__block p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.15rem, 1.5vw + 0.3rem, 1.55rem);
    font-style: italic;
    line-height: var(--leading-body);
    color: var(--charcoal);
    max-width: 48ch;
    /* Constrain reading width on tablet/desktop */
}

/* Decorative opening curly quote */
.philosophy__block:first-child::before {
    content: '\201C';
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    line-height: 0.6;
    color: var(--sage-green);
    opacity: 0.2;
    margin-bottom: 1rem;
}


/* Progress dots (right edge of sticky) */
.philosophy__dots {
    position: absolute;
    right: clamp(1rem, 2vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.philosophy__dot {
    width: 2px;
    height: 16px;
    border-radius: 2px;
    background: var(--sage-green);
    opacity: 0.25;
    transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}

.philosophy__dot.is-active {
    opacity: 1;
    transform: scaleY(2);
    transform-origin: center;
}


/* ═══════════════════════════════════════════
   SECTION 3 — LINEAGE (Full-Width Immersive)
   ═══════════════════════════════════════════ */
/* Full-bleed photograph with the founder narrative on one wide glass tile.
   The tile's own backdrop-filter softens whatever sits behind it, so the
   photograph stays sharp everywhere except under the text. */
.lineage {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem);
    overflow: hidden;
}

.lineage__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.lineage__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Centred now that the tile is wide and centred — the old 135% right-shift
       existed only to dodge a right-hand panel that no longer exists. 62%
       puts the monument in the band above the tile; anything lower leaves
       that band as flat, empty sky. */
    object-position: center 62%;
}

/* Warm scrim. Keeps the tile edges from dissolving into the bright sky and
   ties the photograph back to the cream page above it. */
.lineage__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg,
            rgba(42, 42, 42, 0.24) 0%,
            rgba(42, 42, 42, 0.10) 45%,
            rgba(42, 42, 42, 0.26) 100%);
}

/* The glass tile — o-p-e-n.com spec, matching .practice-library__inner. Two columns:
   a narrow identity rail, then the story. Splitting it is what lets the tile
   be wide without the paragraphs running to an unreadable 100+ character
   measure, which a single full-width column would do at this size. */
.lineage__content {
    position: relative;
    z-index: 1;
    width: min(1140px, 100%);
    display: grid;
    grid-template-columns: minmax(200px, 0.75fr) minmax(0, 1.9fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    padding: clamp(1.75rem, 3.5vw, 3.25rem);
    background: rgba(249, 248, 242, 0.78);
    backdrop-filter: var(--glass-blur-lg) saturate(1.1);
    -webkit-backdrop-filter: var(--glass-blur-lg) saturate(1.1);
    border: 1px solid rgba(44, 44, 44, 0.10);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(44, 44, 44, 0.18);
}

/* Opacity-only arrival. The shared [data-reveal] rule translates 25px, and
   translating an element that owns a backdrop-filter re-rasterises the blur
   every frame — visibly cheap on a mid-range phone. Same reason
   .practice-library__inner and .moc-lib__inner opt out. */
.lineage__content[data-reveal] {
    transform: none;
}

/* ── Identity rail ── */
.lineage__identity {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-right: clamp(1rem, 2vw, 2rem);
    border-right: 1px solid rgba(42, 42, 42, 0.12);
}

.lineage__tag {
    font-family: 'Lato', sans-serif;
    font-size: var(--fs-tag);
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(42, 42, 42, 0.67);
}

.lineage__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 2vw + 1rem, 2.75rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--charcoal);
}

.lineage__role {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(42, 42, 42, 0.7);
}

/* ── Story column ── */
.lineage__bio p {
    font-family: 'Lato', sans-serif;
    font-size: var(--fs-body);
    line-height: var(--leading-body);
    color: rgba(42, 42, 42, 0.85);
    max-width: 68ch;
}

.lineage__bio p + p {
    margin-top: 1.25rem;
}

/* The emotional turn of the whole page. Lifted out of its paragraph so four
   dense blocks get one place for the eye to rest — the words are unchanged.
   Scoped as .lineage__bio .lineage__pull so it outranks the .lineage__bio p
   rule above on specificity rather than needing !important. */
.lineage__bio .lineage__pull {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.15rem, 0.8vw + 0.95rem, 1.45rem);
    font-style: italic;
    line-height: 1.45;
    color: var(--charcoal);
    max-width: 40ch;
    padding-left: clamp(1rem, 1.5vw, 1.5rem);
    border-left: 2px solid var(--dark-rust, #5C4033);
}


/* ═══════════════════════════════════════════
   SECTION 4 — OFFERINGS (Glass Cards)
   ═══════════════════════════════════════════ */
.offerings {
    position: relative;
    z-index: 3;
    background: var(--charcoal);
    padding: var(--pad-section) var(--pad-element);
}

.offerings__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.offerings__header {
    margin-bottom: clamp(3rem, 5vw, 5rem);
}

.offerings__eyebrow {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: var(--fs-tag);
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--sage-green);
    margin-bottom: 0.75rem;
}

.offerings__title {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-h2);
    font-weight: 500;
    color: var(--cream);
}

.offerings__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.offerings__card {
    background: rgba(253, 252, 248, 0.25);
    border: 1px solid rgba(253, 252, 248, 0.35);
    backdrop-filter: var(--glass-blur-md);
    -webkit-backdrop-filter: var(--glass-blur-md);
    border-radius: 16px;
    padding: clamp(1.8rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    transition: transform 0.6s var(--ease-smooth), box-shadow 0.6s var(--ease-smooth);
}

.offerings__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.offerings__card-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-h3);
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 1rem;
}

.offerings__card-body {
  max-width: var(--measure, 68ch);
    font-family: 'Lato', sans-serif;
    font-size: var(--fs-body);
    font-weight: 300;
    line-height: var(--leading-body);
    color: rgba(253, 252, 248, 0.88);
    flex: 1;
    margin-bottom: 1.5rem;
}

.offerings__card-link {
    font-family: 'Lato', sans-serif;
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--sage-green);
    text-decoration: none;
    transition: color 0.4s var(--ease-smooth), letter-spacing 0.4s var(--ease-smooth);
}

.offerings__card-link:hover {
    color: var(--cream);
    letter-spacing: 0.1em;
}


/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Hero */
    .about-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 7rem;
        gap: 2rem;
    }

    .about-hero__media {
        order: 2;
    }

    .about-hero__text {
        order: 1;
        padding: 1rem 2rem;
    }

    /* Philosophy */
    .philosophy__sticky {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .philosophy__media {
        display: none;
    }

    .philosophy__dots {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 2rem;
        transform: translateX(-50%);
        flex-direction: row;
    }

    /* Lineage — the two columns stack. 7rem top clears the fixed nav-logo
       and buys a band of photograph above the tile. */
    .lineage {
        min-height: auto;
        padding: 7rem 1.25rem 4rem;
    }

    .lineage__content {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    /* The vertical rule becomes a horizontal one once stacked, or the
       identity block would sit against a rule running down empty space. */
    .lineage__identity {
        padding-right: 0;
        padding-bottom: 1.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(42, 42, 42, 0.12);
    }

    /* A phone crops this image hard on width; frame it on her. */
    .lineage__bg img {
        object-position: 62% 45%;
    }

    /* Offerings */
    .offerings__grid {
        grid-template-columns: 1fr;
    }

    /* Photo rail */
    .photo-rail__track {
        gap: 0.75rem;
    }

    .photo-rail__track img {
        min-width: 280px;
        height: 300px;
    }
}


/* ═══════════════════════════════════════════
   HERO — Founder Name Signature
   ═══════════════════════════════════════════ */
.about-hero__name {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    color: rgba(42, 42, 42, 0.6);
    margin-top: 1.5rem;
}


/* ═══════════════════════════════════════════
   PHILOSOPHY — Personal Anecdote
   ═══════════════════════════════════════════ */
.philosophy__personal {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(42, 42, 42, 0.1);
}

.philosophy__personal em {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 300;
    line-height: var(--leading-body);
    color: rgba(42, 42, 42, 0.7);
}


/* ═══════════════════════════════════════════
   PHOTO GALLERY RAIL — Horizontal scroll
   ═══════════════════════════════════════════ */
.photo-rail {
    background: var(--cream);
    padding: var(--pad-element) 0;
    overflow: hidden;
}

.photo-rail__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0 clamp(1rem, 3vw, 3rem);
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.photo-rail__track::-webkit-scrollbar {
    display: none;
}

.photo-rail__track img {
    min-width: 320px;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-soft);
    scroll-snap-align: center;
    flex-shrink: 0;
    transition: transform 0.6s var(--ease-smooth);
}

.photo-rail__track img:hover {
    transform: scale(1.02);
}


/* ═══════════════════════════════════════════
   CLOSING PERSONAL NOTE
   ═══════════════════════════════════════════ */
.closing-note {
    background: var(--cream);
    padding: var(--pad-section) var(--pad-element);
    text-align: center;
    border-top: 1px solid rgba(42, 42, 42, 0.06);
}

.closing-note__inner {
    max-width: 600px;
    margin: 0 auto;
}

.closing-note__text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2vw + 0.3rem, 1.6rem);
    font-style: italic;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.closing-note__name {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sage-deep, #5A6457);
}


/* Reduced motion — see style.css for the authoritative sitewide block.
   Repeated here so this stylesheet is self-consistent if loaded alone. */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Focus — keyboard affordance for this page's interactive elements. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--sage-deep, #5A6457);
  outline-offset: 3px;
}
