:root {
  --black: #050505;
  --black-2: #0c0c0d;
  --white: #f4f2ee;
  --grey: #8f8a82;
  --grey-dim: #5a564f;
  --line: rgba(244, 242, 238, 0.14);
  --gold: #a9895e;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --display: 'Cinzel', var(--serif);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(169, 137, 94, 0.45) transparent;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(169, 137, 94, 0.45);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(169, 137, 94, 0.7);
}

body {
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, #131313 0%, var(--black) 55%),
    var(--black);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* subtle film-grain overlay for a mysterious, textured feel
   (plain opacity, no mix-blend-mode — blend modes on a full-viewport
   fixed layer force the browser to recomposite against everything
   beneath on every scroll frame, which is a common cause of scroll
   jank on lower-power desktop GPUs) */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* thin progress line tracking scroll position through the page */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  z-index: 6;
  pointer-events: none;
}

/* viewfinder-style corner brackets framing the whole screen */
.frame-corners {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 1.6s ease-out 0.4s forwards;
}

.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(169, 137, 94, 0.5);
}

.corner-tl {
  top: max(1.1rem, env(safe-area-inset-top) + 0.6rem);
  left: max(1.1rem, env(safe-area-inset-left) + 0.6rem);
  border-right: none;
  border-bottom: none;
}

.corner-tr {
  top: max(1.1rem, env(safe-area-inset-top) + 0.6rem);
  right: max(1.1rem, env(safe-area-inset-right) + 0.6rem);
  border-left: none;
  border-bottom: none;
}

.corner-bl {
  bottom: max(1.1rem, env(safe-area-inset-bottom) + 0.6rem);
  left: max(1.1rem, env(safe-area-inset-left) + 0.6rem);
  border-right: none;
  border-top: none;
}

.corner-br {
  bottom: max(1.1rem, env(safe-area-inset-bottom) + 0.6rem);
  right: max(1.1rem, env(safe-area-inset-right) + 0.6rem);
  border-left: none;
  border-top: none;
}

/* ---------- Sticky site navigation, reveals after scrolling a while ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(0.7rem + env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-left) + 0.75rem) 0.7rem;
  background: rgba(5, 5, 5, 0.82);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.site-nav.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav-logo {
  display: flex;
  align-items: center;
}

.site-nav-logo img {
  width: 28px;
  height: auto;
}

.site-nav-links {
  display: flex;
  gap: clamp(0.9rem, 3vw, 1.6rem);
}

.site-nav-links a {
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.site-nav-links a:hover,
.site-nav-links a:focus-visible {
  color: var(--gold);
}

/* ---------- Simple page header (used on secondary pages like inquire.html) ---------- */
.page-header {
  display: flex;
  justify-content: center;
  padding: calc(3rem + env(safe-area-inset-top)) 1.5rem 1rem;
}

.page-header-logo {
  display: block;
  opacity: 0;
  animation: fadeUp 1.6s ease-out 0.2s forwards;
}

.page-header-logo img {
  width: 64px;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(244, 242, 238, 0.1));
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(6rem + env(safe-area-inset-top)) 1.5rem calc(4rem + env(safe-area-inset-bottom));
}

.hero-parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.hero-glow {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(70vw, 620px);
  height: min(70vw, 620px);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(169,137,94,0.10) 0%, rgba(169,137,94,0.03) 45%, transparent 70%);
  pointer-events: none;
  animation: glowBreathe 7s ease-in-out infinite;
}

@keyframes glowBreathe {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.page-particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  left: var(--x);
  bottom: -24px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169,137,94,0.95) 0%, rgba(169,137,94,0.25) 55%, transparent 75%);
  opacity: 0;
  animation: particleFloat var(--dur) ease-in-out var(--delay) infinite;
}

@keyframes particleFloat {
  0%   { transform: translate(0, 0); opacity: 0; }
  12%  { opacity: var(--peak); }
  80%  { opacity: var(--peak); }
  100% { transform: translate(var(--drift), -620px); opacity: 0; }
}

.hero-logo {
  position: relative;
  display: block;
  width: min(58vw, 260px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 40px rgba(244,242,238,0.08));
  will-change: transform, opacity;
}

.logo-stroke {
  fill: var(--white);
  fill-opacity: 0;
  stroke: var(--gold);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-opacity: 0;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: logoDraw var(--dur) ease-out var(--delay) forwards;
}

@keyframes logoDraw {
  0%   { stroke-dashoffset: var(--len); stroke-opacity: 0; fill-opacity: 0; }
  10%  { stroke-opacity: 1; }
  60%  { stroke-dashoffset: 0; stroke-opacity: 1; fill-opacity: 0; }
  100% { stroke-dashoffset: 0; stroke-opacity: 0; fill-opacity: 1; }
}

.hero-kicker {
  position: relative;
  margin: 2.2rem 0 0;
  min-height: 1em;
  line-height: 1;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: fadeUp 1.6s ease-out 2.9s forwards;
}

.scramble-glyph {
  color: var(--grey-dim);
}

.hero-line {
  position: relative;
  width: 1px;
  height: 56px;
  margin: 1.6rem 0;
  overflow: hidden;
  background: linear-gradient(var(--line), transparent);
  opacity: 0;
  animation: fadeUp 1.6s ease-out 3.2s forwards;
}

.hero-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -60%;
  width: 100%;
  height: 60%;
  background: linear-gradient(var(--gold), rgba(169,137,94,0.4) 60%, transparent);
  animation: lineSweep 3.2s ease-in-out infinite;
  animation-delay: 4.5s;
}

@keyframes lineSweep {
  0% { top: -60%; opacity: 0; }
  20% { opacity: 1; }
  75% { top: 100%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hero-sub {
  position: relative;
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--grey);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeUp 1.6s ease-out 3.4s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(2.4rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: 2px;
  height: 44px;
  opacity: 0;
  animation: fadeUp 1.6s ease-out 3.8s forwards;
}

.scroll-cue span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--gold), rgba(169,137,94,0.5) 55%, transparent);
  box-shadow: 0 0 8px rgba(169,137,94,0.5);
  animation: scrollPulse 2.2s ease-in-out infinite;
  animation-delay: 4.3s;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  65% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 1.75rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}

.section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  font-family: var(--display);
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  text-align: center;
}

.work-title,
.edition-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.75rem, 5.4vw, 2.6rem);
  letter-spacing: 0.06em;
  text-align: center;
  margin: 0 0 0.7rem;
  color: var(--white);
}

.work-series {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  margin: 0 0 2.5rem;
}

.edition-meaning {
  text-align: center;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--grey);
  margin: -0.6rem 0 1.2rem;
}

.edition-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 1.2rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(169, 137, 94, 0.5);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.work-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 3rem;
  border: 1px solid var(--line);
}

.work-photo--cutout {
  max-width: 380px;
  width: 100%;
  margin: 0 auto 1rem;
  border: none;
  filter: none;
}

/* Swipeable photo gallery — plain CSS scroll-snap, no JS required */
.photo-swipe {
  margin: 0 0 1.4rem;
}

.photo-swipe-track {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 6%;
}

.photo-swipe-track::-webkit-scrollbar {
  display: none;
}

.photo-swipe-track img {
  flex: 0 0 88%;
  min-width: 0;
  width: 88%;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ---------- Gallery page: all artwork photos, grouped by edition ---------- */
.gallery-intro {
  padding-bottom: 1rem;
}

.gallery-group {
  max-width: 1040px;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
  }
}

.availability {
  text-align: center;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--grey);
  margin: 1.8rem 0 0;
}

.availability--venice {
  color: var(--gold);
}

.edition-cta {
  display: block;
  width: fit-content;
  margin: 2.5rem auto 0;
  padding: 0.75rem 1.8rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.edition-cta:hover,
.edition-cta:focus-visible {
  background: var(--gold);
  color: var(--black);
}

.details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  margin: 0 0 3rem;
}

.details > div {
  text-align: center;
}

.details dt {
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 0.4rem;
}

.details dd {
  margin: 0;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--grey);
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--line);
  margin: 0 auto 3rem;
}

.statement p {
  font-size: 1.28rem;
  line-height: 1.85;
  font-weight: 400;
  color: #d8d5cf;
  text-align: center;
  margin: 0 0 1.6rem;
}

.statement p:last-child { margin-bottom: 0; }

/* ---------- Artist ---------- */
.artist-photo {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.8rem;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(169, 137, 94, 0.4);
  filter: grayscale(1) contrast(1.05);
}

.artist-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.55rem, 4.6vw, 2.1rem);
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0 0 0.6rem;
  color: var(--white);
}

.artist-meta {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  color: var(--grey);
  margin: 0 0 2.5rem;
}

.artist-link {
  display: block;
  margin: 2rem auto 0;
  text-align: center;
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.artist-link:hover,
.artist-link:focus-visible {
  border-color: var(--gold);
}

/* ---------- Inquiry ---------- */
.inquiry-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.55rem, 4.6vw, 2.1rem);
  text-align: center;
  letter-spacing: 0.02em;
  margin: 0 0 1.2rem;
}

.inquiry-sub {
  text-align: center;
  font-size: 1.12rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--grey);
  max-width: 460px;
  margin: 0 auto 3rem;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.inquiry-form[hidden] {
  display: none;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.field label,
.interest legend {
  display: block;
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.6rem;
}

.field label span,
.interest legend .optional {
  color: var(--gold);
  font-family: var(--serif);
  letter-spacing: normal;
  text-transform: none;
}

.field label span { font-size: 1.05rem; }
.interest legend .optional { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-dim); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 400;
  padding: 0.5rem 0.1rem;
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--grey-dim);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0px 1000px var(--black-2) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.interest {
  border: none;
  padding: 0;
  margin: 0;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 400;
  font-size: 1.08rem;
  color: #d8d5cf;
  padding: 0.5rem 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  -webkit-tap-highlight-color: transparent;
}

.checkbox input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--gold);
  background: transparent;
}

.submit-btn {
  margin-top: 1rem;
  align-self: center;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 1rem 2.6rem;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background: var(--gold);
  color: var(--black);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey-dim);
  font-style: italic;
  margin: 0.5rem 0 0;
}

.form-privacy {
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--grey-dim);
  max-width: 380px;
  margin: 0.8rem auto 0;
}

.form-success,
.form-error {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.75rem 5rem;
  text-align: center;
  font-size: 1.22rem;
  line-height: 1.8;
  font-weight: 400;
}

.form-success { color: var(--gold); }
.form-error { color: #c07a6a; }

/* Floating "Inquire" pill — stays put like a small cloud while you scroll */
.inquire-fab {
  position: fixed;
  left: 50%;
  bottom: max(1.7rem, env(safe-area-inset-bottom) + 1.1rem);
  transform: translateX(-50%);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(169, 137, 94, 0.55);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.45), 0 0 22px rgba(169, 137, 94, 0.18);
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  animation: fabDrift 5s ease-in-out infinite;
}

.inquire-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.inquire-fab:hover,
.inquire-fab:focus-visible {
  border-color: var(--gold);
  background: rgba(12, 12, 13, 0.85);
}

@keyframes fabDrift {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 3rem 1.5rem calc(4rem + env(safe-area-inset-bottom));
  opacity: 0.55;
}

.footer-logo {
  width: 40px;
  height: auto;
}

.footer p {
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--grey);
  margin: 0;
}

@media (max-width: 480px) {
  .section { padding: 4rem 1.25rem; }

  .details {
    flex-direction: column;
    gap: 1.4rem;
  }

  .details > div {
    width: 100%;
  }

  .submit-btn {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
  }
}
