:root {
  --bg: #000;
  --text: #f4f1ea;
  --muted: #9a958c;
  --line: rgba(255, 255, 255, 0.12);
  --sold: #c43c3c;
  --serif: "Lusitana", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
body.nav-open { overflow: hidden; }
p { margin: 0 0 1em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
  transition: background 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}
.page-home .site-header {
  position: absolute;
  left: 0;
  right: 0;
}
.page-home .brand,
.page-home .nav a {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7);
}
.page-home .socials a {
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.9));
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}
.page-home .site-header.is-scrolled {
  position: fixed;
}
.page-inner .store,
.page-inner .work {
  padding-top: 8px;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  text-decoration: none;
  font-size: 20px;
  letter-spacing: 0.04em;
  margin-right: auto;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.brand:hover { opacity: 0.7; }
.header-tools {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav {
  display: flex;
  gap: 26px;
}
.nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.12em;
  opacity: 0.72;
  transition: opacity 0.3s;
}
.nav a.is-active,
.nav a:hover { opacity: 1; }

.socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.socials a {
  display: flex;
  opacity: 0.88;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.socials a:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.socials svg { width: 18px; height: 18px; display: block; }

.menu-btn,
.drawer-close {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  padding: 4px;
  cursor: pointer;
  line-height: 0;
}

.drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 40;
  padding: 72px 28px;
  flex-direction: column;
  gap: 8px;
}
.drawer a {
  display: block;
  text-decoration: none;
  font-size: 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.drawer .socials {
  margin-top: 28px;
  gap: 20px;
}
.drawer .socials svg { width: 20px; height: 20px; }
.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: block;
}

main { max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }

.hero {
  position: relative;
  width: 100%;
  height: min(88vh, 980px);
  min-height: 520px;
  overflow: hidden;
  background: #000;
  margin: 0 0 56px;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
}
.hero.is-loaded img {
  animation: hero-in 1.4s var(--ease) both, hero-drift 22s 1.2s ease-out forwards;
}
.hero-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 72px max(24px, calc((100% - 1200px) / 2 + 24px)) 48px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.92) 78%, #000);
  animation: rise 1s 0.25s var(--ease) both;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.hero h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #fff;
  padding: 12px 22px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-family: var(--serif);
  background: #fff;
  color: #111;
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, box-shadow 0.35s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.btn-ghost {
  background: transparent;
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.intro, .contact {
  max-width: 680px;
  padding: 24px 0 48px;
}
.intro h2, .contact h2, .featured h2, .more h2 {
  font-size: 28px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 8px 0 24px;
}
.section-head a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.section-head a:hover { color: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s var(--ease) forwards;
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
}
.card {
  text-decoration: none;
  display: block;
}
.card h3,
.card p {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.card.is-loaded h3,
.card.is-loaded p {
  opacity: 1;
}
.card-wrap[hidden] { display: none; }
.card-img {
  position: relative;
  background: #141414;
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 12px;
}
.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.06) 45%, transparent 70%);
  background-size: 220% 100%;
  animation: sheen 1.35s linear infinite;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
  z-index: 1;
}
.card-img.is-loaded::after {
  opacity: 0;
  animation: none;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), filter 0.8s;
}
.card-img.is-loaded img {
  opacity: 1;
}
.card:hover .card-img img {
  transform: scale(1.1);
  filter: contrast(1.06) saturate(1.08);
}
.card h3 {
  font-size: 16px;
  margin: 0 0 4px;
  transition: opacity 0.3s;
}
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.sold {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--sold);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  z-index: 2;
}
.sold-inline { color: var(--sold); text-transform: uppercase; font-size: 14px; letter-spacing: 0.08em; }

.store { padding-top: 28px; }
.store-head { max-width: 720px; margin-bottom: 28px; }
.store-head h1 { font-size: 36px; }
.search input {
  width: 100%;
  max-width: 360px;
  margin-top: 8px;
  background: rgba(255,255,255,0.08);
  border: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 16px;
  padding: 12px 16px;
  transition: background 0.3s, box-shadow 0.3s;
}
.search input::placeholder { color: #bfbfbf; }
.search input:focus {
  outline: none;
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}

.store-layout { display: grid; grid-template-columns: 200px 1fr; gap: 32px; }
.filters { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.filter {
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  padding: 8px 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}
.filter.is-active, .filter:hover { color: #fff; }

.work { padding-top: 24px; }
.back {
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
  transition: color 0.3s;
}
.back:hover { color: #fff; }
.work-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
.gallery { display: grid; gap: 12px; }
.gallery-item {
  position: relative;
  background: #141414;
  min-height: 120px;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.06) 45%, transparent 70%);
  background-size: 220% 100%;
  animation: sheen 1.35s linear infinite;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.gallery-item.is-loaded::after {
  opacity: 0;
  animation: none;
}
.gallery img {
  width: 100%;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.gallery img.is-loaded {
  opacity: 1;
}
.info h1 { font-size: clamp(28px, 4vw, 40px); }
.price { font-size: 22px; }
.desc { color: #ddd; margin: 16px 0; }
.specs { list-style: none; padding: 0; margin: 0 0 24px; color: var(--muted); }
.specs li { padding: 6px 0; border-top: 1px solid var(--line); }
.specs strong { color: #fff; display: inline-block; min-width: 88px; font-weight: 400; }
.hint { color: var(--muted); margin-top: 16px; max-width: 36em; }
.more { margin-top: 72px; }

.contact-socials {
  display: flex;
  gap: 18px;
  margin: 8px 0 22px;
}
.contact-socials a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s, transform 0.3s var(--ease);
}
.contact-socials a:hover {
  color: #fff;
  transform: translateY(-1px);
}
.contact-socials svg { width: 16px; height: 16px; }

.site-footer {
  padding: 40px 24px 56px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .socials {
  justify-content: center;
  margin-bottom: 16px;
  gap: 18px;
}
.site-footer .socials svg { width: 18px; height: 18px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { opacity: 0.7; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes sheen {
  from { background-position: 180% 0; }
  to { background-position: -80% 0; }
}
@keyframes hero-in {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.04); }
}
@keyframes hero-drift {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header-tools .socials { display: none; }
  .menu-btn { display: block; }
  .drawer[hidden] { display: none; }
  .drawer { display: flex; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .store-layout { grid-template-columns: 1fr; }
  .filters { flex-direction: row; flex-wrap: wrap; gap: 12px 18px; }
  .work-layout { grid-template-columns: 1fr; }
  .hero { height: 78vh; min-height: 420px; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .card { opacity: 1; transform: none; }
  .card h3, .card p,
  .card-img img, .gallery img, .hero img { opacity: 1 !important; }
  .card-img::after, .gallery-item::after { display: none; }
}
