@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --bg: #f8f6ef;
    --bg-soft: #fff1b8;
    --surface: rgba(255, 255, 255, 0.8);
    --ink: #17203a;
    --muted: #5d6477;
    --brand: #1e4d8f;
    --brand-2: #fdd830;
    --accent: #ff7a59;
    --line: rgba(23, 32, 58, 0.12);
    --shadow: 0 18px 55px rgba(23, 32, 58, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 1.25rem;
    color: var(--ink);
    background: radial-gradient(circle at 10% 10%, #d9e8ff, transparent 38%),
                radial-gradient(circle at 90% 20%, #fff0af, transparent 36%),
                linear-gradient(140deg, var(--bg), var(--bg-soft));
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    min-height: 100vh;
    position: relative;
}

main {
    max-width: 1100px;
    margin: 1.25rem auto 0;
    display: grid;
    gap: 1rem;
}

h1,
h2 {
    font-family: 'Fraunces', Georgia, serif;
    line-height: 1.1;
    margin: 0 0 0.65rem;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
    font-size: clamp(1.25rem, 2.8vw, 2rem);
}

p,
li,
label,
input,
textarea,
button,
a {
    font-size: 1rem;
}

.site-header {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
}

.brand {
    text-decoration: none;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
}

.brand-logo {
    width: 5rem;
    height: 5rem;
    border-radius: 0.625rem;
    object-fit: contain;
    padding: 2px;
    box-shadow: 0 8px 20px rgba(23, 32, 58, 0.15);
    flex-shrink: 0;
}

.brand-text-wrap {
    display: grid;
    gap: 0.1rem;
    line-height: 1.15;
}

.brand-subtext {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.site-nav {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    transition: 0.25s transform ease, 0.25s background-color ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    background: #fff9d9;
    transform: translateY(-1px);
}

.site-nav a.is-active {
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(30, 77, 143, 0.15);
}

.card {
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--surface);
    backdrop-filter: blur(5px);
    padding: clamp(1rem, 2.5vw, 2rem);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    overflow: hidden;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    color: var(--brand);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.lead {
    color: var(--muted);
    max-width: 60ch;
}

.actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.btn {
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    cursor: pointer;
    font-weight: 700;
}

.btn-primary {
    color: #12203f;
    background: linear-gradient(145deg, var(--brand-2), #ffe76d);
    box-shadow: 0 14px 24px rgba(253, 216, 48, 0.28);
}

.btn-ghost {
    color: var(--brand);
    background: #fff;
    border: 1px solid var(--line);
}

.hero-art {
    min-height: 280px;
    position: relative;
    display: grid;
    place-items: center;
}

.blob {
    position: absolute;
    border-radius: 45% 55% 67% 33% / 42% 34% 66% 58%;
    animation: drift 8s ease-in-out infinite;
}

.blob-a {
    width: 150px;
    height: 150px;
    right: 10%;
    top: 6%;
    background: rgba(30, 77, 143, 0.78);
}

.blob-b {
    width: 190px;
    height: 190px;
    right: 28%;
    top: 30%;
    animation-delay: -1.7s;
    background: rgba(253, 216, 48, 0.78);
}

.blob-c {
    width: 125px;
    height: 125px;
    right: 5%;
    top: 60%;
    animation-delay: -2.3s;
    background: rgba(255, 122, 89, 0.78);
}

.hero-image-frame {
    position: relative;
    width: min(100%, 380px);
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-image-frame img,
.gallery-card img,
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(23, 32, 58, 0.28));
}

.floating-card {
    position: absolute;
    inset: auto auto 12% -12%;
    max-width: 180px;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 122, 89, 0.96), rgba(253, 216, 48, 0.93));
    color: #17203a;
    border: 1px solid rgba(255, 122, 89, 0.38);
    box-shadow: var(--shadow);
    animation: bob 4.8s ease-in-out infinite;
}

.floating-card p {
    margin: 0.35rem 0 0;
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.highlight {
    background: linear-gradient(150deg, rgba(30, 77, 143, 0.12), rgba(253, 216, 48, 0.22));
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.mini-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
    color: var(--brand);
}

.image-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
    gap: 1rem;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.gallery-card.wide {
    min-height: 360px;
}

.gallery-caption {
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: #ffd447;
    color: var(--ink);
}

.gallery-card:nth-child(3n + 1) .gallery-caption {
    background: #ffd447;
}

.gallery-card:nth-child(3n + 2) .gallery-caption {
    background: #ff8f70;
}

.gallery-card:nth-child(3n + 3) .gallery-caption {
    background: #8ec5ff;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    min-height: 320px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat strong {
    display: block;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: var(--brand);
}

.feature-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.feature-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: start;
}

.feature-list li::before {
    content: '✦';
    color: var(--brand);
    font-size: 1.05rem;
    line-height: 1.5;
}

.timeline ol {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.55rem;
}

.contact-form {
    display: grid;
    gap: 0.65rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.7rem;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(0, 109, 119, 0.35);
    outline-offset: 1px;
}

.alert {
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.8rem;
}

.alert.success {
    color: #114b23;
    background: #d6f7df;
    border: 1px solid #97dfaa;
}

.alert.error {
    color: #5b1414;
    background: #ffe1e1;
    border: 1px solid #ffb5b5;
}

.clean-list {
    margin: 0;
    padding-left: 1.1rem;
}

.newsletter-list {
    display: grid;
    gap: 0.65rem;
}

.newsletter-list a {
    display: block;
    text-decoration: none;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.newsletter-list a:hover,
.newsletter-list a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(30, 77, 143, 0.35);
    box-shadow: 0 10px 20px rgba(23, 32, 58, 0.12);
}

.site-footer {
    max-width: 1100px;
    margin: 1rem auto 0.6rem;
    text-align: center;
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: rise 0.65s ease forwards;
}

.bg-shape {
    position: fixed;
    border-radius: 56% 44% 63% 37% / 38% 57% 43% 62%;
    filter: blur(56px);
    z-index: -1;
    opacity: 0.52;
    pointer-events: none;
    will-change: transform;
}

.bg-shape-a {
    width: 220px;
    height: 220px;
    left: -70px;
    top: 18%;
    background: #97b9ff;
}

.bg-shape-b {
    width: 260px;
    height: 260px;
    right: -100px;
    bottom: 10%;
    background: #fff09f;
}

@keyframes bob {
    0%,
    100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes drift {
    0%,
    100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(4deg); }
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 880px) {
    body {
        padding: 0.8rem;
    }

    .hero,
    .grid-two,
    .grid-three,
    .image-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-subtext {
        font-size: 0.85rem;
    }

    .hero-art {
        min-height: 190px;
    }

    .floating-card {
        inset: auto 4% 4% auto;
        max-width: 150px;
    }
}
