/* © 2026 Vishwa Pipaliya — Maeven Design. All rights reserved. */
:root {
    --bl-ink: #0c0d0f;
    --bl-scrim-rgb: 12, 13, 15;
    --bl-brief-ink: #111827;
    --bl-brief-muted: #6E6E6E;
    --bl-brief-line: #e6e6e6;
    --bl-sage: #4A9D8A;
    --bl-coral: #FF8A65;
    --bl-midnight: #2F4D7C;
    --bl-charcoal: #2D2D2D;
    --bl-slate: #6E6E6E;
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background: var(--bl-ink);
}

/* ══════════════════════════════════════════════
   Bloom — Hero
   ══════════════════════════════════════════════ */

.bl-scroll-container {
    position: relative;
    overflow: visible;
}

.bl-hero-track {
    position: relative;
    height: 200vh;
}

.bl-hero {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    will-change: transform, opacity, filter;
}

.bl-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bl-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: var(--bl-ink);
    display: block;
}

.bl-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(var(--bl-scrim-rgb), 0.10) 0%,
            rgba(var(--bl-scrim-rgb), 0.25) 40%,
            rgba(var(--bl-scrim-rgb), 0.72) 70%,
            rgba(var(--bl-scrim-rgb), 0.88) 100%
    );
}

.bl-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 5vw 6vh;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 100%;
    will-change: transform, opacity;
}

.bl-hero-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0;
}

.bl-hero-sub {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 200;
    font-size: clamp(0.95rem, 1.4vw, 1.2rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
    margin: 0;
    max-width: 50ch;
}

.bl-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    margin-top: 0.5rem;
}

.bl-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.bl-meta-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.bl-meta-value {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.3;
}

@media (max-width: 760px) {
    .bl-hero-track { height: 200vh; }
    .bl-hero-content { padding: 0 6vw 5vh; }
    .bl-hero-meta { gap: 1.2rem 2rem; }
    .bl-hero-title { font-size: 2.4rem; }
}

/* ══════════════════════════════════════════════
   THE BRIEF — slides up over the pinned hero
   ══════════════════════════════════════════════ */

.bl-brief {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    border-radius: 58px 58px 0 0;
    padding: 8vh 80px 12vh;
    margin-top: -100vh;
    min-height: 100vh;
    width: 100%;
}

.bl-brief-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0 8vw;
    align-items: start;
}

.bl-brief-left { position: sticky; top: 8rem; }

.bl-brief-heading {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.0;
    letter-spacing: -0.025em;
    color: var(--bl-brief-ink);
    margin: 0;
}

.bl-brief-right {
    display: flex;
    flex-direction: column;
    padding-top: 0.25rem;
}

.bl-brief-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
}

.bl-brief-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bl-brief-ink);
}

.bl-brief-body {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.75;
    color: var(--bl-brief-muted);
    margin: 0;
    max-width: 75ch;
}

.bl-brief-divider {
    border: none;
    border-top: 1px solid var(--bl-brief-line);
    margin: 0;
}

@media (max-width: 768px) {
    .bl-brief { padding: 8vh 6vw 10vh; border-radius: 32px 32px 0 0; }
    .bl-brief-inner { grid-template-columns: 1fr; gap: 3rem 0; }
    .bl-brief-left { position: static; }
}

/* ══════════════════════════════════════════════
   IDEA BEHIND THE LOGO
   ══════════════════════════════════════════════ */

.bl-logo-story {
    position: relative;
    z-index: 2;
    background: #fff;
    max-width: 100%;
    margin: 0 auto;
    padding: 4vh 80px 12vh;
}

.bl-logo-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: stretch;
}

.bl-logo-card {
    background: #2D2D2D;
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    font-family: 'Nunito', sans-serif;
}

.bl-logo-card-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 28px;
    margin: 0 0 18px;
}

.bl-logo-tagline {
    font-style: italic;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px;
}

.bl-logo-card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.bl-logo-swatches {
    margin-top: 24px;
}

.bl-logo-swatches img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.bl-logo-explore {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.bl-logo-mark {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
}

.bl-meanings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
    font-family: 'Nunito', sans-serif;
}

.bl-meaning-card {
    background: #F1F2F4;
    border-radius: 10px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.bl-meaning-glyph {
    color: #4A9D8A;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 20px;
}

.bl-meaning-title {
    font-weight: 800;
    font-size: 13px;
    color: #2D2D2D;
}

.bl-meaning-desc {
    font-size: 10.5px;
    line-height: 1.4;
    color: #6E6E6E;
}

@media (max-width: 860px) {
    .bl-logo-grid { grid-template-columns: 1fr; }
    .bl-meanings { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════
   ROOM TO BLOOM — 2x2 image grid, edge to edge
   ══════════════════════════════════════════════ */

.bl-room {
    background: #ffffff;
    padding: 0 80px 12vh;
}

.bl-room-grid {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 42vh);
    border-radius: 20px;
    overflow: hidden;
}

.bl-room-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bl-room-grid img:nth-child(3) {
    object-position: center 35%;
}

@media (max-width: 700px) {
    .bl-room { padding: 0 6vw 8vh; }
    .bl-room-grid { grid-template-columns: 1fr; grid-template-rows: none; }
}

/* ══════════════════════════════════════════════
   STYLES — slides up over the showcase
   Opens with rounded top over the dark showcase
   ══════════════════════════════════════════════ */

.bl-styles {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    border-radius: 58px 58px 0 0;
    margin-top: -100vh;
    min-height: 100vh;
    padding: 10vh 80px 12vh;
    width: 100%;
}

.bl-styles-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.bl-styles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    min-height: 80vh;
}

.bl-palette {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
}

.bl-swatch {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.1rem 1.4rem;
    flex: 1;
    min-height: 90px;
}

/* animation only plays once JS adds .animate-in to the parent .bl-palette */
.bl-palette.animate-in .bl-swatch {
    animation: bl-swatch-slide 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bl-palette.animate-in .bl-swatch:nth-child(1) { animation-delay: 0.00s; }
.bl-palette.animate-in .bl-swatch:nth-child(2) { animation-delay: 0.08s; }
.bl-palette.animate-in .bl-swatch:nth-child(3) { animation-delay: 0.16s; }
.bl-palette.animate-in .bl-swatch:nth-child(4) { animation-delay: 0.24s; }
.bl-palette.animate-in .bl-swatch:nth-child(5) { animation-delay: 0.32s; }

@keyframes bl-swatch-slide {
    from { opacity: 0; transform: translateX(-48px); }
    to   { opacity: 1; transform: translateX(0); }
}

.bl-swatch--sage      { background: var(--bl-sage); }
.bl-swatch--coral     { background: var(--bl-coral); }
.bl-swatch--midnight  { background: var(--bl-midnight); }
.bl-swatch--charcoal  { background: var(--bl-charcoal); }
.bl-swatch--slate     { background: var(--bl-slate); }

.bl-swatch-name {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.3;
}

.bl-swatch-hex {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
}

.bl-swatch--sage .bl-swatch-name,     .bl-swatch--sage .bl-swatch-hex,
.bl-swatch--midnight .bl-swatch-name, .bl-swatch--midnight .bl-swatch-hex,
.bl-swatch--charcoal .bl-swatch-name, .bl-swatch--charcoal .bl-swatch-hex,
.bl-swatch--slate .bl-swatch-name,    .bl-swatch--slate .bl-swatch-hex {
    color: rgba(255, 255, 255, 0.92);
}

.bl-swatch--coral .bl-swatch-name, .bl-swatch--coral .bl-swatch-hex {
    color: var(--bl-charcoal);
}

.bl-type-card {
    background: #ECEEF2;
    border-radius: 16px;
    padding: 2rem 2.2rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
    overflow: hidden;
}

/* animation only plays once JS adds .animate-in */
.bl-type-card.animate-in {
    animation: bl-card-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes bl-card-rise {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bl-type-name-row {
    display: flex;
    align-items: baseline;
    flex-direction: column;
}

.bl-type-family {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: #0a0a0a;
    letter-spacing: -0.02em;
}

.bl-type-display {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 1.5rem 0;
}

.bl-type-icon {
    max-width: 60%;
    max-height: 100%;
    display: block;
}

.bl-type-rule {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 0.75rem 0;
}

.bl-type-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.bl-type-charset {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bl-slate);
    margin: 0;
    max-width: 36ch;
    opacity: 0.7;
    font-family: 'Nunito', sans-serif;
}

@media (max-width: 900px) {
    .bl-styles-grid { grid-template-columns: 1fr; }
    .bl-palette { flex-direction: row; flex-wrap: wrap; }
    .bl-swatch { flex: 1 1 30%; min-height: 90px; }
}

@media (max-width: 600px) {
    .bl-styles { border-radius: 32px 32px 32px 32px; padding: 8vh 6vw 10vh; }
}

/* ══════════════════════════════════════════════
   BEYOND COLOUR
   ══════════════════════════════════════════════ */

.bl-beyond {
    background: #fff;
    padding: 0 80px 12vh;
}

.bl-beyond-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0 8vw;
    align-items: start;
}

.bl-beyond-heading {
    position: sticky;
    top: 8rem;
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #111827;
    margin: 0;
}

.bl-beyond-body {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.7;
    color: #6E6E6E;
    margin: 0;
    max-width: 75ch;
}

@media (max-width: 768px) {
    .bl-beyond { padding: 0 6vw 8vh; }
    .bl-beyond-inner { grid-template-columns: 1fr; gap: 1.25rem 0; }
}

/* ══════════════════════════════════════════════
   WALKTHROUGH
   ══════════════════════════════════════════════ */

.bl-walk {
    background: #fff;
    padding: 6vh 80px 12vh;
    overflow-x: hidden;
}

/* ── tabs ── */
.bl-walk-tabs {
    width: 100%;
    margin: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bl-walk-tab {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 10px;
    background: #F1F3F6;
    color: #9AA5B1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.bl-walk-tab--active {
    background: #3E9B82;
    color: #fff;
    font-weight: 800;
}

.bl-walk-connector {
    flex: none;
    width: 140px;
    height: 0;
    border-top: 2px dashed #cfd3d6;
    margin: 0 30px;
}

/* ── phones ── */
.bl-walk-phones {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 60px;
    display: flex;
    justify-content: center;
}

.bl-walk-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* ── notes ── */
.bl-walk-notes {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bl-walk-note {
    background: #E9F6F1;
    border: 1px solid #cdeadf;
    border-radius: 14px;
    padding: 22px 24px;
}

.bl-walk-note-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 17px;
    color: #3E9B82;
    margin: 0 0 12px;
}

.bl-walk-note-quote {
    font-family: 'Nunito', sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: 14px;
    color: #2D2D2D;
    margin: 0 0 12px;
}

.bl-walk-note-body {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #6E6E6E;
    margin: 0;
}

@media (max-width: 860px) {
    .bl-walk-notes { grid-template-columns: 1fr; }
    .bl-walk-phones { flex-wrap: wrap; }
    .bl-walk-tabs { flex-wrap: wrap; gap: 10px; }
    .bl-walk-connector { display: none; }
}

/* ══════════════════════════════════════════════
   WELLNESS TOOLKIT
   ══════════════════════════════════════════════ */

.bl-toolkit {
    position: relative;
    z-index: 0;
    background: #E9EBF0;
    margin-top: -58px;
    padding: calc(18vh + 58px) 80px 20vh;
    border-radius: 0 0 58px 58px;
    min-height: 900px;
    display: flex;
    align-items: center;
}

.bl-toolkit-inner {
    width: 100%;
}

.bl-toolkit-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 5rem;
    max-width: 56ch;
}

.bl-toolkit-heading {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #111827;
    margin: 0;
}

.bl-toolkit-sub {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.6;
    color: #6E6E6E;
    margin: 0;
}

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

.bl-toolkit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.bl-toolkit-icon {
    width: 90px;
    height: 72px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
}

.bl-toolkit-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    color: #2D2D2D;
}

@media (max-width: 1024px) {
    .bl-toolkit-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .bl-toolkit { padding: calc(8vh + 58px) 6vw 10vh; min-height: 700px; }
    .bl-toolkit-header { margin-bottom: 3rem; }
    .bl-toolkit-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}

/* ══════════════════════════════════════════════
   UNDERSTANDING EMOTIONS
   ══════════════════════════════════════════════ */

.bl-emotions {
    background: #fff;
    padding: 10vh 80px 12vh;
}

.bl-emotions-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0 8vw;
    align-items: start;
}

.bl-emotions-heading {
    position: sticky;
    top: 8rem;
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #111827;
    margin: 0;
}

.bl-emotions-body {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.7;
    color: #6E6E6E;
    margin: 0;
    max-width: 75ch;
}

@media (max-width: 768px) {
    .bl-emotions { padding: 0 6vw 8vh; }
    .bl-emotions-inner { grid-template-columns: 1fr; gap: 1.25rem 0; }
}

/* ══════════════════════════════════════════════
   MOOD COLLAGE
   ══════════════════════════════════════════════ */

.bl-moods {
    background: #fff;
    padding: 0;
    border-radius: 0 0 58px 58px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.bl-moods-image {
    display: block;
    width: 100%;
    margin: 0 auto;
    height: auto;
    max-height: 100vh;
    object-fit: cover;
}

/* ══════════════════════════════════════════════
   BUILDING A HABIT, NOT A STREAK
   ══════════════════════════════════════════════ */

.bl-habit-track {
    position: relative;
    height: 200vh;
    margin-top: -58px; /* receives Toolkit's closing curve */
}

.bl-habit {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100vh;
    background: #2E3149;
    padding: calc(12vh + 58px) 80px 12vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.bl-habit-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0 6vw;
    align-items: center;
}

.bl-habit-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 48px;
    max-width: 420px;
}

.bl-habit-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.bl-habit-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.bl-habit-card--active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.bl-habit-card img {
    width: 64px;
    height: 64px;
    display: block;
    opacity: 0.45;
}

.bl-habit-card--active img {
    opacity: 1;
}

.bl-habit-card span {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.bl-habit-card--active span {
    color: #2D2D2D;
}

.bl-habit-heading {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.15;
    color: #fff;
    margin: 0 0 24px;
}

.bl-habit-heading-accent {
    color: #4A9D8A;
}

.bl-habit-body {
    ffont-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.75;
    color: #EAECF1;
    margin: 0;
    margin-bottom: 1.25rem;
    display: block;
    margin-top: 1.25rem;
}

.bl-habit-phones {
    display: block;
    width: 100%;
    max-width: none;
}

@media (max-width: 960px) {
    .bl-habit-track { height: auto; }
    .bl-habit { position: static; height: auto; }
    .bl-therapist { margin-top: 0; border-radius: 32px 32px 0 0; }
    .bl-habit-inner { grid-template-columns: 1fr; gap: 4rem 0; }
    .bl-habit-right { order: -1; }
}

/* ══════════════════════════════════════════════
   REDISCOVER YOUR INNER CALM
   ══════════════════════════════════════════════ */

.bl-quote {
    background: #fff;
    padding: 12vh 80px;
    border-radius: 0 0 58px 58px;
    position: relative;
    z-index: 1;
}

.bl-quote-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.bl-quote-heading {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    color: #111827;
    margin: 0 0 32px;
}

.bl-quote-body {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.6;
    color: #6E6E6E;
    margin: 0;
}

@media (max-width: 768px) {
    .bl-quote { padding: 8vh 6vw; }
}

/* ══════════════════════════════════════════════
   REMINDERS — "a day of gentle nudges"
   Default (no script, or reduced motion): the three reminders sit side by
   side. bloom-reminders.js adds .is-live to the track, which pins the scene:
   each screen is dealt as a card over the last, the page tint shifts through Bloom's
   palette, and the copy, counter and icon rail follow along.
   Everything that moves is transform/opacity only.
   ══════════════════════════════════════════════ */

.bl-reminders-track {
    position: relative;
    margin-top: -58px;           /* tucks under .bl-quote's rounded bottom */
    --ink: #22314A;
    --midnight: #2F4D7C;
}

.bl-reminders {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4vw;
    padding: calc(58px + 10vh) 6vw 12vh;
    overflow: hidden;
    color: var(--ink);
}

/* Page tints — stacked layers; only opacity changes between them. */
.bl-rm-tints { position: absolute; inset: 0; z-index: 0; }
.bl-rm-tints i {
    position: absolute;
    inset: 0;
    background: var(--tint);
    opacity: 0;
}
.bl-rm-tints i:first-child { opacity: 1; }

.bl-rm-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    max-width: 34rem;
}

.bl-rm-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(47, 77, 124, 0.7);
}

/* Rolling counter: 01 → 02 → 03 inside a one-line mask */
.bl-rm-count {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-family: 'Fraunces', Georgia, serif;
}
.bl-rm-count-now {
    display: block;
    height: 1em;
    overflow: hidden;
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--midnight);
}
.bl-rm-count-now span { display: block; height: 1em; will-change: transform; }
.bl-rm-count-total {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(47, 77, 124, 0.55);
}

/* Slides share one grid cell, so the box is as tall as the tallest line. */
.bl-rm-slides {
    display: grid;
    overflow: hidden;
    padding-bottom: 0.2em;       /* room for italic descenders inside the mask */
}
.bl-rm-slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    will-change: transform, opacity;
}
.bl-rm-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}
.bl-rm-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.bl-rm-line {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--ink);
}
.bl-rm-line em {
    font-style: italic;
    font-weight: 500;
    color: var(--accent);
    white-space: nowrap;         /* keep "check-ins." from splitting at its hyphen */
}

/* Progress rail — the three circular icons as stops */
.bl-rm-rail {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 22rem;
    margin-top: 0.8rem;
}
.bl-rm-rail-line {
    position: absolute;
    top: 22px;
    left: 22px;
    right: 22px;
    height: 1.5px;
    background: rgba(47, 77, 124, 0.15);
}
.bl-rm-rail-line i {
    position: absolute;
    inset: 0;
    background: var(--midnight);
    transform: scaleX(0);
    transform-origin: left center;
}
.bl-rm-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}
/* A solid disc behind each icon. Inactive icons fade, and without this the
   rail line showed straight through them; the disc stays opaque and hides it. */
.bl-rm-dot {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6);
    will-change: transform;
}
.bl-rm-node img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    will-change: opacity;
}
.bl-rm-node > span:not(.bl-rm-dot) {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}

/* Stage: the card deck, with a huge soft numeral drifting behind it */
.bl-rm-stage {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}
.bl-rm-ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 1em;
    margin: -0.5em 0 0 -0.62em;     /* roughly centred behind the deck */
    overflow: hidden;
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: min(46vh, 30vw);
    line-height: 1;
    letter-spacing: -0.06em;
    color: rgba(47, 77, 124, 0.08);
    pointer-events: none;
}
.bl-rm-ghost span { display: block; height: 1em; will-change: transform; }

/* The deck: the three screens as cards stacked in one spot. Each new card
   slides up over the last, which sinks back smaller and dimmer behind it. */
.bl-rm-deck {
    position: relative;
    height: min(74vh, 680px);
    aspect-ratio: 720 / 1021;
}
.bl-rm-card {
    position: absolute;
    inset: 0;
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    background: var(--midnight);
    box-shadow:
        0 30px 60px rgba(34, 49, 74, 0.22),
        0 8px 18px rgba(34, 49, 74, 0.12);
    transform-origin: 50% 100%;
    will-change: transform;
}
.bl-rm-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Dims a card once it's buried — opacity on a layer, not a filter. */
.bl-rm-card-shade {
    position: absolute;
    inset: 0;
    background: #1B2436;
    opacity: 0;
    pointer-events: none;
}

/* ── Static layout (no script / reduced motion): three cards in a row ── */
.bl-reminders-track:not(.is-live) .bl-rm-count,
.bl-reminders-track:not(.is-live) .bl-rm-rail,
.bl-reminders-track:not(.is-live) .bl-rm-ghost { display: none; }
.bl-reminders-track:not(.is-live) .bl-rm-slides { overflow: visible; gap: 2.2rem; }
.bl-reminders-track:not(.is-live) .bl-rm-slide { grid-area: auto; }
.bl-reminders-track:not(.is-live) .bl-rm-line { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.bl-reminders-track:not(.is-live) .bl-rm-stage { width: 100%; }
.bl-reminders-track:not(.is-live) .bl-rm-deck { display: flex; gap: 1rem; width: 100%; height: auto; aspect-ratio: auto; }
.bl-reminders-track:not(.is-live) .bl-rm-card { position: relative; flex: 1; aspect-ratio: 720 / 1021; border-radius: 18px; }

/* On desktop .bl-life slides up over the last screen of whatever precedes
   it, so the static layout reserves that screen too and holds still under
   it — otherwise it was covered before it could be read. */
@media (min-width: 769px) {
    .bl-reminders-track:not(.is-live) { padding-bottom: 100vh; }
    .bl-reminders-track:not(.is-live) .bl-reminders { position: sticky; top: 0; min-height: 100vh; }
}

/* ── Live (pinned) ── */
.bl-reminders-track.is-live { height: 420vh; }
.bl-reminders-track.is-live .bl-reminders {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 58px 6vw 0;
}

@media (max-width: 768px) {
    .bl-reminders-track { margin-top: -32px; }   /* matches .bl-quote's 32px curve here */

    .bl-reminders {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: calc(32px + 8vh) 6vw 10vh;
    }
    .bl-rm-copy { gap: 1rem; }
    .bl-rm-line { font-size: clamp(1.7rem, 7.4vw, 2.2rem); }
    .bl-reminders-track:not(.is-live) .bl-rm-deck { flex-direction: column; }

    /* Live on a phone: text on top, the card deck filling the rest. */
    .bl-reminders-track.is-live { height: 360vh; }
    .bl-reminders-track.is-live .bl-reminders {
        grid-template-rows: auto 1fr;
        align-content: start;
        align-items: start;
        gap: 3vh;
        padding: calc(32px + 76px) 6vw 3vh;
    }
    /* The big counter becomes a small tag beside the eyebrow. */
    .bl-reminders-track.is-live .bl-rm-copy { position: relative; }
    .bl-reminders-track.is-live .bl-rm-count { position: absolute; top: -0.2rem; right: 0; }
    .bl-reminders-track.is-live .bl-rm-count-now { font-size: 1.35rem; }
    .bl-reminders-track.is-live .bl-rm-rail,
    .bl-reminders-track.is-live .bl-rm-ghost { display: none; }
    /* Head-room for the buried cards, which fan out above the front one. */
    .bl-reminders-track.is-live .bl-rm-stage { height: 100%; align-items: start; padding-top: 44px; }
    .bl-rm-card { border-radius: 22px; }
    .bl-reminders-track.is-live .bl-rm-deck { height: min(54vh, 122vw); }
}

/* ══════════════════════════════════════════════
   THERAPIST MATCHING
   ══════════════════════════════════════════════ */

.bl-therapist {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    border-radius: 58px 58px 0 0;
    margin-top: -100vh;
    min-height: 100vh;
    padding: 10vh 80px;
    width: 100%;
}

.bl-therapist-image {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .bl-therapist { padding: 8vh 6vw; }
}

/* ══════════════════════════════════════════════
   BRINGING BLOOM TO LIFE
   ══════════════════════════════════════════════ */

.bl-life {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    border-radius: 58px 58px 58px 58px;
    margin-top: -100vh;
    margin-bottom: -58px;
    min-height: 100vh;
    padding: 10vh 80px 8vh;
    width: 100%;
}

.bl-life-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0 6vw;
    align-items: start;
}

.bl-life-heading {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    color: #111827;
    margin: 0 0 20px;
}

.bl-life-body {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: #6E6E6E;
    margin: 0;
    max-width: 46ch;
}

.bl-life-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

@media (max-width: 900px) {
    /* `position: relative` (not static) keeps z-index:2 alive so the card
       paints over the footer wrapper — otherwise the footer covers the
       rounded bottom. Bottom radius restored to match the desktop card. */
    .bl-life { position: relative; margin-top: 0; padding: 8vh 6vw; border-radius: 32px; margin-bottom: -32px; min-height: auto; }
    .bl-life-inner { grid-template-columns: 1fr; gap: 3rem 0; }
}

/* NEXT PROJECT — moved to shared /style.css component, see /assets/next-project.js */

/* ── footer reveal: compensate for .bl-life's -58px tuck-under ── */
#maeven-footer {
    position: relative;
    z-index: 0;
}

@media (max-width: 900px) {
    /* Clearing the -32px tuck with padding on the WRAPPER pushed the
       footer's grey down with it, cancelling the tuck entirely so
       .bl-life's rounded bottom had nothing to cut out against.
       Put the clearance inside the footer so the grey still starts at
       the wrapper's top edge, behind the corners. */
    #maeven-footer {
        padding-top: 0;
    }
    #maeven-footer .footer {
        padding-top: calc(8vh + 32px);
    }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — mobile
   Consolidated overrides; last in the file so they
   win over the per-section queries above.
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── PALETTE: the ≤900 rule wraps the swatches into a 3-over-2 grid,
       which the grid's fixed 80vh then squeezes. One full-width block
       per colour instead, matching MSC. ── */
    /* ── STYLES: palette and type specimen side by side rather than
       stacked, so the whole section fits a screen and the next heading
       comes into view with it. Earlier breakpoints collapse this to 1fr
       and the fixed 80vh squeezed the swatches, so both are overridden. ── */
    .bl-styles-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 0;
        gap: 0.75rem;
    }
    .bl-palette { flex-direction: column; }
    .bl-swatch { flex: 1 1 auto; min-height: 62px; padding: 0.6rem 0.75rem; }
    .bl-swatch-name { font-size: 0.8rem; line-height: 1.2; }
    .bl-swatch-hex  { font-size: 0.6rem; margin-top: 0.1rem; }

    .bl-type-card { padding: 1rem 0.9rem 0.85rem; border-radius: 14px; }
    .bl-type-family { font-size: 1.45rem; }
    .bl-type-display { padding: 0.75rem 0; }
    .bl-type-icon { max-width: 78%; }
    .bl-type-rule { margin: 0.5rem 0; }
    /* the specimen string barely breaks; at this width it only reads as
       texture, so keep it small and let it wrap anywhere */
    .bl-type-footer { flex-direction: column; align-items: flex-start; }
    .bl-type-charset {
        max-width: none;
        font-size: 0.55rem;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    /* ── REMINDERS are back on phones: .bl-quote curves down into them and
       .bl-life curves back up over them, tucked by the same 32px. ── */
    .bl-quote { border-radius: 0 0 32px 32px; }
    .bl-life  { border-radius: 32px; margin-top: -32px; }

    /* ── These two column headings stay `sticky; top: 8rem` once their
       grids collapse to one column, so they drift down over their own
       body copy. Same bug as the MSC build/precision headings. ── */
    .bl-beyond-heading,
    .bl-emotions-heading { position: static; }

    /* ── Rounded joins: .bl-moods and .bl-toolkit kept the desktop 58px
       while .bl-brief, .bl-styles and .bl-therapist drop to 32px here.
       Tucks and top padding move with them so each curve still lands on
       the layer behind it. (.bl-quote is squared off above instead,
       now that it sits directly against .bl-life.) ── */
    .bl-moods   { border-radius: 0 0 32px 32px; }
    .bl-toolkit {
        border-radius: 0 0 32px 32px;
        margin-top: -32px;
        padding-top: calc(8vh + 32px);
    }
    .bl-habit-track { margin-top: -32px; }

    /* ── GUTTERS: these three never got a mobile override, so 80px a side
       left 215px of a 375px screen for content — 43% margin. ── */
    .bl-logo-story { padding-left: 6vw; padding-right: 6vw; }
    .bl-walk       { padding-left: 6vw; padding-right: 6vw; }
    .bl-habit      { padding-left: 6vw; padding-right: 6vw; }

    /* ── .bl-styles slides -100vh over .bl-room, which is a full viewport
       tall and pinned on desktop. Unpinned at this width the room is just
       919px of stacked images, so the -100vh buried three of the four. ── */
    .bl-styles {
        position: relative;
        top: auto;
        margin-top: 0;
        min-height: 0;
    }

    /* ── Same trap: .bl-therapist buried the habit section's heading, its
       body copy and two of its four cards. `relative`, not `static`, so
       z-index survives and the rounded top still reads against the navy. ── */
    .bl-therapist {
        position: relative;
        top: auto;
        margin-top: -32px;
        min-height: 0;
        border-radius: 32px 32px 0 0;
    }
}
