:root {
  color-scheme: dark;
  --ink: #090909;
  --panel: #14120f;
  --gold: #e3bd71;
  --gold-light: #f5db9c;
  --ivory: #f6f0e6;
  --muted: #cec4b4;
  --line: rgba(227, 189, 113, .25);
}

html body {
  background: var(--ink);
  color: var(--ivory);
}

body .top-bar {
  background: #0e0c09;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

body .top-bar svg, body .check-icon { fill: var(--gold); }

nav.bg-gray-900, footer.bg-gray-900, #mobile-menu.bg-gray-800 {
  background: #0b0a08;
}

nav.bg-gray-900, footer.bg-gray-900 { border-block: 1px solid var(--line); }
nav .container { padding-inline: clamp(1rem, 4vw, 1.75rem); }

nav .nav-link {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
}

footer svg [fill="#758CA3"], footer svg [fill="#aab8c5"] { fill: var(--gold); }

body .nav-link:hover, body .nav-link.current-page, body .text-studio-accent { color: var(--gold); }
body .hover-studio-text:hover { color: var(--gold-light); }
body .bg-studio-accent { background: var(--gold); }
body .hover-studio-bg:hover { background: var(--gold-light); }

body .dark-section, body .light-section {
  border-image: none;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

body .dark-section { background: #0e0d0b; }
body .light-section { background: #17140f; }
body .bg-texture {
  background: linear-gradient(rgba(14, 12, 9, .93), rgba(14, 12, 9, .93)), url('/images/DarkLotusBackground.webp') center / cover;
}

body .basic-img, body .section-img, body .gallery-img {
  border: 1px solid var(--line);
  border-radius: 8px;
  filter: none;
  box-shadow: 0 12px 28px #0007;
}

body .marketing-art,
body .marketing-art:hover {
  filter: grayscale(1) sepia(.4);
}

body .book-button, body a.book-button:hover {
  background: linear-gradient(115deg, #f4da9c, #d7ac5a 72%, #efcd86);
  border: 1px solid #eac37e;
  box-shadow: 0 4px 18px rgba(224, 175, 79, .16);
  color: #1c1305;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  text-align: center;
  text-decoration: none;
}

body a.book-button:hover { box-shadow: 0 4px 22px rgba(224, 175, 79, .37); }

body a:focus-visible, body button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

#menu-toggle { min-width: 44px; min-height: 44px; padding: .55rem; }

.studio-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0b0907;
}

.studio-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 82% 30%, #75531f45, transparent 55%);
  content: '';
}

.studio-hero-inner {
  width: min(100% - 2.5rem, 70rem);
  margin: auto;
  padding-block: clamp(2.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(1.5rem, 6vw, 5.5rem);
  align-items: center;
}

.studio-hero-location {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.35rem;
  color: var(--gold);
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.studio-hero-location::before { width: 2.25rem; height: 1px; background: var(--gold); content: ''; }

.studio-hero h1 {
  margin-bottom: 1.15rem;
  color: var(--ivory);
  font-size: clamp(2.55rem, 5.5vw, 5.35rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.studio-hero h1 span { display: block; color: var(--gold-light); }
.studio-hero-description { max-width: 35ch; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.15rem); line-height: 1.65; }

.studio-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.3rem; margin-top: 1.85rem; }
.studio-hero .book-button { border-radius: 6px; padding: .85rem 1.3rem; font-weight: 800; }
.studio-hero-secondary { padding-block: .55rem; color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .4em; }
.studio-hero-secondary:hover { color: var(--gold-light); }

.studio-hero-art {
  position: relative;
  margin: 0;
  padding: .45rem;
  border: 1px solid #ca9e61a0;
  border-radius: 47% 47% 7px 7px / 28% 28% 7px 7px;
  background: #100d08;
  box-shadow: 0 0 0 1px #e3bd7110, 0 0 3.25rem #bc84342e;
  overflow: hidden;
}

.tattoo-showcase {
  position: relative;
  height: clamp(20rem, 48vw, 33rem);
  overflow: hidden;
  border-radius: inherit;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  opacity: 0;
  pointer-events: none;
}

.showcase-michael { filter: grayscale(1) brightness(1.28) contrast(1.08); }
.showcase-floral { object-position: center 49%; }
.showcase-red { object-position: center 47%; }
.showcase-portrait { object-position: center 39%; }
.showcase-turtle { object-position: center 54%; }
.showcase-current { opacity: 1; z-index: 2; transition: opacity .52s ease; }
.showcase-previous { opacity: 1; z-index: 1; }

.showcase-controls {
  position: absolute;
  inset: auto .9rem .9rem;
  display: flex;
  z-index: 3;
  align-items: center;
  justify-content: space-between;
  gap: .3rem .55rem;
  padding: .2rem .3rem .2rem .65rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0c0907ed;
  color: var(--gold-light);
}

.showcase-controls[hidden] { display: none; }
.showcase-caption { font-size: .875rem; font-weight: 700; }
.showcase-buttons { display: flex; align-items: center; gap: .2rem; }
.showcase-buttons button { min-width: 44px; min-height: 44px; padding-inline: .4rem; border-radius: 3px; color: inherit; font-size: .875rem; cursor: pointer; }
.showcase-buttons button:hover { background: #35291a; }
.showcase-buttons :is(.showcase-back, .showcase-next) { font-size: 1.55rem; line-height: 1; }

@media (prefers-reduced-motion: reduce) { .showcase-current { transition: none; } }

.studio-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.studio-feature {
  display: block;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--gold-light);
  text-align: left;
}
.studio-feature:hover { border-color: var(--gold); background: #1f190f; }
.studio-feature strong { display: block; margin-bottom: .2rem; font-size: 1.08rem; }
.studio-feature span { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.studio-stories > div { background: var(--panel); border: 1px solid var(--line); }

#gallery { scroll-margin-top: 5rem; }

.tattoo-gallery-hint {
  margin: 0 0 1.5rem;
  color: var(--gold-light);
  font-size: .9rem;
  text-align: center;
}

.tattoo-touch-hint { display: none; }

.tattoo-tile {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e0c09;
  box-shadow: 0 12px 28px #0007;
  cursor: zoom-in;
}

body .tattoo-tile > .gallery-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body .tattoo-tile > .tattoo-fit { object-fit: contain; }
.tattoo-tile:is(:hover, :focus-visible) { border-color: var(--gold); box-shadow: 0 0 19px #e3bd713a; }

.tattoo-detail-label {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  padding: .35rem .6rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0b0907ed;
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 700;
}

.tattoo-preview {
  position: fixed;
  z-index: 60;
  display: block;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #0e0c09;
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 1px var(--gold), 0 0 2.1rem #e3bd7147, 0 14px 38px #000d;
  pointer-events: none;
}

.tattoo-preview[hidden] { display: none; }
.tattoo-preview img { display: block; width: 100%; height: auto; }

.tattoo-viewer {
  width: fit-content;
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  overflow: auto;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: #100d08;
  color: var(--ivory);
  box-shadow: 0 0 2.5rem #d6a95140;
}

.tattoo-viewer::backdrop { background: #070605dd; }
body:has(.tattoo-viewer[open]) { overflow: hidden; }

.tattoo-viewer-photo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 76dvh;
  margin-inline: auto;
  object-fit: contain;
}

.tattoo-viewer-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem 1rem; padding: .65rem .8rem; }
.tattoo-viewer-caption p { margin: 0; color: var(--gold-light); font-weight: 700; }
.tattoo-viewer-controls { display: flex; flex-wrap: wrap; gap: .35rem; }
.tattoo-viewer-controls button { min-height: 44px; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 4px; color: var(--ivory); font: inherit; cursor: pointer; }
.tattoo-viewer-controls button:hover { background: #342819; color: var(--gold-light); }

@media (hover: none) {
  .tattoo-hover-hint { display: none; }
  .tattoo-touch-hint { display: inline; }
}

@keyframes gold-glow {
  0%, 100% { box-shadow: 0 3px 13px rgba(224, 175, 79, .23); }
  50% { box-shadow: 0 3px 24px rgba(224, 175, 79, .52), 0 0 46px rgba(224, 175, 79, .15); }
}

@media (prefers-reduced-motion: no-preference) {
  .studio-hero .book-button { animation: gold-glow 3.5s ease-in-out 5; }
  .studio-hero .book-button:hover, .studio-hero .book-button:focus-visible { animation: none; }
  .tattoo-preview:not([hidden]), .tattoo-viewer[open] { animation: tattoo-reveal 160ms ease-out; }
  @keyframes tattoo-reveal { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
}

@media (max-width: 700px) {
  .studio-hero-inner { grid-template-columns: minmax(0, 1fr); width: min(100% - 2rem, 33rem); padding-block: 1.6rem 2.4rem; gap: 1.35rem; }
  .studio-hero-location { margin-bottom: .8rem; }
  .studio-hero h1 { margin-bottom: .75rem; font-size: clamp(2rem, 8.7vw, 3.25rem); }
  .studio-hero-description { font-size: .95rem; line-height: 1.5; }
  .studio-hero-actions { margin-top: 1.1rem; gap: .45rem .8rem; }
  .studio-hero .book-button { padding: .65rem .85rem; font-size: .875rem; }
  .studio-hero-secondary { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
  .studio-hero-art { max-width: 26rem; width: 100%; justify-self: center; }
  .tattoo-showcase { height: clamp(17rem, 76vw, 24rem); }
  .studio-features { grid-template-columns: 1fr; }
}

@media (max-width: 375px) { .showcase-caption { font-size: .8rem; } }
