:root {
    --ink: #102230;
    --muted: #617381;
    --soft: #eef8fb;
    --paper: #fbf7ef;
    --white: #ffffff;
    --ocean: #0c6d8b;
    --deep: #073747;
    --aqua: #81d9dc;
    --gold: #c8a866;
    --rose: #f3d6ca;
    --line: rgba(16, 34, 48, .12);
    --shadow: 0 30px 80px rgba(7, 55, 71, .16);
    --radius: 28px;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at 15% 10%, rgba(129,217,220,.35), transparent 34rem),
        radial-gradient(circle at 90% 20%, rgba(243,214,202,.55), transparent 28rem),
        linear-gradient(135deg, #fbf7ef 0%, #f2fbfc 48%, #f7fbff 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(rgba(12,109,139,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12,109,139,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.water-glow {
    position: fixed;
    width: 32rem;
    height: 32rem;
    border-radius: 999px;
    filter: blur(40px);
    opacity: .22;
    pointer-events: none;
    animation: drift 13s ease-in-out infinite alternate;
}
.water-glow-one { background: var(--aqua); top: 8rem; left: -14rem; }
.water-glow-two { background: #4ea5c2; bottom: 4rem; right: -15rem; animation-delay: -4s; }

@keyframes drift { to { transform: translate3d(30px, -20px, 0) scale(1.08); } }

.site-header,
.admin-topbar {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    box-shadow: 0 16px 50px rgba(7,55,71,.08);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 14px;
    z-index: 20;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: max-content;
}
.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 25% 20%, #ffffff 0 8%, transparent 9%),
        linear-gradient(145deg, var(--deep), var(--ocean) 55%, var(--aqua));
    color: #fff;
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 14px 30px rgba(12,109,139,.28);
}
.brand-mark.large { width: 72px; height: 72px; font-size: 1.35rem; }
.brand strong { display: block; font-size: 1rem; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: .74rem; margin-top: 1px; }

.main-nav,
.admin-topbar nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.main-nav a,
.admin-topbar nav a {
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 999px;
    color: rgba(16,34,48,.78);
    font-weight: 700;
    font-size: .92rem;
}
.main-nav a:hover,
.admin-topbar nav a:hover { background: rgba(12,109,139,.08); color: var(--deep); }
.admin-link { background: rgba(12,109,139,.09); }

.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

.section-pad { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 90px 0; }
.hero {
    min-height: calc(100vh - 96px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, .86fr);
    align-items: center;
    gap: 52px;
}
.eyebrow {
    margin: 0 0 18px;
    color: var(--ocean);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .18em;
}
h1, h2, h3 { margin: 0; line-height: 1; }
h1, h2 { font-family: var(--font-serif); letter-spacing: -.045em; }
h1 { font-size: clamp(3.4rem, 8vw, 7.7rem); max-width: 980px; }
h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
h3 { letter-spacing: -.03em; }
.hero-text {
    margin: 26px 0 0;
    max-width: 650px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 22px;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, var(--deep), var(--ocean));
    color: #fff;
    box-shadow: 0 18px 45px rgba(7,55,71,.25);
}
.btn-ghost {
    background: rgba(255,255,255,.68);
    border-color: rgba(16,34,48,.12);
    color: var(--deep);
}
.btn.small { min-height: 38px; padding: 0 16px; font-size: .86rem; }
.btn.full { width: 100%; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-row span {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(16,34,48,.08);
    color: rgba(16,34,48,.72);
    font-size: .9rem;
    font-weight: 700;
}

.hero-art { min-height: 560px; position: relative; display: grid; place-items: center; }
.floating-card {
    border-radius: 38px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(255,255,255,.75);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.card-main { width: min(430px, 100%); padding: 18px; transform: rotate(2deg); }
.card-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 26px; }
.art-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 6px 4px; }
.art-caption span { color: var(--muted); font-weight: 700; }
.art-caption strong { color: var(--deep); }
.card-mini {
    position: absolute;
    right: 0;
    bottom: 64px;
    padding: 18px 22px;
    transform: rotate(-4deg);
}
.card-mini span { display: block; color: var(--muted); font-size: .86rem; font-weight: 700; }
.card-mini strong { display: block; margin-top: 4px; font-family: var(--font-serif); font-size: 1.9rem; }

.intro-band {
    width: min(1060px, calc(100% - 32px));
    margin: -30px auto 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 34px;
    background: rgba(255,255,255,.62);
    box-shadow: 0 24px 70px rgba(7,55,71,.10);
    backdrop-filter: blur(16px);
}
.intro-band div { padding: 22px; border-radius: 24px; background: rgba(255,255,255,.52); }
.stat-number { display: block; font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700; color: var(--ocean); }
.stat-label { display: block; color: var(--muted); font-weight: 700; }

.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); line-height: 1.7; font-size: 1.04rem; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.art-card {
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(255,255,255,.82);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: 0 20px 55px rgba(7,55,71,.09);
    transition: transform .25s ease, box-shadow .25s ease;
}
.art-card:hover { transform: translateY(-5px); box-shadow: 0 30px 70px rgba(7,55,71,.14); }
.art-image {
    width: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
}
.art-image img { width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover; transition: transform .5s ease; }
.art-card:hover .art-image img { transform: scale(1.045); }
.status-pill {
    position: absolute;
    left: 14px;
    top: 14px;
    background: rgba(255,255,255,.86);
    color: var(--deep);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .78rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}
.art-info { padding: 17px 7px 8px; }
.art-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.art-topline h3 { font-size: 1.16rem; }
.art-topline strong { color: var(--ocean); white-space: nowrap; }
.art-info p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; font-size: .95rem; }
.meta-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.meta-list div { padding: 10px; border-radius: 16px; background: rgba(12,109,139,.055); }
.meta-list dt { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.meta-list dd { margin: 4px 0 0; font-weight: 700; font-size: .9rem; }
.text-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--ocean);
    font-weight: 800;
    text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.empty-state {
    min-height: 420px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: var(--shadow);
}
.empty-state img { width: 220px; border-radius: 28px; margin-bottom: 24px; }
.empty-state p { color: var(--muted); }

.about-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: stretch; }
.about-panel,
.texture-panel,
.contact-form,
.contact-card,
.admin-card,
.login-card {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.about-panel { padding: clamp(28px, 5vw, 54px); }
.about-panel p:not(.eyebrow) { color: var(--muted); line-height: 1.8; font-size: 1.05rem; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 32px; color: rgba(16,34,48,.78); line-height: 1.6; font-weight: 600; }
.check-list li::before { content: '✦'; position: absolute; left: 0; top: 0; color: var(--ocean); }
.texture-panel {
    min-height: 420px;
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    background:
        linear-gradient(135deg, rgba(7,55,71,.86), rgba(12,109,139,.72)),
        url('../img/water-placeholder.svg') center/cover;
    overflow: hidden;
}
.texture-panel span {
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
.contact-form { padding: clamp(22px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 8px; color: rgba(16,34,48,.76); font-weight: 800; margin-bottom: 16px; }
input, textarea, select {
    width: 100%;
    border: 1px solid rgba(16,34,48,.14);
    background: rgba(255,255,255,.72);
    color: var(--ink);
    border-radius: 18px;
    padding: 14px 16px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(12,109,139,.5); box-shadow: 0 0 0 4px rgba(129,217,220,.22); background: #fff; }
.hidden-field { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: 18px; margin-bottom: 18px; line-height: 1.5; font-weight: 700; }
.alert-success { background: rgba(89,167,121,.12); color: #255b3a; border: 1px solid rgba(89,167,121,.22); }
.alert-error { background: rgba(194,73,73,.12); color: #8a2d2d; border: 1px solid rgba(194,73,73,.22); }
.contact-card { padding: 34px; position: sticky; top: 110px; }
.contact-card h3 { margin-top: 18px; font-size: 1.5rem; }
.contact-card p { color: var(--muted); line-height: 1.75; }
.contact-card a { color: var(--ocean); font-weight: 800; }
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 28px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-weight: 700;
}
.site-footer a { color: var(--muted); text-decoration: none; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 18, 24, .84);
    backdrop-filter: blur(12px);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: min(78vh, 820px); width: auto; border-radius: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.lightbox p { color: #fff; font-weight: 800; text-align: center; margin: 16px 0 0; }
.lightbox-close {
    position: fixed;
    top: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 2rem;
}

/* Admin */
.admin-body { background: linear-gradient(135deg, #f7fbfc, #fbf7ef); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(460px, 100%); padding: 34px; }
.login-brand { margin-bottom: 28px; }
.login-card h1 { font-size: 3.5rem; }
.login-card p { color: var(--muted); line-height: 1.6; }
.small-muted { color: var(--muted); font-size: .88rem; font-weight: 600; }
code { background: rgba(16,34,48,.07); padding: 2px 6px; border-radius: 8px; }
.admin-layout { width: min(1180px, calc(100% - 32px)); margin: 42px auto 70px; }
.admin-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.admin-hero h1 { font-size: clamp(2.6rem, 5vw, 5rem); }
.admin-hero p:not(.eyebrow) { color: var(--muted); max-width: 680px; line-height: 1.7; }
.admin-stats { display: flex; gap: 12px; }
.admin-stats span {
    min-width: 118px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.84);
    font-weight: 800;
    color: var(--muted);
}
.admin-stats strong { display: block; color: var(--ocean); font-size: 2rem; line-height: 1; }
.admin-alert { margin: 0 0 22px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 22px; align-items: start; }
.admin-card { padding: 24px; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-card h2 { font-family: var(--font-serif); font-size: 2rem; }
.artwork-form label { margin-bottom: 14px; }
.image-preview {
    min-height: 180px;
    border: 1px dashed rgba(12,109,139,.38);
    background: rgba(12,109,139,.045);
    border-radius: 24px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 16px;
    color: var(--muted);
    font-weight: 800;
}
.image-preview img { width: 100%; max-height: 260px; object-fit: cover; }
.toggle-row { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.toggle-row input { width: auto; }
.admin-art-list { display: grid; gap: 12px; }
.admin-art-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(16,34,48,.06);
}
.admin-art-item img { width: 92px; height: 92px; border-radius: 18px; object-fit: cover; }
.admin-art-item h3 { font-size: 1rem; }
.admin-art-item p { color: var(--muted); margin: 6px 0 0; font-size: .88rem; }
.row-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.row-actions a,
.row-actions button {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--ocean);
    font-weight: 800;
    text-decoration: none;
    font-size: .9rem;
}
.row-actions button { color: #9b3b3b; }
.messages-card { margin-top: 22px; }
.messages-list { display: grid; gap: 14px; }
.message-item { padding: 18px; border-radius: 22px; background: rgba(255,255,255,.56); border: 1px solid rgba(16,34,48,.07); }
.message-item div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.message-item strong { color: var(--ink); }
.message-item p { color: var(--muted); line-height: 1.65; margin: 8px 0 0; }
.message-item a { color: var(--ocean); font-weight: 800; }

.reveal { opacity: 0; transform: translateY(18px); animation: reveal .75s ease forwards; animation-delay: var(--d, 0ms); }
.delay-1 { animation-delay: .12s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
    .hero, .about-section, .contact-layout, .admin-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 54px; gap: 20px; }
    .hero-art { min-height: 480px; }
    .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .intro-band { grid-template-columns: 1fr; }
    .contact-card { position: static; }
    .admin-hero { align-items: stretch; flex-direction: column; }
}

@media (max-width: 720px) {
    .site-header, .admin-topbar { width: calc(100% - 20px); border-radius: 24px; align-items: flex-start; }
    .site-header { flex-wrap: wrap; }
    .nav-toggle { display: block; margin-left: auto; }
    .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-top: 8px; }
    .main-nav.is-open { display: flex; }
    .main-nav a { width: 100%; }
    .admin-topbar { border-radius: 24px; flex-direction: column; }
    .admin-topbar nav { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .section-pad { width: min(100% - 20px, 1180px); padding: 62px 0; }
    h1 { font-size: clamp(3rem, 14vw, 5rem); }
    h2 { font-size: clamp(2.1rem, 10vw, 3.4rem); }
    .hero { min-height: auto; }
    .hero-art { min-height: auto; padding-bottom: 30px; }
    .card-mini { right: 2px; bottom: 8px; }
    .art-grid { grid-template-columns: 1fr; }
    .form-grid, .meta-list { grid-template-columns: 1fr; }
    .site-footer { width: calc(100% - 20px); flex-direction: column; gap: 10px; }
    .texture-panel { min-height: 320px; grid-template-columns: 1fr; }
    .admin-layout { width: calc(100% - 20px); margin-top: 28px; }
    .admin-stats { flex-direction: column; }
    .admin-art-item { grid-template-columns: 76px 1fr; }
    .admin-art-item img { width: 76px; height: 76px; }
    .admin-card-head { align-items: flex-start; flex-direction: column; }
}
