/**
 * REIMEI Case Studies Page Stylesheet
 * High-converting editorial portfolio featuring sticky stacking cards, video previews, and quantified operating metrics.
 */

/* ==========================================================================
   Case Studies Page Interactive Background Grid (Scrolls naturally with content like Homepage)
   ========================================================================== */
body.reimei-cases-page {
    position: relative;
}

body.reimei-cases-page #reimei-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background-color: #ffffff;
}

body.reimei-cases-page #reimei-grid-bg .reimei-grid-bg__base {
    position: absolute;
    inset: 0;
    background-size: var(--reimei-grid-size, 48px) var(--reimei-grid-size, 48px);
    background-position: 0 0;
    background-color: transparent;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
}

body.reimei-cases-page #reimei-grid-bg .reimei-grid-bg__hover {
    position: absolute;
    inset: 0;
    background-size: var(--reimei-grid-size, 48px) var(--reimei-grid-size, 48px);
    background-position: 0 0;
    background-color: transparent;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    -webkit-mask-image: radial-gradient(
        var(--reimei-grid-radius, 320px) circle at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
        #000 0%,
        rgba(0, 0, 0, 0.65) 40%,
        rgba(0, 0, 0, 0.18) 70%,
        transparent 100%
    );
    mask-image: radial-gradient(
        var(--reimei-grid-radius, 320px) circle at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
        #000 0%,
        rgba(0, 0, 0, 0.65) 40%,
        rgba(0, 0, 0, 0.18) 70%,
        transparent 100%
    );
    opacity: var(--mouse-active, 0);
    transition: opacity 0.35s ease;
    will-change: -webkit-mask-image, mask-image;
}

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f4f4f5;
    --text: #111111;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --accent: #C45C26;
    --accent-hover: #a64d1f;
    --accent-soft: rgba(196, 92, 38, 0.08);
    --dark: #0b0f19;
    --radius-sm: 999px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.12);
    --font-serif: var(--reimei-serif, Georgia, serif);
    --font-sans: var(--reimei-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    --scrolly-serif: var(--reimei-serif, 'Fraunces', Georgia, serif);
    --scrolly-sans: var(--reimei-sans, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    --scrolly-mono: var(--reimei-mono, 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
    --header-height: 80px;
}

/* ==========================================================================
   Main Page Layout
   ========================================================================== */
.reimei-cases-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: clamp(60px, 8vh, 100px);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Scroll reveal helper */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Hero Section (Matching Services Main Page Typography, Pill & Spacing)
   ========================================================================== */
.hero {
    position: relative;
    padding: clamp(140px, 18vh, 190px) 20px clamp(50px, 7vh, 80px);
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.hero-pill-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(16px, 2.2vh, 22px);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 29px;
    padding: 0 14px 0 11px;
    border-radius: 9px;
    background: #f4f4f6;
    border: 1px solid rgba(0, 0, 0, 0.09);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: rgba(17, 17, 17, 0.88);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none;
}

.hero-pill__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #C45C26;
    box-shadow: 0 0 7px rgba(196, 92, 38, 0.75);
    flex-shrink: 0;
}

.hero-title {
    margin: 0 auto;
    font-family: var(--font-serif);
    font-size: clamp(30px, 2.7vw, 46px) !important;
    line-height: 1.18;
    letter-spacing: -0.035em;
    font-weight: 400;
    text-align: center;
    color: #111111;
    max-width: 880px;
}

.hero-title__line {
    display: block;
    text-align: center;
}

.hero-title__line--1 {
    white-space: nowrap;
}

.hero-title__line--2 {
    display: inline-block;
    white-space: nowrap;
    margin-top: 0.12em;
}

.hero-title__accent {
    color: #ffffff !important;
    background: #C45C26;
    padding: 3px 14px 5px;
    margin-left: 8px;
    display: inline-block;
    transform: skewX(-3deg);
    border-radius: 4px;
    line-height: 1;
    vertical-align: -0.06em;
    box-shadow: 0 4px 14px rgba(196, 92, 38, 0.22);
}

.hero-title__accent em {
    font-style: italic !important;
    font-family: var(--scrolly-serif);
    color: #ffffff !important;
    font-weight: 400;
    display: inline-block;
}

@media (max-width: 680px) {
    .hero-title__line--1,
    .hero-title__line--2 {
        white-space: normal;
        display: block;
    }

    .hero-title__accent {
        display: inline-block;
        margin: 6px 0;
        padding: 2px 10px 4px;
    }
}

.hero-subtitle {
    margin: clamp(16px, 2vh, 22px) auto 0;
    max-width: 680px;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   Bento Performance KPI Grid (Magnaware Box Visual Style & Fonts)
   ========================================================================== */
.bento-section {
    margin-bottom: clamp(56px, 8vh, 84px);
}

.bento-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.bento-label-row h2 {
    font-family: var(--scrolly-serif);
    font-size: clamp(24px, 2.3vw, 32px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0;
    color: #111111;
}

.bento-label-row h2 em.acc-italic {
    font-family: var(--scrolly-serif);
    font-style: italic;
    color: #C45C26;
    font-weight: 400;
}

.bento-label-row .meta {
    font-family: var(--scrolly-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.bento-cell {
    background: #ffffff;
    color: #0a0a0d;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 24px 22px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 145px;
    box-sizing: border-box;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.025);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.bento-cell:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.14);
}

.bento-cell .b-lbl {
    font-family: var(--scrolly-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #52525b;
    margin-bottom: 4px;
    line-height: 1.25;
    z-index: 2;
    position: relative;
}

.bento-cell .b-num {
    font-family: var(--scrolly-serif);
    font-size: clamp(32px, 2.7vw, 38px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 8px 0 6px;
    color: #0a0a0d;
    display: flex;
    align-items: baseline;
    gap: 1px;
    z-index: 2;
    position: relative;
}

.bento-cell .b-num .small {
    font-size: 0.65em;
    letter-spacing: 0;
    margin-left: 2px;
    color: #52525b;
    font-weight: 400;
}

.bento-cell .b-num .acc {
    color: #C45C26;
    font-weight: 600;
    margin-right: 1px;
}

.bento-cell .b-desc {
    font-family: var(--scrolly-sans, var(--reimei-sans));
    font-size: 11.5px;
    line-height: 1.45;
    color: #52525b;
    margin: 0;
    z-index: 2;
    position: relative;
    max-width: 62%;
}

.bento-cell .hl-spark {
    position: absolute;
    right: 8px;
    bottom: 6px;
    width: 115px;
    height: 42px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.bento-cell:hover .hl-spark {
    transform: scale(1.02);
    opacity: 1;
}

/* ==========================================================================
   Deployments Section
   ========================================================================== */
.deployments {
    position: relative;
}

.section-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 4px;
}

.meta-note {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Stacking Cards System
   ========================================================================== */
.stack {
    position: relative;
    padding-bottom: 18vh;
}

.case-card {
    position: sticky;
    top: clamp(80px, 12vh, 120px);
    margin-bottom: clamp(40px, 8vh, 80px);
    background: #ffffff;
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transform-origin: center top;
    will-change: transform, filter;
    z-index: 1;
    min-height: clamp(520px, 72vh, 660px);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    transition: box-shadow 0.3s ease;
}

.case-card:hover {
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.16);
}

.case-card:nth-child(1) { z-index: 1; }
.case-card:nth-child(2) { z-index: 2; }
.case-card:nth-child(3) { z-index: 3; }
.case-card:nth-child(4) { z-index: 4; }
.case-card:nth-child(5) { z-index: 5; }
.case-card:nth-child(6) { z-index: 6; }
.case-card:nth-child(7) { z-index: 7; }
.case-card:nth-child(8) { z-index: 8; }

/* Visual Side */
.card-visual {
    position: relative;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.card-visual--link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.case-card:hover .card-visual--link .brand-logo-text,
.card-visual--link:hover .brand-logo-text {
    transform: scale(1.025);
}

.card-visual-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.card-visual-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    mix-blend-mode: overlay;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.case-card:hover .card-visual-video {
    opacity: 0.62;
}

.card-visual-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(105deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.02) 55%);
    pointer-events: none;
}

.brand-logo-text {
    position: relative;
    z-index: 3;
    font-family: var(--font-serif);
    font-size: clamp(48px, 5.5vw, 84px);
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.02em;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    padding: 24px;
    line-height: 1;
    font-weight: 400;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-text.dark {
    color: var(--text);
    text-shadow: none;
}

.visual-pill {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 4;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-sans);
    pointer-events: none;
}

/* Content Side */
.card-content {
    position: relative;
    padding: clamp(32px, 4.5vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    background-color: #ffffff;
}

.card-category {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.card-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 3.6vw, 48px);
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: -0.025em;
    font-weight: 400;
    color: #111111;
}

.card-title-link {
    color: inherit;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    text-align: left;
    display: inline;
    transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-title-link:hover,
.card-title-link:focus-visible {
    color: #C45C26;
    outline: none;
}

.card-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.68;
    margin: 0 0 26px;
    max-width: 480px;
    font-family: var(--font-sans);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.tag {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-2);
    font-family: var(--font-sans);
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    align-self: flex-start;
    padding-bottom: 3px;
    border-bottom: 1.5px solid var(--border);
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-sans);
}

.case-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.case-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.case-link:hover svg {
    transform: translate(2px, -2px);
}

/* Card Watermark Index Number */
.card-index {
    position: absolute;
    bottom: -22px;
    right: 24px;
    font-family: var(--font-serif);
    font-size: clamp(100px, 12vw, 180px);
    line-height: 1;
    color: var(--text);
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
    letter-spacing: -0.04em;
}

/* Card Top-Right Metric Highlight (Italic Accent with #C45C26) */
.card-metric-highlight {
    position: absolute;
    top: clamp(28px, 4vw, 48px);
    right: clamp(28px, 4vw, 48px);
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    z-index: 2;
}

.metric-highlight-num {
    display: block;
    font-family: var(--scrolly-serif);
    font-size: clamp(28px, 3vw, 40px);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    color: #C45C26;
    letter-spacing: -0.02em;
}

.metric-highlight-lbl {
    display: block;
    font-family: var(--scrolly-serif);
    font-size: 13px;
    font-style: italic;
    color: #C45C26;
    margin-top: 4px;
    letter-spacing: -0.01em;
    opacity: 0.92;
    line-height: 1.25;
}

/* Coming Soon Placeholder Card */
.case-card.coming-soon .card-visual {
    background: repeating-linear-gradient(
        45deg,
        var(--surface-2),
        var(--surface-2) 12px,
        var(--bg) 12px,
        var(--bg) 24px
    );
}

/* ==========================================================================
   Bottom Conversion CTA Section
   ========================================================================== */
.cta {
    padding: clamp(90px, 12vh, 130px) 20px clamp(70px, 10vh, 100px);
    text-align: center;
    position: relative;
    background: transparent;
    border-top: none;
}

.cta-pill {
    margin-bottom: 22px;
}

.cta-pill .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--scrolly-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #52525b;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.09);
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cta-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #C45C26;
    box-shadow: 0 0 8px rgba(196, 92, 38, 0.7);
}

.cta-title {
    font-family: var(--scrolly-serif);
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.25;
    max-width: 840px;
    margin: 0 auto 22px;
    letter-spacing: -0.02em;
    font-weight: 400;
    color: #0a0a0d;
    text-wrap: balance;
}

.cta-title em {
    font-style: italic;
    background: #C45C26;
    color: #ffffff !important;
    padding: 2px 14px 4px;
    display: inline-block;
    transform: skewX(-3deg);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(196, 92, 38, 0.25);
    margin-top: 6px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .cta-title em {
        white-space: normal;
        display: inline;
        padding: 2px 8px;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }
}

.cta-subtitle {
    font-family: var(--scrolly-sans, var(--reimei-sans));
    font-size: 16px;
    color: #52525b;
    max-width: 620px;
    margin: 0 auto 34px;
    line-height: 1.7;
}

.cta-actions {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.cta-actions .btn {
    border-radius: 9px;
    font-size: 14px;
    padding: 14px 26px;
    font-weight: 600;
}

.cta-actions .btn-dark {
    background: #09090b;
    color: #ffffff;
    border: 1px solid #09090b;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.cta-actions .btn-dark:hover {
    background: #27272a;
    border-color: #27272a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.cta-actions .btn-ghost {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0a0a0d;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.cta-actions .btn-ghost:hover {
    background: #f4f4f5 !important;
    background-color: #f4f4f5 !important;
    border-color: rgba(0, 0, 0, 0.28);
    color: #0a0a0d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-arrow {
    font-size: 15px;
    line-height: 1;
    display: inline-block;
}

/* ==========================================================================
   Coming Soon Floating Toast Notification
   ========================================================================== */
/* ==========================================================================
   Inline Coming Soon Notice (Appears under "Read full case study")
   ========================================================================== */
.card-inline-notice {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    margin-top: 0;
    position: relative;
    z-index: 2;
    max-width: 440px;
    width: 100%;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.28s ease,
                margin-top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s;
    pointer-events: none;
}

.card-inline-notice.is-active {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    margin-top: 14px;
    pointer-events: auto;
}

.card-inline-notice__overflow {
    overflow: hidden;
}

.card-inline-notice__box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #09090b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.card-inline-notice__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C45C26;
    box-shadow: 0 0 8px rgba(196, 92, 38, 0.9);
    margin-top: 5px;
    flex-shrink: 0;
}

.card-inline-notice__content {
    flex: 1;
    min-width: 0;
}

.card-inline-notice__title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
    line-height: 1.25;
}

.card-inline-notice__desc {
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.48;
    margin: 0;
}

.card-inline-notice__close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    line-height: 1;
    padding: 2px;
    margin: -2px -2px 0 0;
    cursor: pointer;
    transition: color 0.15s ease;
    align-self: flex-start;
}

.card-inline-notice__close:hover {
    color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
}

@media (max-width: 900px) {
    .case-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
    }

    .card-visual {
        min-height: 280px;
        grid-row: 1;
        grid-column: 1;
    }

    .card-content {
        grid-row: 2;
        grid-column: 1;
        padding: 32px 24px;
    }

    .card-metric-highlight {
        top: 24px;
        right: 24px;
    }

    .metric-highlight-num {
        font-size: 26px;
    }

    .metric-highlight-lbl {
        font-size: 11.5px;
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .case-card {
        top: 10vh;
        margin-bottom: 5vh;
        border-radius: 20px;
    }

    .card-index {
        right: 16px;
        bottom: -16px;
    }
}
