/* ============================================================
   Chromacrylik — abstract acrylic pour gallery
   Design system: neon electric-blue on black (brand-matched).
   All brand colours live in :root — change them in one place.
   ============================================================ */

:root {
  /* --- Surfaces --- */
  --bg: #060608;
  --bg-2: #0a0c11;
  --surface: #0f1219;
  --surface-2: #141a26;
  --line: rgba(120, 190, 255, 0.12);
  --line-strong: rgba(120, 190, 255, 0.26);

  /* --- Text --- */
  --text: #eaf3ff;
  --text-2: #9fb4cc;
  --text-3: #63758c;

  /* --- Brand neon (sampled from the logo) --- */
  --cyan: #45d8ff;
  --blue: #1e78ff;
  --deep: #0a3bd6;
  --neon: #38d6ff;
  --neon-2: #1e9bff;
  --glow: rgba(56, 214, 255, 0.55);
  --glow-soft: rgba(56, 214, 255, 0.22);
  --accent-grad: linear-gradient(135deg, var(--cyan), var(--blue) 55%, var(--deep));

  /* --- Availability --- */
  --available: #3ee6b0;
  --reserved: #ffc24b;
  --sold: #ff5d73;

  /* --- Type --- */
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* --- Metrics --- */
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 0 1px var(--line-strong), 0 24px 60px -24px var(--glow-soft);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
::selection { background: var(--glow); color: #001018; }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Neon helpers ---------- */
.neon-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section { padding-block: clamp(56px, 9vw, 120px); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 5vw, 56px); }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--neon);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--neon); box-shadow: 0 0 8px var(--glow); }
.section-title { font-size: clamp(1.9rem, 5vw, 3rem); }
.section-sub { color: var(--text-2); margin-top: 14px; font-size: 1.05rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; border-radius: 9px; filter: drop-shadow(0 0 10px var(--glow-soft)); }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-2); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--neon); box-shadow: 0 0 8px var(--glow); transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-ig { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); transition: all 0.2s; }
.nav-ig:hover { border-color: var(--neon); box-shadow: 0 0 16px -2px var(--glow); color: var(--neon); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--text); align-items: center; justify-content: center; }

/* language toggle */
.lang-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.lang-toggle button { background: transparent; color: var(--text-2); border: 0; padding: 7px 12px; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; transition: all 0.2s; }
.lang-toggle button[aria-pressed="true"] { background: var(--accent-grad); color: #00121f; }
.lang-toggle button:not([aria-pressed="true"]):hover { color: var(--text); }

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; transform: translateY(-120%); transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; text-align: center; padding-block: clamp(60px, 12vw, 130px) clamp(48px, 8vw, 90px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before, .hero-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
}
.hero-bg::before { width: 55vw; height: 55vw; left: -12vw; top: -18vw; background: radial-gradient(circle, var(--deep), transparent 60%); animation: drift1 22s ease-in-out infinite alternate; }
.hero-bg::after { width: 48vw; height: 48vw; right: -10vw; bottom: -20vw; background: radial-gradient(circle, var(--blue), transparent 60%); opacity: 0.35; animation: drift2 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(6vw, 4vw) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-5vw, -3vw) scale(1.15); } }
.hero-inner { position: relative; z-index: 1; }
.hero-wordmark { width: min(760px, 92%); margin-inline: auto; filter: drop-shadow(0 0 40px var(--glow-soft)); }
.hero-taglines { display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; margin-top: 6px; color: var(--cyan); font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1rem, 2.4vw, 1.35rem); }
.hero-intro { max-width: 620px; margin: 26px auto 0; color: var(--text-2); font-size: 1.1rem; }
.hero-cta { margin-top: 34px; display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.scroll-cue { margin-top: 46px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-cue svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px;
  border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--accent-grad); color: #00121f; box-shadow: 0 0 0 1px var(--glow-soft), 0 14px 34px -14px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--glow), 0 18px 42px -12px var(--glow); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--neon); box-shadow: 0 0 20px -6px var(--glow); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text-2); font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.chip:hover { color: var(--text); border-color: var(--neon); }
.chip[aria-pressed="true"] { color: #00121f; background: var(--accent-grad); border-color: transparent; font-weight: 600; }
.chip .count { opacity: 0.65; font-variant-numeric: tabular-nums; }
.result-note { color: var(--text-3); font-size: 0.85rem; }

/* masonry via CSS columns — preserves each canvas's true aspect ratio */
.masonry { columns: 3 300px; column-gap: 22px; }
@media (max-width: 640px) { .masonry { columns: 2 160px; column-gap: 14px; } }

.card {
  break-inside: avoid; display: block; position: relative; margin-bottom: 22px;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s, border-color 0.3s;
  animation: rise 0.5s both;
}
@media (max-width: 640px) { .card { margin-bottom: 14px; } }
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 60px -28px var(--glow-soft), 0 0 0 1px var(--line-strong); }
.card-media { position: relative; overflow: hidden; }
.card-media img { width: 100%; height: auto; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); background: var(--bg-2); }
.card:hover .card-media img { transform: scale(1.05); }
.card.is-sold .card-media img { filter: saturate(0.55) brightness(0.7); }
.card-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  background: linear-gradient(to top, rgba(3,6,12,0.9) 0%, rgba(3,6,12,0.15) 45%, transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover .card-overlay, .card:focus-within .card-overlay { opacity: 1; }
.card-overlay .view { color: var(--cyan); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.card-body { padding: 16px 18px 18px; }
.card-title { font-size: 1.12rem; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.card-dims { color: var(--text-3); font-size: 0.82rem; }
.card-price { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: 0.98rem; }
.card-price.on-request { color: var(--text-2); font-weight: 500; font-size: 0.88rem; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Availability badge ---------- */
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 12px; border-radius: 999px; font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 6px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.available { color: var(--available); background: color-mix(in srgb, var(--available) 14%, #04140f); border: 1px solid color-mix(in srgb, var(--available) 40%, transparent); }
.badge.reserved  { color: var(--reserved); background: color-mix(in srgb, var(--reserved) 14%, #1a1204); border: 1px solid color-mix(in srgb, var(--reserved) 40%, transparent); }
.badge.sold      { color: var(--sold); background: color-mix(in srgb, var(--sold) 16%, #180608); border: 1px solid color-mix(in srgb, var(--sold) 40%, transparent); }

.empty-state { text-align: center; color: var(--text-3); padding: 60px 0; }

/* ============================================================
   LIGHTBOX / DETAIL MODAL
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(3, 5, 10, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lightbox.open { display: grid; place-items: center; animation: fade 0.25s both; }
@keyframes fade { from { opacity: 0; } }
.lb-dialog {
  position: relative; width: min(1120px, 100%); max-height: 92vh; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9), 0 0 0 1px var(--line);
  animation: pop 0.3s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(10px); } }
.lb-media { position: relative; background: var(--bg-2); display: grid; place-items: center; min-height: 320px; }
.lb-media img { width: 100%; height: 100%; max-height: 92vh; object-fit: contain; }
.lb-info { padding: clamp(22px, 3vw, 40px); overflow-y: auto; display: flex; flex-direction: column; }
.lb-badge-row { margin-bottom: 14px; }
.lb-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lb-sub { color: var(--text-3); font-size: 0.9rem; margin-top: 6px; }
.lb-desc { color: var(--text-2); margin: 20px 0; font-size: 1.02rem; }
.lb-specs { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.lb-specs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.lb-specs .k { color: var(--text-3); }
.lb-specs .v { color: var(--text); text-align: right; }
.lb-price { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; }
.lb-price.on-request { font-size: 1.15rem; color: var(--text-2); font-weight: 600; }
.lb-actions { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.lb-share { background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); border-radius: 999px; padding: 13px 20px; display: inline-flex; align-items: center; gap: 9px; transition: all 0.2s; font-size: 0.9rem; }
.lb-share:hover { border-color: var(--neon); color: var(--neon); }
.lb-close {
  position: absolute; top: 12px; right: 12px; z-index: 5; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(6,8,14,0.7); border: 1px solid var(--line-strong); color: var(--text);
  display: grid; place-items: center; backdrop-filter: blur(6px); transition: all 0.2s;
}
.lb-close:hover { border-color: var(--sold); color: var(--sold); transform: rotate(90deg); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(6,8,14,0.6); border: 1px solid var(--line-strong); color: var(--text);
  display: grid; place-items: center; backdrop-filter: blur(6px); transition: all 0.2s;
}
.lb-nav:hover { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 18px -4px var(--glow); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }

@media (max-width: 860px) {
  .lb-dialog { grid-template-columns: 1fr; max-height: 94vh; overflow-y: auto; }
  .lb-media img { max-height: 52vh; }
  .lb-nav { top: auto; bottom: 12px; transform: none; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.about-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-glow); }
.about-card img { width: 100%; height: 100%; object-fit: cover; }
.about-body p { color: var(--text-2); font-size: 1.08rem; }
.about-body p + p { margin-top: 18px; }
.about-sign { margin-top: 26px; font-family: var(--font-display); font-style: italic; color: var(--cyan); font-size: 1.2rem; }
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } .about-card { order: -1; aspect-ratio: 16/10; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-methods { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.contact-method { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: all 0.2s; }
.contact-method:hover { border-color: var(--neon); box-shadow: 0 0 24px -10px var(--glow); transform: translateX(4px); }
.contact-method .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--neon) 12%, transparent); color: var(--neon); flex-shrink: 0; }
.contact-method .lbl { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.contact-method .val { color: var(--text-3); font-size: 0.85rem; }

.form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form label { font-family: var(--font-display); font-weight: 500; font-size: 0.85rem; color: var(--text-2); display: block; margin-bottom: 7px; }
.form input, .form textarea {
  width: 100%; padding: 13px 15px; background: var(--bg-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--text); font: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px var(--glow-soft); }
.form textarea { min-height: 130px; resize: vertical; }
.form .btn-primary { justify-content: center; }
.form-note { color: var(--text-3); font-size: 0.8rem; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 48px 40px; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 12px; filter: drop-shadow(0 0 12px var(--glow-soft)); }
.footer-brand .t { font-family: var(--font-display); font-weight: 700; }
.footer-brand .s { color: var(--text-3); font-size: 0.85rem; font-style: italic; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text-2); transition: all 0.2s; }
.footer-social a:hover { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 16px -4px var(--glow); }
.footer-copy { width: 100%; margin-top: 26px; color: var(--text-3); font-size: 0.82rem; text-align: center; }

/* ============================================================
   PIECE PAGE (standalone /art/<slug>/) — shares the system
   ============================================================ */
.piece { padding-block: clamp(30px, 6vw, 70px); }
.piece-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.9rem; margin-bottom: 26px; transition: color 0.2s; }
.piece-back:hover { color: var(--neon); }
.piece-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .piece-grid { grid-template-columns: 1fr; } }
.piece-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-2); box-shadow: var(--shadow-glow); position: relative; }
.piece-info { position: sticky; top: 90px; display: flex; flex-direction: column; }
.piece-fr { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.piece-fr .eyebrow { color: var(--text-3); }
.piece-fr-title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 8px 0 14px; }
.piece-artwork { margin-top: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.piece-artwork img { width: 100%; display: block; }
.piece-artwork.round { border: none; background: transparent; }
.piece-artwork.round img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--line-strong); }
.piece-artwork figcaption { padding: 11px 14px; color: var(--text-3); font-size: 0.82rem; text-align: center; letter-spacing: 0.02em; }
.piece-nextprev { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.piece-nextprev a { color: var(--text-2); font-size: 0.9rem; display: inline-flex; gap: 8px; align-items: center; transition: color 0.2s; }
.piece-nextprev a:hover { color: var(--neon); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--surface-2); border: 1px solid var(--neon); color: var(--text);
  padding: 12px 22px; border-radius: 999px; font-size: 0.9rem; z-index: 200;
  box-shadow: 0 0 24px -6px var(--glow); transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }
