/* Shared showcase styles (jatango_overview.html, pocus-focused.html).
   Colors, spacing, max width and radius come from the :root variables in style.css */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-brand-black);
    background: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* The return button in style.css is sized for the reset's line-height of 1, so keep it from
   inheriting the 1.7 above and it matches the older showcase pages */
.returnButton {
    line-height: 1;
}

/* ---- Utility ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ---- Noise overlay ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
}

h3 {
    font-size:1.25rem;
    font-weight:600;
    margin-bottom:var(--space-sm);
}

h4 {
    font-size:1rem;
    font-weight:600;
    margin-bottom:0.5rem;
}

.icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(16%) sepia(55%) saturate(525%) hue-rotate(79deg) brightness(96%) contrast(99%);
    /* filter: brightness(0) saturate(100%) invert(26%) sepia(76%) saturate(378%) hue-rotate(78deg) brightness(93%) contrast(92%); */
}

/* ========================
ICON MOTION
Icons sprout in as their section is revealed, then each plays one short motion that suits it and
settles back to rest. The sprout animates the `scale` property and the motions animate `transform`,
so the two combine. index.js sets --icon-i to stagger the icons within a section.
======================== */
.fade-in.visible .icon {
    animation:
        iconSprout 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.35s + var(--icon-i, 0) * 0.12s) both,
        var(--icon-motion, none 0s) calc(1.05s + var(--icon-i, 0) * 0.12s) both;
}

@keyframes iconSprout {
    0% {
        scale: 0;
        opacity: 0;
    }
    60% {
        scale: 1.2;
        opacity: 1;
    }
    100% {
        scale: 1;
    }
}

.icon[src$="leaf.svg"] {
    transform-origin: 10% 90%;
    --icon-motion: iconSway 1.6s ease-in-out;
}

.icon[src$="flower.svg"], .icon[src$="birdhouse.svg"] {
    transform-origin: 50% 100%;
    --icon-motion: iconSwaySmall 1.4s ease-in-out;
}

.icon[src$="tree.svg"] {
    transform-origin: 50% 100%;
    --icon-motion: iconTreeSway 1.6s ease-in-out;
}

.icon[src$="sprout.svg"] {
    transform-origin: 50% 100%;
    --icon-motion: iconGrow 1.2s ease-in-out;
}

.icon[src$="acron.svg"] {
    transform-origin: 50% 100%;
    --icon-motion: iconWobble 1s ease-in-out;
}

.icon[src$="bird.svg"] {
    transform-origin: 50% 100%;
    --icon-motion: iconHop 0.9s ease-out;
}

.icon[src$="bug.svg"] {
    --icon-motion: iconWiggle 0.8s ease-in-out;
}

.icon[src$="cycle.svg"] {
    --icon-motion: iconRock 1.8s ease-in-out;
}

.icon[src$="paint.svg"] {
    transform-origin: 80% 20%;
    --icon-motion: iconPaint 1.4s ease-in-out;
}

.icon[src$="bow.svg"] {
    --icon-motion: iconRelease 1s ease-in-out;
}

.icon[src$="mountain.svg"] {
    transform-origin: 50% 100%;
    --icon-motion: iconBreathe 1.2s ease-in-out;
}

.icon[src$="route.svg"] {
    --icon-motion: iconTravel 1.2s ease-in-out;
}

.icon[src$="footprints.svg"] {
    transform-origin: 50% 100%;
    --icon-motion: iconStep 1.1s ease-in-out;
}

/* Every motion starts and ends at rest, so nothing snaps when it finishes */
@keyframes iconSway {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-10deg); }
    45% { transform: rotate(7deg); }
    70% { transform: rotate(-3deg); }
    90% { transform: rotate(1deg); }
}

@keyframes iconSwaySmall {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-6deg); }
    55% { transform: rotate(4deg); }
    80% { transform: rotate(-2deg); }
}

@keyframes iconTreeSway {
    0%, 100% { transform: skewX(0); }
    25% { transform: skewX(5deg); }
    55% { transform: skewX(-3.5deg); }
    80% { transform: skewX(2deg); }
}

@keyframes iconGrow {
    0%, 100% { transform: scaleY(1); }
    25% { transform: scaleY(0.88); }
    55% { transform: scaleY(1.08); }
    80% { transform: scaleY(0.97); }
}

@keyframes iconWobble {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(-10deg); }
    35% { transform: rotate(8deg); }
    55% { transform: rotate(-4deg); }
    75% { transform: rotate(2deg); }
}

@keyframes iconHop {
    0%, 40%, 80%, 100% { transform: translateY(0); }
    20% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@keyframes iconWiggle {
    0%, 100% { transform: translateX(0) rotate(0); }
    15% { transform: translateX(-1px) rotate(-10deg); }
    30% { transform: translateX(1px) rotate(10deg); }
    45% { transform: translateX(-1px) rotate(-8deg); }
    60% { transform: translateX(1px) rotate(6deg); }
    80% { transform: translateX(0) rotate(-2deg); }
}

@keyframes iconRock {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-20deg); }
    55% { transform: rotate(15deg); }
    80% { transform: rotate(-6deg); }
}

@keyframes iconPaint {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-12deg); }
    45% { transform: rotate(10deg); }
    70% { transform: rotate(-6deg); }
    88% { transform: rotate(3deg); }
}

@keyframes iconRelease {
    0%, 100% { transform: translate(0, 0); }
    40% { transform: translate(-2px, 2px); }
    55% { transform: translate(4px, -4px); }
    75% { transform: translate(-1px, 1px); }
}

@keyframes iconBreathe {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.08); }
    75% { transform: scale(0.98); }
}

@keyframes iconTravel {
    0%, 100% { transform: translateX(0); }
    30% { transform: translateX(-2px); }
    60% { transform: translateX(3px); }
    85% { transform: translateX(-1px); }
}

@keyframes iconStep {
    0%, 50%, 100% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-3px) rotate(-6deg); }
    75% { transform: translateY(-3px) rotate(6deg); }
}

/* ========================
HERO SECTION
======================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: linear-gradient(160deg, var(--color-undercanopy) 0%, var(--color-darkestbrown) 60%, var(--color-brand-brown) 100%);
    color: var(--color-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, color-mix(in srgb, var(--color-leaf) 25%, transparent), transparent),
        radial-gradient(ellipse 60% 50% at 80% 20%, color-mix(in srgb, var(--color-brand-burnt-orange) 12%, transparent), transparent);
    pointer-events: none;
}

/* Decorative growth rings */
.hero__rings {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.06;
    pointer-events: none;
}

.hero__rings circle {
    fill: none;
    stroke: var(--color-brand-sea-foam);
    stroke-width: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 240px var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    color: var(--color-brand-orange-cream);
    margin-bottom: var(--space-sm);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    max-width: 800px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero__title em {
    font-style: italic;
    color: var(--color-brand-sand);
}

.hero__subtitle {
    color:var(--color-brand-orange-cream);
    font-size:1.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero__description {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 560px;
    color: var(--color-brand-sea-foam);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

/* Stats bar */
.hero__stats {
    display: flex;
    gap: var(--space-lg);
    row-gap: var(--space-md);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.hero__stat-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-brand-sea-foam);
}

/* Split preview images */
.hero__preview {
    position: absolute;
    right: 7.5%;
    top: 35%;
    display: flex;
    gap: var(--space-sm);
    z-index: 2;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1s;
}

.hero__preview-card {
    width: 180px;
    height: 390px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px color-mix(in srgb, var(--color-brand-black) 40%, transparent);
}

.hero__preview-card--before {
    background: var(--color-brand-brown);
    border: 1px solid color-mix(in srgb, var(--color-white) 8%, transparent);
    transform: translateY(-20px);
}

.hero__preview-card--after {
    background: var(--color-brand-forest-green);
    border: 1px solid color-mix(in srgb, var(--color-white) 12%, transparent);
}

.hero__preview-label {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--color-brand-deep-red) 75%, transparent);
    padding: 4px 10px;
    border-radius: 4px;
}

.hero__preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1220px) {
    .hero__preview {
        display: none;
    }
}

.nextButton {
    right: 5%;
}

@media (max-width: 768px) {
    .hero .nextButton {
        bottom: 24px;
    }
}

/* ========================
SECTION STYLING
======================== */
.section {
    padding: var(--space-xl) var(--space-md);
    position: relative;
}

.section--alt {
    background: var(--color-parchment);
}

.section--dark {
    background: var(--color-undercanopy);
    color: var(--color-white);
}

.section--bark {
    background: var(--color-darkestbrown);
    color: var(--color-white);
}

.section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section__eyebrow {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    color: var(--color-brand-burnt-orange);
    margin-bottom: var(--space-xs);
}

.section--dark .section__eyebrow,
.section--bark .section__eyebrow {
    color: var(--color-brand-sand);
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    max-width: 700px;
}

.section__lead {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
}

.section__content {
    max-width:640px;
    font-size:0.95rem;
    line-height:1.7;
    color:var(--color-text-light);
    margin-bottom:var(--space-md);
}

.section--dark .section__lead,
.section--bark .section__lead {
    color: var(--color-brand-sea-foam);
}

/* ========================
EXECUTIVE SUMMARY CARDS
======================== */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.summary-card {
    background: var(--color-white);
    border: 1px solid color-mix(in srgb, var(--color-brand-black) 12%, transparent);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px color-mix(in srgb, var(--color-brand-black) 6%, transparent);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.summary-card--challenge::before {
    background: var(--color-brand-rust);
}

.summary-card--role::before {
    background: var(--color-leaf);
}

.summary-card--impact::before {
    background: var(--color-brand-burnt-orange);
}

.summary-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.summary-card--challenge .summary-card__icon {
    background: color-mix(in srgb, var(--color-brand-rust) 12%, transparent);
}

.summary-card--role .summary-card__icon {
    background: color-mix(in srgb, var(--color-leaf) 12%, transparent);
}

.summary-card--impact .summary-card__icon {
    background: color-mix(in srgb, var(--color-brand-burnt-orange) 12%, transparent);
}

.summary-card__label {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}

.summary-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.summary-card__text {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.summary-card--impact ul {
    padding-left: 16px;
    color:var(--color-brand-burnt-orange);
    li {
        font-size: 0.92rem;
    }
}

/* ========================
PULL QUOTE
======================== */
.centered-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pull-quote {
    /* border-left: 3px solid var(--color-brand-burnt-orange); */
    padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    max-width: 640px;
    position: relative;
    margin: auto;
    text-align: center;
}

.pull-quote::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--color-brand-burnt-orange);
    opacity: 0.5;
    position: absolute;
    left: 10px;
    top: -10px;
}

.pull-quote::after {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--color-brand-burnt-orange);
    opacity: 0.5;
    position: absolute;
    right: 10px;
    bottom: 10px;
    rotate: 180deg;
}

.pull-quote__text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--color-darkestbrown);
}

.pull-quote--dark .pull-quote__text {
    color: var(--color-white);
}

.section--dark .pull-quote {
    border-left-color: var(--color-brand-sand);
}

/* ========================
DESIGN SYSTEM BEFORE/AFTER
======================== */
.full__image {
    width: 100%;
    border-radius: var(--border-radius);
    border: 1px solid color-mix(in srgb, var(--color-brand-black) 12%, transparent);
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

@media (max-width: 700px) {
    .before-after {
        grid-template-columns: 1fr;
    }
}

.before-after__panel {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-brand-black) 12%, transparent);
}

.before-after__header {
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.before-after__header--before {
    background: color-mix(in srgb, var(--color-brand-rust) 10%, transparent);
    color: var(--color-brand-rust);
}

.before-after__header--after {
    background: color-mix(in srgb, var(--color-leaf) 10%, transparent);
    color: var(--color-leaf);
}

.before-after__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.before-after__dot--before {
    background: var(--color-brand-rust);
}

.before-after__dot--after {
    background: var(--color-leaf);
}

.before-after__body {
    background: var(--color-white);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

.placeholder {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: center;
    border: 2px dashed color-mix(in srgb, var(--color-brand-black) 10%, transparent);
    border-radius: 8px;
    padding: var(--space-lg) var(--space-md);
    width: 100%;
    background: repeating-linear-gradient(-45deg,
            transparent,
            transparent 8px,
            color-mix(in srgb, var(--color-brand-black) 1.5%, transparent) 8px,
            color-mix(in srgb, var(--color-brand-black) 1.5%, transparent) 16px);
}

.placeholder__label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-brand-burnt-orange);
    margin-bottom: 0.5rem;
}

/* ========================
PRINCIPLES CARDS
======================== */
.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.principle {
    padding: var(--space-md);
    border-radius: var(--border-radius);
    background: color-mix(in srgb, var(--color-white) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-white) 8%, transparent);
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
}

.principle:hover {
    background: color-mix(in srgb, var(--color-white) 10%, transparent);
}

.principle__number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-brand-orange-cream);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.principle__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.principle__desc {
    font-size: 0.92rem;
    color: var(--color-brand-sea-foam);
    line-height: 1.6;
}

/* ========================
FEATURE DEEP DIVE
======================== */
.deep-dive {
    margin: var(--space-lg) 0;
}

.deep-dive__heading {
    color:var(--color-brand-forest-green);
    font-size:1.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.deep-dive__problem-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    max-width: 640px;
}

.problem-item {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.problem-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    background: color-mix(in srgb, var(--color-brand-burnt-orange) 12%, transparent);
    .icon {
        width: 20px;
        height: 20px;
    }
}

/* .problem-item__content {} */

.content__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-brand-orange-cream);
    margin-bottom: 4px;
}

#scaling .content__eyebrow {
    color: var(--color-brand-burnt-orange);
}

.problem-item__text {
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Exploration gallery */
.exploration-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.exploration-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-brand-black) 12%, transparent);
    background: var(--color-white);
}

.exploration-card__image {
    width: 100%;
    background: var(--color-parchment);
    display: flex;
    align-items: center;
    justify-content: center;
}

.exploration-card__image img {
    max-width: 100%;
    height: auto;
}

.exploration-card__caption {
    padding: var(--space-sm);
    .content__eyebrow {
        color: var(--color-leaf);
    }
}

.exploration-card__note {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Annotated solution */
.solution-annotated {
    margin: var(--space-md) 0;
    background: var(--color-parchment);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.callout-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.solution-callout {
    display: flex;
    gap: var(--space-xs);
    align-items: flex-start;
}

.callout__number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-leaf);
    color: var(--color-white);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
}

.on-image {
    position: absolute;
}

.on-image:first-child {
    left: 9%;
    top: 18%;
}

.on-image:nth-child(2) {
    left: 38%;
    top: 40%;
}

.on-image:nth-child(3) {
    left: 89%;
    top: 52%;
}

.callout__text {
    font-size: 0.92rem;
    line-height: 1.5;
    /* padding-top: 3px; */
}

.section--alt .outcomes {
    background: var(--color-white);
}

.outcomes {
    background:var(--color-parchment);
    border-radius:var(--border-radius);
    padding:var(--space-md);
    margin-top:var(--space-md);
    max-width:640px;
    margin: auto;
    h3 {
        color: var(--color-brand-burnt-orange);
        text-align: center;
    }
}

/* ========================
DUAL ROLE / VENN
======================== */
.dual-role-box {
    display: flex;
    gap: var(--space-md);
}

@media (max-width: 800px) {
    .dual-role-box {
        flex-direction: column;
    }
}

.dual-roles {
    display: flex;
    justify-content: space-around;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.dual-role__box {
    /* min-width: 0; */
    text-align: center;
}

.dual-role__image {
    max-height: 520px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 700px) {
    .dual-roles {
        flex-direction: column;
        align-items: center;
    }

    .dual-role__box {
        flex: none;
        width: 100%;
    }
}

.dual-role__caption {
    color: var(--color-brand-sand);
}

.role-column {
    background: color-mix(in srgb, var(--color-white) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-white) 8%, transparent);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    width: 100%;
    .content__eyebrow {
        margin-bottom: 16px;
    }
}

.role-column__items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-left: 2px solid color-mix(in srgb, var(--color-white) 10%, transparent);
}

.role-column__item {
    font-size: 0.9rem;
    color: var(--color-brand-sea-foam);
    padding-left: var(--space-sm);
}

.role-overlap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md) 0;
}

.role-overlap__circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--color-brand-burnt-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.role-overlap__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-brand-sand);
    text-align: center;
}

/* ========================
TIMELINE
======================== */
.timeline {
    position: relative;
    margin: var(--space-lg) 0;
    padding-left: var(--space-lg);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 4px;
    bottom: 0px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-leaf), var(--color-brand-burnt-orange), var(--color-brand-rust));
    border-radius: 1px;
}

.timeline__item {
    position: relative;
    margin-bottom: var(--space-lg);
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-lg) + 8px);
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-leaf);
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-leaf);
}

.list__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: left;
}

.timeline__desc {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 560px;
}

/* ========================
CHALLENGES (alternating)
======================== */
.challenge-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-lg);
}

.challenge-block:nth-child(even) .challenge-block__text {
    order: 2;
}

.challenge-block:nth-child(even) .challenge-block__visual {
    order: 1;
}

@media (max-width: 700px) {
    .challenge-block {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .challenge-block:nth-child(even) .challenge-block__text {
        order: 1;
    }

    .challenge-block:nth-child(even) .challenge-block__visual {
        order: 2;
    }
}

.challenge-block__number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-brand-burnt-orange);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.challenge-block__desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-light);
}

.challenge-block__visual {
    background: var(--color-parchment);
    border-radius: var(--border-radius);
    /* min-height: 240px; */
    max-width: 560px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.challenge-block__visual img {
    max-width: 100%;
    height: auto;
}

/* ========================
METRICS DASHBOARD
======================== */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.metric {
    background: color-mix(in srgb, var(--color-white) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-white) 8%, transparent);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    text-align: center;
    transition: background 0.3s ease;
}

.metric:hover {
    background: color-mix(in srgb, var(--color-white) 8%, transparent);
}

.metric__category {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-brand-sand);
    margin-bottom: var(--space-xs);
}

.metric__value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 4px;
}

.metric__label {
    font-size: 0.85rem;
    color: var(--color-brand-sea-foam);
}

.metric--placeholder .metric__value {
    color: var(--color-brand-burnt-orange);
    font-size: 1rem;
    opacity: 0.6;
}

/* ========================
REFLECTIONS / GROWTH TREE
======================== */
.reflections {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
    max-width: 700px;
}

.reflection {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.reflection__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-brand-burnt-orange) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-brand-burnt-orange) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
}

/* .reflection__content {} */

.reflection__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-brand-burnt-orange);
    margin-bottom: 4px;
}

.reflection__text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-light);
}

/* ========================
CTA / CLOSING
======================== */
.closing {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-undercanopy);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.closing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 50% 100%, color-mix(in srgb, var(--color-brand-burnt-orange) 8%, transparent), transparent);
}

.closing__inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.closing__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.closing__subtitle {
    font-size: 1rem;
    color: var(--color-brand-sea-foam);
    margin-bottom: var(--space-lg);
}

.closing__ctas {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--color-brand-burnt-orange);
    color: var(--color-darkestbrown);
}

.btn--primary:hover {
    background: var(--color-brand-sand);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--color-brand-burnt-orange) 30%, transparent);
}

.btn--secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid color-mix(in srgb, var(--color-white) 20%, transparent);
}

.btn--secondary:hover {
    border-color: color-mix(in srgb, var(--color-white) 40%, transparent);
    background: color-mix(in srgb, var(--color-white) 5%, transparent);
}

/* Next case study teaser */
.next-project {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid color-mix(in srgb, var(--color-white) 8%, transparent);
}

.next-project__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-brand-sea-foam);
    margin-bottom: var(--space-xs);
}

.next-project__card {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: color-mix(in srgb, var(--color-white) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-white) 8%, transparent);
    border-radius: var(--border-radius);
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.next-project__card:hover {
    background: color-mix(in srgb, var(--color-white) 8%, transparent);
    transform: translateX(4px);
}

.next-project__thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--color-brand-brown);
}

.next-project__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.next-project__desc {
    font-size: 0.8rem;
    color: var(--color-brand-sea-foam);
}

/* ========================
ANIMATIONS
======================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
SCROLL NAV
======================== */
.scroll-nav {
    position: fixed;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 1100px) {
    .scroll-nav {
        display: none;
    }
}

.scroll-nav__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-brand-sea-foam) 45%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-white) 55%, transparent);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.scroll-nav__dot:hover, .scroll-nav__dot:focus-visible {
    background: var(--color-brand-burnt-orange);
    transform: scale(1.3);
    outline: none;
}

.scroll-nav__dot--active {
    background: var(--color-brand-burnt-orange);
    transform: scale(1.2);
}

.scroll-nav__dot::after {
    content: attr(data-label);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-darkestbrown);
    background: var(--color-white);
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scroll-nav__dot:hover::after, .scroll-nav__dot:focus-visible::after {
    opacity: 1;
}

/* Dark green icons disappear on dark sections, so lighten them to cream there */
.section--dark .icon, .section--bark .icon {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* ========================
MOTION & SMALL SCREENS
======================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .hero__eyebrow, .hero__title, .hero__subtitle, .hero__description, .hero__stats, .hero__preview, .fade-in {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    .section, .closing, .hero__content {
        padding-left: 16px;
        padding-right: 16px;
    }
    .hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
    .metrics {
        grid-template-columns: 1fr 1fr;
    }
    .metric {
        padding: var(--space-sm);
    }
    .metric__value {
        font-size: 1.7rem;
    }
    .reflection {
        flex-direction: column;
        gap: var(--space-sm);
    }
}
