/* Shared styles used across all pages */
:root {
    --color-ink: #101828;
    --color-ink-soft: #334155;
    --color-primary: #106e39;
    --color-primary-dark: #0f5132;
    --color-secondary: #eab308;
    --color-surface: #ffffff;
    --color-surface-soft: #f8fafc;
    --color-border: #e5e7eb;
    --color-shadow-soft: rgba(16, 110, 57, 0.1);
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 1.75rem;
    --section-v-padding: clamp(3.75rem, 6vw, 6.5rem);
    --section-h-padding: clamp(1rem, 4vw, 2rem);
    --section-copy: clamp(1rem, 2vw, 1.125rem);
}

html,
body {
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--color-ink-soft);
    background: var(--color-surface);
}

::selection {
    background-color: var(--color-primary);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
    border: 2px solid var(--color-surface-soft);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

:focus-visible {
    outline: 2px solid rgba(16, 110, 57, 0.45);
    outline-offset: 2px;
}

.section-shell {
    padding-top: var(--section-v-padding);
    padding-bottom: var(--section-v-padding);
}

.section-title {
    font-family: 'Merriweather', serif;
    letter-spacing: -0.015em;
    line-height: 1.08;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 700;
    font-size: 0.7rem;
    margin-bottom: 0.9rem;
    color: var(--color-primary);
}

.section-copy {
    font-size: var(--section-copy);
    line-height: 1.8;
}

.surface-soft {
    position: relative;
    overflow: hidden;
}

.surface-soft::before {
    content: "";
    position: absolute;
    top: -18rem;
    right: -18rem;
    width: clamp(22rem, 40vw, 32rem);
    height: clamp(22rem, 40vw, 32rem);
    background: radial-gradient(circle, rgba(16, 110, 57, 0.13), transparent 68%);
    pointer-events: none;
    opacity: 0.7;
}

.surface-soft > * {
    position: relative;
    z-index: 1;
}

.studio-card {
    background: #ffffff;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.2);
    transition: transform 450ms ease, box-shadow 450ms ease, border-color 450ms ease;
}

.studio-card:hover {
    transform: translateY(-0.4rem);
    border-color: rgba(16, 110, 57, 0.25);
    box-shadow: 0 24px 50px -28px rgba(15, 23, 42, 0.24);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.85rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: transform 250ms ease, background-color 250ms ease, color 250ms ease, box-shadow 250ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 12px 32px -20px rgba(16, 110, 57, 0.85);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

.site-header-shell {
    transition: background-color 260ms ease, box-shadow 260ms ease, border-color 260ms ease, backdrop-filter 260ms ease;
    box-shadow: 0 8px 28px -24px rgba(15, 23, 42, 0.45);
}

.site-header-shell.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 44px -30px rgba(15, 23, 42, 0.35);
    border-color: rgba(16, 110, 57, 0.18);
}

.hero-rail {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius-3xl);
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease;
    pointer-events: none;
}

.hero-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-carousel-slide img {
    transform: scale(1.08);
    transition: transform 9s linear;
}

.hero-carousel-slide.active img {
    transform: scale(1);
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.6);
    transition: all 250ms ease;
}

.hero-dot.active {
    width: 2rem;
    background: #fff;
    opacity: 1;
}

.hero-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.26);
}

.hero-control::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    pointer-events: none;
}

.hero-stats {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(16, 110, 57, 0.14);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-slide-copy {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: min(360px, 70vw);
    z-index: 20;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    color: #fff;
    backdrop-filter: blur(8px);
    border-radius: 1.25rem;
    padding: 1.75rem;
}

.hero-progress {
    width: min(240px, 65vw);
    height: 3px;
    background: rgba(255, 255, 255, 0.24);
    border-radius: 9999px;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(to right, #eab308, #fde047);
    transform-origin: left;
}

.hero-progress-fill.active {
    animation: hero-progress 6s linear forwards;
}

@keyframes hero-progress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 850ms cubic-bezier(0.5, 0, 0, 1), transform 850ms cubic-bezier(0.5, 0, 0, 1);
}

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

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.hero-title {
    font-family: 'Merriweather', serif;
    line-height: 1.04;
    font-size: clamp(2.2rem, 6vw, 4.9rem);
    letter-spacing: -0.024em;
}
