/* ==========================================================================
   CSS TRANSPLANTED FROM INDEX.HTML 
   ========================================================================== */
/* ==========================================================================
   DESIGN TOKENS & BRAND SYSTEM
   mintdonut — refined editorial / minimal architectural system
   ========================================================================== */
:root {
    --gr-obsidian: #2c1e16; 
    --gr-bone: #ede5d3; 
    --gr-mint: #a2c4b1; 
    --glass-bg: rgba(237, 229, 211, 0.75); 
    --grid-line: rgba(28, 27, 24, 0.08); 
    --gr-dough: #d1c1af;

    --tracking-massive: 0.4em; 
    --tracking-standard: 0.1em; 

    --site-gutter: clamp(24px, 5vw, 80px);
    --header-padding-v: clamp(16px, 2vw, 28px);
    --safe-area-left: max(var(--site-gutter), env(safe-area-inset-left));
    --safe-area-right: max(var(--site-gutter), env(safe-area-inset-right));

    --ease-editorial: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

::-moz-selection {
    background-color: var(--gr-mint);
    color: var(--gr-obsidian);
}
::selection {
    background-color: var(--gr-mint);
    color: var(--gr-obsidian);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-transform: lowercase;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a, button, .cta-trigger, .pag-bar, .modal-close, .scope-link, .partner-item, .play-pause-btn, .footer-link, .process-trigger {
    cursor: pointer;
}

input, textarea, select {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 16px !important;
    cursor: text;
    border-radius: 0;
}

html, body {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--gr-bone);
    color: var(--gr-obsidian);
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: max(0px, env(safe-area-inset-top));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    width: 100%;
}

/* Modal Open Locks */
html.modal-open,
body.modal-open {
    /* overflow: hidden completely removed to prevent sticky header clipping and jump-to-top bug */
    overscroll-behavior: none;
}

main {
    position: relative;
    max-width: 100vw;
}

a:focus-visible, button:focus-visible,
.cta-trigger:focus-visible, .process-trigger:focus-visible, .pag-bar:focus-visible,
.footer-link:focus-visible, .modal-close:focus-visible {
    outline: 2px solid var(--gr-mint);
    outline-offset: 3px;
}

input:focus-visible, textarea:focus-visible {
    outline: none;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeUp 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 0; 
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.reveal {
    opacity: 0;
    transform: translateY(28px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* --- HEADER LOGO --- */
.header-logo {
    position: absolute;
    top: clamp(20px, 3vw, 50px);
    left: var(--safe-area-left);
    z-index: 500;
    width: clamp(160px, 22vw, 420px); 
    max-width: 55vw;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    isolation: isolate;
    transition: width 0.5s var(--ease-editorial), top 0.5s var(--ease-editorial), opacity 0.5s var(--ease-editorial);
}

.header-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.header-logo.is-compact {
    top: clamp(12px, 1.5vw, 18px);
    width: clamp(96px, 10vw, 150px);
}

.editorial-body {
    position: relative;
    max-width: 100vw;
}

/* --- HERO CANVAS --- */
.hero-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 520px;
    position: relative;
    overflow: hidden;
    background-color: var(--gr-obsidian);
    border-bottom: 1px solid var(--grid-line);
    border-radius: 0;
    -webkit-user-select: none;
    user-select: none;
}

.hero-static-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: saturate(0.92) contrast(1.04);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(44, 30, 22, 0.35) 0%, rgba(44, 30, 22, 0.85) 75%, var(--gr-obsidian) 100%);
    z-index: 2;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 3;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.8s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(100px, 10vw, 140px) var(--safe-area-right) clamp(85px, 8vw, 105px) var(--safe-area-left);
    border-radius: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
    color: var(--gr-bone);
    margin-top: auto;
    transform: translateY(20px);
    opacity: 0;
    filter: blur(12px);
    -webkit-filter: blur(12px);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.2s, 
                opacity 0.8s ease 0.2s, 
                filter 0.8s ease 0.2s, 
                -webkit-filter 0.8s ease 0.2s;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-slide.active .slide-content {
    opacity: 1;
    filter: blur(0px);
    -webkit-filter: blur(0px);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.slide-badge {
    font-size: 11px;
    letter-spacing: var(--tracking-massive);
    color: var(--gr-mint);
    font-weight: 500;
    margin-bottom: 14px;
    display: inline-block;
    background: rgba(162, 196, 177, 0.15);
    padding: 6px 14px;
    border: 1px solid rgba(162, 196, 177, 0.3);
    border-radius: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.slide-title {
    font-size: clamp(2rem, 5vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--gr-bone);
    word-break: break-word;
    overflow-wrap: break-word;
}

.slide-desc {
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.6;
    font-weight: 300;
    color: rgba(237, 229, 211, 0.85);
    margin-bottom: 32px;
    max-width: 600px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.slide-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.carousel-controls {
    position: absolute;
    bottom: clamp(20px, 3vw, 35px);
    bottom: max(20px, env(safe-area-inset-bottom));
    right: var(--safe-area-right);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(44, 30, 22, 0.65);
    padding: 12px 24px;
    border: 1px solid rgba(237, 229, 211, 0.18);
    border-radius: 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.play-pause-btn {
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--gr-bone);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.play-pause-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.pagination-indicators {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pag-bar {
    height: 4px;
    background: rgba(237, 229, 211, 0.2);
    border: none;
    border-radius: 0;
    width: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pag-bar.active { width: 70px; }

.pag-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--gr-mint);
    border-radius: 0;
}

.pag-bar.active .pag-progress {
    animation: slideProgress 6s linear forwards;
}

.pag-bar.active.paused .pag-progress {
    animation-play-state: paused;
}

@keyframes slideProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* --- BUTTONS & CLEAN CSS HOVER STATES --- */
button {
    border: none;
    background: transparent;
    font-family: inherit;
    outline: none;
    border-radius: 0;
}

.cta-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 28px; 
    background: var(--gr-bone);
    border: 1px solid var(--gr-obsidian);
    border-radius: 0;
    text-decoration: none;
    color: var(--gr-obsidian);
    font-size: 11px; 
    letter-spacing: var(--tracking-massive);
    font-weight: 500;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
    white-space: nowrap;
    outline: none;
    box-sizing: border-box;
    max-width: 100%;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.cta-trigger.secondary {
    background: transparent;
    border: 1px solid var(--grid-line);
    color: var(--gr-obsidian);
}

.cta-trigger.featured-btn {
    background: var(--gr-obsidian);
    color: var(--gr-mint);
    border: 1px solid var(--gr-obsidian);
}

.hero-slide .cta-trigger {
    background: rgba(237, 229, 211, 0.15);
    color: var(--gr-bone);
    border: 1px solid rgba(237, 229, 211, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-slide .cta-trigger.featured-btn {
    background: var(--gr-mint);
    color: var(--gr-obsidian);
    border: 1px solid var(--gr-mint);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.tier-card.featured .cta-trigger.featured-btn {
    background: var(--gr-obsidian);
    color: var(--gr-mint);
    border: 1px solid var(--gr-obsidian);
}

@media (hover: hover) and (pointer: fine) {
    .play-pause-btn:hover { color: var(--gr-mint); }
    .pag-bar:hover { background: rgba(237, 229, 211, 0.4); }

    .cta-trigger:hover {
        background: var(--gr-obsidian) !important;
        color: var(--gr-bone) !important;
        border-color: var(--gr-obsidian) !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(44, 30, 22, 0.15);
    }

    .cta-trigger.secondary:hover {
        background: var(--gr-mint) !important;
        border-color: var(--gr-mint) !important;
        color: var(--gr-obsidian) !important;
        box-shadow: 0 8px 20px rgba(162, 196, 177, 0.4); 
        transform: translateY(-2px);
    }

    .cta-trigger.featured-btn:hover {
        background: var(--gr-mint) !important;
        color: var(--gr-obsidian) !important;
        border-color: var(--gr-mint) !important;
        box-shadow: 0 8px 20px rgba(162, 196, 177, 0.4); 
        transform: translateY(-2px);
    }

    .hero-slide .cta-trigger:hover {
        background: var(--gr-bone) !important;
        color: var(--gr-obsidian) !important;
        border-color: var(--gr-bone) !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .hero-slide .cta-trigger.featured-btn:hover {
        background: var(--gr-bone) !important;
        color: var(--gr-obsidian) !important;
        border-color: var(--gr-bone) !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .tier-card.featured .cta-trigger.featured-btn:hover {
        background: transparent !important;
        color: var(--gr-obsidian) !important;
        border: 1px solid var(--gr-obsidian) !important;
        box-shadow: none;
        transform: translateY(-2px);
    }

    .tier-card.featured:hover { filter: brightness(0.97); }

    .scope-link:hover {
        color: var(--gr-obsidian);
        border-bottom-color: var(--gr-obsidian);
    }

    .footer-link:hover {
        color: var(--gr-mint);
        transform: translateX(4px);
    }

    .modal-close:hover {
        opacity: 1;
        background: var(--gr-obsidian);
        color: var(--gr-bone);
        border-color: var(--gr-obsidian);
    }
}

@media (hover: none) or (pointer: coarse) {
    a, button, .cta-trigger, .footer-link, .process-trigger {
        -webkit-tap-highlight-color: transparent;
    }
    .cta-trigger:hover, .footer-link:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* --- CONTENT SECTIONS --- */
.content-section {
    position: relative;
    scroll-margin-top: 0;
    max-width: 100vw;
}

/* --- PARTNERS SECTION (STATIC GRID) --- */
.partners-section {
    padding: 60px var(--safe-area-left); 
    border-bottom: 1px solid var(--grid-line);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partners-label {
    font-size: 11px;
    letter-spacing: var(--tracking-massive);
    color: var(--gr-mint);
    font-weight: 500;
    margin-bottom: 40px;
    -webkit-user-select: none;
    user-select: none;
    text-align: center;
}

.partners-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(30px, 6vw, 80px);
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
}

.partner-item {
    opacity: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    flex-shrink: 0;
}

.partner-item img {
    max-height: 50px; 
    min-height: 35px;
    width: auto;
    max-width: 100%;
    filter: invert(12%) sepia(34%) saturate(1469%) hue-rotate(345deg) brightness(91%) contrast(88%); 
}

/* STICKY GLASS HEADER (ISOLATED WEBKIT COMPOSITOR POSITIONING) */
.section-header {
    font-size: 12px;
    letter-spacing: 0.25em;
    padding: var(--header-padding-v) var(--safe-area-left); 
    border-bottom: 1px solid var(--grid-line);
    border-radius: 0;
    background: rgba(227, 216, 196, 0.92); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    isolation: isolate;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-perspective: 1000;
    perspective: 1000;
    -webkit-user-select: none;
    user-select: none;
}

.section-header span:first-child {
    font-size: 15px;
    color: var(--gr-obsidian);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section-header span:last-child {
    color: rgba(44, 30, 22, 0.65);
    font-weight: 500;
    letter-spacing: 0.12em;
}

/* --- 01 / PROCESS (GRID SLIDE & ISOLATED BLUR REVEAL) --- */
.process-index {
    border-bottom: 1px solid var(--grid-line);
}

.process-row {
    border-bottom: 1px solid var(--grid-line);
    position: relative;
}
.process-row:last-child { border-bottom: none; }

.process-trigger {
    width: 100%;
    display: grid;
    grid-template-columns: 180px 1fr 24px;
    align-items: center;
    gap: 50px;
    padding: 46px var(--safe-area-left);
    text-align: left;
    background: transparent;
}

.process-id {
    font-size: 11px;
    letter-spacing: var(--tracking-massive);
    color: var(--gr-mint);
    font-weight: 500;
}

.process-title {
    font-size: clamp(22px, 3vw, 32px);
    letter-spacing: -0.02em;
    font-weight: 400;
    color: var(--gr-obsidian);
    word-break: break-word;
    overflow-wrap: break-word;
}

.process-icon {
    position: relative;
    width: 16px;
    height: 16px;
    justify-self: end;
}
.process-icon::before,
.process-icon::after {
    content: "";
    position: absolute;
    background: var(--gr-obsidian);
    transition: transform 0.4s var(--ease-editorial), opacity 0.4s var(--ease-editorial);
}
.process-icon::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.process-icon::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }
.process-row.is-open .process-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.process-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.process-row.is-open .process-panel { 
    grid-template-rows: 1fr;
}

.process-panel-inner { 
    overflow: hidden; 
    opacity: 0;
    filter: blur(12px);
    -webkit-filter: blur(12px);
    transform: translateY(-8px) translateZ(0);
    -webkit-transform: translateY(-8px) translateZ(0);
    transition: opacity 0.5s ease 0.05s, filter 0.5s ease 0.05s, -webkit-filter 0.5s ease 0.05s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), -webkit-transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    will-change: opacity, filter, transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.process-row.is-open .process-panel-inner {
    opacity: 1;
    filter: blur(0px);
    -webkit-filter: blur(0px);
    transform: translateY(0) translateZ(0);
    -webkit-transform: translateY(0) translateZ(0);
}

.feature-desc {
    font-size: 16px;
    line-height: 1.65;
    font-weight: 300;
    max-width: 1200px;
    color: rgba(44, 30, 22, 0.75);
    padding: 0 var(--safe-area-right) 46px calc(180px + var(--safe-area-left) + 50px);
    word-break: break-word;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

/* --- 02 / RETAINERS --- */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--grid-line);
    gap: 1px;
    border-bottom: 1px solid var(--grid-line);
}

.tier-card {
    background: var(--gr-bone);
    padding: clamp(50px, 6vw, 80px) clamp(24px, 3vw, 50px); 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s var(--ease-editorial), filter 0.4s var(--ease-editorial);
}

@media (min-width: 769px) {
    .tier-card:first-child { padding-left: var(--safe-area-left); }
    .tier-card:last-child { padding-right: var(--safe-area-right); }
}

.tier-card.featured {
    background: var(--gr-mint);
    color: var(--gr-obsidian);
}

.tier-card.highlight-prompt {
    background: #e8dfcc !important;
}

.tier-label {
    font-size: 12px;
    letter-spacing: var(--tracking-massive);
    margin-bottom: 30px;
    display: block;
    font-weight: 700;
}

.price {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: -0.03em;
    word-break: break-word;
}

.tier-features {
    list-style: none;
    margin-bottom: 50px;
}

.tier-features li {
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 300;
    word-break: break-word;
}

.tier-features li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--gr-obsidian);
    margin-right: 12px;
    flex-shrink: 0;
    border-radius: 0;
}

.tier-card:not(.featured) .tier-features li::before {
    background: var(--gr-mint);
}

.custom-scope-block {
    padding: 40px var(--safe-area-left); 
    background: var(--gr-bone);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--grid-line); 
    border-radius: 0;
    gap: 20px;
}

.scope-text {
    font-size: 12px;
    letter-spacing: 0.05em;
    color: rgba(44, 30, 22, 0.6);
    font-weight: 300;
}

.scope-link {
    font-size: 11px;
    letter-spacing: var(--tracking-massive);
    color: var(--gr-mint);
    text-decoration: none;
    border-bottom: 1px solid var(--gr-mint);
    padding-bottom: 4px;
    transition: all 0.3s ease;
    display: inline-block; 
    white-space: nowrap;
}

/* --- 03 / INITIATE --- */
.contact-section {
    padding: clamp(60px, 8vw, 100px) var(--safe-area-left); 
    border-bottom: 1px solid var(--grid-line);
    border-radius: 0;
    scroll-margin-top: 0;
}

.contact-form {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    gap: 34px;
    width: 100%;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-label {
    font-size: 11px;
    letter-spacing: var(--tracking-standard);
    font-weight: 500;
    color: var(--gr-obsidian);
    transition: letter-spacing 0.3s ease, transform 0.3s var(--ease-snap);
    transform-origin: left center;
}

.form-group:focus-within .form-label {
    color: var(--gr-obsidian);
    letter-spacing: 0.16em;
    transform: translateY(-2px);
}

.form-input {
    padding: 14px 16px; 
    background: var(--gr-bone);
    border: 1px solid var(--grid-line);
    border-radius: 0;
    color: var(--gr-obsidian);
    font-family: inherit;
    font-size: 16px !important;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--gr-obsidian);
    border-bottom-color: var(--gr-obsidian);
}

.form-input::-webkit-input-placeholder { color: #bdaea1; }
.form-input::-moz-placeholder { color: #bdaea1; opacity: 1; }
.form-input:-ms-input-placeholder { color: #bdaea1; }
.form-input::placeholder { color: #bdaea1; opacity: 1; }

textarea.form-input {
    resize: vertical;
    min-height: 120px;
    font-size: 16px !important;
}

#form-message {
    font-size: 12px;
    letter-spacing: var(--tracking-standard);
    color: var(--gr-mint);
    display: none;
    font-weight: 500;
}

/* ==========================================================================
   APPLE-STYLE BLUR & DISSOLVE MODAL TRANSITION (SAFARI WEBKIT REFACTORED)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%; 
    background: rgba(44, 30, 22, 0.52); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex; 
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border-radius: 0;
    touch-action: none;
    overscroll-behavior: contain;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay.fast-dissolve {
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content {
    background: rgba(237, 229, 211, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: clamp(32px, 4vw, 50px) clamp(24px, 4vw, 44px);
    width: min(580px, 92vw); 
    max-width: 92vw;
    height: auto;
    max-height: 80dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--gr-obsidian);
    border-radius: 0;

    opacity: 0;
    filter: blur(12px);
    -webkit-filter: blur(12px);
    transform: scale(0.97);

    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                -webkit-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(44, 30, 22, 0.25);
    outline: none;
}

.modal-overlay.active .modal-content { 
    opacity: 1;
    filter: blur(0px);
    -webkit-filter: blur(0px);
    transform: scale(1);
}

.modal-sheet-handle-area { display: none; }

.modal-eyebrow {
    font-size: 11px;
    letter-spacing: var(--tracking-massive);
    color: var(--gr-mint);
    font-weight: 500;
    margin-bottom: 14px;
    display: block;
    flex-shrink: 0;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    opacity: 0.7;
    transition: all 0.2s var(--ease-apple);
    text-decoration: none;
    color: var(--gr-obsidian);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    z-index: 10;
}

.modal-title {
    font-size: clamp(24px, 3vw, 32px); 
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    color: var(--gr-obsidian);
    padding-right: 20px;
    flex-shrink: 0;
}

.modal-body {
    font-size: 14px; 
    line-height: 1.65;
    color: var(--gr-obsidian);
    margin-bottom: 16px;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
}

.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--grid-line); }

.modal-body p { 
    margin-bottom: 16px;
    font-weight: 300;
    color: rgba(44, 30, 22, 0.85);
}

.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13.5px;
}

.modal-body tr { border-bottom: 1px solid var(--grid-line); }
.modal-body tr:last-child { border-bottom: none; }

.modal-body td {
    padding: 12px 0;
    vertical-align: top;
    line-height: 1.5;
}

.modal-body td:first-child {
    width: 110px;
    padding-right: 14px;
    color: var(--gr-mint);
    font-weight: 500;
    letter-spacing: var(--tracking-standard);
    text-transform: lowercase;
}

.modal-body td:last-child {
    color: var(--gr-obsidian);
    font-weight: 300;
}

.modal-cta {
    width: 100%;
    display: flex;
    margin-top: auto;
    flex-shrink: 0;
    background: var(--gr-obsidian) !important;
    color: var(--gr-bone) !important;
    border: 1px solid var(--gr-obsidian) !important;
    border-radius: 0;
}

@media (max-width: 768px) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: opacity 0.3s ease !important;
    }

    .modal-overlay { 
        align-items: center; 
        padding: 16px 0;
    }

    .modal-content {
        width: min(580px, 92vw);
        max-width: 92vw;
        height: auto;
        max-height: 78dvh;
        border: 1px solid var(--gr-obsidian);
        padding: 28px var(--site-gutter);
        box-shadow: 0 30px 60px rgba(44, 30, 22, 0.35);
    }
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--gr-bone);
    padding: clamp(60px, 8vw, 80px) var(--safe-area-left) 35px var(--safe-area-right); 
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    z-index: 10;
    border-radius: 0;
    border: none;
    -webkit-user-select: none;
    user-select: none;
    max-width: 100vw;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 1000px;
    border: none;
    padding-top: 0;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-left: 0;
    border: none;
}

.footer-col h4 {
    font-size: 11px;
    letter-spacing: var(--tracking-massive);
    color: var(--gr-mint);
    font-weight: 500;
    margin-bottom: 10px;
}

.footer-link {
    text-decoration: none;
    color: var(--gr-obsidian);
    font-size: 16px;
    font-weight: 300;
    transition: all 0.3s ease;
    width: fit-content;
}

.footer-massive-brand {
    font-size: clamp(3rem, 13vw, 20rem); 
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: var(--gr-dough);
    text-align: center;
    overflow: hidden;
    white-space: nowrap; 
    opacity: 0.3; 
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border: none;
    padding-top: 0;
    font-size: 11px;
    color: rgba(44, 30, 22, 0.5);
}

/* --- FOLDABLES & SMALL TABLETS (769px to 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slide { padding-top: clamp(120px, 12vw, 160px); }
    .slide-title { font-size: clamp(2.4rem, 5.5vw, 4rem); }
    .tier-grid { grid-template-columns: repeat(3, 1fr); }
    .tier-card { padding: 40px 24px; }
    .price { font-size: clamp(32px, 3.5vw, 44px); }
    .footer-grid { gap: 30px; }
}

/* --- PORTRAIT MOBILE BREAKPOINTS --- */
@media (max-width: 768px) and (orientation: portrait) {
    .hero-container { height: 100vh; height: 100svh; min-height: 520px; }

    .hero-index { top: max(16px, env(safe-area-inset-top)); }

    .tier-card {
        padding-left: var(--safe-area-left);
        padding-right: var(--safe-area-right);
    }

    .hero-slide { padding: 100px var(--site-gutter) 85px var(--site-gutter); }
    .slide-content { max-width: 100%; }

    .slide-title { font-size: clamp(1.8rem, 7.5vw, 3rem) !important; margin-bottom: 14px; }

    .slide-desc {
        font-size: clamp(13px, 3.5vw, 15px) !important;
        margin-bottom: 24px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slide-ctas {
        gap: 12px;
    }

    .slide-ctas .cta-trigger {
        flex: 1 1 auto;
        min-width: 130px;
        padding: 12px 16px;
        font-size: 10px;
        white-space: nowrap;
    }

    .carousel-controls {
        bottom: max(20px, env(safe-area-inset-bottom));
        left: var(--site-gutter);
        right: var(--site-gutter);
        justify-content: space-between;
        padding: 10px 18px;
    }

    .pag-bar { width: 25px; }
    .pag-bar.active { width: 45px; }

    .section-header { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 11px; } 

    .partners-grid { gap: 24px; }
    .partner-item img { max-height: 38px; }

    .process-trigger { grid-template-columns: 1fr 20px; gap: 12px; padding: 32px var(--site-gutter); }
    .process-id { grid-column: 1; }
    .process-title { grid-column: 1; font-size: 22px; }
    .process-icon { grid-row: 2; }
    .feature-desc { max-width: 100%; padding: 0 var(--site-gutter) 32px var(--site-gutter); }

    .tier-grid { grid-template-columns: 1fr; }

    .custom-scope-block { flex-direction: column; padding: 40px var(--site-gutter); gap: 18px; text-align: center; }

    .contact-section { padding: 40px var(--site-gutter); }
    .contact-form { gap: 24px; }
    .form-input { padding: 14px 16px; font-size: 16px !important; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 24px; }
    .footer-col:nth-child(1) { grid-column: 1; grid-row: 1; }
    .footer-col:nth-child(2) { grid-column: 1; grid-row: 2; padding-left: 0; border: none; }
    .footer-col:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
    .footer-massive-brand { font-size: 16vw; } 
    .footer-bottom { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
}

/* --- MOBILE LANDSCAPE OVERRIDES --- */
@media screen and (orientation: landscape) and (max-height: 650px) {
    .header-logo { top: max(16px, env(safe-area-inset-top)); width: auto; max-width: 150px; z-index: 500; }
    .header-logo img { width: 100%; height: auto; object-fit: contain; }

    .hero-container { height: 100vh; height: 100svh; min-height: 520px; }

    .hero-slide {
        padding-top: max(100px, env(safe-area-inset-top));
        padding-bottom: max(85px, env(safe-area-inset-bottom));
        padding-left: var(--safe-area-left);
        padding-right: var(--safe-area-right);
        align-items: flex-start;
        justify-content: flex-end;
    }

    .slide-content { max-width: 100%; margin-top: auto; transform: none; }

    .slide-badge { font-size: 11px; padding: 6px 14px; margin-bottom: 14px; letter-spacing: var(--tracking-massive); }

    .slide-title { font-size: clamp(1.8rem, 5vw, 3rem) !important; margin-bottom: 14px; line-height: 1.1; }

    .slide-desc {
        font-size: clamp(13px, 3.5vw, 15px) !important;
        line-height: 1.5;
        margin-bottom: 24px;
        max-width: 600px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slide-ctas { gap: 12px; flex-wrap: wrap; }
    .slide-ctas .cta-trigger { flex: 1 1 auto; min-width: 130px; padding: 12px 16px; font-size: 10px; white-space: nowrap; }

    .carousel-controls { bottom: max(20px, env(safe-area-inset-bottom)); left: var(--safe-area-left); right: var(--safe-area-right); justify-content: space-between; padding: 10px 18px; gap: 12px; }

    .pag-bar { width: 25px; }
    .pag-bar.active { width: 45px; }

    .modal-content { padding: 28px var(--site-gutter); max-height: 80dvh; }
    .modal-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; }
    .modal-eyebrow { margin-bottom: 14px; }
    .modal-body { margin-bottom: 16px; }

    .section-header { padding: 16px var(--safe-area-left); font-size: 11px; }

    .process-trigger { padding: 32px var(--safe-area-left); grid-template-columns: 140px 1fr 20px; gap: 24px; }
    .process-title { font-size: 22px; }
    .feature-desc { font-size: 14px; line-height: 1.6; padding: 0 var(--safe-area-right) 32px calc(140px + var(--safe-area-left) + 24px); }

    .tier-grid { grid-template-columns: 1fr !important; background: transparent; }
    .tier-card { padding: 40px var(--safe-area-right) 40px var(--safe-area-left); border-bottom: 1px solid var(--grid-line); }
    .tier-card .cta-trigger { width: fit-content; min-width: 180px; }
    .price { font-size: clamp(32px, 8vw, 44px); margin-bottom: 24px; }
    .tier-features { margin-bottom: 30px; }
    .tier-features li { font-size: 15px; margin-bottom: 12px; }

    .contact-section { padding: 40px var(--safe-area-left); }
    .contact-section p { font-size: 11px !important; margin-bottom: 24px !important; line-height: 1.4 !important; }
    .contact-form { gap: 24px; max-width: 600px; }
    .form-group { gap: 10px; }
    .form-label { font-size: 11px; }
    .form-input { padding: 14px 16px; font-size: 16px !important; }
    textarea.form-input { min-height: 120px; }

    .site-footer { padding: 35px var(--safe-area-left) max(25px, env(safe-area-inset-bottom)) var(--safe-area-right); gap: 35px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .footer-col { gap: 14px; padding-left: 0; }
    .footer-col h4 { font-size: 11px; margin-bottom: 6px; }
    .footer-link { font-size: 14px; }
    .footer-massive-brand { font-size: clamp(3rem, 10vw, 6rem); opacity: 0.25; }
    .footer-bottom {
        flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center;
        gap: 12px; padding-top: 0; font-size: 11px;
    }
}

/* --- MOTION SAFETY --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   CSS TRANSPLANTED FROM TERMS.HTML 
   ========================================================================== */
body {
    background-color: var(--gr-bone);
    color: var(--gr-obsidian);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    animation: frostedLoad 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    min-height: 100dvh;
    padding-top: max(0px, env(safe-area-inset-top));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
}

@keyframes frostedLoad {
    0% { opacity: 0; filter: blur(15px); }
    100% { opacity: 1; filter: none; }
}

/* --- GLASSMORPHIC STICKY HEADER NAV --- */
.legal-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    padding: var(--header-padding-v) var(--safe-area-left);
    background: rgba(227, 216, 196, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--grid-line);
    z-index: 100;
    isolation: isolate;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-user-select: none;
    user-select: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--gr-obsidian);
    font-size: 12px;
    letter-spacing: 0.12em;
    font-weight: 500;
    text-transform: lowercase; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-user-select: none;
    user-select: none;
    width: fit-content;
    min-height: 32px;
}

/* --- LEGAL CONTENT WRAPPER & TYPOGRAPHY --- */
.legal-wrapper {
    padding: clamp(40px, 6vw, 80px) var(--safe-area-left) clamp(60px, 8vw, 100px) var(--safe-area-right);
    border-bottom: 1px solid var(--grid-line);
    max-width: 100vw;
}

.legal-header {
    font-size: clamp(2rem, 5vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: clamp(40px, 5vw, 80px);
    border-bottom: 1px solid var(--grid-line);
    padding-bottom: clamp(20px, 3vw, 40px);
    text-transform: lowercase; 
    color: var(--gr-obsidian);
    -webkit-user-select: none;
    user-select: none; 
}

.legal-wrapper *, .legal-nav * {
    text-transform: none !important; 
}

.legal-header, .back-link {
    text-transform: lowercase !important;
}

.legal-content {
    max-width: 800px;
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.8;
    font-weight: 300;
    color: rgba(44, 30, 22, 0.85);
}

.legal-section { 
    margin-bottom: clamp(40px, 6vw, 70px);
    border-bottom: 1px solid var(--grid-line);
    padding-bottom: clamp(30px, 4vw, 50px);
}

.legal-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.legal-title {
    font-size: 15px;
    color: var(--gr-obsidian);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    display: block;
}

.legal-content h3 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    margin: 35px 0 16px 0;
    color: var(--gr-obsidian);
    letter-spacing: -0.01em;
}

.legal-content p { 
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.8;
    font-weight: 300;
    color: rgba(44, 30, 22, 0.85);
    margin-bottom: 18px; 
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 25px;
    list-style-type: square;
}

.legal-content li { 
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.8;
    font-weight: 300;
    color: rgba(44, 30, 22, 0.85);
    margin-bottom: 12px; 
}

@media (hover: hover) and (pointer: fine) {
    .back-link:hover { 
        color: var(--gr-mint);
        transform: translateX(-4px); 
    }
}

@media screen and (orientation: landscape) and (max-height: 520px) {
    .legal-nav { padding: 16px var(--safe-area-left); }
    .legal-wrapper { padding: 30px var(--safe-area-left) 40px var(--safe-area-right); }
    .legal-header { margin-bottom: 25px; padding-bottom: 15px; font-size: clamp(1.8rem, 5vw, 3rem) !important; line-height: 1.1; text-transform: lowercase !important; }
    .legal-content { font-size: 13px; line-height: 1.65; }
}