:root {
    --atm-bg: #020202;
    --atm-surface: rgba(255, 255, 255, 0.04);
    --atm-surface-strong: rgba(255, 255, 255, 0.08);
    --atm-border: rgba(255, 255, 255, 0.14);
    --atm-text: #f5f0e7;
    --atm-muted: rgba(245, 240, 231, 0.72);
    --atm-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] {
    color-scheme: dark;
}

body.atm-page {
    background:
        radial-gradient(circle at top left, rgba(184, 143, 76, 0.16), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #050505 0%, #080808 36%, #030303 100%);
    color: var(--atm-text);
}

.atm-page .header {
    background: rgba(5, 5, 5, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.atm-page .theme-toggle {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.05);
    color: #f8f3ea;
}

.atm-page .theme-toggle:hover,
.atm-page .theme-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.atm-page .a11y-nav-btn {
    background: transparent url("Accessibility Gradient.png") center/cover no-repeat;
    border: 0;
    color: transparent;
}

.atm-page .a11y-nav-btn:hover,
.atm-page .a11y-nav-btn:focus-visible {
    filter: brightness(1.06);
}

.atm-page .logo-img-light {
    opacity: 1;
}

.atm-page .logo-img-dark {
    opacity: 0;
}

.atm-page .nav-menu a,
.atm-page .nav-mega-toggle,
.atm-page .hamburger,
.atm-page .hamburger span,
.atm-page .tm-mark {
    color: #f8f3ea;
}

.atm-main {
    overflow: clip;
}

.atm-hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 0 3rem;
    isolation: isolate;
}

.atm-hero::before,
.atm-hero::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(0);
}

.atm-hero::before {
    width: min(44vw, 520px);
    height: min(44vw, 520px);
    top: 15%;
    left: -9%;
    background: radial-gradient(circle, rgba(176, 130, 62, 0.24), transparent 72%);
    animation: atmFloat 14s ease-in-out infinite;
}

.atm-hero::after {
    width: min(38vw, 420px);
    height: min(38vw, 420px);
    right: -7%;
    bottom: 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.11), transparent 74%);
    animation: atmFloat 18s ease-in-out infinite reverse;
}

.atm-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.4rem;
    justify-items: center;
    text-align: center;
}

.atm-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.44em;
    font-size: 0.72rem;
    color: var(--atm-muted);
}

.atm-title {
    margin: 0;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.atm-subtitle {
    max-width: 34rem;
    margin: 0;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.75;
    color: var(--atm-muted);
}

.atm-scroll {
    margin-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.2rem;
    border: 1px solid var(--atm-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--atm-text);
    text-decoration: none;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.atm-scroll:hover,
.atm-scroll:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
}

.atm-scroll-icon {
    font-size: 1rem;
}

.atm-gallery-section {
    padding: 2rem 0 6rem;
}

.atm-gallery-head {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 44rem;
}

.atm-gallery-label {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.75rem;
}

.atm-gallery-head h2 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 0.94;
}

.atm-gallery-head p {
    margin: 0;
    color: var(--atm-muted);
    line-height: 1.8;
}

.atm-gallery-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr;
    gap: 1.15rem;
}

.atm-gallery-card {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--atm-surface);
    box-shadow: var(--atm-shadow);
}

.atm-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 550ms ease;
}

.atm-gallery-card:hover img,
.atm-gallery-card:focus-within img {
    transform: scale(1.03);
}

.atm-gallery-card-hero {
    grid-column: span 2;
    min-height: 520px;
}

.atm-gallery-card-tall {
    grid-row: span 2;
    min-height: 520px;
}

.atm-gallery-card-wide {
    grid-column: span 2;
    min-height: 280px;
}

.atm-gallery-card-square {
    min-height: 280px;
}

.atm-gallery-card-portrait {
    min-height: 320px;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 700ms ease, transform 700ms ease;
}

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

html[data-contrast="high"] .atm-page {
    background: #000;
}

html[data-contrast="high"] .atm-page .header,
html[data-contrast="high"] .atm-scroll,
html[data-contrast="high"] .atm-gallery-card {
    background: #000;
    border-color: #fff;
    box-shadow: none;
}

html[data-contrast="high"] .atm-page .theme-toggle,
html[data-contrast="high"] .atm-page .a11y-nav-btn {
    background: #000;
    border-color: #fff;
    color: #fff;
}

html[data-contrast="high"] .atm-page .a11y-nav-btn {
    background: transparent url("Accessibility Gradient.png") center/cover no-repeat !important;
    border: 0 !important;
    color: transparent !important;
}

html[data-contrast="high"] .atm-page .a11y-nav-btn::before {
    content: none !important;
}

html[data-contrast="high"] .atm-page .nav-menu,
html[data-contrast="high"] .atm-page .nav-menu > li,
html[data-contrast="high"] .atm-page .nav-mega,
html[data-contrast="high"] .atm-page .nav-dropdown,
html[data-contrast="high"] .atm-page .nav-menu a,
html[data-contrast="high"] .atm-page .nav-menu .nav-mega-toggle,
html[data-contrast="high"] .atm-page .nav-menu > li > .nav-dropdown-toggle {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-contrast="high"] .atm-page .navbar,
html[data-contrast="high"] .atm-page .nav-cluster,
html[data-contrast="high"] .atm-page .nav-cluster.active,
html[data-contrast="high"] .atm-page .nav-mega-panel,
html[data-contrast="high"] .atm-page .nav-mega-panel-home,
html[data-contrast="high"] .atm-page .nav-dropdown-panel,
html[data-contrast="high"] .atm-page .atm-hero-copy,
html[data-contrast="high"] .atm-page .atm-scroll,
html[data-contrast="high"] .atm-page .atm-gallery-head {
    background: #000 !important;
    background-image: none !important;
    color: #fff !important;
}

html[data-contrast="high"] .atm-page p,
html[data-contrast="high"] .atm-page h1,
html[data-contrast="high"] .atm-page h2,
html[data-contrast="high"] .atm-page h3,
html[data-contrast="high"] .atm-page h4,
html[data-contrast="high"] .atm-page h5,
html[data-contrast="high"] .atm-page h6,
html[data-contrast="high"] .atm-page li,
html[data-contrast="high"] .atm-page span,
html[data-contrast="high"] .atm-page strong,
html[data-contrast="high"] .atm-page a,
html[data-contrast="high"] .atm-page .nav-mega-label,
html[data-contrast="high"] .atm-page .nav-mega-link,
html[data-contrast="high"] .atm-page .nav-dropdown-item {
    color: #fff !important;
}

html[data-contrast="high"] .atm-page .atm-hero,
html[data-contrast="high"] .atm-page .atm-gallery-card img,
html[data-contrast="high"] .atm-page .atm-hero-media,
html[data-contrast="high"] .atm-page .atm-hero-media img {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

@keyframes atmFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 18px, 0) scale(1.04);
    }
}

@media (max-width: 1100px) {
    .atm-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .atm-gallery-card-hero,
    .atm-gallery-card-wide,
    .atm-gallery-card-tall {
        grid-column: auto;
        grid-row: auto;
        min-height: 360px;
    }
}

@media (max-width: 720px) {
    .atm-hero {
        padding-top: 6rem;
    }

    .atm-title {
        font-size: clamp(2.4rem, 15vw, 4.6rem);
    }

    .atm-gallery-grid {
        grid-template-columns: 1fr;
    }

    .atm-gallery-card,
    .atm-gallery-card-hero,
    .atm-gallery-card-wide,
    .atm-gallery-card-square,
    .atm-gallery-card-portrait,
    .atm-gallery-card-tall {
        min-height: 240px;
    }
}
