/* ═══════════════════════════════════════════════════════
   ViddInk · style.css
   ═══════════════════════════════════════════════════════ */

/* ─── Variables ────────────────────────────────────────── */
:root {
  --bg:         #0b0907;
  --bg-2:       #111009;
  --bg-card:    #181410;
  --bg-card-h:  #201a13;
  --gold:       #c4a265;
  --gold-light: #ddb96a;
  --gold-dim:   #7a6340;
  --gold-glow:  rgba(196, 162, 101, 0.14);
  --cream:      #e8dcc8;
  --muted:      #8a7a62;
  --dim:        #4a3e2d;
  --border:     #231b12;
  --border-g:   #3a2d1a;
  --nav-h:      70px;
  --r:          5px;
  --ease:       0.3s ease;
  --max-w:      1200px;
}

/* ─── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
ul  { list-style: none; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ─── Grain overlay ─────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ─── Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -999px; left: 0;
  background: var(--gold);
  color: var(--bg);
  padding: 8px 16px;
  z-index: 9999;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
}
.skip-link:focus { top: 0; }

/* ─── Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--nav-h);
  transition: background var(--ease), backdrop-filter var(--ease), border-color var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(11, 9, 7, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  width: 56px; height: 56px;
  object-fit: contain;
  mix-blend-mode: screen;
}
.nav-links {
  display: flex;
  gap: 44px;
  align-items: center;
}
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color var(--ease);
  position: relative;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav-links a:hover         { color: var(--gold); }
.nav-links a:hover::after  { transform: scaleX(1); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border-radius: var(--r);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../images/gallery/raccoon-knight.jpg');
  background-size: cover;
  background-position: center 20%;
  filter: saturate(0.5);
  opacity: 0.42;
  z-index: 0;
}
.hero-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(11,9,7,0.6) 0%, rgba(11,9,7,0.05) 25%, rgba(11,9,7,0.4) 70%, rgba(11,9,7,0.92) 100%),
    radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, rgba(11,9,7,0.35) 100%);
}
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  width: min(640px, 90vw);
  height: min(640px, 90vw);
  background: radial-gradient(circle, rgba(196,162,101,0.07) 0%, transparent 68%);
  pointer-events: none;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.hero-logo {
  width: min(340px, 72vw);
  height: min(340px, 72vw);
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.82;
  animation: logoBreath 7s ease-in-out infinite;
}
.hero-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 6px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.9);
}
.hero-desc {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  font-style: italic;
  text-shadow: 0 1px 10px rgba(0,0,0,0.9);
}
.btn-primary {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 38px;
  border: 1px solid var(--gold-dim);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
  border-radius: var(--r);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 36px rgba(196,162,101,0.22);
}
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  margin: 0 auto;
  animation: scrollPulse 2.4s ease-in-out infinite;
}

/* ─── Shared section styles ─────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin-bottom: 10px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.04em;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-dim);
  margin-bottom: 18px;
}
.ornament span {
  display: block;
  width: 72px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim));
}
.ornament span:last-child {
  background: linear-gradient(to left, transparent, var(--gold-dim));
}

/* ─── Gallery ───────────────────────────────────────────── */
.gallery-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 110px 28px 110px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 52px;
}
.filter {
  padding: 8px 22px;
  border: 1px solid var(--border-g);
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all var(--ease);
}
.filter:hover,
.filter.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--border);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: border-color var(--ease), box-shadow var(--ease);
  display: block;
  width: 100%;
  padding: 0;
}
.gallery-item.portrait {
  aspect-ratio: 3 / 4;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}
.item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,9,7,0.88) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--ease);
}
.gallery-item:hover .item-overlay,
.gallery-item:focus-visible .item-overlay { opacity: 1; }
.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: var(--gold-dim);
  box-shadow: 0 0 28px rgba(196,162,101,0.12);
  outline: none;
}
.item-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--cream);
  display: block;
}
.item-cat {
  font-size: 0.82rem;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.04em;
  display: block;
}
.gallery-item.hidden { display: none; }

/* ─── Commission stripe ─────────────────────────────────── */
.stripe {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tier-dots { display: none; }

.commissions-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 110px 28px;
}
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.tier-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 52px 36px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.tier-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 10px 48px rgba(196,162,101,0.09);
  transform: translateY(-5px);
}
.tier-featured {
  border-color: var(--gold-dim);
  background: var(--bg-card-h);
  transform: translateY(-14px);
}
.tier-featured:hover {
  transform: translateY(-19px);
  box-shadow: 0 14px 56px rgba(196,162,101,0.14);
}
.tier-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg);
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.tier-numeral {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.2rem;
  color: var(--gold-dim);
  margin-bottom: 14px;
  line-height: 1;
}
.tier-name {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cream);
  margin-bottom: 10px;
}
.tier-price {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 28px;
  font-style: italic;
}
.tier-price strong {
  font-style: normal;
  color: var(--gold);
  font-size: 1.5rem;
  font-family: 'Cinzel', serif;
  font-weight: 600;
}
.tier-list {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}
.tier-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.tier-list li::before {
  content: '—';
  color: var(--gold-dim);
  flex-shrink: 0;
  font-size: 0.78rem;
}
.tier-cta {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--r);
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  transition: all var(--ease);
  margin-top: auto;
}
.tier-cta:hover {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(196,162,101,0.2);
}

/* ─── Contact ───────────────────────────────────────────── */
.contact-section {
  max-width: 740px;
  margin: 0 auto;
  padding: 110px 28px 120px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-g);
  border-radius: var(--r);
  padding: 14px 18px;
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--dim); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(196,162,101,0.07);
}
.form-field textarea {
  resize: vertical;
  min-height: 148px;
  line-height: 1.6;
}
.form-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6340' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-field select option { background: var(--bg-card); }

.btn-submit {
  align-self: flex-start;
  padding: 14px 40px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--r);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  transition: all var(--ease);
}
.btn-submit:hover:not(:disabled) {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 28px rgba(196,162,101,0.2);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: rgba(196,162,101,0.07);
  border: 1px solid var(--gold-dim);
  border-radius: var(--r);
  color: var(--gold);
  font-style: italic;
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 64px 24px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  width: 76px; height: 76px;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.65;
}
.footer-tagline {
  font-family: 'Cinzel', serif;
  font-size: 0.64rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.footer-nav {
  display: flex;
  gap: 36px;
}
.footer-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--dim);
  font-style: italic;
}

/* ─── Lightbox ──────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 5, 3, 0.96);
  backdrop-filter: blur(6px);
}
.lb-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-height: 90vh;
  max-width: 88vw;
}
.lb-img {
  max-height: 78vh;
  max-width: 84vw;
  object-fit: contain;
  border: 1px solid var(--border-g);
  border-radius: var(--r);
  animation: lbIn 0.22s ease;
}
.lb-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lb-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--cream);
}
.lb-cat {
  font-size: 0.84rem;
  color: var(--gold);
  font-style: italic;
}
.lb-close {
  position: fixed;
  top: 20px; right: 26px;
  z-index: 2;
  font-size: 2.4rem;
  color: var(--muted);
  line-height: 1;
  transition: color var(--ease);
  padding: 6px;
}
.lb-close:hover { color: var(--cream); }
.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 3.5rem;
  color: var(--muted);
  padding: 16px 20px;
  transition: color var(--ease);
  line-height: 1;
}
.lb-prev:hover, .lb-next:hover { color: var(--gold); }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }

/* ─── Fade-in on scroll ─────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes logoBreath {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(196,162,101,0.13)); }
  50%       { filter: drop-shadow(0 0 52px rgba(196,162,101,0.34)); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1) translateY(0); }
  50%       { opacity: 0.9;  transform: scaleY(1.1) translateY(4px); }
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.portrait { aspect-ratio: 4 / 3; }
  .tiers {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding: 20px 20px 28px;
    align-items: start;
  }
  .tiers::-webkit-scrollbar { display: none; }
  .tier-card {
    flex: 0 0 80vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .tier-featured { transform: none; }
  .tier-featured:hover { transform: translateY(-5px); }
}

@media (max-width: 768px) {
  .nav-inner { justify-content: flex-end; }
  .nav-links {
    display: none !important;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column !important;
    align-items: center;
    background: rgba(11, 9, 7, 0.97);
    border-bottom: 1px solid var(--border-g);
    z-index: 9998;
    padding: 8px 0 20px;
  }
  .nav-links.open {
    display: flex !important;
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links li a { display: block; padding: 18px 40px; font-size: 0.8rem; }
  .burger { display: flex; }

  /* ── Mobile carousel ── */
  .gallery-section { padding-left: 0; padding-right: 0; }
  .gallery-section .section-head,
  .gallery-section .filter-bar { padding-left: 20px; padding-right: 20px; }
  .gallery-grid {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding: 0 20px 20px;
    align-items: center;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-item {
    flex: 0 0 80vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    aspect-ratio: 4 / 3;
  }
  .gallery-item.portrait {
    flex: 0 0 68vw;
    scroll-snap-stop: always;
    aspect-ratio: 3 / 4;
  }
  .item-overlay { opacity: 1; }

  .form-row { grid-template-columns: 1fr; }

  .tier-card { padding: 44px 28px 36px; }

  .tier-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
  }
  .tier-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-g);
    transition: background 0.3s, transform 0.3s;
  }
  .tier-dot.active {
    background: var(--gold);
    transform: scale(1.3);
  }

  .lb-prev, .lb-next { font-size: 2.6rem; }
}

