/* ============================================
   license.broker — Diagonal Crystalline Maximalism
   ============================================ */

:root {
    --cream: #FFF5E6;
    --blush: #F5E0D8;
    --peach: #F8D5B8;
    --rose: #D4756B;
    --plum: #4A2040;
    --cocoa: #3D2C2E;
    --lavender: #E8D5F0;
    --gold: #C9A96E;
    --shell-warm: #8B6B61;

    --elastic-out: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --elastic-soft: cubic-bezier(0.34, 1.56, 0.64, 1);
    --skew-angle: -8deg;
    --skew-counter: 8deg;

    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-sans: 'Nunito', 'Inter', system-ui, sans-serif;
    --font-mono: 'Azeret Mono', 'Space Mono', ui-monospace, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--cocoa);
    background: var(--cream);
    overflow-x: hidden;
    position: relative;
}

/* Site-wide creamy paper grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 13% 22%, rgba(232, 213, 240, 0.16) 0%, transparent 32%),
        radial-gradient(circle at 87% 78%, rgba(212, 117, 107, 0.12) 0%, transparent 38%),
        radial-gradient(circle at 50% 50%, rgba(248, 213, 184, 0.08) 0%, transparent 50%);
    z-index: 0;
}

/* ============================================
   NAVIGATION — floating pill
   ============================================ */
.nav-pill {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 10px 16px 10px 22px;
    background: rgba(255, 245, 230, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid var(--gold);
    border-radius: 999px;
    box-shadow:
        0 8px 30px rgba(74, 32, 64, 0.16),
        inset 0 0 0 1px rgba(232, 213, 240, 0.5);
    transition: transform 0.6s var(--elastic-soft), box-shadow 0.5s ease;
    max-width: calc(100vw - 40px);
}

.nav-pill.scrolled {
    box-shadow:
        0 14px 38px rgba(74, 32, 64, 0.22),
        inset 0 0 0 1px rgba(232, 213, 240, 0.7);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-crystal {
    flex-shrink: 0;
    transition: transform 0.6s var(--elastic-soft);
}

.nav-pill:hover .nav-crystal {
    transform: rotate(120deg) scale(1.08);
}

.nav-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: var(--plum);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    margin: 0;
}

.nav-links a {
    display: inline-block;
    padding: 8px 14px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    color: var(--plum);
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.5s var(--elastic-soft), background 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    background: var(--lavender);
    color: var(--rose);
    transform: scale(1.08);
}

.nav-cta {
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--gold), var(--rose));
    color: var(--cream);
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 3px 0 var(--plum);
    transition: transform 0.5s var(--elastic-soft), box-shadow 0.4s ease;
}

.nav-cta:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 0 var(--plum);
}

@media (max-width: 880px) {
    .nav-links {
        display: none;
    }
}

/* ============================================
   DIAGONAL SECTIONS — core motif
   ============================================ */
.diagonal-section {
    position: relative;
    width: 100%;
    margin-top: -80px;
    z-index: 1;
    will-change: transform;
}

.diagonal-section:first-of-type {
    margin-top: 0;
}

.section-skew-wrap {
    position: relative;
    transform: skewY(var(--skew-angle));
    overflow: hidden;
    padding: 180px 0 200px;
}

.section-counter-skew {
    transform: skewY(var(--skew-counter));
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
}

.diagonal-section:nth-of-type(even) .section-skew-wrap {
    transform: skewY(calc(var(--skew-angle) * -1));
}

.diagonal-section:nth-of-type(even) .section-counter-skew {
    transform: skewY(calc(var(--skew-counter) * -1));
}

/* Section themes */
.section-hero .section-skew-wrap {
    background: linear-gradient(172deg, var(--cream) 0%, var(--blush) 50%, var(--peach) 100%);
}

.section-broker .section-skew-wrap {
    background: linear-gradient(188deg, var(--blush) 0%, var(--cream) 55%, var(--lavender) 100%);
}

.section-process .section-skew-wrap {
    background: linear-gradient(172deg, var(--plum) 0%, #5d2b50 50%, #6b3a5e 100%);
    color: var(--cream);
}

.section-trust .section-skew-wrap {
    background: linear-gradient(188deg, var(--peach) 0%, var(--blush) 60%, var(--cream) 100%);
}

.section-contact .section-skew-wrap {
    background: linear-gradient(172deg, var(--lavender) 0%, var(--blush) 55%, var(--peach) 100%);
}

/* Crystalline texture overlay */
.section-bg-texture {
    position: absolute;
    inset: -120px;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            120deg,
            transparent 0,
            transparent 60px,
            rgba(201, 169, 110, 0.06) 60px,
            rgba(201, 169, 110, 0.06) 61px
        ),
        repeating-linear-gradient(
            60deg,
            transparent 0,
            transparent 80px,
            rgba(212, 117, 107, 0.05) 80px,
            rgba(212, 117, 107, 0.05) 81px
        );
    z-index: 0;
}

.section-process .section-bg-texture {
    background-image:
        repeating-linear-gradient(
            120deg,
            transparent 0,
            transparent 60px,
            rgba(232, 213, 240, 0.08) 60px,
            rgba(232, 213, 240, 0.08) 61px
        ),
        repeating-linear-gradient(
            60deg,
            transparent 0,
            transparent 80px,
            rgba(248, 213, 184, 0.07) 80px,
            rgba(248, 213, 184, 0.07) 81px
        );
}

/* Prismatic flares */
.prism-flare {
    position: absolute;
    pointer-events: none;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(232, 213, 240, 0.4),
        rgba(248, 213, 184, 0.35),
        rgba(255, 245, 230, 0.4),
        rgba(212, 117, 107, 0.3),
        rgba(232, 213, 240, 0.4)
    );
    filter: blur(80px);
    opacity: 0.7;
    z-index: 0;
}

.prism-flare-a { top: -200px; right: -150px; }
.prism-flare-b { bottom: -200px; left: -100px; opacity: 0.5; }
.prism-flare-c { top: 50%; right: -200px; opacity: 0.45; transform: translateY(-50%); }
.prism-flare-d { top: -180px; left: 50%; transform: translateX(-50%); opacity: 0.55; }

/* Section seam decorations */
.section-seam-decor {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    opacity: 0.85;
}

.seam-bottom {
    bottom: -80px;
    right: 8%;
    transform: rotate(8deg);
}

.seam-process {
    bottom: -100px;
    left: 6%;
    right: auto;
    transform: rotate(-12deg);
}

/* ============================================
   HERO
   ============================================ */
.section-hero .section-counter-skew {
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 70vh;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 6px 14px;
    background: var(--cream);
    border: 1.5px solid var(--gold);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--plum);
}

.dot-divider {
    width: 4px;
    height: 4px;
    background: var(--rose);
    border-radius: 50%;
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--shell-warm);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(56px, 9vw, 112px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
    color: var(--plum);
}

.title-line {
    display: block;
}

.title-accent {
    color: var(--rose);
    background: linear-gradient(135deg, var(--rose) 0%, var(--gold) 60%, var(--plum) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-subhead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--cocoa);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
    border: none;
    transition: transform 0.5s var(--elastic-soft), box-shadow 0.4s ease, background 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--rose));
    color: var(--cream);
    box-shadow: 4px 4px 0 var(--plum);
}

.btn-primary:hover {
    transform: scale(1.08) translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--plum);
}

.btn-ghost {
    background: transparent;
    color: var(--plum);
    border: 1.8px solid var(--plum);
    box-shadow: 4px 4px 0 var(--gold);
}

.btn-ghost:hover {
    transform: scale(1.08) translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--gold);
    background: var(--cream);
}

.hero-badge-flock {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 480px;
}

/* License Badges — micro-motif */
.license-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--cream);
    border: 2px solid var(--gold);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--plum);
    text-transform: uppercase;
    box-shadow: 2px 2px 0 var(--plum);
    transition: transform 0.5s var(--elastic-soft);
    cursor: default;
}

.license-badge:hover {
    transform: scale(1.12) rotate(-3deg);
}

.badge-rot-1 { transform: rotate(-3deg); }
.badge-rot-2 { transform: rotate(2deg); }
.badge-rot-3 { transform: rotate(-1deg); }
.badge-rot-4 { transform: rotate(4deg); }
.badge-rot-5 { transform: rotate(-2deg); }

.badge-rot-1:hover, .badge-rot-2:hover, .badge-rot-3:hover, .badge-rot-4:hover, .badge-rot-5:hover {
    transform: scale(1.12) rotate(-6deg);
}

/* Hero right column */
.hero-right {
    position: relative;
    min-height: 540px;
}

.hero-photo-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 5 / 6;
    margin-left: auto;
    clip-path: polygon(8% 0, 100% 4%, 96% 100%, 0 96%);
    box-shadow: 14px 18px 0 var(--gold), 28px 36px 0 rgba(74, 32, 64, 0.18);
    transform: rotate(-2.5deg);
    transition: transform 0.8s var(--elastic-soft);
}

.hero-photo-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.duotone-photo {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.duotone-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.photo-corner-badge {
    position: absolute;
    bottom: -18px;
    left: -18px;
    background: var(--cream);
    border: 2px solid var(--gold);
    padding: 8px 14px;
    border-radius: 6px;
    box-shadow: 3px 3px 0 var(--plum);
    transform: rotate(-4deg);
    z-index: 4;
}

.float-crystal {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 6px 12px rgba(74, 32, 64, 0.18));
}

.float-crystal-1 {
    width: 130px;
    height: 130px;
    top: -30px;
    left: -40px;
}

.float-crystal-2 {
    width: 90px;
    height: 90px;
    bottom: 60px;
    right: -30px;
}

.float-crystal-3 {
    width: 70px;
    height: 70px;
    top: 40%;
    left: -20px;
}

.hero-scroll-cue {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 4;
}

.scroll-line {
    width: 1.5px;
    height: 50px;
    background: linear-gradient(180deg, var(--gold), transparent);
}

@media (max-width: 880px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero-right {
        min-height: 420px;
    }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-head {
    max-width: 760px;
    margin: 0 auto 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.chapter-mark {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    background: var(--cream);
    border: 1.5px solid var(--gold);
    border-radius: 999px;
    color: var(--plum);
    box-shadow: 2px 2px 0 var(--plum);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--plum);
    margin-bottom: 18px;
}

.section-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--rose), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-lede {
    font-size: 18px;
    line-height: 1.6;
    color: var(--cocoa);
    max-width: 640px;
    margin: 0 auto;
}

.section-head-light .section-title {
    color: var(--cream);
}

.section-head-light .section-lede {
    color: var(--blush);
}

.section-head-light .chapter-mark {
    background: rgba(255, 245, 230, 0.12);
    color: var(--cream);
    border-color: var(--peach);
    box-shadow: 2px 2px 0 var(--rose);
}

/* ============================================
   BROKER SECTION — license cards
   ============================================ */
.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    position: relative;
    z-index: 2;
}

.license-card {
    position: relative;
    background: var(--cream);
    border: 1.8px solid var(--gold);
    border-radius: 18px;
    padding: 36px 28px 28px;
    box-shadow: 5px 5px 0 var(--plum), 5px 5px 0 1.8px var(--gold);
    transition: transform 0.6s var(--elastic-soft), box-shadow 0.5s ease;
    transform: rotate(var(--card-rot, 0deg));
    overflow: hidden;
}

.license-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 30px,
            rgba(201, 169, 110, 0.08) 30px,
            rgba(201, 169, 110, 0.08) 31px
        );
    pointer-events: none;
}

.license-card:hover {
    transform: rotate(0deg) scale(1.05) translate(-3px, -3px);
    box-shadow: 10px 10px 0 var(--plum), 10px 10px 0 1.8px var(--gold);
    z-index: 5;
}

.card-stamp {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--gold), var(--rose));
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 1.5px 1.5px 0 var(--plum);
    transform: rotate(4deg);
}

.card-stamp .mono-tag {
    color: var(--cream);
    font-size: 10px;
    letter-spacing: 0.18em;
}

.card-crystal {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    display: block;
    transition: transform 0.7s var(--elastic-soft);
}

.license-card:hover .card-crystal {
    transform: rotate(120deg) scale(1.12);
}

.license-card h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 26px;
    color: var(--plum);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.license-card p {
    font-size: 15px;
    color: var(--cocoa);
    margin-bottom: 18px;
    line-height: 1.55;
}

.card-attrs {
    list-style: none;
    margin-bottom: 22px;
}

.card-attrs li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--cocoa);
    padding: 5px 0;
}

.bullet-crystal {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--rose), var(--gold));
    transform: rotate(45deg);
    border: 1px solid var(--plum);
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1.5px dashed var(--gold);
    padding-top: 14px;
}

.card-arrow {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--rose);
    transition: transform 0.5s var(--elastic-soft);
}

.license-card:hover .card-arrow {
    transform: translateX(8px) scale(1.2);
}

.broker-marginalia {
    position: absolute;
    top: 30%;
    right: -20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3;
    pointer-events: none;
}

.broker-marginalia .license-badge {
    pointer-events: auto;
}

@media (max-width: 1100px) {
    .broker-marginalia {
        display: none;
    }
}

/* ============================================
   PROCESS SECTION — diagonal timeline
   ============================================ */
.timeline {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto 80px;
}

.timeline-track {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    opacity: 0.5;
}

.timeline-track svg {
    width: 100%;
    height: 100%;
}

.timeline-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.timeline-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(calc(var(--step-offset, 0) * 1px));
}

.timeline-step:nth-child(1) { --step-offset: 0; }
.timeline-step:nth-child(2) { --step-offset: -22; }
.timeline-step:nth-child(3) { --step-offset: -44; }
.timeline-step:nth-child(4) { --step-offset: -66; }
.timeline-step:nth-child(5) { --step-offset: -88; }

.step-node {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    transition: transform 0.7s var(--elastic-out);
    filter: drop-shadow(0 6px 12px rgba(74, 32, 64, 0.4));
}

.step-node svg {
    width: 100%;
    height: 100%;
}

.timeline-step:hover .step-node {
    transform: rotate(180deg) scale(1.15);
}

.step-body {
    background: rgba(255, 245, 230, 0.96);
    border: 1.5px solid var(--gold);
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 4px 4px 0 var(--rose);
    color: var(--cocoa);
    transition: transform 0.5s var(--elastic-soft);
    position: relative;
}

.timeline-step:hover .step-body {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--rose);
}

.step-body .mono-tag {
    color: var(--rose);
    font-weight: 700;
}

.step-body h4 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    color: var(--plum);
    margin: 6px 0 8px;
    letter-spacing: -0.01em;
}

.step-body p {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 14px;
}

.step-body .license-badge {
    display: inline-block;
}

@media (max-width: 1000px) {
    .timeline-steps {
        grid-template-columns: 1fr 1fr;
    }
    .timeline-step:nth-child(n) {
        --step-offset: 0;
    }
    .timeline-track { display: none; }
}

@media (max-width: 600px) {
    .timeline-steps {
        grid-template-columns: 1fr;
    }
}

.process-photo-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 2;
}

.process-photo {
    position: relative;
    aspect-ratio: 16/11;
    overflow: hidden;
    border: 1.5px solid var(--gold);
    box-shadow: 6px 6px 0 rgba(212, 117, 107, 0.45);
    transition: transform 0.7s var(--elastic-soft);
}

.process-photo:nth-child(1) {
    clip-path: polygon(6% 0, 100% 8%, 94% 100%, 0 92%);
    transform: rotate(-2deg);
}
.process-photo:nth-child(2) {
    clip-path: polygon(0 8%, 92% 0, 100% 92%, 8% 100%);
    transform: rotate(1.5deg);
}
.process-photo:nth-child(3) {
    clip-path: polygon(8% 0, 100% 6%, 92% 100%, 0 94%);
    transform: rotate(-1deg);
}

.process-photo:hover {
    transform: rotate(0) scale(1.04);
}

.process-photo svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================
   TRUST MOSAIC
   ============================================ */
.trust-mosaic {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 90px;
    gap: 20px;
    margin-bottom: 80px;
    z-index: 2;
}

.trust-tile {
    position: relative;
    overflow: visible;
    border: 1.5px solid var(--gold);
    background: var(--cream);
    box-shadow: 5px 5px 0 var(--plum);
    transition: transform 0.7s var(--elastic-soft), box-shadow 0.5s ease;
}

.trust-tile .duotone-photo {
    width: 100%;
    height: 100%;
}

.trust-tile .duotone-photo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.trust-tile figcaption {
    position: absolute;
    inset: auto -8px -8px -8px;
    background: var(--cream);
    border: 1.5px solid var(--gold);
    padding: 14px 16px;
    box-shadow: 3px 3px 0 var(--rose);
    transform: rotate(-1deg);
    transition: transform 0.6s var(--elastic-soft);
}

.trust-tile blockquote {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--plum);
    margin-bottom: 8px;
    font-style: italic;
}

.trust-tile cite {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-style: normal;
}

.trust-tile cite strong {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    color: var(--rose);
}

.tile-a {
    grid-column: 1 / 5;
    grid-row: 1 / 5;
    clip-path: polygon(8% 0, 100% 6%, 92% 100%, 0 94%);
    transform: rotate(-2deg);
}
.tile-b {
    grid-column: 5 / 9;
    grid-row: 1 / 4;
    clip-path: polygon(0 8%, 94% 0, 100% 92%, 6% 100%);
    transform: rotate(1.5deg);
}
.tile-c {
    grid-column: 9 / 13;
    grid-row: 1 / 5;
    clip-path: polygon(6% 0, 100% 8%, 94% 100%, 0 92%);
    transform: rotate(-1deg);
}
.tile-d {
    grid-column: 5 / 9;
    grid-row: 4 / 6;
    clip-path: polygon(0 6%, 100% 0, 96% 100%, 4% 94%);
    transform: rotate(2deg);
}
.tile-e {
    grid-column: 1 / 5;
    grid-row: 5 / 8;
    clip-path: polygon(4% 0, 100% 6%, 96% 100%, 0 94%);
    transform: rotate(-1.5deg);
}

.trust-tile:hover {
    transform: rotate(0) scale(1.04);
    z-index: 5;
}

.trust-tile:hover figcaption {
    transform: rotate(0) translateY(-4px);
}

.trust-lattice-crystal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
    animation: crystal-rotate 26s linear infinite;
}

.trust-lattice-crystal svg {
    width: 100%;
    height: 100%;
}

@keyframes crystal-rotate {
    from { transform: translate(-50%, -50%) rotate(0); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 1000px) {
    .trust-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
    }
    .tile-a, .tile-b, .tile-c, .tile-d, .tile-e {
        grid-column: auto;
        grid-row: auto;
        min-height: 400px;
        clip-path: polygon(4% 0, 100% 6%, 96% 100%, 0 94%);
    }
    .trust-lattice-crystal { display: none; }
}

@media (max-width: 600px) {
    .trust-mosaic {
        grid-template-columns: 1fr;
    }
}

/* Trust stats */
.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    padding: 36px;
    background: var(--cream);
    border: 1.8px solid var(--gold);
    box-shadow: 6px 6px 0 var(--plum);
    clip-path: polygon(2% 0, 100% 4%, 98% 100%, 0 96%);
    position: relative;
    z-index: 2;
}

.stat {
    text-align: center;
    padding: 12px;
    border-right: 1.5px dashed var(--gold);
}

.stat:last-child {
    border-right: none;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 5vw, 60px);
    color: var(--plum);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    margin-top: 8px;
    color: var(--rose);
}

@media (max-width: 720px) {
    .stat {
        border-right: none;
        border-bottom: 1.5px dashed var(--gold);
        padding-bottom: 18px;
    }
    .stat:last-child {
        border-bottom: none;
    }
}

/* ============================================
   CONTACT — embedded in crystal
   ============================================ */
.contact-frame {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 2;
}

.contact-crystal-bg {
    position: absolute;
    inset: -40px -20px;
    width: calc(100% + 40px);
    height: calc(100% + 80px);
    z-index: 0;
    filter: drop-shadow(8px 12px 0 var(--gold));
}

.contact-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    padding: 56px 48px;
    z-index: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    color: var(--rose);
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--cream);
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--plum);
    box-shadow: inset 1px 1px 0 rgba(74, 32, 64, 0.05);
    transition: transform 0.4s var(--elastic-soft), border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--rose);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 3px 3px 0 var(--rose);
    transform: translate(-1px, -1px);
}

.field-full {
    grid-column: 1 / -1;
}

.form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.form-mono {
    color: var(--shell-warm);
}

.btn-submit {
    background: linear-gradient(135deg, var(--rose), var(--plum));
    color: var(--cream);
    padding: 14px 28px;
}

.btn-submit svg {
    transition: transform 0.6s var(--elastic-soft);
}

.btn-submit:hover svg {
    transform: rotate(360deg);
}

.form-status {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--rose);
    min-height: 18px;
}

.form-status.is-success {
    color: var(--plum);
    font-weight: 700;
}

/* Contact side */
.contact-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px;
    background: rgba(255, 245, 230, 0.7);
    border: 1.5px dashed var(--gold);
    border-radius: 12px;
    align-self: start;
}

.contact-address p {
    font-size: 14.5px;
    color: var(--cocoa);
    line-height: 1.5;
    margin-top: 6px;
}

.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 880px) {
    .contact-inner {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    position: relative;
    background: linear-gradient(172deg, var(--plum) 0%, #2a1326 100%);
    color: var(--cream);
    padding: 80px 60px 40px;
    margin-top: -80px;
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1.5px dashed var(--gold);
}

.footer-brand strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    color: var(--cream);
    letter-spacing: -0.02em;
}

.footer-brand .mono-tag {
    color: var(--peach);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 36px;
    margin-bottom: 48px;
}

.footer-col .mono-tag {
    color: var(--peach);
    margin-bottom: 14px;
    display: block;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a,
.footer-col li {
    color: var(--blush);
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.3s ease, transform 0.5s var(--elastic-soft);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--peach);
    transform: translateX(4px);
}

.footer-base {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 28px;
    border-top: 1.5px dashed var(--gold);
}

.footer-base .mono-tag {
    color: var(--peach);
}

/* ============================================
   REVEAL animations (elastic)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.7s ease,
        transform 0.9s var(--elastic-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-stagger="1"] { transition-delay: 0.06s; }
.reveal[data-stagger="2"] { transition-delay: 0.12s; }
.reveal[data-stagger="3"] { transition-delay: 0.18s; }
.reveal[data-stagger="4"] { transition-delay: 0.24s; }
.reveal[data-stagger="5"] { transition-delay: 0.30s; }
.reveal[data-stagger="6"] { transition-delay: 0.36s; }

.timeline-step {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.7s ease,
        transform 0.9s var(--elastic-out);
}

.timeline.is-visible .timeline-step { opacity: 1; transform: translateY(calc(var(--step-offset, 0) * 1px)); }
.timeline.is-visible .timeline-step[data-stagger="1"] { transition-delay: 0.05s; }
.timeline.is-visible .timeline-step[data-stagger="2"] { transition-delay: 0.13s; }
.timeline.is-visible .timeline-step[data-stagger="3"] { transition-delay: 0.21s; }
.timeline.is-visible .timeline-step[data-stagger="4"] { transition-delay: 0.29s; }
.timeline.is-visible .timeline-step[data-stagger="5"] { transition-delay: 0.37s; }

/* ============================================
   Responsive tweaks
   ============================================ */
@media (max-width: 720px) {
    .section-counter-skew {
        padding: 0 24px;
    }
    .section-skew-wrap {
        padding: 130px 0 150px;
    }
    .site-footer {
        padding: 64px 24px 32px;
    }
}
