@font-face {
    font-family: 'SK Cormorant';
    src: url('/assets/fonts/CormorantGaramond.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: block;
}
/* Geometry is known before scripts execute; background does not resize on load. */
:root { --header-height: 148px; --backdrop-offset: 148px; }
html { overflow-y: scroll !important; }
#topHeader { height: 88px; flex-wrap: nowrap; }
#bottomHeader { height: 60px; flex-wrap: nowrap; }
#siteBg { width: 100vw; top: var(--backdrop-offset); height: calc(100vh - var(--backdrop-offset)); background-size: cover; background-position: center; background-repeat: no-repeat; transition: none; }
body .hero-title {
    font-family: 'SK Cormorant', Georgia, serif;
    font-weight: 700;
    letter-spacing: .015em;
}
body .site-title { font-family: 'Inter', Arial, sans-serif; font-size: 36px; font-weight: 800; letter-spacing: -.025em; line-height: 1; white-space: nowrap; }
body .hero-title {
    font-size: clamp(70px, 20.0vw, 80px);
    background-image: linear-gradient(110deg, #20b2aa 5%, #00ced1 29%, #a2f5ef 44%, #ffffff 49%, #bcfff7 53%, #00ced1 64%, #20b2aa 95%);
    background-size: 260% 100%;
    animation: brandShimmer 7s ease-in-out infinite;
    filter: drop-shadow(0 0 16px rgba(0,206,209,.16));
}
@keyframes brandShimmer { 0%, 100% { background-position: 100% 50%; } 50% { background-position: 0% 50%; } }
/* Cross-document transitions preserve the backdrop and header, fading only page content. */
@view-transition { navigation: auto; }
#siteBg { view-transition-name: site-background; }
#siteHeader { view-transition-name: site-header; }
::view-transition-group(site-background), ::view-transition-group(site-header) { animation: none; }
::view-transition-old(site-background), ::view-transition-new(site-background),
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { animation: pageFadeOut .16s ease both; }
::view-transition-new(root) { animation: pageFadeIn .24s ease both; }
@keyframes pageFadeOut { to { opacity: 0; } }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1024px) {
    #mobileBtn { display: block; }
    #bottomHeader .nav { position: absolute; top: calc(100% + 6px); left: 50%; width: min(calc(100% - 24px),420px); flex-direction: column; height: auto; max-height: calc(100dvh - var(--header-height) - 18px); overflow-y: auto; padding: 16px; gap: 8px; justify-content: flex-start; background: linear-gradient(105deg,#0b1824 0%,#103039 54%,#0a1723 100%); border: 1px solid rgba(88,201,199,.3); border-radius: 18px; box-shadow: 0 12px 30px #0006; transform: translate(-50%,-12px); transition: transform .22s ease, opacity .22s ease, visibility .22s; visibility: hidden; pointer-events: none; opacity: 0; }
    #bottomHeader .nav.active { visibility: visible; pointer-events: auto; opacity: 1; transform: translate(-50%,0); }
    #bottomHeader .nav a { width: 100%; text-align: center; padding: 10px 0; }
}
@media (max-width: 768px) {
    :root { --header-height: 124px; --backdrop-offset: 124px; }
    #topHeader { height: 64px; }
    body .site-title { font-size: 25px; }
    #siteBg { background-size: auto 100%; background-position: 12% center; }
}
@media (max-width: 360px) {
    :root { --header-height: 160px; --backdrop-offset: 160px; }
    #topHeader { height: 100px; flex-wrap: wrap; gap: 8px; }
}
@media (min-width: 361px) and (max-width: 480px) {
    body .site-title { font-size: 21px; }
    .logo-area { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    body .hero-title { animation: none; }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
