/* ====================================================================
   MEDIA.DOT — style.css
   Hero section (V1)
==================================================================== */

/* --- Design tokens --- */
:root {
    --bg:           #17221a;
    --primary:      #9ed670;
    --secondary:    #5e8043;
    --accent:       #e8d174;
    --orange:       #e39e54;
    --danger:       #d64d4d;
    --text:         #edf1ee;

    --font-stack:   "Outfit", system-ui, -apple-system, sans-serif;

    --ease-soft:    cubic-bezier(0.4, 0, 0.2, 1);

    /* Foreground motion tokens */
    --reveal-easing:           cubic-bezier(0.22, 1, 0.36, 1);
    --reveal-duration-general: 480ms;
    --reveal-duration-editorial: 680ms;
    --reveal-duration-card:    420ms;
    --reveal-translate-y:      clamp(16px, 1.6vw + 7px, 30px);
    --reveal-translate-x:      clamp(23px, 2.5vw + 9px, 48px);
    --reveal-stagger:          60ms;

    /* Hero entrance — responsive motion scale */
    --hero-logo-translate:       clamp(14px, 1.3vw + 6px, 24px);
    --hero-heading-translate:    clamp(20px, 2.2vw + 8px, 38px);
    --hero-supporting-translate: clamp(16px, 1.6vw + 6px, 28px);
    --hero-cta-translate:        clamp(14px, 1.3vw + 6px, 24px);
    --hero-deco-translate:       clamp(10px, 1.8vw + 4px, 32px);
    --hero-deco-scale:           0.92;
    --hero-deco-rotate:          1deg;

    /* Vertical rhythm — section spacing */
    --space-section: 3.5rem;   /* 56px per side — standard section padding */
    --space-head:    3rem;     /* 48px — header to content gap */
}

/* Spacing variable overrides — responsive */
@media (max-width: 1024px) {
    :root {
        --space-section: 2.5rem;  /* 40px per side */
        --space-head:    2rem;    /* 32px */
    }
}

@media (max-width: 768px) {
    :root {
        --space-section: 2rem;    /* 32px per side */
        --space-head:    2rem;    /* 32px */
    }
}

/* --- Reset / base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    html {
        font-size: 93.75%;
    }
}

body {
    font-family: var(--font-stack);
    font-size: clamp(1rem, 0.1vw + 0.975rem, 1.0625rem);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

hr {
	color: #5e8043;
	opacity: 0.5;
	margin: 1rem 0;
}

.display-none {
	display: none;
}

.fa-solid {
    margin-right: 0.1rem;
    opacity: 0.5;
    font-size: 110%;
}

/* ====================================================================
   Error 404
==================================================================== */
.hero__404 {
    font-size: 7rem;
    font-weight: 900;
    height: 7.7rem;
    color: rgba(158, 214, 112, 0.9);
    margin-bottom: 0.7rem;
    text-decoration: none;
}

.error-404 .hero__supporting {
	font-size: 1.4rem;
	line-height: 1.4;
}

/* ====================================================================
   Canvas Ambient Background
   One fixed full-viewport Canvas 2D element behind all content.
==================================================================== */
.ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ====================================================================
   Scroll Header — fixed editorial status bar that appears after Hero
==================================================================== */
.scroll-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: grid;
    grid-template-columns: 10rem auto 10rem;
    justify-content: center;
    align-items: center;
    column-gap: 1.5rem;
    min-height: 56px;
    padding: 0 3rem;
    box-sizing: border-box;
    background: rgba(23, 34, 26, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(237, 241, 238, 0.07);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-soft);
}

.scroll-header--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ====================================================================
   Scroll Header — logo (center)
==================================================================== */
.scroll-header__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.scroll-header__logo {
    width: 150px;
    height: auto;
	margin-top: -7px;
    opacity: 1;
}

.scroll-header__brand:hover .scroll-header__logo {
    scale: 1.01;
}

/* ====================================================================
   Scroll Header — navigation links (left / right)
==================================================================== */
.scroll-header__contact {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    font-weight: 500;
    font-size: 0.93rem;
    letter-spacing: 0.05em;
    color: rgba(237, 241, 238, 0.4);
    text-decoration: none;
    text-transform: uppercase;
    background: transparent;
    white-space: nowrap;
    transition: border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
}

.scroll-header__contact--left {
    justify-self: end;
}

.scroll-header__contact--right {
    justify-self: start;
}

.scroll-header__contact:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ====================================================================
   Scroll Header — progress line
==================================================================== */
.scroll-header__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, rgba(158, 214, 112, 0.6), rgba( 94, 128, 67, 0.3));
    transition: width 0.1s linear;
    will-change: width;
    pointer-events: none;
}

/* ====================================================================
   Scroll Header — responsive
==================================================================== */
@media (max-width: 1024px) {
    .scroll-header {
        padding: 0 2rem;
        grid-template-columns: 8rem auto 8rem;
    }

    .scroll-header__logo {
        width: 150px;
    }
}

.display-sm {
	display: none;
}

@media (max-width: 768px) {
	.scroll-header__logo {
		width: 130px;
	}

	.display-lg {
		display: none;
	}

	.display-sm {
		display: inline-block;
	}
}

@media (max-width: 576px) {
    .scroll-header {
        min-height: 50px;
        padding: 0 1rem;
        grid-template-columns: 7rem auto 7rem;
        column-gap: 0.75rem;
    }

    .scroll-header__logo {
        width: 150px;
    }

    .scroll-header__contact {
        padding: 0.35rem 0.6rem;
        font-size: 0.9rem;
    }
}

/* ====================================================================
   Scroll Header — reduced motion
==================================================================== */
@media (prefers-reduced-motion: reduce) {
    .scroll-header {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-header__contact {
        transition: none;
    }

    .scroll-header__progress {
        transition: none;
    }
}

/* ====================================================================
   Hero — CSS entrance choreography
   Pure CSS animations triggered on page render. No JS.
   animation-fill-mode: backwards holds the 0% keyframe during delay,
   so elements are invisible from first paint until their animation starts.
==================================================================== */
@keyframes hero-enter-logo {
    0%   { opacity: 0; transform: translateY(var(--hero-logo-translate)); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes hero-enter-headline {
    0%   { opacity: 0; transform: translateY(var(--hero-heading-translate)); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes hero-enter-supporting {
    0%   { opacity: 0; transform: translateY(var(--hero-supporting-translate)); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes hero-enter-cta {
    0%   { opacity: 0; transform: translateY(var(--hero-cta-translate)); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero__logo {
    animation: hero-enter-logo 400ms var(--reveal-easing) 200ms backwards;
}

.hero__cta {
    cursor: pointer;
}

/* ====================================================================
   Hero Metaballs FX — permanent Hero-only animated canvas.
   Sits ABOVE the global ambient Canvas (z-index 0, fixed) but BEHIND
   Hero content (.hero__inner z-index 2). Absolute within .hero, which
   is position:relative z-index 1, so it is confined to the Hero box.
==================================================================== */
.hero-mb-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ====================================================================
   Hero — section shell
==================================================================== */
.hero {
    position: relative;
    z-index: 1;
    min-height: auto;
    display: flex;
    align-items: center;
    background: transparent;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2.25fr 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

.hero.hero__slider {
	padding-bottom: 4rem;
}

.hero.hero__slider .hero__inner {
  grid-template-columns: 5fr 1fr;
}

/* ====================================================================
   Hero — content (left column)
==================================================================== */
.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    max-width: 52rem;
}

.hero.hero__slider .hero__content {
  max-width: 70rem !important;
}

.hero__logo {
    width: 200px;
    height: auto;
    opacity: 0.9;
    margin-bottom: 0rem;
}

.hero__logo:hover {
    scale: 1.01;
}

.hero__headline {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero__supporting {
    font-weight: 400;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.5;
    color: rgba(237, 241, 238, 0.72);
    max-width: 59rem;
}


/* ====================================================================
   Hero Slider — fade-transition content slider (Homepage only)
   Sits inside .hero__content below the static .hero__logo.
   Grid-stabilized: each slide participates in the grid so the
   container sizes to the largest slide, preventing height jumps.
==================================================================== */
.hero-slider {
    display: grid;
    position: relative;
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.hero-slider.is-dragging {
    cursor: grabbing;
}

.hero-slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity 680ms var(--reveal-easing), transform 680ms var(--reveal-easing);
    pointer-events: none;
    visibility: hidden;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.hero-slide.is-active .hero__headline {
    animation: hero-enter-headline 600ms var(--reveal-easing) 300ms backwards;
}

.hero-slide.is-active .hero__supporting {
    animation: hero-enter-supporting 500ms var(--reveal-easing) 400ms backwards;
}

.hero-slide.is-active .hero__cta {
    animation: hero-enter-cta 450ms var(--reveal-easing) 550ms backwards;
}

.hero-slider:focus-visible {
    outline: 1px solid rgba(158, 214, 112, 0.5);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-slide:not(.is-active) {
        visibility: hidden;
    }
}


/* ====================================================================
   Hero — decorative object (right column, used on subpages)
==================================================================== */
.hero__deco {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__deco-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    animation: deco-float 7s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes deco-float {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-7px) rotate(0.8deg); }
}

/* ====================================================================
   Responsive — tablet
==================================================================== */
@media (max-width: 1200px) {
    :root {
        --hero-deco-scale: 0.94;
    }

    .hero__inner {
        gap: 0.5rem;
        padding: 2rem 2.5rem;
    }

    .hero__deco {
        order: 2;
        justify-content: center;
        margin: 0 -1.5rem -2rem 0;
        overflow: visible;
    }

    .hero__deco-img {
        max-width: 360px;
        width: 90%;
    }
}

@media (max-width: 1024px) {
	.hero.hero__slider .hero__inner {
		grid-template-columns: auto;
	}
}


/* ====================================================================
   Responsive — mobile
==================================================================== */
@media (max-width: 768px) {
    :root {
        --hero-deco-scale: 0.96;
    }

    .hero {
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 1.5rem 1.5rem 0;
    }

    /* Content first, deco below — deco allowed to partially bleed */
    .hero__content {
        order: 1;
        gap: 1.5rem;
    }

    .hero__logo {
        width: 160px;
    }

    .hero__deco {
        margin: 0 0 2rem 0;
    }

    .hero__deco-img {
        max-width: 320px;
        width: 85%;
    }

}

/* ====================================================================
   Accessibility — reduced motion
==================================================================== */
@media (prefers-reduced-motion: reduce) {
    .hero__logo,
    .hero__headline,
    .hero__supporting,
    .hero__cta,
    .hero__deco {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero__deco-img {
        animation: none;
    }

    .hero__cta {
        transition: none;
    }

    .signal-card {
        transition: none;
    }

    .reveal-pending,
    .reveal-from-left.reveal-pending,
    .reveal-from-right.reveal-pending,
    .signal-card.reveal-pending,
    .reveal-vertical.reveal-pending,
    .reveal-fade.reveal-pending {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ====================================================================
   Signals — section shell
==================================================================== */
.signals {
    position: relative;
    z-index: 1;
    background: transparent;
    overflow: hidden;
    padding: var(--space-section) 0;
}

.signals__inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ====================================================================
   Signals — header
==================================================================== */
.signals__head {
    margin-bottom: var(--space-head);
}

.signals__label {
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(158, 214, 112, 0.85);
    margin-bottom: 1rem;
}

.signals__heading {
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
    max-width: 36rem;
}

/* ====================================================================
   Signals — card grid
==================================================================== */
.signals__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

/* ====================================================================
   Signals — cards
==================================================================== */
.signal-card {
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.6rem;
    background: rgba(237, 241, 238, 0.025);
    border: 1px solid rgba(237, 241, 238, 0.08);
    border-radius: 4px;
    transition: transform 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
}

.signal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(158, 214, 112, 0.4);
}

.signal-card__mark {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    color: rgba(158, 214, 112, 0.8);
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.signal-card__mark small {
    font-size: 50%;
    padding-right: 0.6rem;
    opacity: 0.6;
    margin-top: 0.3rem;
}

.signal-card__mark span {
    font-size: 50%;
    padding-left: 0.3rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

.signal-card__title {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.signal-card__text {
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(237, 241, 238, 0.62);
}


/* ====================================================================
   Scroll reveal — global language
==================================================================== */
.reveal-pending {
    opacity: 0.15;
    transform: translateY(var(--reveal-translate-y));
    transition: opacity var(--reveal-duration-general) var(--reveal-easing), transform var(--reveal-duration-general) var(--reveal-easing);
}

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

/* Signal cards — deeper translateY and longer duration for a more visible entrance */
.signal-card.reveal-pending {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms var(--reveal-easing), transform 600ms var(--reveal-easing);
}

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

.signal-card.reveal-visible:hover {
    transform: translateY(-4px);
    border-color: rgba(158, 214, 112, 0.4);
}

/* Directional reveal — editorial sections */
.reveal-from-left.reveal-pending {
    opacity: 0.15;
    transform: translateX(calc(-1 * var(--reveal-translate-x)));
}

.reveal-from-right.reveal-pending {
    opacity: 0.15;
    transform: translateX(var(--reveal-translate-x));
}

.reveal-from-left.reveal-visible,
.reveal-from-right.reveal-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Pure opacity fade — inner-page editorial visual column only */
.reveal-fade.reveal-pending {
    opacity: 0;
    transform: none;
    transition: opacity 875ms var(--reveal-easing) 100ms;
}

.reveal-fade.reveal-visible {
    opacity: 1;
    transform: none;
    transition: opacity 875ms var(--reveal-easing) 100ms;
}

/* Editorial text — transition on BOTH states so class-swap animates */
.editorial__text.reveal-from-left.reveal-pending,
.editorial__text.reveal-from-right.reveal-pending {
    transition: opacity var(--reveal-duration-editorial) var(--reveal-easing), transform var(--reveal-duration-editorial) var(--reveal-easing);
    opacity: 0.03;
}

.editorial__text.reveal-from-left.reveal-visible,
.editorial__text.reveal-from-right.reveal-visible {
    transition: opacity var(--reveal-duration-editorial) var(--reveal-easing), transform var(--reveal-duration-editorial) var(--reveal-easing);
    opacity: 1;
    transform: translateX(0);
}


/* ====================================================================
   Homepage editorial vertical reveal — bottom→up, both columns
   Overrides directional reveal for Homepage editorial sections only.
   Left column: 0ms delay, right column: 160ms (set via JS).
==================================================================== */
.reveal-vertical.reveal-pending {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 880ms var(--reveal-easing), transform 880ms var(--reveal-easing);
}

.reveal-vertical.reveal-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 880ms var(--reveal-easing), transform 880ms var(--reveal-easing);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-vertical.reveal-pending {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ====================================================================
   Signals — responsive
==================================================================== */
@media (max-width: 1024px) {
    .signals__inner {
        padding: 0 2.5rem;
    }

    .signals__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .signal-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .signals__inner {
        padding: 0 1.5rem;
    }

    .signal-card {
        padding: 2rem 1.5rem;
    }

    .signal-card__mark {
        font-size: 2rem;
        min-height: 2rem;
        margin-bottom: 1.25rem;
    }

}

@media (max-width: 420px) {
    .signals__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ====================================================================
   Editorial sections — Method, Vision, Systems
   Reusable alternating two-column layout
==================================================================== */
.editorial {
    position: relative;
    z-index: 1;
    background: transparent;
    padding: var(--space-section) 0;
}

.editorial__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ====================================================================
   Editorial — text column
==================================================================== */
.editorial__text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 33rem;
}

.editorial__label {
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(158, 214, 112, 0.85);
    margin-bottom: 0;
}

.editorial__heading {
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
}

.editorial__heading span {
    color: rgba(158, 214, 112, 0.65);
    padding-right: 0.4rem;
}

.editorial__body {
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.5;
    color: rgba(237, 241, 238, 0.68);
    margin-bottom: 0.4rem;
}

.editorial__title {
    font-weight: 600;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: -0.9rem;
}

.editorial__desc {
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.45;
    color: rgba(237, 241, 238, 0.68);
    margin-bottom: 0.9rem;
}

/* ====================================================================
   Editorial — text link
==================================================================== */
.editorial__link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: -0.3rem;
    font-family: var(--font-stack);
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(237, 241, 238, 0.55);
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid rgba(237, 241, 238, 0.2);
    padding: 0.6rem 1.5rem;
    width: fit-content;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-radius: 999px;
}

.editorial__link:hover,
.editorial__link:focus-visible {
    color: rgba(237, 241, 238, 0.9);
    outline: none;
    border-color: var(--accent);
    background: rgba(232, 209, 116, 0.18);
}


/* ====================================================================
   Editorial — visual column (deco image)
==================================================================== */
.editorial__visual {
    position: sticky;
    top: calc(56px + 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

.editorial__deco-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    opacity: 0.3;
    will-change: transform;
}

/* --- Continuous floating motion — per-section durations to avoid sync --- */
.editorial__deco-img--method {
    animation: deco-float-method 11s ease-in-out infinite alternate;
}

.editorial__deco-img--vision {
    animation: deco-float-vision 9s ease-in-out infinite alternate;
}

.editorial__deco-img--systems {
    animation: deco-float-systems 13s ease-in-out infinite alternate;
}

@keyframes deco-float-method {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(0.6deg); }
}

@keyframes deco-float-vision {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-7px) rotate(-0.5deg); }
}

@keyframes deco-float-systems {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(0.8deg); }
}

/* ====================================================================
   Editorial — responsive
==================================================================== */
@media (max-width: 1024px) {
    .editorial__inner {
        gap: 2.5rem;
        padding: 0 2.5rem;
    }

    .editorial__visual {
        min-height: 280px;
    }

    .editorial__deco-img {
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    .editorial__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }

    /* Text always first on mobile regardless of desktop alternation */
    .editorial__text {
        order: 1;
    }

    .editorial__visual {
        order: 2;
        min-height: 200px;
        position: static;
    }

    .editorial__deco-img {
        max-width: 200px;
    }

}

/* ====================================================================
   Editorial — reduced motion
==================================================================== */
@media (prefers-reduced-motion: reduce) {
    .editorial__link {
        transition: none;
    }

    .editorial__deco-img--method,
    .editorial__deco-img--vision,
    .editorial__deco-img--systems {
        animation: none;
    }
}

/* ====================================================================
   Structures — section shell
==================================================================== */
.structures {
    position: relative;
    z-index: 1;
    background: transparent;
    overflow: hidden;
    padding: var(--space-section) 0;
}

.structures__inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ====================================================================
   Structures — section header
==================================================================== */
.structures__head {
    margin-bottom: var(--space-head);
}

.structures__label {
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(158, 214, 112, 0.85);
    margin-bottom: 1rem;
}

.structures__heading {
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 1.25rem;
    max-width: 36rem;
}

.structures__supporting {
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.5;
    color: rgba(237, 241, 238, 0.62);
    max-width: 34rem;
}

/* ====================================================================
   Structures — groups
==================================================================== */
.structures__group {
    margin-bottom: var(--space-head);
}

.structures__group:last-of-type {
    margin-bottom: 0;
}

.structures__group-label {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
    color: rgba(237, 241, 238, 0.85);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

/* ====================================================================
   Structures — card grid
==================================================================== */
.structures__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

/* ====================================================================
   Structures — cards
==================================================================== */
.structure-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem;
    background: rgba(237, 241, 238, 0.018);
    border: 1px solid rgba(237, 241, 238, 0.07);
    border-radius: 4px;
    transition: transform 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
}

.structure-card:hover {
    transform: translateY(-3px);
    border-color: rgba(158, 214, 112, 0.35);
}

.structure-card__name {
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.structure-card__price {
    font-weight: 900;
    font-size: 1.1rem;
    color: rgba(158, 214, 112, 0.75);
    margin-bottom: 1rem;
}

.structure-card__desc {
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(237, 241, 238, 0.65);
    margin-bottom: 1rem;
}

.structure-card__details {
    list-style: none;
    margin: 0;
    padding: 0 0.7rem;
}

.structure-card__details li {
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(237, 241, 238, 0.5);
}

.structure-card__details li i {
	padding-right: 0.4rem;
    color: rgba(158, 214, 112, 0.75);
}


/* ====================================================================
   Structures — responsive
==================================================================== */
@media (max-width: 1024px) {
    .structures__inner {
        padding: 0 2.5rem;
    }

    .structures__grid {
        gap: 1.25rem;
    }

    .structure-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .structures__inner {
        padding: 0 1.5rem;
    }

    .structures__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .structure-card {
        padding: 2rem 1.5rem;
    }
}

/* ====================================================================
   Structures — reduced motion
==================================================================== */
@media (prefers-reduced-motion: reduce) {
    .structure-card {
        transition: none;
    }

    
}

/* ====================================================================
   Stack — section shell
==================================================================== */
.stack {
    position: relative;
    z-index: 1;
    background: transparent;
    overflow: hidden;
    padding: var(--space-section) 0;
}

.stack__inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ====================================================================
   Stack — section header
==================================================================== */
.stack__head {
    margin-bottom: var(--space-head);
}

.stack__label {
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(158, 214, 112, 0.85);
    margin-bottom: 1rem;
}

.stack__heading {
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 1.25rem;
    max-width: 36rem;
}

.stack__supporting {
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.5;
    color: rgba(237, 241, 238, 0.62);
    max-width: 34rem;
}

/* ====================================================================
   Stack — technology field
==================================================================== */
.stack__field {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

/* --- Group --- */
.stack-group {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    background: rgba(237, 241, 238, 0.018);
    border: 1px solid rgba(237, 241, 238, 0.07);
    border-radius: 4px;
    transition: transform 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
}

.stack-group__label {
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1rem;
}

.stack-group__label > span {
    font-weight: 300;
    letter-spacing: -0.2rem;
    padding: 0 0.3rem 0 0.2rem;
    color: rgba(158, 214, 112, 0.9);
}

.stack-group__desc {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(237, 241, 238, 0.65);
  margin-bottom: 1.6rem;
}

/* --- Items row — flexible, wraps naturally --- */
.stack-group__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 0.9rem;
}

/* --- Individual technology item --- */
.stack-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(237, 241, 238, 0.38);
    text-align: center;
    transition: color 0.4s var(--ease-soft);
}

/* Future logo support: when an <img> is placed inside .stack-item,
   it inherits the centered flex alignment and constrains to a
   consistent visual height with natural width. */
.stack-item img {
    width: auto;
    max-width: 100%;
    max-height: 40px;
    height: auto;
    object-fit: contain;
    background-color: rgba(237,241,238,0.5);
    filter: grayscale(100%);
    padding: 5px 8px;
    border-radius: 5px;
    cursor: help;
}

.stack-item img:hover {
    background-color: rgba(237,241,238,0.8);
    filter: grayscale(0%);
}

/* ====================================================================
   Stack — responsive
==================================================================== */
@media (max-width: 768px) {
	.stack__inner {
		padding: 0 1.5rem;
	}

    .stack__field  {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

	.stack-item img {
		max-height: 33px;
	}
}

/* ====================================================================
   Stack — reduced motion
==================================================================== */
@media (prefers-reduced-motion: reduce) {
    .stack-item {
        transition: none;
    }

    .stack-item.reveal-pending {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ====================================================================
   Selected — section shell
==================================================================== */
.selected {
    position: relative;
    z-index: 1;
    background: transparent;
    overflow: hidden;
    padding: var(--space-section) 0;
}

.selected__inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ====================================================================
   Selected — section header
==================================================================== */
.selected__head {
    margin-bottom: var(--space-head);
}

.selected__label {
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(158, 214, 112, 0.85);
    margin-bottom: 1rem;
}

.selected__heading {
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 1.25rem;
    max-width: 36rem;
}

.selected__supporting {
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.5;
    color: rgba(237, 241, 238, 0.62);
    max-width: 34rem;
}

/* ====================================================================
   Selected — client logo grid
   Quieter than Stack: no visible border, softer surface
==================================================================== */
.selected__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: -1.5rem;
}

.selected-ventures {
	padding-top: 1rem;
}

.selected-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 0.75rem 1.5rem 0.75rem 0;
    font-weight: 500;
    font-size: 1rem;
    color: rgba(237, 241, 238, 0.3);
    text-align: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: color 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
}

.selected-tile.reveal-pending {
    opacity: 0.15;
    transform: translateY(var(--reveal-translate-y));
    transition: opacity 350ms var(--reveal-easing), transform 350ms var(--reveal-easing);
}

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

.selected-tile:hover {
    color: rgba(237, 241, 238, 0.6);
    scale: 1.02;
}

.selected-tile img {
    width: auto;
    height: 60px;
    object-fit: contain;
    /* background-color: rgba(237,241,238,0.8); */
	opacity: 0.7;
    padding: 5px 8px;
    border-radius: 15px;
    cursor: alias;
}

.selected-tile img:hover {
	opacity: 0.9;
    /* background-color: rgba(237,241,238,1); */
}

@media (max-width: 768px) {
	.selected-tile {
		padding: 0.5rem 1rem 0.5rem 0;
	}

	.selected-tile {
		min-height: 66px;
	}

	.selected-tile img {
		height: 50px;
	}
}



/* ====================================================================
   Selected — reduced motion
==================================================================== */
@media (prefers-reduced-motion: reduce) {
    .selected-tile {
        transition: none;
    }

    .selected-tile.reveal-pending {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ====================================================================
   Client Marquee — continuous horizontal logo ticker (Homepage only)
   Fully separate class family from the lower .selected__grid.
   Full-width breakout with CSS edge-fade mask. Time-based movement
   via requestAnimationFrame, not CSS animation, so JS can control
   speed, drag, and reduced-motion cleanly.
==================================================================== */
.client-marquee {
    position: relative;
    z-index: 2;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.client-marquee__viewport {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    cursor: grab;
}

.client-marquee__viewport:active {
    cursor: grabbing;
}

.client-marquee__track {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
}

.client-marquee__set {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 3.5rem;
    flex: 0 0 auto;
    padding-right: 3.5rem;
}

.client-marquee__item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-marquee__logo {
    width: auto;
    height: auto;
    max-height: 44px;
    max-width: 222px;
    object-fit: contain;
	filter: grayscale(100%);
    opacity: 0.65;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

@media (max-width: 768px) {
	.selected__inner {
		padding: 0 1.5rem;
	}

    .client-marquee__set {
        gap: 2rem;
        padding-right: 2rem;
    }

    .client-marquee__logo {
		max-height: 33px;
		max-width: 166px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-marquee__viewport {
        cursor: default;
    }
}

/* ====================================================================
   Footer
==================================================================== */
.footer {
    position: relative;
    z-index: 1;
    background: transparent;
    border-top: 1px solid rgba(237, 241, 238, 0.06);
    overflow: hidden;
    padding: 1.5rem 0 1.3rem 0;
}

.footer__inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Footer unit reveal — single block, no per-element cascade */
.footer__inner.reveal-pending {
    opacity: 0.15;
    transform: translateY(calc(var(--reveal-translate-y) * 0.75));
}

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


/* ====================================================================
   Footer — left: brand
==================================================================== */

.footer__logo {
    width: 200px;
    height: auto;
    opacity: 0.5;
    margin: 0.1rem 0.8rem 0 0;
}

.footer__logo:hover {
    scale: 1.01;
}

.footer__tagtitle {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    text-align: left;
    color: rgba(237, 241, 238, 0.8);
    margin-bottom: 0.1em;
}

.footer__tagline {
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: left;
    color: rgba(237, 241, 238, 0.7);
    margin-bottom: 0.1em;
}

@media (max-width: 768px) {
    .footer__logo {
        display: none;
    }
}

.footer__copyright {
    font-weight: 300;
    font-size: 0.85rem;
    text-align: left;
    color: rgba(237, 241, 238, 0.4);
}

.footer__copyright strong {
  font-weight: 600;
  color: #888;
}

/* ====================================================================
   Footer — right: navigation + CTA
==================================================================== */
.footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
}


/* ====================================================================
   Footer — responsive
==================================================================== */
@media (max-width: 1024px) {
    .footer__inner {
        padding: 0 2.5rem;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1.5rem;
        gap: 0rem;
    }

    .footer__right {
        align-items: flex-start;
        gap: 1rem;
    }
}


/* ====================================================================
   Stack — pointer-follow tooltip prototype
   One shared tooltip element for the whole Stack section. Fine-pointer
   devices only; positioned via JS using requestAnimationFrame while
   visible. No arrow, no cyan/magenta styling.
==================================================================== */
.stack-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    max-width: 270px;
    padding: 9px 12px;
    background: #17221a;
    border: 1px solid rgba(237, 241, 238, 0.10);
    border-radius: 8px;
    font-family: var(--font-stack);
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(237, 241, 238, 0.85);
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition: opacity 180ms var(--ease-soft);
    will-change: transform;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stack-tooltip--visible {
    opacity: 1;
}

/* ====================================================================
   DECO — .deco-motion inner wrapper
   Clean interaction layer for hover lift only. Sits BETWEEN the outer
   reveal/entrance wrapper and the inner continuously-floating image.
   Transform layers are isolated so hover never overwrites float.
==================================================================== */

   .deco-motion {
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: translate, scale;
    transition: translate 850ms var(--reveal-easing), scale 850ms var(--reveal-easing);
}

/* --- Hover lift (fine-pointer only) --- */
@media (hover: hover) and (pointer: fine) {
    .editorial__visual:hover .deco-motion {
        translate: 0 -2px;
        scale: 1.01;
        transition: translate 650ms var(--reveal-easing), scale 650ms var(--reveal-easing);
    }
}

/* --- Reduced motion: no hover movement --- */
@media (prefers-reduced-motion: reduce) {
    .deco-motion {
        transition: none !important;
        translate: 0 0 !important;
        scale: 1 !important;
    }
}


/* ====================================================================
   Contact Form — Styles
==================================================================== */
.form-home {
	text-decoration: none;
}

.form-logo {
	height: clamp(2.1rem, 5vw, 2.8rem);
	padding-right: 0.4rem;
	margin-bottom: -0.3rem;
}

.form-close {
    position: absolute;
    right: 2rem;
    top: 1rem;
    color: #edf1ee;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 999;
}

.form-close:hover {
    color: rgba(237, 241, 238, 0.85);
}

.form-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.ai-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.ai-contact-form input,
.ai-contact-form select,
.ai-contact-form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(237, 241, 238, 0.18);
    border-radius: 8px;
    background: #11160f;
    color: #edf1ee;
    font: inherit;
}

.ai-contact-form input:focus,
.ai-contact-form select:focus,
.ai-contact-form textarea:focus {
    outline: 1px solid #edf1ee;
    outline-offset: 0;
}

.ai-contact-form select {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding-right: 55px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23edf1ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1rem 0.5rem !important;
}

.ai-contact-form select:invalid {
    color: rgba(237, 241, 238, 0.5);
}

.ai-contact-form select:valid {
    color: #edf1ee;
}

.ai-contact-form select option {
    color: #edf1ee;
    background: #11160f;
}

.ai-contact-form textarea {
    min-height: 170px;
    resize: vertical;
}
    
.ai-contact-form {
    max-width: 1100px;
    margin: 0 auto 2rem auto;
    color: #edf1ee;
}

.ai-contact-form * {
    box-sizing: border-box;
}

.ai-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 34px;
}

.ai-form-field {
    min-width: 0;
}

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

.ai-form-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 16px;
    font-weight: 500;
}

.ai-form-field .optional {
    font-size: 13px;
    font-weight: 400;
    color: rgba(237, 241, 238, 0.5);
}

.ai-form-field input,
.ai-form-field select,
.ai-form-field textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(237, 241, 238, 0.18);
    border-radius: 9px;
    background: #11160f;
    color: #edf1ee;
    font: inherit;
    font-size: 16px;
    outline: none;
}

.ai-form-field select {
    min-height: 54px;
}

.ai-form-field textarea {
    min-height: 145px;
    resize: vertical;
}

.ai-form-field input:focus,
.ai-form-field select:focus,
.ai-form-field textarea:focus {
    border-color: #edf1ee;
}

.ai-form-help {
    display: block;
    margin-top: 7px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.45;
}

.ai-form-field.variant {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(232, 209, 116, 0.45);
    border-radius: 10px;
    background: rgba(232, 209, 116, 0.08);
}

.ai-variant-badge {
    display: inline-block;
    margin-left: 7px;
    padding: 3px 6px;
    border-radius: 4px;
    background: #e8d174;
    color: #17221a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    vertical-align: 2px;
}

.ai-require-badge {
    display: inline-block;
    margin-left: 7px;
    padding: 3px 6px;
    border-radius: 4px;
    background: #d64d4d;
    color: #17221a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    vertical-align: 2px;
}

.ai-form-submit {
    grid-column: 1 / -1;
	margin-top: 16px;
	margin-bottom: 16px;
}

.ai-form-submit button {
    width: 100%;
    padding: 15px 30px;
    border: 0;
    border-radius: 8px;
    background: #9ed670;
    color: #17221a;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.ai-form-submit button:hover {
    opacity: 0.9;
}

.ai-form-submit button:focus {
    outline: 1px solid #edf1ee;
}

.ai-form-error {
    display: none;
    margin-top: 8px;
    color: #d64d4d;
}

.ai-form-error.is-visible {
    display: block;
}

.ai-form-field.has-error input,
.ai-form-field.has-error select,
.ai-form-field.has-error textarea {
    border-color: #d64d4d;
}

.ai-form-global-error {
    grid-column: 1 / -1;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(214, 77, 77, .33);
    color: #d64d4d;
}

.ai-form-success {
    width: 100%;
    max-width: 720px;
    min-height: 70vh;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    transform: translateY(-1vh);
}

.ai-form-success .hero__logo {
    width: 100%;
    margin: 1rem 0 1rem -1.1rem;
    /* transition: scale 350ms var(--reveal-easing); */
}

.ai-form-success .hero__logo:hover {
    scale: 1.01;
}

.ai-form-success .hero__logo img {
	max-width: 220px;
}

.ai-form-success h2 {
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.ai-form-success p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    margin: 1.6rem 0;
}

.ai-form-success .hero__cta {
    margin: 1rem 0;
}

.ai-form-success-hidden {
    display: none !important;
}

@media (max-width: 767px) {
	.form-wrapper {
		padding: 0 1.5rem;
	}

    .ai-form-grid {
        grid-template-columns: 1fr;
    }

    .ai-form-field.full {
        grid-column: auto;
    }

    .ai-form-success {
        min-height: 65vh;
        padding: 40px 20px;
        transform: none;
    }
}

a.card-open {
    text-decoration: none;
}


/* ====================================================================
   Modal — Styles
==================================================================== */
.modal__logo {
	width: auto;
	height: 2.5rem;
	margin-right: 0.4rem;
	opacity: 0.5;
	margin-bottom: -0.6rem;
}

a.modal-open, a.card-open {
    text-decoration: none;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background-color: rgba(23, 34, 26, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal.is-open {
    display: flex;
}

body.modal-is-open {
    overflow: hidden;
}

.modal-content {
    position: relative;
    color: #bbb;
    background-color: #17221a;
    padding: 0.9rem 1.6rem;
    width: 80%;
    max-width: 1000px;
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
    border: 1px solid #5e8043;
    border-radius: 8px;
}

.modal-title {
    color: #9ed670;
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
	line-height: 1.3;
}

.modal-title i {
    font-size: 96%;
    color: #9ed670;
    opacity: 1;
    padding-right: 2px;
}

.modal-subtitle {
    color: #fefefe;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.modal-content p {
    display: block;
    margin-bottom: 0.6rem;
}

.modal-content a {
    display: block;
    margin-bottom: 0.1rem;
    text-decoration: none;
    color: #eee;
}

.modal-content a:hover {
    color: #fff;
}

.modal-content a i {
    font-size: 1rem;
    padding-right: 5px;
}

.modal-links {
    padding: 0.6rem;
}

.modal-close {
    float: right;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    color: #9ed670;
    font: inherit;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover, .modal-close:focus {
    color: #fff;
    text-decoration: none;
}

.modal-close:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
	.modal__logo {
		display: none;
	}
    .modal-content {
        width: 100%;
        max-height: calc(100dvh - 2rem);
        padding: 1rem 1.2rem;
    }
}


/* ====================================================================
   Diagram - design
==================================================================== */
.diagram-wrapper {
	display: flex;
	flex-wrap: wrap;
	margin: 0.5rem 0 1rem 0;
}

.diagram-item {
	width: 13rem;
	text-align: center;
	padding: 1rem 0;
}

.diagram-icon {
	font-size: 2rem;
	color: #9ed670;
	padding-bottom: 0.2rem;
}

.diagram-desc {
	line-height: 1.3;
	font-size: 0.9rem;
	padding: 0 1.5rem;
}

.diagram-separator {
	width: 0.5rem;
	font-size: 1.5rem;
	opacity: 0.6;
	align-self: center;
	text-align: center;
}

@media (max-width: 520px) {
	.diagram-item {
		width: 90%;
	}
}


/* ====================================================================
   Team - grid
==================================================================== */
.team-wrapper {
	display: flex;
	flex-wrap: wrap;
	margin: 1rem 0 2rem 0;
}

.team-item {
	padding: 1rem;
}

.team-avatar img {
	max-width: 170px;
	border-radius: 0.4rem;
}

.team-name {
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.2;
	color: #9ed670;
}

.team-desc {
	font-size: 0.95rem;
	font-weight: 300;
	opacity: 0.8;
}

.team-placeholder {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 170px;
	height: 170px;
	color: #888;
	font-size: 3rem;
	background-color: #444;
	border-radius: 0.4rem;
}

.team-placeholder small {
	font-size: 2.2rem;
	padding-right: 0.1rem;
	opacity: 0.6;
}

@media (max-width: 768px) {
	.team-avatar img {
		max-width: 150px;
	}

	.team-placeholder {
		width: 150px;
		height: 150px;
	}

	.team-name {
		font-size: 1.1rem;
	}

	.team-desc {
		font-size: 0.9rem;
	}
}


/* ====================================================================
   Logo - wall
==================================================================== */

.logo-wall {
	display: flex;
	flex-wrap: wrap;
	padding: 0.8rem 1.2rem 0.6rem 1.2rem;
	margin: 0.8rem 0 2rem 0;
	background-color: #fff;
	border-radius: 0.4rem;
}

.logo-wrapper {
	margin: 0.7rem 2.2rem 0.9rem 0;
}

.logo-wrapper img {
	width: 100%;
	height: 100%;
	max-width: 200px;
	max-height: 50px;
	object-fit: contain;
}
