@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,500;6..96,600;6..96,700&family=Cormorant+Garamond:wght@500;600;700&family=Great+Vibes&family=Manrope:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --content-max: 1520px;
    --bg: #f2ede5;
    --bg-warm: #f9f2e8;
    --ink: #20232b;
    --muted: #59606f;
    --muted-soft: #737c8f;
    --deep: #10141c;
    --accent: #d27b44;
    --accent-soft: #efc4a9;
    --line: rgba(24, 28, 35, 0.14);
    --line-strong: rgba(24, 28, 35, 0.22);
    --card: rgba(253, 250, 245, 0.84);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow-soft: 0 14px 35px rgba(16, 20, 28, 0.12);
    --shadow-strong: 0 28px 72px rgba(16, 20, 28, 0.22);
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --font-heading: 'Bodoni Moda', Georgia, serif;
    --font-script: 'Great Vibes', cursive;
    --gallery-thumb-min-width: 220px;
    --gallery-thumb-max-width: 340px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.68;
    font-size: 16px;
    background:
        radial-gradient(circle at 12% -10%, #fff8ed 0%, transparent 36%),
        radial-gradient(circle at 92% 15%, #ebdccf 0%, transparent 34%),
        linear-gradient(180deg, #f5f1e9 0%, #f0e8dc 56%, #ece4d8 100%);
}

body.site-loading {
    overflow: hidden;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 16% 88%, rgba(16, 20, 28, 0.08) 0%, transparent 38%),
        radial-gradient(circle at 84% 78%, rgba(210, 123, 68, 0.11) 0%, transparent 28%);
    transform: translate3d(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px), 0);
    transition: transform 0.35s ease-out;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 18%, rgba(127, 159, 213, 0.2) 0%, rgba(127, 159, 213, 0) 38%),
        radial-gradient(circle at 82% 80%, rgba(210, 123, 68, 0.2) 0%, rgba(210, 123, 68, 0) 35%),
        linear-gradient(145deg, #0f141d 0%, #1a2231 62%, #2e2420 100%);
    transition: opacity 0.72s ease, visibility 0.72s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader-inner {
    display: grid;
    justify-items: center;
    gap: 0.68rem;
    text-align: center;
    position: relative;
    min-width: min(90vw, 420px);
    padding: 2.2rem 1rem 1.2rem;
}

.site-loader-orbits {
    position: absolute;
    inset: -8px auto auto 50%;
    width: 170px;
    height: 170px;
    transform: translateX(-50%);
    pointer-events: none;
}

.site-loader-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(233, 241, 255, 0.24);
}

.site-loader-orbit-a {
    animation: loaderOrbitA 3.4s linear infinite;
}

.site-loader-orbit-b {
    transform: scale(0.82);
    border-color: rgba(241, 207, 186, 0.28);
    animation: loaderOrbitB 2.6s linear infinite;
}

.site-loader-orbit-c {
    transform: scale(0.62);
    border-color: rgba(167, 186, 217, 0.4);
    animation: loaderOrbitC 1.8s linear infinite;
}

.site-loader-mark {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
    animation: loaderPulse 2.3s ease-in-out infinite;
}

.site-loader-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-loader-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 0.05em;
    color: #f6f3ed;
}

.site-loader-subtitle {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: rgba(227, 236, 250, 0.82);
}

.site-loader-line {
    width: min(260px, 84vw);
    height: 2px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
}

.site-loader-line span {
    display: block;
    width: 42%;
    height: 100%;
    background: linear-gradient(90deg, #f0ddd2 0%, #ffffff 100%);
    animation: loaderSweep 1.2s ease-in-out infinite;
}

a {
    color: inherit;
}

.container {
    width: min(var(--content-max), calc(100% - 2rem));
    margin-inline: auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(242, 237, 229, 0.9);
    backdrop-filter: blur(14px);
}

.topbar-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 28%, #ffffff 0%, #ece7df 82%);
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 6px 18px rgba(17, 22, 31, 0.22);
}

.logo-variant {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-dark {
    display: none;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.62rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.38rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.46rem 0.82rem;
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.24s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--deep);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.62);
}

.main-nav .nav-admin {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.66);
}

.theme-toggle {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.36rem 0.62rem;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f0c99c, #d27b44);
    box-shadow: 0 0 0 2px rgba(210, 123, 68, 0.2);
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.18rem;
    background: rgba(255, 255, 255, 0.72);
}

.lang-option {
    text-decoration: none;
    border-radius: 999px;
    padding: 0.25rem 0.52rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-option:hover {
    color: var(--deep);
    background: rgba(255, 255, 255, 0.75);
}

.lang-option.active {
    color: #fff;
    background: linear-gradient(128deg, #1b212c 0%, #3b4253 100%);
}

.flash-zone {
    margin-top: 1rem;
}

.flash {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.flash-success {
    background: #edf7ea;
    border-color: #b7ddaa;
}

.flash-error {
    background: #fdecdf;
    border-color: #efb798;
}

.staging-banner {
    width: 100%;
    padding: 0.56rem 1rem;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff7ef;
    background: linear-gradient(90deg, #8f2f2f 0%, #b8572b 48%, #8f2f2f 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

main {
    padding-block: 1.7rem 4.4rem;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    align-items: stretch;
}

.hero-copy,
.hero-panel {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.hero-copy {
    padding: 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.68) 0%, rgba(253, 250, 245, 0.88) 100%);
}

.hero-copy::after {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    right: -36px;
    top: -34px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(210, 123, 68, 0.2) 0%, rgba(210, 123, 68, 0) 72%);
    pointer-events: none;
}

.hero-signature {
    margin: 0;
    font-family: var(--font-script);
    font-size: clamp(1.95rem, 4vw, 2.7rem);
    color: #665f5a;
    line-height: 1;
    opacity: 0.84;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 700;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin: 0;
    line-height: 1.1;
}

h1 {
    margin-top: 0.24rem;
    font-size: clamp(2.15rem, 4.6vw, 3.9rem);
    letter-spacing: 0.01em;
}

.hero-tagline {
    margin: 0.72rem 0 0;
    color: #262c38;
    font-size: clamp(1.04rem, 2.3vw, 1.25rem);
}

.hero-lead {
    margin-top: 0.7rem;
    max-width: 58ch;
    color: #3f4758;
    font-size: 1.03rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.hero-metrics div {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    background: rgba(255, 255, 255, 0.58);
}

.hero-metrics strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: #1f2734;
}

.hero-metrics span {
    color: var(--muted-soft);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-philosophy {
    margin-top: 1.05rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    padding: 0.72rem 0.82rem;
    max-width: 62ch;
}

.hero-philosophy span {
    display: inline-block;
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    font-weight: 700;
}

.hero-philosophy p {
    margin: 0.34rem 0 0;
    color: #3f4758;
    font-size: 0.92rem;
}

.btn-primary,
.btn-secondary,
button.btn-ghost,
.btn-ghost,
button.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.72rem 1.18rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary,
button.btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #1a1f2a 0%, #3a4152 100%);
    box-shadow: 0 10px 24px rgba(16, 20, 28, 0.28);
}

.btn-secondary {
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
}

.btn-ghost,
button.btn-ghost {
    border: 1px dashed rgba(26, 31, 42, 0.34);
    color: #2a3342;
    background: rgba(255, 255, 255, 0.42);
}

.btn-primary:hover,
.btn-secondary:hover,
button.btn-ghost:hover,
.btn-ghost:hover,
button.btn-primary:hover {
    transform: translateY(-2px);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 1.45rem 1.55rem;
    color: #f8f1ea;
    background: linear-gradient(160deg, #141924 0%, #242b3c 62%, #3f342d 100%);
    box-shadow: var(--shadow-strong);
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.1) 0%, transparent 55%);
    pointer-events: none;
}

.hero-panel-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    opacity: 0.72;
}

.hero-panel h2 {
    margin-top: 0.35rem;
    font-size: clamp(2rem, 4vw, 3.05rem);
}

.hero-panel p {
    max-width: 34ch;
    margin-top: 0.55rem;
    color: rgba(248, 241, 234, 0.86);
}

.valais-emblem {
    margin-top: 1rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    overflow: hidden;
    min-height: 210px;
    background: #191d27;
    box-shadow: 0 10px 28px rgba(8, 12, 20, 0.35);
}

.valais-flag {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    filter: contrast(0.95) saturate(0.88);
}

.valais-sheep {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 212px;
    max-width: 55%;
    transform: translate(-50%, -52%);
    z-index: 2;
}

.hero-panel-lines {
    margin-top: 1rem;
    display: grid;
    gap: 0.38rem;
}

.hero-panel-lines span {
    display: block;
    width: 100%;
    max-width: 200px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.hero-panel-lines span:nth-child(2) {
    max-width: 150px;
}

.hero-panel-lines span:nth-child(3) {
    max-width: 100px;
}

.gallery-zone,
.highlights-zone {
    margin-top: 1.65rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background:
        radial-gradient(circle at 16% 8%, rgba(120, 136, 166, 0.14) 0%, rgba(120, 136, 166, 0) 34%),
        linear-gradient(160deg, #10141b 0%, #0d1118 58%, #0b0f15 100%);
    box-shadow: 0 26px 54px rgba(5, 9, 14, 0.45);
}

.gallery-zone .eyebrow,
.highlights-zone .eyebrow {
    color: #8ea9d7;
}

.gallery-zone .section-head h2,
.highlights-zone .section-head h2 {
    color: #f2f6ff;
}

.gallery-zone .section-head::after,
.highlights-zone .section-head::after {
    background: linear-gradient(90deg, rgba(142, 169, 215, 0.85), rgba(142, 169, 215, 0));
}

.gallery-zone .section-head h2::after,
.highlights-zone .section-head h2::after {
    background: linear-gradient(90deg, rgba(142, 169, 215, 0.95), rgba(142, 169, 215, 0.12));
}

.gallery-zone .tab-control {
    border-color: rgba(255, 255, 255, 0.22);
    color: #d8e3f6;
    background: rgba(255, 255, 255, 0.06);
}

.gallery-zone .tab-control:hover,
.gallery-zone .tab-control.active {
    color: #ffffff;
    background: linear-gradient(128deg, #2b3a55 0%, #556f9a 100%);
    box-shadow: 0 10px 20px rgba(7, 11, 18, 0.45);
}

.gallery-zone .panel-head h3 {
    color: #f0f4fc;
}

.gallery-zone .panel-head p {
    color: #c2cee2;
    font-size: 0.98rem;
}

.gallery-zone .empty-state,
.highlights-zone .empty-state {
    border-color: rgba(255, 255, 255, 0.2);
    color: #bdc9de;
    background: rgba(255, 255, 255, 0.04);
}

.section-head {
    margin: 3rem 0 1rem;
    position: relative;
    padding-bottom: 0.35rem;
}

.section-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 84px;
    height: 1px;
    background: linear-gradient(90deg, rgba(210, 123, 68, 0.75), rgba(210, 123, 68, 0));
}

.section-head h2 {
    margin-top: 0.35rem;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    position: relative;
    display: inline-block;
    padding-bottom: 0.18rem;
    letter-spacing: 0.01em;
}

.section-head h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.08rem;
    width: 62%;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 123, 68, 0.85), rgba(212, 123, 68, 0.08));
    transform: scaleX(0.28);
    transform-origin: left center;
    opacity: 0.35;
    transition: transform 0.75s ease, opacity 0.75s ease;
}

.section-head.revealed h2::after,
[data-reveal].revealed .section-head h2::after {
    transform: scaleX(1);
    opacity: 0.9;
}

.tab-controls {
    display: flex;
    gap: 0.62rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tab-control {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 0.55rem 0.92rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #404a5b;
    cursor: pointer;
    transition: all 0.22s ease;
}

.tab-control:hover,
.tab-control.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(128deg, #1b212c 0%, #3b4253 100%);
    box-shadow: 0 8px 20px rgba(24, 28, 38, 0.25);
}

.tab-panel {
    display: none;
    animation: fadePanel 0.42s ease;
}

.tab-panel.active {
    display: block;
}

.panel-head {
    margin-bottom: 1rem;
}

.panel-head p {
    margin: 0.24rem 0 0;
    color: #4a5262;
    font-size: 0.98rem;
}

.panel-head h3 {
    letter-spacing: 0.02em;
}

.panel-astro-link {
    display: inline-flex;
    margin: 0.2rem 0 0.35rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #d9a886;
    text-decoration: none;
    border-bottom: 1px solid rgba(217, 168, 134, 0.42);
    padding-bottom: 0.16rem;
}

.panel-astro-link:hover {
    color: #f2cfb5;
    border-color: rgba(242, 207, 181, 0.85);
}

.photo-grid {
    display: grid;
    gap: 0.82rem;
    grid-template-columns: repeat(auto-fit, minmax(var(--gallery-thumb-min-width, 220px), var(--gallery-thumb-max-width, 340px)));
    justify-content: center;
}

.photo-grid .photo-card {
    grid-column: auto;
    aspect-ratio: 4 / 5;
}

.photo-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0a0f16;
    min-height: auto;
    transform: translateY(18px);
    opacity: 0;
    animation: revealCard 0.65s ease forwards;
    animation-delay: calc(var(--stagger-index, 0) * 55ms);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, filter 0.28s ease;
}

.photo-card:hover {
    transform: translateY(-2px) scale(1.003);
    border-color: rgba(172, 195, 233, 0.44);
    box-shadow: 0 16px 30px rgba(2, 6, 11, 0.56);
}

.photo-trigger {
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    position: relative;
    cursor: zoom-in;
}

.photo-trigger::after,
.recent-tile::after {
    content: var(--photo-watermark-text, 'AlpenLuce');
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    opacity: 0.92;
    pointer-events: none;
    z-index: 2;
}

.photo-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 46%;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.photo-overlay {
    position: absolute;
    left: 10px;
    bottom: 10px;
    color: rgba(241, 246, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.58rem;
    font-weight: 500;
    padding: 0.2rem 0.44rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 12, 18, 0.5);
    opacity: 0.56;
    transition: opacity 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.photo-trigger:hover img {
    transform: scale(1.05);
    filter: saturate(1.08);
}

.photo-trigger:hover .photo-overlay {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(8, 12, 18, 0.72);
}

.highlights {
    margin-top: 2.3rem;
}

.recent-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.72rem;
}

.recent-tile {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    background: #0a0f16;
    height: auto;
    aspect-ratio: 5 / 4;
    cursor: zoom-in;
    position: relative;
    transform: translateY(18px);
    opacity: 0;
    animation: revealCard 0.65s ease forwards;
    animation-delay: calc(var(--stagger-index, 0) * 55ms);
}

@supports not (aspect-ratio: 1 / 1) {
    .photo-grid .photo-card {
        height: min(64vw, 420px);
    }

    .recent-tile {
        height: min(52vw, 290px);
    }
}

.recent-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
    transition: transform 0.4s ease;
}

.recent-tile:hover img {
    transform: scale(1.06);
}

.empty-state {
    margin: 0;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    padding: 0.96rem 1rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.55);
}

.page-intro {
    margin-top: 1rem;
}

.page-intro h1 {
    margin-top: 0.32rem;
}

.page-intro .lead {
    max-width: 64ch;
    color: var(--muted);
}

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

.about-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(253, 250, 245, 0.87);
    box-shadow: var(--shadow-soft);
    padding: 1.35rem;
}

.about-card p {
    margin-bottom: 0;
}

.about-card blockquote {
    margin: 1rem 0 0;
    border-left: 3px solid var(--accent);
    padding-left: 0.82rem;
    color: #454c5b;
}

.timeline {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.9rem;
    padding: 0.92rem;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
}

.timeline-item span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #1a1f2a, #3b4253);
}

.contact-layout {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1rem;
}

.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(253, 250, 245, 0.87);
    box-shadow: var(--shadow-soft);
    padding: 1.24rem;
}

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

.legal-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(253, 250, 245, 0.9);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem;
}

.legal-card p {
    margin: 0.45rem 0 0;
    color: #3f4758;
}

.legal-card ul {
    margin: 0.6rem 0 0;
    padding-left: 1.1rem;
    color: #3f4758;
}

.legal-card li + li {
    margin-top: 0.35rem;
}

.legal-card a {
    color: #283043;
}

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

.astro-note {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(253, 250, 245, 0.86);
    box-shadow: var(--shadow-soft);
    padding: 1.12rem;
}

.astro-note h2 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.astro-note p {
    margin: 0;
    color: #4a5160;
}

.astro-gallery {
    margin-top: 1.15rem;
}

.astro-grid .photo-card {
    aspect-ratio: 3 / 4;
}

.astro-back-wrap {
    margin-top: 1.2rem;
}

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

.contact-form label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.88rem;
    color: #323946;
}

.contact-form input,
.contact-form textarea {
    font: inherit;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 0.68rem;
    background: rgba(255, 255, 255, 0.88);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.consent-line {
    display: flex !important;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.consent-line input[type='checkbox'] {
    margin-top: 0.2rem;
}

.consent-line a {
    color: #2f4f94;
}

.form-errors {
    margin-bottom: 0.8rem;
    border-radius: 10px;
    border: 1px solid #efb0b0;
    background: #fff1f1;
    color: #7f2d2d;
    padding: 0.68rem;
}

.form-errors p {
    margin: 0;
}

.form-status {
    margin: 0.3rem 0 0;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0.62rem 0.68rem;
    font-size: 0.88rem;
}

.form-status.success {
    border-color: #9fcead;
    background: #eefbf2;
    color: #255a37;
}

.form-status.error {
    border-color: #efb0b0;
    background: #fff1f1;
    color: #7f2d2d;
}

.site-footer {
    margin-top: 3.1rem;
    padding: 2.5rem 0 1.4rem;
    color: #f9f2eb;
    background:
        radial-gradient(circle at 15% 10%, rgba(241, 179, 140, 0.2) 0%, rgba(241, 179, 140, 0) 35%),
        linear-gradient(150deg, #111621 0%, #1c2331 46%, #322820 100%);
}

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

.site-footer h4 {
    font-size: 1.35rem;
}

.site-footer a {
    color: #f8d0b6;
}

.legal-links {
    margin-top: 0.9rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.legal-links a {
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.34rem 0.72rem;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legal-links a:hover {
    border-color: rgba(255, 255, 255, 0.52);
}

.copyright {
    width: min(var(--content-max), calc(100% - 2rem));
    margin: 1rem auto 0;
    font-size: 0.8rem;
    opacity: 0.86;
}

.site-version {
    width: min(var(--content-max), calc(100% - 2rem));
    margin: 0.35rem auto 0;
    font-size: 0.74rem;
    opacity: 0.72;
}

.live-edit-mode [data-live-ref] {
    position: relative;
}

.live-edit-pen {
    position: absolute;
    top: -10px;
    right: -10px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1f3d78, #2f5eb6);
    box-shadow: 0 8px 18px rgba(8, 18, 34, 0.35);
    z-index: 80;
    user-select: none;
}

.live-edit-pen:hover {
    filter: brightness(1.08);
}

.live-edit-panel {
    position: fixed;
    inset: auto 1rem 1rem auto;
    width: min(440px, calc(100vw - 2rem));
    z-index: 200;
    border: 1px solid rgba(30, 37, 53, 0.22);
    border-radius: 14px;
    padding: 0.9rem;
    background: rgba(250, 252, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 42px rgba(9, 16, 26, 0.28);
}

.live-edit-panel h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

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

.live-edit-grid label {
    display: grid;
    gap: 0.25rem;
    font-size: 0.79rem;
}

.live-edit-grid input,
.live-edit-grid select,
.live-edit-grid textarea {
    width: 100%;
    border: 1px solid rgba(33, 45, 69, 0.22);
    border-radius: 8px;
    padding: 0.42rem 0.5rem;
    font: inherit;
}

.live-edit-grid textarea {
    min-height: 78px;
    grid-column: 1 / -1;
    resize: vertical;
}

.live-edit-actions {
    margin-top: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.live-edit-actions button {
    border: 0;
    border-radius: 8px;
    padding: 0.44rem 0.7rem;
    cursor: pointer;
}

.live-edit-save {
    color: #fff;
    background: #23427f;
}

.live-edit-cancel {
    color: #273450;
    background: #e8edf8;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(31, 43, 63, 0.22) 0%, rgba(5, 7, 11, 0.96) 60%),
        linear-gradient(180deg, rgba(4, 6, 10, 0.92) 0%, rgba(2, 3, 6, 0.98) 100%);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.lightbox-content::after {
    content: var(--photo-watermark-text, 'AlpenLuce');
    position: absolute;
    right: clamp(14px, 2vw, 26px);
    bottom: clamp(14px, 2vh, 26px);
    font-size: 1.04rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    opacity: 0.94;
    pointer-events: none;
    z-index: 3;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.66);
}

.lightbox-meta {
    position: absolute;
    left: 14px;
    bottom: 12px;
    text-align: left;
    color: #f2f6ff;
    padding: 0.48rem 0.62rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 9, 14, 0.52);
    backdrop-filter: blur(6px);
}

.lightbox-meta h3 {
    font-size: 0.68rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.lightbox-meta p {
    margin: 0;
    font-size: 0.72rem;
    opacity: 0.8;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #e5edf9;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 1.35rem;
    backdrop-filter: blur(9px);
    transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    opacity: 0.78;
    z-index: 12;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.11);
}

.lightbox-close {
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
}

.lightbox-nav.prev {
    left: max(1rem, env(safe-area-inset-left));
}

.lightbox-nav.next {
    right: max(1rem, env(safe-area-inset-right));
}

.protected-media {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.62s ease, transform 0.62s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadePanel {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealCard {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loaderPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
    }
    50% {
        transform: scale(1.035);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
    }
}

@keyframes loaderOrbitA {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderOrbitB {
    from {
        transform: scale(0.82) rotate(360deg);
    }
    to {
        transform: scale(0.82) rotate(0deg);
    }
}

@keyframes loaderOrbitC {
    from {
        transform: scale(0.62) rotate(0deg);
    }
    to {
        transform: scale(0.62) rotate(360deg);
    }
}

@keyframes loaderSweep {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(320%);
    }
}

html[data-theme='dark'] body {
    color: #e4e9f3;
    background:
        radial-gradient(circle at 10% -12%, #202734 0%, transparent 42%),
        radial-gradient(circle at 92% 10%, #332722 0%, transparent 36%),
        linear-gradient(180deg, #0f131b 0%, #121722 55%, #0f141d 100%);
}

html[data-theme='dark'] .topbar {
    border-bottom-color: rgba(255, 255, 255, 0.09);
    background: rgba(14, 18, 26, 0.88);
}

html[data-theme='dark'] .brand-mark {
    background: linear-gradient(140deg, #1b202a 0%, #343b4c 100%);
    box-shadow: 0 6px 18px rgba(3, 7, 14, 0.46);
}

html[data-theme='dark'] .logo-light {
    display: none;
}

html[data-theme='dark'] .logo-dark {
    display: block;
}

html[data-theme='dark'] .brand-text {
    color: #f0f4fb;
}

html[data-theme='dark'] .main-nav a {
    color: #b5c0d4;
}

html[data-theme='dark'] .main-nav a:hover,
html[data-theme='dark'] .main-nav a.active {
    color: #f2f6ff;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .main-nav .nav-admin {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .theme-toggle {
    color: #e5ebf7;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .lang-switch {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .lang-option {
    color: #c8d4ea;
}

html[data-theme='dark'] .lang-option:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

html[data-theme='dark'] .lang-option.active {
    color: #0f141d;
    background: linear-gradient(135deg, #d5e4ff 0%, #9db9e8 100%);
}

html[data-theme='dark'] .theme-dot {
    background: linear-gradient(145deg, #89a4d1, #d6e2ff);
    box-shadow: 0 0 0 2px rgba(167, 187, 225, 0.22);
}

html[data-theme='dark'] .hero-copy,
html[data-theme='dark'] .about-card,
html[data-theme='dark'] .contact-card,
html[data-theme='dark'] .legal-card,
html[data-theme='dark'] .timeline-item,
html[data-theme='dark'] .astro-note {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(21, 27, 38, 0.82);
    box-shadow: 0 18px 40px rgba(4, 8, 14, 0.45);
}

html[data-theme='dark'] .hero-copy::after {
    background: radial-gradient(circle, rgba(105, 138, 194, 0.25) 0%, rgba(105, 138, 194, 0) 72%);
}

html[data-theme='dark'] .hero-signature {
    color: #99a9c8;
}

html[data-theme='dark'] .eyebrow {
    color: #7f9fd5;
}

html[data-theme='dark'] .hero-tagline {
    color: #d6ddeb;
}

html[data-theme='dark'] .hero-lead,
html[data-theme='dark'] .hero-philosophy p,
html[data-theme='dark'] .panel-head p,
html[data-theme='dark'] .page-intro .lead,
html[data-theme='dark'] .about-card p,
html[data-theme='dark'] .timeline-item p,
html[data-theme='dark'] .contact-card p,
html[data-theme='dark'] .legal-card p,
html[data-theme='dark'] .astro-note p {
    color: #b8c3d8;
}

html[data-theme='dark'] .legal-card ul {
    color: #b8c3d8;
}

html[data-theme='dark'] .legal-card a {
    color: #d4deef;
}

html[data-theme='dark'] .hero-metrics div,
html[data-theme='dark'] .hero-philosophy {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme='dark'] .hero-metrics strong {
    color: #f0f5ff;
}

html[data-theme='dark'] .hero-metrics span {
    color: #96a5bf;
}

html[data-theme='dark'] .btn-secondary,
html[data-theme='dark'] .btn-ghost,
html[data-theme='dark'] button.btn-ghost {
    color: #dbe5f9;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

html[data-theme='dark'] .tab-control {
    color: #b9c3d8;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme='dark'] .tab-control:hover,
html[data-theme='dark'] .tab-control.active {
    color: #ffffff;
    background: linear-gradient(128deg, #2e3a53 0%, #5f7cad 100%);
}

html[data-theme='dark'] .photo-card,
html[data-theme='dark'] .recent-tile {
    border-color: rgba(255, 255, 255, 0.14);
    background: #0c111a;
}

html[data-theme='dark'] .photo-trigger::after,
html[data-theme='dark'] .recent-tile::after,
html[data-theme='dark'] .lightbox-content::after {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

html[data-theme='dark'] .empty-state {
    border-color: rgba(255, 255, 255, 0.2);
    color: #b9c6dd;
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme='dark'] .section-head::after {
    background: linear-gradient(90deg, rgba(127, 159, 213, 0.8), rgba(127, 159, 213, 0));
}

html[data-theme='dark'] .section-head h2::after {
    background: linear-gradient(90deg, rgba(127, 159, 213, 0.9), rgba(127, 159, 213, 0.1));
}

html[data-theme='dark'] .panel-astro-link {
    color: #9eb7e4;
    border-bottom-color: rgba(158, 183, 228, 0.45);
}

html[data-theme='dark'] .panel-astro-link:hover {
    color: #d4e3ff;
    border-bottom-color: rgba(212, 227, 255, 0.8);
}

html[data-theme='dark'] .site-footer {
    background:
        radial-gradient(circle at 15% 10%, rgba(127, 159, 213, 0.2) 0%, rgba(127, 159, 213, 0) 35%),
        linear-gradient(150deg, #0a0e15 0%, #0e1420 48%, #121a27 100%);
}

@media (max-width: 1000px) {
    .hero,
    .about-grid,
    .contact-layout,
    .legal-layout,
    .astro-editorial,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        min-height: auto;
        padding: 0.75rem 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .topbar-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.48rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .photo-grid .photo-card {
        width: 100%;
        max-width: 100%;
    }

}

@media (max-width: 680px) {
    main {
        padding-top: 1.2rem;
    }

    .hero-copy {
        padding: 1.3rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .lang-switch {
        order: 2;
    }

    .theme-toggle {
        order: 3;
    }

    .valais-emblem {
        min-height: 180px;
    }

    .valais-sheep {
        width: 170px;
    }

    .lightbox-nav {
        display: none;
    }

    .lightbox-close {
        width: 48px;
        height: 48px;
        font-size: 1.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .photo-card,
    .recent-tile {
        opacity: 1;
        transform: none;
    }
}
