/* ==========================================================================
   Rowela Projects — site theme on top of Bootstrap 6
   Unlayered on purpose: Bootstrap 6 ships in @layer, so these rules win.
   ========================================================================== */

/* Brand tokens
   ------------------------------------------------------------------------- */
:root {
    --brand: oklch(76% .17 131);            /* #92C745 logo green */
    --brand-strong: oklch(58% .15 133);
    --brand-ink: oklch(22% .04 140);
    --surface-dark: oklch(17% .02 160);
    --surface-darker: oklch(13% .015 160);

    /* Re-point Bootstrap's primary theme at the brand green */
    --bs-primary-base: var(--brand);
    --bs-primary-bg: var(--brand);
    --bs-primary-fg: light-dark(var(--brand-strong), var(--brand));
    --bs-primary-fg-emphasis: light-dark(oklch(40% .11 135), oklch(88% .1 130));
    --bs-primary-bg-subtle: light-dark(oklch(96.5% .035 128), oklch(26% .05 135));
    --bs-primary-bg-muted: light-dark(oklch(91% .08 128), oklch(33% .07 135));
    --bs-primary-border: light-dark(oklch(84% .12 128), oklch(50% .12 132));
    --bs-primary-contrast: var(--brand-ink);
    --bs-primary-focus-ring: color-mix(in oklch, var(--brand) 55%, transparent);

    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --nav-height: 72px;
    --section-space: clamp(4.5rem, 3rem + 6vw, 8rem);
    --radius-card: 1.25rem;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    background-color: var(--bs-bg-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -.02em;
}

img { max-width: 100%; }

/* Closed dialogs are only visibility-hidden; keep them out of the scroll height */
.dialog:not([open]) { position: fixed; }

/* Buttons: a touch rounder and heavier than stock */
.btn-solid, .btn-outline, .btn-subtle {
    --bs-btn-border-radius: 999px;
    font-weight: 600;
}
.btn-lg {
    --bs-btn-padding-x: 1.75rem;
}
.btn-solid.theme-primary:hover {
    background-color: oklch(from var(--brand) calc(l + .05) c h);
}

/* Navbar
   ------------------------------------------------------------------------- */
.site-nav {
    --bs-navbar-bg: transparent;
    --bs-navbar-color: oklch(100% 0 0 / .78);
    --bs-navbar-hover-color: #fff;
    --bs-navbar-active-color: #fff;
    --bs-navbar-brand-color: #fff;
    --bs-navbar-brand-hover-color: #fff;
    --bs-navbar-toggler-border-color: oklch(100% 0 0 / .25);
    min-height: var(--nav-height);
    transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-nav.is-scrolled {
    background-color: color-mix(in oklch, var(--surface-darker) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 oklch(100% 0 0 / .08);
}
.site-nav .navbar-toggler {
    --bs-btn-bg: oklch(100% 0 0 / .06);
    --bs-btn-hover-bg: oklch(100% 0 0 / .14);
    color: #fff;
    border: 1px solid oklch(100% 0 0 / .2);
    border-radius: .75rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.site-nav .nav-link {
    font-weight: 500;
    font-size: .95rem;
    border-radius: 999px;
}
.site-nav .nav-link.active {
    color: var(--brand);
    background: transparent;
}

/* Drawer (mobile menu) keeps the body text colors of the page */
.site-nav .drawer {
    --bs-navbar-color: var(--bs-fg-2);
    --bs-navbar-hover-color: var(--bs-fg-body);
    --bs-navbar-active-color: var(--bs-fg-body);
}
.site-nav .drawer .navbar-nav { margin-inline: 0; }
.site-nav .drawer .nav-link { font-size: 1.05rem; padding-block: .6rem; }
.site-nav .drawer .nav-link.active { color: var(--bs-primary-fg); }
.site-nav .drawer .nav-cta { margin-top: auto; }

@container (width >= 1024px) {
    .site-nav .drawer {
        --bs-navbar-color: oklch(100% 0 0 / .78);
        --bs-navbar-hover-color: #fff;
        --bs-navbar-active-color: #fff;
    }
    .site-nav .drawer .navbar-nav { margin-inline: auto; }
    .site-nav .drawer .nav-link { font-size: .95rem; padding-block: .375rem; }
    .site-nav .drawer .nav-link.active { color: var(--brand); }
    .site-nav .drawer .nav-cta { margin-top: 0; }
}

/* Brand lockup */
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    text-decoration: none;
}
.brand img { flex: none; }
.brand-name {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1;
    letter-spacing: -.02em;
    background: linear-gradient(90deg, var(--brand), #fff 140%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brand-sub {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .32em;
    text-transform: uppercase;
    margin-top: .3rem;
    color: oklch(100% 0 0 / .6);
    -webkit-text-fill-color: oklch(100% 0 0 / .6);
}

/* Hero
   ------------------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: calc(var(--nav-height) + 3rem) 5rem;
    color: #fff;
    background-color: var(--surface-darker);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.04);
    animation: hero-zoom 18s ease-out forwards;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60rem 40rem at 85% 10%, oklch(76% .17 131 / .22), transparent 60%),
        linear-gradient(100deg, oklch(13% .02 160 / .94) 0%, oklch(13% .02 160 / .78) 45%, oklch(13% .02 160 / .35) 100%);
}
@keyframes hero-zoom {
    to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-bg { animation: none; transform: none; }
}

.hero-content { max-width: 1140px; }

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    color: oklch(100% 0 0 / .9);
    background: oklch(100% 0 0 / .08);
    border: 1px solid oklch(100% 0 0 / .14);
    backdrop-filter: blur(8px);
}
.eyebrow-pill i { color: var(--brand); }

.hero-title {
    font-size: clamp(2.75rem, 1.5rem + 6vw, 5.75rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.035em;
    margin: 1.5rem 0 1.25rem;
}
.text-gradient {
    background: linear-gradient(90deg, var(--brand) 0%, oklch(90% .14 115) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead {
    max-width: 36rem;
    font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
    line-height: 1.65;
    color: oklch(100% 0 0 / .78);
    margin-bottom: 2.25rem;
}
.hero-btn-ghost {
    --bs-btn-color: #fff;
    --bs-btn-border-color: oklch(100% 0 0 / .35);
    --bs-btn-bg: transparent;
    --bs-btn-hover-bg: oklch(100% 0 0 / .1);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: oklch(100% 0 0 / .6);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 3rem;
    margin: 3.5rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid oklch(100% 0 0 / .14);
    max-width: 40rem;
}
.hero-stats dt {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}
.hero-stats dd {
    margin: .15rem 0 0;
    font-size: .9rem;
    color: oklch(100% 0 0 / .65);
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    translate: -50% 0;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: #fff;
    border: 1px solid oklch(100% 0 0 / .3);
    animation: cue 2.2s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--brand); border-color: var(--brand); }
@keyframes cue {
    50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-cue { animation: none; }
}

/* Sections
   ------------------------------------------------------------------------- */
.section {
    padding-block: var(--section-space);
}
.section-tinted {
    background-color: var(--bs-bg-1);
}
.section-dark {
    background:
        radial-gradient(50rem 30rem at 10% 0%, oklch(76% .17 131 / .12), transparent 60%),
        var(--surface-dark);
    color: var(--bs-fg-body);
}

.section-head {
    max-width: 44rem;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bs-primary-fg);
}
.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.section-title {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    text-wrap: balance;
    margin-bottom: 1.25rem;
}
.section-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--bs-fg-2);
    margin-bottom: 1.75rem;
}
.section-head .section-lead { margin-bottom: 0; }

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: .9rem;
}
.check-list li {
    display: flex;
    gap: .75rem;
    line-height: 1.55;
    color: var(--bs-fg-body);
}
.check-list i {
    flex: none;
    margin-top: .1rem;
    color: var(--bs-primary-fg);
}

.icon-tile {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 3rem;
    height: 3rem;
    border-radius: .9rem;
    font-size: 1.35rem;
    color: var(--bs-primary-fg-emphasis);
    background: var(--bs-primary-bg-subtle);
    border: 1px solid var(--bs-primary-border);
}

/* About
   ------------------------------------------------------------------------- */
.about-media {
    position: relative;
    margin-inline-end: 1.5rem;
}
.about-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-card);
    box-shadow: var(--bs-box-shadow-lg);
}
.about-media::before {
    content: "";
    position: absolute;
    inset: 1.5rem -1.5rem -1.5rem 1.5rem;
    z-index: -1;
    border-radius: var(--radius-card);
    background: var(--bs-primary-bg-subtle);
    border: 1px solid var(--bs-primary-border);
}
.about-media { isolation: isolate; }
.about-badge {
    position: absolute;
    left: -1rem;
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: var(--surface-dark);
    color: #fff;
    box-shadow: var(--bs-box-shadow-xl);
}
.about-badge-num {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand);
}
.about-badge-label {
    font-size: .85rem;
    line-height: 1.35;
    color: oklch(100% 0 0 / .75);
}

/* Services
   ------------------------------------------------------------------------- */
.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--bs-bg-body);
    border: 1px solid var(--bs-border-color-translucent);
    box-shadow: var(--bs-box-shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bs-box-shadow-xl);
}
.service-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body {
    position: relative;
    padding: 2.25rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}
.service-body .icon-tile {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    background: var(--brand);
    color: var(--brand-ink);
    border: 4px solid var(--bs-bg-body);
    width: 3.25rem;
    height: 3.25rem;
}
.service-body h3 {
    font-size: 1.5rem;
    margin: .5rem 0 .75rem;
}
.service-body p {
    color: var(--bs-fg-2);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.link-arrow {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: var(--bs-primary-fg);
    text-decoration: none;
}
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover i { transform: translateX(4px); }

.steps {
    list-style: none;
    margin: 4rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    counter-reset: step;
}
.steps li {
    position: relative;
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-card);
    background: var(--bs-bg-body);
    border: 1px solid var(--bs-border-color-translucent);
}
.step-num {
    display: inline-block;
    margin-bottom: .75rem;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--bs-primary-fg);
}
.steps h4 { font-size: 1.1rem; margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--bs-fg-2); font-size: .95rem; line-height: 1.6; }

/* Gallery
   ------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 11rem;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 14rem;
    }
    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .gallery-item:nth-child(6) { grid-column: span 2; }
}
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--surface-darker);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease, opacity .3s ease;
}
.gallery-item i {
    position: absolute;
    right: .9rem;
    bottom: .9rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: var(--brand-ink);
    background: var(--brand);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); opacity: .85; }
.gallery-item:hover i,
.gallery-item:focus-visible i { opacity: 1; transform: none; }

/* Lightbox (native <dialog>) */
.lightbox {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    display: none;
    place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop {
    background: oklch(10% .01 160 / .92);
    backdrop-filter: blur(6px);
}
.lightbox img {
    max-width: min(92vw, 1400px);
    max-height: 84dvh;
    border-radius: .75rem;
    box-shadow: 0 2rem 4rem oklch(0% 0 0 / .5);
}
.lightbox-btn {
    position: fixed;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid oklch(100% 0 0 / .2);
    background: oklch(100% 0 0 / .08);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color .2s ease;
}
.lightbox-btn:hover { background: oklch(100% 0 0 / .18); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox-count {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    translate: -50% 0;
    color: oklch(100% 0 0 / .7);
    font-size: .9rem;
}

/* FAQ feature cards
   ------------------------------------------------------------------------- */
.feature-card {
    height: 100%;
    padding: 2.5rem 2.25rem;
    border-radius: var(--radius-card);
    background: var(--bs-bg-1);
    border: 1px solid var(--bs-border-color-translucent);
}
.feature-card h3 {
    font-size: 1.5rem;
    margin: 1.25rem 0 1.5rem;
}
.feature-card .check-list { margin-bottom: 0; gap: 1.1rem; }
.feature-card .check-list li { color: var(--bs-fg-2); }

/* Testimonials
   ------------------------------------------------------------------------- */
.testimonial-carousel {
    max-width: 52rem;
    margin-inline: auto;
}
.testimonial {
    margin: 0;
    padding: 3rem clamp(1.5rem, 1rem + 3vw, 3.5rem);
    border-radius: var(--radius-card);
    background: var(--bs-bg-body);
    border: 1px solid var(--bs-border-color-translucent);
    box-shadow: var(--bs-box-shadow-sm);
    text-align: center;
}
.testimonial-mark {
    display: block;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--bs-primary-fg);
    margin-bottom: .5rem;
}
.testimonial blockquote {
    margin: 0 0 2rem;
    font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
    line-height: 1.7;
    font-weight: 500;
    color: var(--bs-fg-body);
}
.testimonial figcaption {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    text-align: start;
}
.testimonial figcaption strong { display: block; }
.testimonial figcaption small { color: var(--bs-fg-2); }
.avatar-initials {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-weight: 700;
    color: var(--brand-ink);
    background: var(--brand);
}
.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.testimonial-controls .carousel-indicators { margin: 0; }
.testimonial-controls .btn-icon {
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-color: var(--brand-ink);
    --bs-btn-hover-border-color: var(--brand);
    width: 2.75rem;
    min-height: 2.75rem;
}
.testimonial-carousel {
    --bs-carousel-indicator-bg: var(--bs-primary-fg);
}

/* Contact
   ------------------------------------------------------------------------- */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 1.25rem;
}
.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-list small {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bs-fg-3);
}
.contact-list a {
    color: var(--bs-fg-body);
    text-decoration: none;
    font-weight: 500;
}
.contact-list a:hover { color: var(--bs-primary-fg); }

.form-card {
    padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
    border-radius: var(--radius-card);
    background: var(--bs-bg-body);
    border: 1px solid var(--bs-border-color-translucent);
    box-shadow: var(--bs-box-shadow-lg);
}
.form-card .form-label { font-weight: 600; font-size: .9rem; }
.form-card .form-control {
    background-color: var(--bs-bg-1);
}
.form-card .form-control:focus {
    background-color: var(--bs-bg-body);
}
#success:not(:empty) { margin-bottom: 1.5rem; }

/* Footer
   ------------------------------------------------------------------------- */
.site-footer {
    background: var(--surface-darker);
    color: oklch(100% 0 0 / .7);
    padding-top: 4rem;
}
.footer-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.75rem, 1rem + 3vw, 3rem);
    border-radius: var(--radius-card);
    background:
        radial-gradient(30rem 18rem at 100% 0%, oklch(100% 0 0 / .25), transparent 60%),
        linear-gradient(120deg, var(--brand-strong), var(--brand));
    color: var(--brand-ink);
}
.footer-cta h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
    font-weight: 800;
    margin-bottom: .35rem;
    color: var(--brand-ink);
}
.footer-cta p { margin: 0; color: oklch(22% .04 140 / .8); font-weight: 500; }
.footer-cta .btn-solid {
    --bs-btn-bg: var(--brand-ink);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: oklch(30% .05 140);
    --bs-btn-hover-color: #fff;
}
.footer-cta .btn-solid:hover { background-color: oklch(30% .05 140); }

.footer-main { padding-block: 4rem 3rem; }
.footer-text {
    max-width: 26rem;
    margin-top: 1.25rem;
    line-height: 1.7;
}
.footer-heading {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.25rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .75rem;
}
.footer-links a {
    color: oklch(100% 0 0 / .7);
    text-decoration: none;
}
.footer-links a:hover { color: var(--brand); }

.area-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.area-chips li {
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: .85rem;
    border: 1px solid var(--bs-border-color-translucent);
    background: var(--bs-bg-1);
}
.site-footer .area-chips li {
    color: oklch(100% 0 0 / .8);
    border-color: oklch(100% 0 0 / .12);
    background: oklch(100% 0 0 / .04);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    padding-block: 1.5rem;
    border-top: 1px solid oklch(100% 0 0 / .08);
    font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; text-decoration: none; }
.footer-bottom a:hover { color: var(--brand); }

/* Back to top
   ------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1020;
    width: 3rem;
    font-size: 1.1rem;
    box-shadow: var(--bs-box-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Intro: "powering up" splash, then an iris reveal of the hero
   Pure CSS timeline so it always finishes, even if JS fails.
   ------------------------------------------------------------------------- */
@property --iris {
    syntax: "<length-percentage>";
    inherits: false;
    initial-value: 0%;
}

:root {
    --hero-delay: 2s;   /* when the hero starts animating in */
}
.intro-skip {
    --hero-delay: .1s;
}

.intro {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background:
        radial-gradient(40rem 40rem at 50% 45%, oklch(76% .17 131 / .14), transparent 65%),
        var(--surface-darker);
    color: #fff;
    cursor: pointer;
    --iris: 0%;
    mask-image: radial-gradient(circle at 50% 45%, transparent var(--iris), #000 calc(var(--iris) + 1px));
    animation:
        intro-iris .75s cubic-bezier(.7, 0, .3, 1) 1.85s forwards,
        intro-hide 0s linear 2.6s forwards;
}
.intro-skip .intro { display: none; }
@media (prefers-reduced-motion: reduce) {
    :root:not(.intro-force) .intro { display: none; }
}
.intro-done .intro {
    animation: intro-fade .35s ease forwards, intro-hide 0s linear .35s forwards;
}

.intro-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: intro-stage-out .6s cubic-bezier(.7, 0, .3, 1) 1.8s forwards;
}

/* Logo, glow and charging ring */
.intro-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 168px;
    height: 168px;
    margin-bottom: 1.75rem;
}
.intro-logo img {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(.6) rotate(-12deg);
    filter: blur(14px) brightness(1.6);
    animation:
        intro-logo-in .9s cubic-bezier(.2, .9, .25, 1.15) .1s forwards,
        intro-logo-flash .6s ease 1.55s;
}
.intro-halo {
    position: absolute;
    inset: -30%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 60%, oklch(76% .17 131 / .55) 80%, transparent 100%);
    filter: blur(18px);
    opacity: 0;
    animation:
        intro-fade-in .6s ease .3s forwards,
        intro-spin 1.6s linear .3s infinite;
}
.intro-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}
.intro-ring circle {
    fill: none;
    stroke-width: 3;
}
.intro-ring-track {
    stroke: oklch(100% 0 0 / .08);
}
.intro-ring-charge {
    stroke: var(--brand);
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    filter: drop-shadow(0 0 6px var(--brand)) drop-shadow(0 0 14px oklch(76% .17 131 / .6));
    animation: intro-charge 1.35s cubic-bezier(.55, .1, .35, 1) .25s forwards;
}

/* Wordmark */
.intro-name {
    display: flex;
    font-size: clamp(2.5rem, 2rem + 3vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    overflow: hidden;
    padding-bottom: .1em;
}
.intro-name span {
    display: inline-block;
    background: linear-gradient(90deg, var(--brand), #fff 160%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: translateY(110%);
    animation: intro-letter .6s cubic-bezier(.2, .8, .2, 1) calc(.45s + var(--i) * .06s) forwards;
}
.intro-sub {
    margin-top: .6rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: oklch(100% 0 0 / .6);
    opacity: 0;
    animation: intro-tracking .9s cubic-bezier(.2, .8, .2, 1) .8s forwards;
}
.intro-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 2rem;
    font-size: .8rem;
    font-weight: 500;
    color: oklch(100% 0 0 / .55);
    opacity: 0;
    animation: intro-fade-in .5s ease .6s forwards;
}
.intro-status i {
    color: var(--brand);
    animation: intro-blink .5s ease-in-out .6s 3 alternate;
}
.intro-percent {
    min-width: 2.75em;
    font-variant-numeric: tabular-nums;
    color: #fff;
    font-weight: 700;
}

/* Flash when the charge completes */
.intro-burst {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 168px;
    height: 168px;
    margin: -84px 0 0 -84px;
    border-radius: 50%;
    border: 2px solid var(--brand);
    box-shadow: 0 0 40px var(--brand), inset 0 0 40px var(--brand);
    opacity: 0;
    pointer-events: none;
    animation: intro-burst .9s cubic-bezier(.2, .7, .3, 1) 1.6s forwards;
}

@keyframes intro-logo-in {
    to { opacity: 1; transform: none; filter: none; }
}
@keyframes intro-logo-flash {
    40% { filter: brightness(1.8) drop-shadow(0 0 24px var(--brand)); transform: scale(1.06); }
}
@keyframes intro-charge {
    to { stroke-dashoffset: 0; }
}
@keyframes intro-letter {
    to { transform: none; }
}
@keyframes intro-tracking {
    to { opacity: 1; letter-spacing: .45em; }
}
@keyframes intro-blink {
    to { opacity: .3; }
}
@keyframes intro-burst {
    0% { opacity: 1; transform: scale(.9); }
    100% { opacity: 0; transform: scale(9); }
}
@keyframes intro-spin {
    to { transform: rotate(360deg); }
}
@keyframes intro-fade-in {
    to { opacity: 1; }
}
@keyframes intro-fade {
    to { opacity: 0; }
}
@keyframes intro-stage-out {
    to { opacity: 0; transform: scale(1.15); filter: blur(6px); }
}
@keyframes intro-iris {
    to { --iris: 150vmax; }
}
@keyframes intro-hide {
    to { visibility: hidden; pointer-events: none; }
}

/* Hero entrance, timed to land as the iris opens */
@media (prefers-reduced-motion: no-preference) {
    .hero-content > *,
    .site-nav,
    .scroll-cue {
        opacity: 0;
        animation: hero-rise .9s cubic-bezier(.2, .8, .2, 1) forwards;
        animation-delay: calc(var(--hero-delay) + var(--d, 0s));
    }
    .hero-content > :nth-child(1) { --d: .05s; }
    .hero-content > :nth-child(2) { --d: .15s; }
    .hero-content > :nth-child(3) { --d: .3s; }
    .hero-content > :nth-child(4) { --d: .42s; }
    .hero-content > :nth-child(5) { --d: .55s; }
    .site-nav { --d: .35s; animation-name: intro-fade-in; }
    .scroll-cue { --d: .8s; animation-name: intro-fade-in, cue; animation-duration: .9s, 2.2s; animation-iteration-count: 1, infinite; }

    .hero-title .text-gradient {
        display: inline-block;
        background-size: 200% 100%;
        animation: hero-shine 2.4s ease calc(var(--hero-delay) + .5s) both;
    }
    .intro-done .hero-content > *,
    .intro-done .site-nav,
    .intro-done .scroll-cue {
        --hero-delay: 0s;
    }
}
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}
@keyframes hero-shine {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

/* Reveal-on-scroll
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        translate: 0 24px;
        transition: opacity .7s ease, translate .7s ease, transform .35s ease, box-shadow .35s ease;
    }
    .reveal.is-visible {
        opacity: 1;
        translate: none;
    }
}
