/* ==========================================================
   BLACK INK STUDIO — Design tokens
   Base: warm near-black, not pure black. Off-white ink text.
   A single metallic-bronze line is the only accent colour —
   used sparingly, never as a flood fill.
   ========================================================== */

:root {
  --ink:        #0b0a09;
  --ink-2:      #131110;
  --charcoal:   #1b1815;
  --panel:      rgba(236, 231, 221, 0.05);
  --panel-line: rgba(236, 231, 221, 0.12);
  --bone:       #ece7dd;
  --bone-dim:   #a89f8f;
  --bone-faint: #6f685c;
  --metal:      #b7a483;
  --metal-dim:  #7d715a;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1200px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--bone-dim); max-width: 62ch; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--panel-line);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.btn:hover { border-color: var(--metal); transform: translateY(-1px); }

.btn-solid {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.btn-solid:hover { background: var(--metal); border-color: var(--metal); }

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  max-width: 1180px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(19, 17, 16, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
}

.site-nav .brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--bone);
}

.site-nav .brand span { color: var(--metal); }

.site-nav .brand.brand-logo { display: flex; align-items: center; }
.site-nav .brand.brand-logo img { height: 30px; width: auto; display: block; }
@media (max-width: 860px) {
  .site-nav .brand.brand-logo img { height: 26px; }
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.site-nav a.nav-link {
  font-size: 0.86rem;
  color: var(--bone-dim);
  transition: color 0.2s ease;
}

.site-nav a.nav-link:hover,
.site-nav a.nav-link.active { color: var(--bone); }

.nav-cta {
  padding: 9px 18px;
  font-size: 0.82rem;
  border: 1px solid var(--metal-dim);
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-nav ul { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--bone);
    font-size: 1.4rem;
    cursor: pointer;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(11,10,9,0.35) 0%, rgba(11,10,9,0.55) 55%, var(--ink) 100%), var(--charcoal);
  background-size: cover;
  background-position: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 24s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* Reduced motion: drop the video, keep the poster still */
@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; }
}

/* Phone: show the whole video frame instead of a cropped fill.
   The hero stacks — full video on top, headline on solid ground below. */
@media (max-width: 760px) {
  .hero {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--ink);
    padding-top: 88px; /* clear the fixed nav */
  }
  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    background-size: contain;
  }
  .hero-media img,
  .hero-media video {
    object-fit: contain;
    animation: none;
  }
  .hero::after { display: none; }
  .hero-content {
    position: relative;
    z-index: 2;
    padding-top: 34px;
    padding-bottom: 48px;
    background: var(--ink);
  }
  .hero-scroll { display: none; }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(11,10,9,0.85) 0%, rgba(11,10,9,0.35) 45%, rgba(11,10,9,0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 90px;
}

.hero-eyebrow {
  color: var(--metal);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 7.2rem);
  color: var(--bone);
  margin-bottom: 0.15em;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 46ch;
  color: var(--bone-dim);
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--bone-faint);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 46px;
  background: var(--bone-faint);
}

/* ---------- Sections ---------- */

section { padding: 120px 0; }
.section-tight { padding: 80px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--panel-line);
  padding-bottom: 28px;
}

.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--bone); max-width: 14ch; }
.section-head .lede { max-width: 40ch; }

.on-charcoal { background: var(--ink-2); }

/* ---------- Studio quote ---------- */

.studio-quote {
  text-align: center;
  padding: 140px 0;
  background: var(--charcoal);
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
}

.studio-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-style: italic;
  color: var(--bone);
  max-width: 22ch;
  margin: 0 auto;
  line-height: 1.35;
}

/* ---------- Gallery ---------- */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.gallery-filters a {
  padding: 8px 16px;
  font-size: 0.82rem;
  border: 1px solid var(--panel-line);
  color: var(--bone-dim);
  transition: all 0.2s ease;
}

.gallery-filters a:hover,
.gallery-filters a.active {
  border-color: var(--metal);
  color: var(--bone);
}

.masonry {
  columns: 3 240px;
  column-gap: 18px;
}

.masonry figure {
  margin: 0 0 18px;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.masonry img {
  width: 100%;
  transition: transform 0.6s ease;
}

.masonry figure:hover img { transform: scale(1.045); }

.masonry figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(11,10,9,0.85), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 0.82rem;
}

.masonry figure:hover figcaption { opacity: 1; transform: translateY(0); }
.masonry figcaption .desc {
  display: block;
  color: var(--bone-dim);
  font-size: 0.76rem;
  line-height: 1.45;
  margin-top: 5px;
  max-width: 42ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.masonry figcaption .cat { color: var(--metal); display: block; font-size: 0.72rem; letter-spacing: 0.06em; margin-top: 6px; }

/* Studio photo grid */

.studio-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.studio-photo-grid figure {
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 2;
}
.studio-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.studio-photo-grid figure:hover img { transform: scale(1.045); }
@media (max-width: 640px) { .studio-photo-grid { grid-template-columns: 1fr; } }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11,10,9,0.94);
  backdrop-filter: blur(6px);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }
.lightbox-inner { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 90vw; }
.lightbox img { max-height: 78vh; max-width: 90vw; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-caption { text-align: center; max-width: 60ch; }
.lightbox-caption .lightbox-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--bone);
}
.lightbox-caption .lightbox-desc {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--bone-dim);
  line-height: 1.55;
}
.lightbox-caption .lightbox-desc:empty { display: none; }

.lightbox-close {
  position: absolute;
  top: 26px;
  right: 32px;
  background: none;
  border: none;
  color: var(--bone);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ---------- Cards (artists, services) ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .masonry { columns: 2 200px; }
}

.artist-card {
  border: 1px solid var(--panel-line);
  background: var(--panel);
}

.artist-card .photo { aspect-ratio: 4/5; overflow: hidden; }
.artist-card .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3); transition: filter 0.4s ease; }
.artist-card:hover .photo img { filter: grayscale(0); }

.artist-card .body { padding: 22px; }
.artist-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.artist-card .specialty { color: var(--metal); font-size: 0.82rem; margin-bottom: 12px; display: block; }

.service-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--panel-line);
}

.service-row h3 { font-size: 1.4rem; margin-bottom: 6px; }
.service-row .price { font-family: var(--font-display); font-size: 1.3rem; color: var(--metal); white-space: nowrap; }

/* ---------- Glass panel / booking ---------- */

.glass-panel {
  background:
    linear-gradient(150deg, rgba(236, 231, 221, 0.07), rgba(236, 231, 221, 0.02) 55%),
    rgba(19, 17, 16, 0.35);
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(236, 231, 221, 0.08), 0 20px 50px -30px rgba(0, 0, 0, 0.7);
  padding: 44px;
}

@media (max-width: 640px) { .glass-panel { padding: 26px; } }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full { grid-column: 1 / -1; }

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

.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--bone-dim);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(11,10,9,0.4);
  border: 1px solid var(--panel-line);
  color: var(--bone);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--metal);
}

.field textarea { resize: vertical; min-height: 110px; }

.field input[type="file"] { padding: 10px; font-size: 0.85rem; }

.form-note { font-size: 0.8rem; color: var(--bone-faint); margin-top: 18px; }

.alert {
  padding: 16px 20px;
  border: 1px solid var(--panel-line);
  margin-bottom: 24px;
  font-size: 0.92rem;
}
.alert-success { border-color: #6b9e78; color: #cfe8d4; }
.alert-error   { border-color: #a9615c; color: #f0cfcd; }

/* ---------- Testimonials ---------- */

.testimonial {
  border-left: 1px solid var(--metal-dim);
  padding-left: 22px;
}
.testimonial p { color: var(--bone); font-family: var(--font-display); font-style: italic; font-size: 1.15rem; }
.testimonial .who { color: var(--bone-faint); font-size: 0.82rem; }

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--panel-line); }
.faq-item summary {
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--bone);
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--metal); font-size: 1.4rem; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .answer { padding: 0 0 24px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--panel-line);
  padding: 70px 0 34px;
  background: var(--ink-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

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

.footer-grid h4 { color: var(--bone); font-size: 0.9rem; letter-spacing: 0.04em; margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.footer-grid a, .footer-grid p { display: block; color: var(--bone-faint); font-size: 0.88rem; margin-bottom: 10px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--panel-line);
  color: var(--bone-faint);
  font-size: 0.8rem;
}

/* ---------- Utility ---------- */

/* Reveal + stagger stay visible unless JS is running (html.js is set by
   main.js itself, so a stale/blocked script can never hide content). */
.reveal {
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal        { opacity: 0; transform: translateY(24px); will-change: opacity, transform; }
html.js .reveal--left  { transform: translateX(-40px); }
html.js .reveal--right { transform: translateX(40px); }
html.js .reveal--scale { transform: scale(0.94); }
html.js .reveal.in-view { opacity: 1; transform: none; }

.page-hero {
  padding: 200px 0 70px;
  border-bottom: 1px solid var(--panel-line);
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }

/* ==========================================================
   MOTION + GLASSMORPHISM LAYER
   ========================================================== */

/* --- Staggered children reveal --- */
.stagger > * {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .stagger > * {
  opacity: 0;
  transform: translateY(26px);
}
html.js .stagger.in-view > * {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--stagger-step, 90ms) * var(--i, 0));
}

/* --- Nav: glass that tightens on scroll --- */
.site-nav {
  transition: padding 0.35s ease, background 0.35s ease,
              border-color 0.35s ease, box-shadow 0.35s ease, top 0.35s ease;
}
.site-nav.scrolled {
  top: 10px;
  padding: 9px 22px;
  background: rgba(19, 17, 16, 0.82);
  border-color: rgba(236, 231, 221, 0.18);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
}

/* --- Button sheen sweep --- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

/* --- Glass card: pointer-reactive highlight + lift --- */
.glass-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease, box-shadow 0.4s ease;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(183, 164, 131, 0.16),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 164, 131, 0.4);
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.7);
}
.glass-card:hover::before { opacity: 1; }

/* --- Slow float for glass panels --- */
@keyframes glassFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.glass-float { animation: glassFloat 7s ease-in-out infinite; }

/* --- Card hover polish --- */
.artist-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease, box-shadow 0.4s ease;
}
.artist-card:hover {
  transform: translateY(-5px);
  border-color: rgba(183, 164, 131, 0.4);
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.75);
}
.artist-card .photo img { transition: filter 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.artist-card:hover .photo img { transform: scale(1.05); }

.service-row { transition: padding-left 0.35s ease, border-color 0.35s ease; }
.service-row:hover { padding-left: 12px; border-color: rgba(183, 164, 131, 0.45); }
.service-row .price { transition: transform 0.35s ease; }
.service-row:hover .price { transform: scale(1.06); }

.testimonial { transition: border-color 0.35s ease, transform 0.35s ease; }
.testimonial:hover { border-color: var(--metal); transform: translateX(4px); }

.masonry figure { transition: box-shadow 0.4s ease; }
.masonry figure:hover { box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8); }

/* --- Hero content entrance --- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.28s; }
.hero-content > *:nth-child(3) { animation-delay: 0.41s; }
.hero-content > *:nth-child(4) { animation-delay: 0.54s; }
.hero-scroll { animation: heroRise 1s ease 0.8s backwards; }

/* --- Floating WhatsApp button --- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 800;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #0b0a09;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, 0.5);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: waPulse 2.4s ease-out infinite;
}
.wa-float:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 16px 40px -6px rgba(37, 211, 102, 0.65); }
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}

.btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #0b0a09;
  font-weight: 600;
}
.btn-whatsapp:hover { background: #1fbe5b; border-color: #1fbe5b; }

/* --- Respect reduced motion (belt & braces on top of the global rule) --- */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal--left, html.js .reveal--right, html.js .reveal--scale,
  html.js .stagger > * { opacity: 1 !important; transform: none !important; }
  .glass-float, .hero-content > *, .hero-scroll { animation: none !important; }
  .wa-float::before { animation: none; }
}
