/* Traceability (overall) — Reemoon VI #00856f */

.tr-page {
    --tr-brand: #00856f;
    --tr-brand-dark: #004d41;
    --tr-brand-deep: #006b59;
    --tr-brand-light: #00a88a;
    --tr-brand-bright: #6ee7c7;
    --tr-brand-muted: #eef6f3;
    --tr-brand-glow: rgba(0, 133, 111, 0.2);
    --tr-text: #1a1a1a;
    --tr-text-soft: #5a756e;
    --tr-max: min(1280px, 100%);
    --tr-max-wide: min(1440px, 100%);
    --tr-gutter: clamp(20px, 4vw, 64px);
    --tr-radius: 16px;
    --tr-radius-lg: 24px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    color: var(--tr-text);
    background: #fff;
}

.tr-container {
    width: 100%;
    max-width: var(--tr-max);
    margin: 0 auto;
    padding-left: var(--tr-gutter);
    padding-right: var(--tr-gutter);
    box-sizing: border-box;
}

/* —— Hero —— */
.tr-hero {
    position: relative;
    min-height: clamp(480px, 72vh, 640px);
    display: flex;
    align-items: stretch;
    color: #fff;
    overflow: hidden;
    background: var(--tr-brand-dark);
}

.tr-hero__media {
    position: absolute;
    inset: 0;
}

.tr-hero__video,
.tr-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.42;
}

.tr-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(105deg, rgba(0, 77, 65, 0.94) 0%, rgba(0, 107, 89, 0.84) 34%, rgba(0, 133, 111, 0.52) 56%, rgba(0, 133, 111, 0.15) 78%, transparent 100%),
        linear-gradient(0deg, rgba(0, 30, 26, 0.6) 0%, transparent 48%);
}

.tr-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
}

.tr-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    padding-top: clamp(88px, 12vh, 120px);
    padding-bottom: clamp(56px, 8vh, 80px);
}

.tr-hero__layout {
    max-width: min(720px, 100%);
}

.tr-hero__copy {
    max-width: 100%;
}

.tr-page .tr-hero h1.tr-hero__title {
    margin: 0 0 16px;
    max-width: 12ch;
    font-size: clamp(2.125rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    background: linear-gradient(125deg, #ffffff 0%, var(--tr-brand-bright) 46%, var(--tr-brand-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 18px rgba(0, 77, 65, 0.28));
}

.tr-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.tr-breadcrumb a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.15s ease;
}

.tr-breadcrumb a:hover {
    color: #fff;
}

.tr-breadcrumb [aria-current="page"] {
    color: rgba(255, 255, 255, 0.95);
}

.tr-hero__eyebrow {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 77, 65, 0.35);
    backdrop-filter: blur(6px);
}

.tr-hero__tagline {
    margin: 0;
    max-width: 34ch;
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
}

.tr-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: clamp(16px, 3vh, 28px);
    z-index: 2;
    display: inline-flex;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transform: translateX(-50%);
}

.tr-hero__scroll-line {
    display: block;
    width: 2px;
    height: 48px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), transparent);
    animation: tr-scroll-pulse 2s ease-in-out infinite;
}

@keyframes tr-scroll-pulse {
    0%, 100% { opacity: 0.45; transform: scaleY(0.85); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* —— Sections —— */
.tr-section {
    padding: clamp(56px, 7vw, 96px) 0;
}

.tr-section--muted {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 133, 111, 0.06), transparent 70%),
        var(--tr-brand-muted);
}

.tr-section--brand {
    background: linear-gradient(180deg, #fff 0%, var(--tr-brand-muted) 100%);
}

.tr-section__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(32px, 4vw, 48px);
    text-align: center;
}

.tr-section__index {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(0, 133, 111, 0.14);
}

.tr-section__title {
    margin: 0;
    max-width: 20ch;
    font-size: clamp(1.5rem, 2.8vw, 2.125rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--tr-brand-dark);
}

.tr-section__head .tr-section__title {
    max-width: none;
}

/* —— Feature cards —— */
.tr-feature-card {
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--tr-radius-lg);
    background: #fff;
    border: 1px solid rgba(0, 133, 111, 0.12);
    box-shadow:
        0 20px 56px rgba(0, 77, 65, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tr-section--muted .tr-feature-card {
    background: #fff;
}

.tr-feature-card::before {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-bottom: clamp(20px, 3vw, 28px);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tr-brand-light), var(--tr-brand));
}

.tr-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.tr-feature--reverse .tr-feature__media {
    order: 2;
}

.tr-feature--reverse .tr-feature__copy {
    order: 1;
}

.tr-feature__media {
    position: relative;
}

.tr-feature__media::after {
    content: "";
    position: absolute;
    inset: auto -8px -8px 8px;
    z-index: -1;
    border-radius: var(--tr-radius);
    background: linear-gradient(135deg, rgba(0, 133, 111, 0.18), rgba(0, 168, 138, 0.08));
}

.tr-feature__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--tr-radius);
    border: 1px solid rgba(0, 133, 111, 0.1);
    box-shadow: 0 16px 48px rgba(0, 77, 65, 0.12);
}

.tr-feature__heading {
    margin: 0 0 16px;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--tr-brand-dark);
}

.tr-feature__body {
    margin: 0;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--tr-text-soft);
}

/* —— Spotlight (center section) —— */
.tr-spotlight {
    max-width: var(--tr-max-wide);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 40px);
    text-align: center;
    border-radius: var(--tr-radius-lg);
    background: #fff;
    border: 1px solid rgba(0, 133, 111, 0.12);
    box-shadow: 0 24px 64px rgba(0, 77, 65, 0.08);
}

.tr-section--brand .tr-spotlight {
    background:
        linear-gradient(145deg, #fff 0%, rgba(238, 246, 243, 0.65) 100%);
}

.tr-spotlight::before {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 0 auto clamp(24px, 3vw, 32px);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tr-brand-light), var(--tr-brand));
}

.tr-feature__body--center {
    max-width: 820px;
    margin: 0 auto clamp(28px, 4vw, 40px);
    font-size: clamp(1rem, 1.15vw, 1.0625rem);
    line-height: 1.95;
}

.tr-feature__media--center {
    max-width: 810px;
    margin: 0 auto;
}

.tr-feature__media--center img {
    width: 100%;
    height: auto;
    border-radius: var(--tr-radius);
    box-shadow: 0 20px 56px rgba(0, 77, 65, 0.14);
}

/* —— Related —— */
.tr-related__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.tr-related__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--tr-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 133, 111, 0.12);
    box-shadow: 0 8px 28px rgba(0, 77, 65, 0.06);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tr-related__card:hover {
    border-color: rgba(0, 133, 111, 0.28);
    box-shadow: 0 18px 44px rgba(0, 77, 65, 0.12);
}

.tr-related__media {
    display: block;
    overflow: hidden;
}

.tr-related__img {
    display: block;
    width: 100%;
    aspect-ratio: 261 / 168;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.tr-related__card:hover .tr-related__img {
    transform: scale(1.04);
}

.tr-related__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 18px;
}

.tr-related__label {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--tr-text);
}

.tr-related__cta {
    margin-top: auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tr-brand);
}

.tr-related__card:hover .tr-related__cta {
    color: var(--tr-brand-deep);
}

body:has(.tr-page) .site-footer {
    margin-top: 0;
}

@media (max-width: 991px) {
    .tr-page .tr-hero h1.tr-hero__title {
        max-width: none;
    }

    .tr-feature {
        grid-template-columns: 1fr;
    }

    .tr-feature--reverse .tr-feature__media,
    .tr-feature--reverse .tr-feature__copy {
        order: unset;
    }

    .tr-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .tr-related__grid {
        grid-template-columns: 1fr;
    }

    .tr-feature-card {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tr-hero__scroll-line,
    .tr-related__img,
    .tr-related__card {
        animation: none !important;
        transition: none !important;
    }
}
