/* ============================================================
   Antaraal Studio — shared site styles
   Used by index.html, projects.html, contact.html
   ============================================================ */

/* Reset + base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
}

/* Focus ring — subtle but visible */
:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.55);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Fog canvas — sits at the very back */
#fog {
    width: 100%;
    height: 100vh;
    position: fixed;
    inset: 0;
    z-index: -2;
}

/* ============================================================
   Navigation — unified glass pill with rounded segments.
   The container is the glass surface; buttons inside are
   transparent pills that fill/darken on hover + active.
   #home-button (standalone on projects/contact) is its own
   little pill using the same visual vocabulary.
   ============================================================ */

/* Shared pill surface — glass cluster (nav) and standalone (home) */
#nav-container,
#home-button {
    position: fixed;
    top: 18px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 10px 30px rgba(10, 20, 40, 0.18);
}

#nav-container {
    right: 20px;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    transition: transform 0.3s var(--nav-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.nav-button {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #111319;
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

.nav-button:hover {
    background: rgba(17, 19, 25, 0.08);
}

.nav-button[aria-current="page"] {
    background: #0f1217;
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 4px 14px rgba(10, 20, 40, 0.28);
}

.nav-button[aria-current="page"]:hover {
    background: #000000;
}

/* Standalone home pill (projects + contact pages) */
#home-button {
    left: 20px;
    padding: 9px 18px 9px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #111319;
    text-decoration: none;
    transition: background-color 0.28s ease, transform 0.28s ease;
}

#home-button::before {
    content: "←";
    font-size: 14px;
    opacity: 0.65;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

#home-button:hover {
    background: rgba(255, 255, 255, 0.86);
}

#home-button:hover::before {
    transform: translateX(-3px);
    opacity: 1;
}

/* Dark-mode nav/home pills */
[data-mode="dark"] #nav-container,
[data-mode="dark"] #home-button {
    background: rgba(6, 10, 20, 0.55);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.35);
}

[data-mode="dark"] .nav-button,
[data-mode="dark"] #home-button {
    color: rgba(255, 255, 255, 0.94);
}

[data-mode="dark"] .nav-button:hover,
[data-mode="dark"] #home-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-mode="dark"] .nav-button[aria-current="page"] {
    background: #ffffff;
    color: #0f1217;
}

[data-mode="dark"] .nav-button[aria-current="page"]:hover {
    background: #f5f5f5;
}

@media (max-width: 520px) {
    #nav-container { top: 12px; right: 12px; padding: 4px; }
    .nav-button { padding: 8px 14px; font-size: 12.5px; }
    #home-button { top: 12px; left: 12px; padding: 8px 14px 8px 12px; font-size: 12.5px; }
}

/* Skip link (a11y) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: #fff;
    color: #000;
    padding: 10px 14px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 100;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 20px;
}

/* Section helpers */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section--narrow {
    max-width: 820px;
}

.section-eyebrow {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
    margin: 0 0 14px;
    text-align: center;
}

.section-title {
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-size: 42px;
    font-weight: 500;
    text-align: center;
    margin: 0 0 16px;
    letter-spacing: 0.01em;
}

.section-intro {
    font-size: 16px;
    line-height: 1.75;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    opacity: 0.88;
}

/* Glass card base — opaque enough to stay readable when fog goes dark */
.glass-card {
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 10px 40px rgba(10, 20, 40, 0.18);
}

/* Fog dimmer — a faint neutral wash ABOVE the Vanta canvas (z:-2)
   but BELOW content (default z:auto/0). Keeps the fog motion visible
   while lowering its contrast so dark text reads cleanly without
   halos or bands. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.16), transparent 65%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.18) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Button — primary / pill */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    background-color: rgba(0, 0, 0, 0.82);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.04em;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    background-color: #000;
}

.btn--ghost {
    background-color: rgba(255, 255, 255, 0.3);
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

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

/* Footer */
.site-footer {
    position: relative;
    padding: 60px 24px 40px;
    background-color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0 0 12px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.65;
    opacity: 0.75;
    max-width: 340px;
    margin: 0;
}

.footer-col h4 {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 14px;
    opacity: 0.6;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 14px;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.6;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 720px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-footer {
        padding: 48px 20px 32px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 32px;
    }
}

/* Reveal-on-scroll utility */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================================
   THEME MODES — toggle between legibility treatments
   Set on <html data-mode="...">
   - wash      (default)  soft white wash over fog (current)
   - dark                 dark wash + white text on bare fog
   - plaques              inline glass pills around bare-fog headers
   - adaptive             text color pulses with fog cycle
   - minimal              hide big bare-fog titles; eyebrows only
   ============================================================ */

/* Shared selector groups — elements that sit on BARE FOG
   (not inside glass cards). These are the elements each mode
   adjusts. Card-internal text is untouched. */

/* ---- MODE: dark ---------------------------------------- */
[data-mode="dark"] body::before {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(6, 10, 20, 0.22), transparent 65%),
        linear-gradient(180deg, rgba(6, 10, 20, 0.42) 0%, rgba(6, 10, 20, 0.34) 100%);
}

[data-mode="dark"] .section-eyebrow,
[data-mode="dark"] .section-title,
[data-mode="dark"] .section-intro,
[data-mode="dark"] .hero__tagline,
[data-mode="dark"] .hero__meta,
[data-mode="dark"] .hero__email,
[data-mode="dark"] .scroll-hint,
[data-mode="dark"] .projects-hero h1,
[data-mode="dark"] .projects-hero .lede,
[data-mode="dark"] .projects-hero .eyebrow,
[data-mode="dark"] .projects-hero .year-strip,
[data-mode="dark"] .contact-hero h1,
[data-mode="dark"] .contact-hero h1 em,
[data-mode="dark"] .contact-hero .lead,
[data-mode="dark"] .contact-hero .eyebrow,
[data-mode="dark"] .contact-hero .hero-whisper,
[data-mode="dark"] .services-head h2,
[data-mode="dark"] .services-head .eyebrow,
[data-mode="dark"] .routes-head h2,
[data-mode="dark"] .routes-head .eyebrow,
[data-mode="dark"] .routes-head p,
[data-mode="dark"] .team-head h2,
[data-mode="dark"] .team-head .eyebrow,
[data-mode="dark"] .team-head p,
[data-mode="dark"] .venues-section .eyebrow,
[data-mode="dark"] .final-cta__email,
[data-mode="dark"] .final-cta__prompt,
[data-mode="dark"] .final-cta__note,
[data-mode="dark"] .statement p,
[data-mode="dark"] .statement h2,
[data-mode="dark"] .footer-brand,
[data-mode="dark"] .footer-tagline,
[data-mode="dark"] .footer-col h4,
[data-mode="dark"] .footer-col a,
[data-mode="dark"] .footer-bottom {
    color: rgba(255, 255, 255, 0.95);
}

[data-mode="dark"] .statement__rule {
    background: rgba(255, 255, 255, 0.3);
}

[data-mode="dark"] .final-cta__underline {
    background: #fff;
}

/* Footer glass darkens too */
[data-mode="dark"] .site-footer {
    background-color: rgba(6, 10, 20, 0.65);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* ---- MODE: plaques ------------------------------------- */
[data-mode="plaques"] .section-eyebrow,
[data-mode="plaques"] .projects-hero .eyebrow,
[data-mode="plaques"] .services-head .eyebrow,
[data-mode="plaques"] .routes-head .eyebrow,
[data-mode="plaques"] .team-head .eyebrow,
[data-mode="plaques"] .contact-hero .eyebrow,
[data-mode="plaques"] .venues-section .eyebrow,
[data-mode="plaques"] .hero__meta {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(10, 20, 40, 0.1);
    text-shadow: none;
}

[data-mode="plaques"] .section-title,
[data-mode="plaques"] .projects-hero h1,
[data-mode="plaques"] .services-head h2,
[data-mode="plaques"] .routes-head h2,
[data-mode="plaques"] .team-head h2,
[data-mode="plaques"] .contact-hero h1,
[data-mode="plaques"] .hero__tagline,
[data-mode="plaques"] .statement p {
    display: inline-block;
    padding: 14px 34px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 36px rgba(10, 20, 40, 0.16);
}

[data-mode="plaques"] .section-intro,
[data-mode="plaques"] .projects-hero .lede,
[data-mode="plaques"] .routes-head p,
[data-mode="plaques"] .team-head p,
[data-mode="plaques"] .contact-hero .lead {
    display: inline-block;
    max-width: 640px;
    padding: 12px 26px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(10, 20, 40, 0.1);
}

/* ---- MODE: adaptive ------------------------------------ */
[data-mode="adaptive"] {
    --adaptive-fg: 20, 20, 20;
}

[data-mode="adaptive"] .section-eyebrow,
[data-mode="adaptive"] .section-title,
[data-mode="adaptive"] .section-intro,
[data-mode="adaptive"] .hero__tagline,
[data-mode="adaptive"] .hero__meta,
[data-mode="adaptive"] .hero__email,
[data-mode="adaptive"] .scroll-hint,
[data-mode="adaptive"] .projects-hero h1,
[data-mode="adaptive"] .projects-hero .lede,
[data-mode="adaptive"] .projects-hero .eyebrow,
[data-mode="adaptive"] .projects-hero .year-strip,
[data-mode="adaptive"] .contact-hero h1,
[data-mode="adaptive"] .contact-hero h1 em,
[data-mode="adaptive"] .contact-hero .lead,
[data-mode="adaptive"] .contact-hero .eyebrow,
[data-mode="adaptive"] .contact-hero .hero-whisper,
[data-mode="adaptive"] .services-head h2,
[data-mode="adaptive"] .services-head .eyebrow,
[data-mode="adaptive"] .routes-head h2,
[data-mode="adaptive"] .routes-head .eyebrow,
[data-mode="adaptive"] .routes-head p,
[data-mode="adaptive"] .team-head h2,
[data-mode="adaptive"] .team-head .eyebrow,
[data-mode="adaptive"] .team-head p,
[data-mode="adaptive"] .venues-section .eyebrow,
[data-mode="adaptive"] .statement p,
[data-mode="adaptive"] .statement h2 {
    color: rgb(var(--adaptive-fg));
    transition: color 0.3s ease;
}

/* ---- MODE: minimal ------------------------------------- */
[data-mode="minimal"] .section-title,
[data-mode="minimal"] .section-intro,
[data-mode="minimal"] .projects-hero h1,
[data-mode="minimal"] .projects-hero .lede,
[data-mode="minimal"] .services-head h2,
[data-mode="minimal"] .routes-head h2,
[data-mode="minimal"] .routes-head p,
[data-mode="minimal"] .team-head h2,
[data-mode="minimal"] .team-head p,
[data-mode="minimal"] .contact-hero h1,
[data-mode="minimal"] .contact-hero .lead,
[data-mode="minimal"] .hero__tagline,
[data-mode="minimal"] .statement p {
    display: none;
}

/* In minimal mode, eyebrows become slightly more prominent */
[data-mode="minimal"] .section-eyebrow,
[data-mode="minimal"] .projects-hero .eyebrow,
[data-mode="minimal"] .services-head .eyebrow,
[data-mode="minimal"] .routes-head .eyebrow,
[data-mode="minimal"] .team-head .eyebrow,
[data-mode="minimal"] .contact-hero .eyebrow,
[data-mode="minimal"] .venues-section .eyebrow {
    font-size: 14px;
    letter-spacing: 0.24em;
    opacity: 0.85;
}

/* ============================================================
   Mode toggle UI — bottom-center pill
   ============================================================ */
#mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 3px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(10, 20, 40, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #1a1a1a;
}

#mode-toggle button {
    border: none;
    background: transparent;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    color: inherit;
    font: inherit;
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

#mode-toggle button:hover {
    background: rgba(0, 0, 0, 0.06);
}

#mode-toggle button[aria-pressed="true"] {
    background: #0f1217;
    color: #fff;
}

#mode-toggle .mode-toggle__label {
    padding: 8px 10px 8px 14px;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.55;
    align-self: center;
    pointer-events: none;
}

@media (max-width: 640px) {
    #mode-toggle {
        font-size: 11px;
        bottom: 12px;
    }
    #mode-toggle button {
        padding: 6px 10px;
    }
    #mode-toggle .mode-toggle__label {
        display: none;
    }
}
