:root {
  color-scheme: dark;
  --bg: #120d09;
  --bg-soft: rgba(23, 18, 15, .88);
  --paper: #ede3d2;
  --muted: #c6b59c;
  --ink: #fff7ec;
  --line: rgba(255, 247, 236, .16);
  --accent: #f26b21;
  --accent-2: #f0b43a;
  --ochre: #df9a01;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(18,13,9,.88), rgba(18,13,9,.72) 42%, rgba(18,13,9,.92)),
    radial-gradient(circle at 78% 3%, rgba(242,107,33,.28), transparent 32rem),
    radial-gradient(circle at 2% 22%, rgba(223,154,1,.30), transparent 34rem),
    url("assets/original-bg.jpg") center center / cover,
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(255,255,255,.045) 42.2% 42.8%, transparent 43%),
    radial-gradient(circle at 50% 110%, rgba(0,0,0,.74), transparent 36rem);
  mix-blend-mode: screen;
  opacity: .55;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(13,11,9,.84), rgba(13,11,9,.28));
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand, nav a, .button { color: inherit; text-decoration: none; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 900; letter-spacing: .08em; }
.brand-mark { width: 18px; height: 18px; border-radius: 999px; background: conic-gradient(from 30deg, var(--accent), var(--accent-2), #2bd2ff, var(--accent)); box-shadow: 0 0 22px rgba(255,107,43,.55); }
nav { display: flex; gap: clamp(14px, 3vw, 34px); color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--ink); }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 560px);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: 120px clamp(18px, 5vw, 80px) 70px;
}

.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 800; }
h1, h2 { margin: 0; letter-spacing: -.06em; line-height: .88; }
h1 { font-size: clamp(58px, 11vw, 152px); max-width: 930px; }
h2 { font-size: clamp(36px, 6vw, 86px); }
.lead { max-width: 680px; color: var(--muted); font-size: clamp(18px, 2vw, 24px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); font-weight: 800; }
.button.primary { background: var(--ink); color: #14100d; border-color: var(--ink); }
.button.ghost:hover { border-color: var(--accent); color: var(--accent-2); }

.hero-stack { position: relative; min-height: 640px; perspective: 1000px; }
.hero-stack img {
  position: absolute;
  width: 64%;
  max-height: 72%;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.14);
  transform: rotate(var(--r)) translate3d(var(--x), var(--y), 0);
}
.hero-stack img:nth-child(1) { --r: -7deg; --x: 0; --y: -20px; left: 0; top: 8%; z-index: 3; }
.hero-stack img:nth-child(2) { --r: 8deg; --x: 70px; --y: 70px; right: 4%; top: 24%; z-index: 2; }
.hero-stack img:nth-child(3) { --r: -2deg; --x: 12px; --y: 210px; left: 18%; top: 40%; z-index: 1; filter: saturate(1.2); }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,.03); }
.marquee-track { display: flex; gap: 34px; width: max-content; padding: 18px 0; animation: marquee 32s linear infinite; }
.marquee span { font-size: clamp(28px, 4vw, 58px); font-weight: 900; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255,247,236,.36); text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

.intro-grid, .feature-panel, .contact { padding: clamp(70px, 10vw, 140px) clamp(18px, 5vw, 80px); }
.intro-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 7vw, 96px); align-items: center; }
.stat-card { min-height: 280px; border: 1px solid var(--line); border-radius: 34px; padding: 34px; display: flex; flex-direction: column; justify-content: end; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); box-shadow: var(--shadow); }
.stat-card strong { font-size: 96px; line-height: .8; letter-spacing: -.08em; }
.stat-card span, .story p, .contact p { color: var(--muted); line-height: 1.65; }
.story p { font-size: 18px; max-width: 840px; }

.work-section { padding: 40px clamp(12px, 3vw, 48px) 100px; }
.section-head { padding: 0 clamp(6px, 2vw, 32px) 28px; max-width: 1160px; }
.filters { position: sticky; top: 76px; z-index: 10; display: flex; flex-wrap: wrap; gap: 10px; padding: 14px clamp(6px, 2vw, 32px); margin-bottom: 26px; background: rgba(18,13,9,.72); }
.filter { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); border-radius: 999px; padding: 10px 15px; cursor: pointer; font-weight: 800; }
.filter.active, .filter:hover { background: var(--accent); border-color: var(--accent); color: #170904; }

.gallery { columns: 4 260px; column-gap: 18px; }
.art-card {
  break-inside: avoid;
  margin: 0 0 18px;
  border-radius: 24px;
  overflow: clip;
  background: color-mix(in srgb, var(--bg-soft) 86%, #000 14%);
  border: 1px solid rgba(255,255,255,.10);
  cursor: pointer;
  transform: translateZ(0);
  contain: layout paint;
  box-shadow: 0 12px 42px rgba(0,0,0,.24);
}
.art-media {
  margin: 0;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(223,154,1,.18), rgba(255,255,255,.04)),
    #0b0806;
}
.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity .22s ease, transform .28s ease;
}
.art-card img.loaded { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .art-card:hover img.loaded { transform: scale(1.035) translateZ(0); }
}
.art-meta { padding: 16px; }
.art-meta p { margin: 0 0 8px; color: var(--accent-2); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 900; }
.art-meta h3 { margin: 0; font-size: 16px; line-height: 1.35; color: var(--paper); }

.feature-panel { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 54px; background: linear-gradient(180deg, rgba(255,107,43,.08), transparent); }
.upgrade-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.upgrade-list li { border: 1px solid var(--line); border-radius: 26px; padding: 24px; background: rgba(255,255,255,.04); }
.upgrade-list span { color: var(--accent); font-weight: 900; }
.upgrade-list strong { display: block; font-size: 22px; margin: 8px 0; }
.upgrade-list p { color: var(--muted); margin: 0; line-height: 1.55; }

.contact { display: flex; align-items: end; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
.contact p { max-width: 680px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; transition-delay: var(--delay, 0ms); }
.reveal.visible { opacity: 1; transform: none; }

.lightbox { width: min(1100px, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 28px; padding: 0; background: #090706; color: var(--ink); box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(0,0,0,.82); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #050403; display: block; border-radius: 28px 28px 0 0; }
.lightbox-caption { padding: 18px 22px 24px; }
.lightbox-caption p { color: var(--accent-2); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; margin: 0 0 8px; font-weight: 900; }
.lightbox-caption h3 { margin: 0; font-size: clamp(20px, 3vw, 34px); }
.close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); color: #111; font-size: 28px; cursor: pointer; }

@media (max-width: 860px) {
  body {
    background:
      linear-gradient(90deg, rgba(18,13,9,.92), rgba(18,13,9,.78)),
      url("assets/original-bg.jpg") center top / 1400px auto repeat-y,
      var(--bg);
  }
  body::before, .noise { display: none; }
  .site-header { position: absolute; backdrop-filter: none; background: linear-gradient(to bottom, rgba(13,11,9,.92), rgba(13,11,9,.25)); }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 96px; min-height: auto; }
  .hero-stack { min-height: 380px; perspective: none; transform: none !important; }
  .hero-stack img { box-shadow: 0 14px 36px rgba(0,0,0,.38); }
  .marquee-track { animation-duration: 55s; }
  .intro-grid, .feature-panel, .contact { grid-template-columns: 1fr; display: grid; }
  .contact { align-items: start; }
  .filters { position: static; background: transparent; }
  .gallery { columns: 2 160px; column-gap: 12px; }
  .art-card { margin-bottom: 12px; border-radius: 18px; box-shadow: none; }
  .art-meta { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
