:root {
  --bg: #0b0d12;
  --bg-2: #0f1320;
  --text: #e9edf6;
  --muted: #b2bbcf;

  /* Glass + stroke tweaked for extra gloss */
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --stroke: rgba(255, 255, 255, 0.24);

  /* Accents stay cool; stronger cyan */
  --brand: #7c6cff;
  --brand-2: #22e6f0;

  /* Glow intensified, with white tint */
  --glow: 0 0 18px rgba(255,255,255,0.3),
          0 0 28px rgba(34,230,240,0.35),
          0 0 64px rgba(124,108,255,0.3);

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 8px 36px rgba(0,0,0,0.35);
  --card-shadow: 0 16px 60px rgba(0,0,0,0.45);
  --blur: 18px; /* slightly higher for extra frost */
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8ff;
    --bg-2: #eef2ff;
    --text: #0e121a;
    --muted: #4a5264;
    --glass: rgba(255,255,255,0.65);
    --glass-strong: rgba(255,255,255,0.8);
    --stroke: rgba(10, 30, 60, 0.14);
    --shadow: 0 8px 28px rgba(36, 49, 85, 0.18);
    --card-shadow: 0 16px 48px rgba(36, 49, 85, 0.22);
  }
}

/* Base */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 8% -12%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(1000px 740px at 108% 0%, rgba(34,230,240,0.20), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

/* Decorative glow orbs (white + blue) */
.bg-orb {
  position: fixed;
  inset: auto auto 12% 60%;
  width: 540px; height: 540px;
  filter: blur(88px);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(34,230,240,0.5), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.bg-orb.orb-2 {
  inset: 6% auto auto 8%;
  width: 400px; height: 400px;
  filter: blur(82px);
  background:
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(circle at 65% 70%, rgba(34,230,240,0.45), transparent 60%);
  opacity: 0.6;
}

/* Subtle global specular overlay for gloss */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%, transparent 60%, rgba(255,255,255,0.03));
  mix-blend-mode: screen;
  z-index: 0;
}

/* Containers */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding-inline: 16px;
}

/* Glass header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(var(--blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.15);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 6px 30px rgba(0,0,0,0.25);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(255,255,255,0.35))
          drop-shadow(0 2px 10px rgba(34,230,240,0.25));
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
}

.nav {
  margin-left: auto;
  display: flex;
  gap: clamp(10px, 2vw, 22px);
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 180ms ease;
}

.nav a[aria-current="page"],
.nav a:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border-color: var(--stroke);
  box-shadow: 0 0 18px rgba(255,255,255,0.18);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 8vw, 96px) 0 32px;
}

.hero .wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 54px);
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0.2px;
  text-shadow:
    0 2px 20px rgba(0,0,0,0.35),
    0 0 24px rgba(255,255,255,0.08);
}

.hero p {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  margin: 10px 0 0;
}

/* Buttons with glossy highlight */
.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.10));
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  backdrop-filter: blur(var(--blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: -120% -40% auto;
  height: 240%;
  transform: rotate(14deg);
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0) 100%);
  mix-blend-mode: screen;
  opacity: 0.25;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }
.btn:hover::after { transform: translateX(35%) rotate(14deg); opacity: 0.45; }

.btn.primary {
  border-color: rgba(255,255,255,0.35);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.22), rgba(34,230,240,0.22)),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10));
  box-shadow: var(--glow);
}

/* Sections */
.section { padding: clamp(28px, 6vw, 64px) 0; }
.section h2 { font-size: clamp(22px, 3vw, 34px); margin: 0 0 16px; }

/* Grid */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Cards: more glossy and reflective */
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  backdrop-filter: blur(var(--blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
  box-shadow: var(--card-shadow);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  isolation: isolate;
}

/* Inner edge highlight for glass edge */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,0.25), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  mix-blend-mode: screen;
  opacity: 0.5;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 76px rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.35);
}

/* Reflective sheen sweep */
.card-shine {
  content: "";
  position: absolute;
  inset: -120% -40% auto;
  height: 220%;
  transform: rotate(12deg);
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.24) 45%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0.24) 55%,
    rgba(255,255,255,0) 100%);
  pointer-events: none;
  mix-blend-mode: screen;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.5;
  z-index: 2;
}
.card:hover .card-shine { transform: translateX(42%) rotate(12deg); opacity: 0.75; }

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--stroke);
  background: #0d1018;
  z-index: 1;
}

/* Subtle reflection below image */
.card img::after { /* fallback if you later swap to background-image technique */ }

.card-body { padding: 14px 14px 16px; position: relative; z-index: 3; }
.card-body h3 { margin: 2px 0 4px; font-size: 18px; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; }

/* Mini */
.card.mini .card-body { padding: 16px; }
.card.mini .card-body h3 { font-size: 18px; }
.card.mini .card-body p { font-size: 14px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  font-size: 12px;
  color: var(--muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Form glass */
.form-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  backdrop-filter: blur(var(--blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
  box-shadow: var(--card-shadow);
}
.input-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.input-row .full { grid-column: 1 / -1; }

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
input::placeholder, textarea::placeholder { color: #98a4be; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 4px rgba(180,220,255,0.22), 0 0 24px rgba(255,255,255,0.25);
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--stroke);
  background:
    linear-gradient(0deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 -6px 28px rgba(0,0,0,0.25);
}
.site-footer .row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  align-items: center;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-shadow: 0 0 12px rgba(255,255,255,0.25); }

/* Utils */
.center { text-align: center; }
hr.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
  margin: 24px 0;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Responsive */
@media (max-width: 640px) {
  .input-row { grid-template-columns: 1fr; }
  .nav { gap: 10px; }
  .brand-name { display: none; }
}

img.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.35),
    0 0 12px rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

/* ============== Polishing Pack ============== */
/* 1) Circular brand logo (works if brand-logo is an <img> OR a wrapper) */
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-block;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.35),
    0 0 14px rgba(255,255,255,0.18);
  isolation: isolate;
}

/* If your markup is <img class="brand-logo"> this styles the image itself */
img.brand-logo {
  object-fit: cover;
  display: inline-block;
}

/* If your markup is <span class="brand-logo"><img ...></span> this fits the inner media */
.brand-logo > img,
.brand-logo > svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

/* Glossy badge highlight */
.brand-logo::after {
  content: "";
  position: absolute;
  inset: 3px 3px auto 3px;
  height: 48%;
  border-radius: 50%;
  background: radial-gradient(120% 80% at 50% 0%,
              rgba(255,255,255,0.55), rgba(255,255,255,0.10) 55%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.75;
}

/* Slight hover lift on the whole brand link */
.brand {
  will-change: transform;
  transition: transform 180ms ease, filter 180ms ease;
}
.brand:hover { transform: translateY(-1px); filter: brightness(1.02); }

/* 2) Smoother header and nav interactions */
.site-header {
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.site-header:is(:hover, :focus-within) {
  box-shadow: 0 8px 34px rgba(0,0,0,0.28);
  border-bottom-color: rgba(255,255,255,0.3);
}

/* Link chips in nav feel more tactile */
.nav a {
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.nav a:hover {
  transform: translateY(-1px);
}

/* 3) Buttons: crisper focus, smoother click */
.btn {
  transform: translateZ(0);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(180,220,255,0.28),
    0 0 24px rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
}

/* 4) Cards: subtler elevation and sheen sweep */
.card {
  transition: transform 220ms cubic-bezier(.2,.8,.2,1),
              box-shadow 220ms ease,
              border-color 220ms ease,
              background 220ms ease;
}
.card:hover {
  transform: translateY(-4px) scale(1.01);
}
.card .card-shine {
  /* If you already had .card-shine, this makes the sweep a bit silkier */
  opacity: 0.55;
  filter: blur(0.2px);
}

/* 5) Background glow tuning (white + blue blend more evenly) */
.bg-orb,
.bg-orb.orb-2 {
  transition: opacity 300ms ease, filter 300ms ease, transform 600ms ease;
  will-change: opacity, filter, transform;
}
.bg-orb:hover { opacity: 0.8; transform: translateY(-2px) scale(1.01); }
.bg-orb.orb-2:hover { opacity: 0.7; transform: translateY(-1px) scale(1.008); }

/* 6) Typography smoothing */
body, .hero h1, .section h2, .card-body h3 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 7) Cleaner forms and nicer autofill */
input, textarea, select {
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
input:active, textarea:active, select:active { transform: translateY(0.5px); }
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: inherit;
  transition: background-color 600000s 0s, color 600000s 0s;
}

/* 8) Better focus styles for accessibility */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(130,180,255,0.35), 0 0 0 6px rgba(34,230,240,0.2);
  border-radius: 12px;
}

/* 9) Subtle global specular overlay tweak for extra gloss */
body::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 40%, transparent 60%, rgba(255,255,255,0.035));
}

/* 10) Micro details: dividers, chips, and muted text refinement */
hr.divider {
  opacity: 0.9;
}
.chip {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.35);
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.10));
}
p, .muted, .card-body p {
  color: color-mix(in oklab, currentColor 72%, white 28%);
}

/* 11) Mobile niceties */
@media (max-width: 640px) {
  .brand-logo { width: 36px; height: 36px; }
  .navbar { padding: 12px 0; }
  .btn { padding: 10px 14px; }
  .card:hover { transform: translateY(-3px) scale(1.005); }
}

/* 12) Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .brand, .btn, .nav a, .card, .bg-orb, .chip {
    transition: none !important;
    transform: none !important;
  }
  .card .card-shine { opacity: 0.6; }
}

/* Gallery grid with consistent card heights */
.art-grid {
  display: grid;
  gap: clamp(10px, 2vw, 18px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Card uses a fixed aspect ratio (tall portrait to suit your pieces) */
.art-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 42px rgba(0,0,0,0.40);
}

/* Choose a balanced frame. 2:3 works well for your dimensions */
.art-media {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3; /* consistent card height */
  overflow: hidden;
}

/* Cover inside the frame, center focal point */
.art-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* crop edges if needed to fill frame */
  object-position: center;
  display: block;
}

/* Optional caption info */
.art-meta {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.22);
}

/* Hover polish */
.art-card:hover img { transform: scale(1.02); transition: transform 220ms ease; }

/* Masonry-like gallery for mixed ratios */
.art-grid {
  display: grid;
  gap: clamp(10px, 2vw, 18px);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
}

/* Each card gets its own ratio via a data attribute */
.art-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 42px rgba(0,0,0,0.40);
}

/* Media wrapper reads data-aspect like "4016/6016" */
.art-media {
  width: 100%;
  aspect-ratio: attr(data-aspect ratio); /* supported in modern Chromium/Safari */
  position: relative;
  overflow: hidden;
}

/* If attr() for aspect is not supported, provide a fallback via classes */
.art-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* no cropping */
  display: block;
  background: rgba(255,255,255,0.04);
}

/* Fallback classes for aspect ratios if needed */
.ar-2-3 { aspect-ratio: 2/3; }
.ar-5-8 { aspect-ratio: 5/8; } /* close to 5264/7895 ≈ 0.667 */
.ar-4016-6016 { aspect-ratio: 4016/6016; }
.ar-1024-1536 { aspect-ratio: 1024/1536; }
.ar-5264-7895 { aspect-ratio: 5264/7895; }
/* Center the artwork grid like the originals */
.art-section {
  display: grid;
  place-items: center;           /* centers the grid block itself */
  padding: 0;                    /* or keep your section padding */
}

.art-grid {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  width: min(1100px, 92vw);      /* same as your .container width */
  margin-inline: auto;           /* center the grid block */
  justify-items: center;         /* center items inside their cells */
}

/* Consistent card width and centering */
.art-card {
  width: 100%;
  max-width: 340px;              /* match original card width if needed */
  margin: 0 auto;
}

/* If you’re using Option A (fixed frame, cover) */
.art-media { aspect-ratio: 2 / 3; }

/* If you’re using Option B (per-image ratio) keep your ar-XXXX classes */