/* ============================================
   CASE-STUDY-PAGE.CSS — used on case-studies/*.html.
   Tokens + primitives live in tokens.css + base.css.
   ============================================ */

.realization-hero {
    position: relative;
    background: var(--gradient-hero);
    color: var(--pure-white);
    padding: clamp(5rem, 7vw, 6.5rem) 0 clamp(2.5rem, 4vw, 4rem);
    overflow: hidden;
    isolation: isolate;
}

.realization-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 85% 18%, rgba(255, 255, 255, 0.16), transparent 55%),
        radial-gradient(circle at 12% 88%, rgba(220, 60, 180, 0.22), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.realization-hero .hero-title {
    font-family: var(--font-serif);
    font-size: var(--fs-display-lg);
    font-weight: var(--fw-regular);
    line-height: 1.12;
    letter-spacing: var(--ls-tighter);
    font-variation-settings: var(--fraunces-display);
    background: var(--gradient-text-light);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: var(--space-md);
    padding-bottom: 0.1em;
    max-width: 20ch;
}

.realization-hero__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.9rem 0.4rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    margin-bottom: var(--space-md);
    color: var(--pure-white);
}

.realization-hero__brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pure-white);
    overflow: hidden;
    flex-shrink: 0;
}

.realization-hero__brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.realization-hero__brand-name {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-variation-settings: var(--fraunces-text);
    letter-spacing: var(--ls-tight);
    color: var(--pure-white);
    line-height: 1;
}

.realization-hero .hero-description {
    font-family: var(--font-sans);
    font-size: var(--fs-body-lg);
    line-height: var(--lh-relaxed);
    color: var(--on-dark-body);
    max-width: 70ch;
}

/* ----- Main Image ----- */

.realization-main-image {
    padding-block: clamp(2.5rem, 5vw, 5rem);
    background: var(--pure-white);
}

.realization-main-image .feature-frame {
    max-width: clamp(1040px, 92vw, 1240px);
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 3.25rem) clamp(1.5rem, 5vw, 3.75rem);
}

.main-image-wrapper {
    max-width: 960px;
    margin-inline: auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-xl);
    background: var(--pure-white);
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----- Project Overview ----- */

.project-overview {
    background: var(--ghost-white);
    padding-block: var(--section-pad-y);
}

.project-overview h2 {
    font-family: var(--font-serif);
    font-size: var(--fs-display-md);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    font-variation-settings: var(--fraunces-heading);
    color: var(--ink-strong);
    margin-bottom: var(--space-lg);
    max-width: 22ch;
}

.overview-grid {
    display: grid;
    gap: var(--space-xl);
}

.overview-item h3 {
    font-family: var(--font-sans);
    font-size: var(--fs-heading-md);
    font-weight: var(--fw-semibold);
    letter-spacing: 0;
    color: var(--ink-strong);
    margin-bottom: var(--space-md);
}

.checkmark-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.checkmark-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
    color: var(--ink-body);
}

.checkmark-list li::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 4px;
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23141EC8' stroke-width='1.4'/%3E%3Cpath d='M9 12L11 14L15 10' stroke='%23141EC8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ----- Problem Box ----- */

.problem-section { margin-top: var(--space-2xl); }

.problem-box {
    background: var(--primary-blue);
    border-radius: var(--radius-2xl);
    padding: clamp(2rem, 5vw, 4rem);
    color: var(--pure-white);
    text-align: center;
}

.problem-box h3 {
    font-family: var(--font-serif);
    font-size: var(--fs-display-md);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    font-variation-settings: var(--fraunces-heading);
    color: var(--pure-white);
    margin-bottom: var(--space-lg);
}

.problem-quote {
    background: var(--pure-white);
    border-radius: var(--radius-xl);
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3.5rem);
    margin-bottom: var(--space-lg);
}

.problem-quote p {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    font-variation-settings: var(--fraunces-heading);
    color: var(--primary-blue);
    text-align: center;
    margin: 0;
}

.problem-description {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
    color: var(--on-dark-body);
    text-align: center;
    max-width: 60ch;
    margin-inline: auto;
}

/* ----- Key Benefits ----- */

.key-benefits {
    background: var(--ghost-white);
    padding-block: var(--section-pad-y);
}

.key-benefits h2 {
    font-family: var(--font-serif);
    font-size: var(--fs-display-md);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    font-variation-settings: var(--fraunces-heading);
    color: var(--ink-strong);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: var(--fs-body-lg);
    line-height: var(--lh-relaxed);
    color: var(--ink-body);
    text-align: center;
    max-width: 60ch;
    margin: 0 auto var(--space-xl);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

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

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

.benefit-card {
    background: var(--pure-white);
    border-radius: var(--radius-2xl);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border: 1px solid transparent;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(20, 30, 200, 0.18);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-md);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 30, 200, 0.08);
    border-radius: var(--radius-md);
}

.benefit-icon svg { width: 28px; height: 28px; }

.benefit-card h3 {
    font-family: var(--font-serif);
    font-size: var(--fs-heading-md);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    font-variation-settings: var(--fraunces-heading);
    color: var(--primary-blue);
    margin-bottom: var(--space-xs);
}

.benefit-card p {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
    color: var(--ink-body);
}

/* ----- Challenges ----- */

.challenges-section {
    background: var(--pure-white);
    padding-block: var(--section-pad-y);
}

.challenges-section h2 {
    font-family: var(--font-serif);
    font-size: var(--fs-display-md);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    font-variation-settings: var(--fraunces-heading);
    color: var(--ink-strong);
    margin-bottom: var(--space-lg);
    max-width: 22ch;
}

.challenge-item {
    background: rgba(255, 75, 89, 0.06);
    border: 1px solid rgba(255, 75, 89, 0.4);
    border-radius: var(--radius-2xl);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: var(--space-md);
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

@media (max-width: 640px) {
    .challenge-item { flex-direction: column; gap: var(--space-md); }
}

.challenge-item .challenge-icon {
    min-width: 40px;
    width: 40px;
    height: 40px;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.challenge-content h3 {
    font-family: var(--font-serif);
    font-size: var(--fs-heading-md);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    font-variation-settings: var(--fraunces-heading);
    color: var(--accent-red);
    margin-bottom: var(--space-xs);
}

.challenge-content p {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
    color: var(--ink-body);
}

/* ----- Approach ----- */

.approach-section {
    background: var(--pure-white);
    padding-block: var(--section-pad-y);
}

.approach-box {
    background: var(--primary-blue);
    border-radius: var(--radius-2xl);
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    color: var(--pure-white);
    max-width: var(--container-wide);
    margin-inline: auto;
    background-image: linear-gradient(135deg, var(--primary-blue), var(--accent-magenta));
}

.approach-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-lg);
    color: var(--pure-white);
}

.approach-box h2 {
    font-family: var(--font-serif);
    font-size: var(--fs-display-md);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    font-variation-settings: var(--fraunces-heading);
    color: var(--pure-white);
    margin-bottom: var(--space-sm);
}

.approach-subtitle {
    font-family: var(--font-sans);
    font-size: var(--fs-body-lg);
    line-height: var(--lh-relaxed);
    color: var(--on-dark-body);
    margin-bottom: var(--space-lg);
    max-width: 60ch;
    margin-inline: auto;
}

.approach-quote {
    background: var(--pure-white);
    border-radius: var(--radius-xl);
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3.5rem);
    margin: var(--space-lg) auto;
    max-width: 900px;
}

.approach-quote p {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    font-variation-settings: var(--fraunces-heading);
    color: var(--primary-blue);
    margin: 0;
}

.approach-description {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
    color: var(--on-dark-body);
    margin-top: var(--space-lg);
    max-width: 60ch;
    margin-inline: auto;
}

/* ----- Solution ----- */

.solution-section {
    background: var(--ghost-white);
    padding-block: var(--section-pad-y);
}

.solution-section h2 {
    font-family: var(--font-serif);
    font-size: var(--fs-display-md);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    font-variation-settings: var(--fraunces-heading);
    color: var(--ink-strong);
    margin-bottom: var(--space-sm);
}

.solution-step {
    background: var(--pure-white);
    border-radius: var(--radius-2xl);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: var(--space-md);
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

@media (max-width: 640px) {
    .solution-step { flex-direction: column; gap: var(--space-md); }
}

.solution-step .step-number {
    min-width: 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: var(--fw-semibold);
    color: var(--primary-blue);
    margin-bottom: 0;
}

.step-content h3 {
    font-family: var(--font-serif);
    font-size: var(--fs-heading-md);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    font-variation-settings: var(--fraunces-heading);
    color: var(--primary-blue);
    margin-bottom: var(--space-xs);
}

.step-content > p {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
    color: var(--ink-body);
    margin-bottom: var(--space-md);
}

.step-highlight {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(20, 30, 200, 0.06);
    border-radius: var(--radius-md);
}

.step-highlight svg {
    min-width: 22px;
    width: 22px;
    height: 22px;
    color: var(--primary-blue);
}

.step-highlight p {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
    color: var(--primary-blue);
    margin: 0;
}

/* ----- CTA ----- */

.cta-section {
    padding-block: var(--section-pad-y-sm);
    background: var(--pure-white);
}

.cta-section .cta-content {
    background: var(--gradient-hero);
    border-radius: var(--radius-2xl);
    padding: clamp(2.5rem, 6vw, 5rem);
    text-align: center;
    color: var(--pure-white);
    max-width: var(--container-wide);
    margin-inline: auto;
}

.cta-section .cta-content h2 {
    font-family: var(--font-serif);
    font-size: var(--fs-display-md);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    font-variation-settings: var(--fraunces-heading);
    color: var(--pure-white);
    margin-bottom: var(--space-sm);
    max-width: 22ch;
    margin-inline: auto;
}

.cta-section .cta-content p {
    font-family: var(--font-sans);
    font-size: var(--fs-body-lg);
    line-height: var(--lh-relaxed);
    color: var(--on-dark-body);
    margin-bottom: var(--space-lg);
    max-width: 60ch;
    margin-inline: auto;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: 0.9rem 1.75rem;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    font-weight: var(--fw-medium);
    line-height: 1;
    color: var(--primary-blue);
    background: var(--pure-white);
    border: 1.5px solid var(--pure-white);
    border-radius: var(--radius-full);
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--transition-fast),
                box-shadow var(--transition-base),
                background-color var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast);
}

.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.22);
    color: var(--accent-magenta);
}

/* ----- Client testimonial ----- */

.realization-testimonial {
    padding-block: clamp(2.5rem, 5vw, 4rem);
    background: var(--pure-white);
}

.realization-testimonial__inner {
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.realization-testimonial__mark {
    width: clamp(36px, 4vw, 48px);
    color: var(--primary-blue);
    opacity: 0.35;
    margin: 0 auto clamp(1rem, 2vw, 1.5rem);
}

.realization-testimonial__text {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    font-variation-settings: var(--fraunces-heading);
    color: var(--ink-strong);
    margin: 0 auto clamp(1.5rem, 3vw, 2rem);
    max-width: 26ch;
}

.realization-testimonial__author {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 999px;
    background: var(--ghost-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.realization-testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--pure-white);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

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

.realization-testimonial__name {
    font-family: var(--font-sans);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    color: var(--ink-strong);
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

.realization-testimonial__role {
    font-family: var(--font-sans);
    font-size: var(--fs-caption);
    color: var(--ink-muted);
    margin: 0;
    line-height: 1.2;
    text-align: left;
}
