/* ==========================================================================
   Aura + Earth — Big Bang Visibility Showcase
   Self-contained stylesheet. No dependencies on site.css or any shared file.
   ========================================================================== */


/* ==========================================================================
   RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img,
picture {
    display: block;
    max-width: 100%;
}

blockquote,
figure {
    margin: 0;
    padding: 0;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}


/* ==========================================================================
   CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Colors */
    --color-warm-sand:       #F2EBE3;
    --color-sage:            #4F6652;
    --color-terracotta:      #B07D62;
    --color-terracotta-dark: #9A6B52;
    --color-espresso:        #3C3C3C;

    /* Spacing — section vertical padding */
    --space-section:     100px;
    --space-section-md:   56px;
    --space-section-sm:   40px;

    /* Spacing — container horizontal padding */
    --space-container:    48px;
    --space-container-md: 28px;
    --space-container-sm: 20px;

    /* Visual */
    --radius:       16px;
    --shadow-soft:  0 4px 24px rgba(60, 60, 60, 0.08);
    --shadow-deep:  0 8px 32px rgba(60, 60, 60, 0.12);

    /* Nav geometry — used to position silo bar below the pill */
    --pill-offset-top: 24px;
    --pill-height:     48px;
    --silo-top:        calc(var(--pill-offset-top) + var(--pill-height) + 8px);
}


/* ==========================================================================
   BASE
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-warm-sand);
    color: var(--color-espresso);
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* No padding-top — floating pill overlaps content by design */
}


/* ==========================================================================
   FOCUS STATES
   ========================================================================== */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-terracotta);
    outline-offset: 2px;
}


/* ==========================================================================
   SKIP LINK
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -100%;
    left: 8px;
    z-index: 1000;
    padding: 8px 16px;
    background: var(--color-warm-sand);
    color: var(--color-espresso);
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.skip-link:focus {
    top: 8px;
}


/* ==========================================================================
   PRIMARY NAVIGATION — FLOATING PILL
   ========================================================================== */

.nav-pill {
    position: fixed;
    top: var(--pill-offset-top);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    border-radius: 9999px;
    background: rgba(242, 235, 227, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(60, 60, 60, 0.08);
}

.nav-pill__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 12px 32px;
}

.nav-pill__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-pill__link {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-espresso);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-pill__link:hover {
    color: var(--color-terracotta);
}

.nav-pill__cta {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-warm-sand);
    background: var(--color-terracotta);
    text-decoration: none;
    border-radius: 9999px;
    padding: 10px 20px;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.nav-pill__cta:hover {
    background: var(--color-terracotta-dark);
}

/* Hamburger — hidden on desktop, shown on mobile */
.nav-pill__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-pill__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-espresso);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Hamburger bars rotate into X when menu is open */
.nav-pill__hamburger[aria-expanded="true"] .nav-pill__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-pill__hamburger[aria-expanded="true"] .nav-pill__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-pill__hamburger[aria-expanded="true"] .nav-pill__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   SILO NAVIGATION BAR
   ========================================================================== */

@keyframes silo-slide-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.silo-bar {
    position: fixed;
    top: var(--silo-top);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 8px 24px;
    border-radius: 9999px;
    background: rgba(242, 235, 227, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(60, 60, 60, 0.08);
    white-space: nowrap;
    animation: silo-slide-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.silo-bar__link {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: rgba(60, 60, 60, 0.5);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 4px 8px;
    border-radius: 9999px;
}

.silo-bar__link:hover,
.silo-bar__link:focus {
    color: var(--color-espresso);
    background-color: rgba(60, 60, 60, 0.06);
}

/* Current page — non-interactive; visually distinct from nav links */
.silo-bar__current {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: var(--color-terracotta);
}

/* Default: show full text, hide short text */
.silo-bar__short {
    display: none;
}

.silo-bar__full {
    display: inline;
}


/* ==========================================================================
   MOBILE OVERLAY MENU
   Toggled by aura-earth.js via the [hidden] attribute.
   ========================================================================== */

/* Hidden by default — enforces display: none even after browser reset */
.mobile-overlay[hidden] {
    display: none;
}

/* When JS removes [hidden], overlay fades in */
.mobile-overlay:not([hidden]) {
    display: flex;
    animation: overlayIn 0.3s ease forwards;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--color-warm-sand);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-overlay__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Close button is always an X */
.mobile-overlay__bar {
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--color-espresso);
    border-radius: 1px;
}

.mobile-overlay__bar:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-overlay__bar:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-overlay__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-overlay__link {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 36px;
    color: var(--color-espresso);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-overlay__link:hover,
.mobile-overlay__link:focus {
    color: var(--color-terracotta);
}

.mobile-overlay__cta {
    display: inline-block;
    margin-top: 48px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--color-warm-sand);
    background: var(--color-terracotta);
    text-decoration: none;
    border-radius: 9999px;
    padding: 14px 28px;
    transition: background 0.3s ease;
}

.mobile-overlay__cta:hover {
    background: var(--color-terracotta-dark);
}


/* ==========================================================================
   SECTION 1: HERO
   ========================================================================== */

.hero {
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: 40px;
    align-items: center;
    min-height: 80vh;
    background: var(--color-warm-sand);
    padding: var(--space-section) var(--space-container);
}

.hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__headline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 64px;
    line-height: 1.0;
    color: var(--color-espresso);
    margin: 0 0 28px 0;
    letter-spacing: -0.01em;
}

.hero__sub {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(60, 60, 60, 0.7);
    margin: 0;
    max-width: 420px;
}

/* Arched frame clips the image into a rounded-top shape */
.hero__image-wrap {
    border-radius: 50% 50% 0 0 / 60% 60% 0 0;
    overflow: hidden;
    height: 70vh;
    min-height: 480px;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ==========================================================================
   SECTION 2: BENTO GALLERY
   No left padding on section — the wide image fills to the viewport left edge.
   Right padding aligns the right column with all other sections.
   ========================================================================== */

.gallery {
    background: var(--color-warm-sand);
    padding: var(--space-section) 0;
    overflow: hidden;
}

.gallery__heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 40px;
    color: var(--color-espresso);
    text-align: center;
    padding: 0 var(--space-container);
    margin-bottom: 48px;
}

.gallery__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 280px 280px;
    grid-template-areas:
        "wide square"
        "wide tall";
    gap: 16px;
    padding-right: var(--space-container);
}

.gallery__item {
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* <picture> sits between the grid item and the img — it must fill the item
   so that img { height: 100% } resolves against the grid row height, not
   the image's natural dimensions. */
.gallery__item picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* Image zoom on hover — contained within item's overflow: hidden + border-radius */
.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery__item:hover .gallery__image {
    transform: scale(1.02);
}

.gallery__item--wide {
    grid-area: wide;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.gallery__item--square {
    grid-area: square;
    border-radius: var(--radius);
}

.gallery__item--tall {
    grid-area: tall;
    border-radius: var(--radius);
}


/* ==========================================================================
   SECTION 3: FEATURE IMAGE
   ========================================================================== */

.feature-image {
    position: relative;
    height: 60vh;
    min-height: 420px;
    overflow: hidden;
}

/* <picture> must fill the section so img { height: 100% } resolves correctly */
.feature-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.feature-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-image__caption {
    position: absolute;
    bottom: 24px;
    right: var(--space-container);
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: rgba(242, 235, 227, 0.8);
    letter-spacing: 0.04em;
}


/* ==========================================================================
   SECTION 4: CREDENTIALS
   ========================================================================== */

.credentials {
    background: var(--color-warm-sand);
    padding: 64px var(--space-container);
    border-top: 1px solid rgba(60, 60, 60, 0.08);
    border-bottom: 1px solid rgba(60, 60, 60, 0.08);
}

.credentials__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
}

.credentials__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.credentials__number {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 52px;
    line-height: 1;
    color: var(--color-espresso);
}

.credentials__label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: rgba(60, 60, 60, 0.5);
    letter-spacing: 0.04em;
}

.credentials__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-terracotta);
    flex-shrink: 0;
}


/* ==========================================================================
   SECTION 5: TESTIMONIAL
   ========================================================================== */

.testimonial {
    background: var(--color-warm-sand);
    padding: 80px var(--space-container);
    text-align: center;
}

.testimonial__inner {
    max-width: 720px;
    margin: 0 auto;
}

.testimonial__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-terracotta);
    margin: 0 auto 32px auto;
}

.testimonial__quote {
    margin: 0;
    padding: 0;
}

.testimonial__quote p {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 32px;
    line-height: 1.4;
    color: var(--color-espresso);
    margin: 0 0 28px 0;
}

.testimonial__attribution {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: rgba(60, 60, 60, 0.5);
}


/* ==========================================================================
   SECTION 6: PROCESS
   ========================================================================== */

.process {
    background: var(--color-warm-sand);
    padding: var(--space-section) var(--space-container);
}

.process__cards {
    display: flex;
    gap: 24px;
}

.process__card {
    flex: 1;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #FFFFFF 0%, #F2EBE3 100%);
    box-shadow: var(--shadow-soft);
    padding: 32px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.process__card:hover {
    box-shadow: var(--shadow-deep);
}

.process__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-terracotta);
    margin: 0 auto 20px auto;
}

.process__title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--color-espresso);
    margin: 0 0 16px 0;
}

.process__desc {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(60, 60, 60, 0.7);
    margin: 0;
}


/* ==========================================================================
   SECTION 7: CLOSER
   ========================================================================== */

.closer {
    background: var(--color-sage);
    padding: 100px var(--space-container);
    text-align: center;
}

.closer__inner {
    max-width: 720px;
    margin: 0 auto;
}

.closer__headline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.2;
    color: var(--color-warm-sand);
    margin: 0 0 24px 0;
}

/* Visual-only CTA — no link behaviour, underline offset animates on hover */
.closer__cta {
    display: inline-block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--color-warm-sand);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: default;
    transition: text-underline-offset 0.3s ease;
}

.closer__cta:hover {
    text-underline-offset: 6px;
}

.closer__founder {
    margin-top: 32px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: rgba(242, 235, 227, 0.9);
}


/* ==========================================================================
   FOOTER ATTRIBUTION
   ========================================================================== */

.attribution {
    background: var(--color-warm-sand);
    padding: 24px var(--space-container);
    text-align: center;
}

.attribution__text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: rgba(60, 60, 60, 0.3);
    margin: 0;
    letter-spacing: 0.04em;
}

.attribution__link {
    color: rgba(60, 60, 60, 0.3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.attribution__link:hover,
.attribution__link:focus {
    color: rgba(60, 60, 60, 0.5);
}


/* ==========================================================================
   RESPONSIVE — 1024px (tablet landscape)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero {
        padding: var(--space-section-md) var(--space-container-md);
        gap: 28px;
    }

    .hero__headline {
        font-size: 52px;
    }

    .gallery {
        padding: var(--space-section-md) 0;
    }

    .gallery__heading {
        padding: 0 var(--space-container-md);
        font-size: 36px;
    }

    .gallery__grid {
        padding-right: var(--space-container-md);
    }

    .feature-image {
        height: 50vh;
    }

    .credentials {
        padding: 48px var(--space-container-md);
    }

    .credentials__inner {
        gap: 40px;
    }

    .credentials__number {
        font-size: 44px;
    }

    .testimonial {
        padding: 64px var(--space-container-md);
    }

    .process {
        padding: var(--space-section-md) var(--space-container-md);
    }

    .closer {
        padding: var(--space-section-md) var(--space-container-md);
    }

    .closer__headline {
        font-size: 36px;
    }

    .attribution {
        padding: 24px var(--space-container-md);
    }
}


/* ==========================================================================
   RESPONSIVE — 768px (tablet portrait / mobile)
   ========================================================================== */

@media (max-width: 768px) {
    /* Pill nav: hide text links, show CTA + hamburger */
    .nav-pill__links {
        display: none;
    }

    .nav-pill__hamburger {
        display: flex;
    }

    .nav-pill__inner {
        gap: 16px;
        padding: 10px 20px;
    }

    /* Hero: stack vertically — image on top, text below */
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: var(--space-section-md) var(--space-container-sm);
        gap: 32px;
    }

    .hero__image-wrap {
        order: -1;
        height: 50vh;
        min-height: 300px;
    }

    .hero__headline {
        font-size: 44px;
    }

    .hero__sub {
        max-width: 100%;
    }

    /* Gallery: single column, full padding restored, no breakout */
    .gallery {
        padding: var(--space-section-md) var(--space-container-sm);
        overflow: visible;
    }

    .feature-image {
        height: 45vh;
        min-height: 280px;
    }

    .feature-image__caption {
        right: var(--space-container-sm);
    }

    .credentials {
        padding: 48px var(--space-container-sm);
    }

    .credentials__inner {
        gap: 24px;
    }

    .credentials__number {
        font-size: 40px;
    }

    .gallery__heading {
        padding: 0;
        font-size: 32px;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
        grid-template-rows: 240px 240px 240px;
        grid-template-areas: none;
        padding-right: 0;
    }

    .gallery__item--wide,
    .gallery__item--square,
    .gallery__item--tall {
        grid-area: auto;
        border-radius: var(--radius);
        height: 240px;
    }

    /* Testimonial */
    .testimonial {
        padding: var(--space-section-sm) var(--space-container-sm);
    }

    .testimonial__quote p {
        font-size: 24px;
    }

    /* Process: stack cards vertically */
    .process {
        padding: var(--space-section-md) var(--space-container-sm);
    }

    .process__cards {
        flex-direction: column;
        gap: 16px;
    }

    /* Closer */
    .closer {
        padding: var(--space-section-sm) var(--space-container-sm);
    }

    .closer__headline {
        font-size: 28px;
    }

    /* Attribution */
    .attribution {
        padding: 24px var(--space-container-sm);
    }
}


/* ==========================================================================
   RESPONSIVE — 480px (small mobile)
   ========================================================================== */

@media (max-width: 480px) {
    /* Silo bar: swap full text for abbreviated */
    .silo-bar__full {
        display: none;
    }

    .silo-bar__short {
        display: inline;
    }

    .hero__headline {
        font-size: 36px;
    }

    .feature-image {
        height: 40vh;
        min-height: 240px;
    }

    .credentials__inner {
        gap: 16px;
    }

    .credentials__number {
        font-size: 36px;
    }

    .closer__headline {
        font-size: 26px;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    /* Disable gallery image zoom on hover */
    .gallery__item:hover .gallery__image {
        transform: none;
    }
}


/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
    .nav-pill,
    .silo-bar,
    .mobile-overlay {
        display: none;
    }

    .hero {
        min-height: auto;
        break-inside: avoid;
    }
}
