/* Hover guard — the `@media (hover: hover)` blocks below.
 *
 * A touch screen has no pointer to hover with, so the browser synthesises a
 * hover on the first tap. Every :hover rule then fires on that tap, the
 * browser counts it as "the page changed", and the click that would have
 * followed the link is swallowed: the button plays its animation and you have
 * to tap a second time to actually go anywhere. `hover: hover` matches only
 * devices with a real hovering pointer, so these rules are skipped entirely on
 * phones and tablets and one tap is enough. Desktop is unaffected — a
 * conditional group rule changes neither specificity nor source order.
 */

/* ============================================================
   ViDiPiXs — Service list + detail (editorial)
   ============================================================ */

:root {
  --tg-gold: #FFCC01;
  --tg-bg: #0a0a0a;
  --tg-bg-soft: #070707;
  --tg-fg: #ecebe6;
  --tg-fg-soft: #cfcdc6;
  --tg-muted: #8b8a85;
  --tg-line: #1a1a1a;
  --tg-line-strong: #2a2620;
  --tg-border: #3a3830;
}

.tg-sv {
  font-family: 'Inter', sans-serif;
  background: var(--tg-bg);
  color: var(--tg-fg);
  line-height: 1.55;
}
.tg-sv * { box-sizing: border-box; }

.tg-sv .tg-serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.tg-sv em.tg-gold,
.tg-sv .tg-gold {
  color: var(--tg-gold);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}
.tg-sv .tg-muted { color: var(--tg-muted); font-size: 14px; }
.tg-sv .tg-eyebrow {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tg-gold);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
@property --tg-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.tg-sv .tg-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tg-sv .tg-btn-gold {
  position: relative;
  border: 2px solid transparent;
  color: #0a0a0a;
  /* Solid gold interior with a WHITE highlight flowing around the border (same
     rotating --tg-angle as .tg-btn-ghost, white-on-gold). Paid pages only. */
  background:
    linear-gradient(var(--tg-gold), var(--tg-gold)) padding-box,
    repeating-conic-gradient(from var(--tg-angle),
      #B37E00 0deg, #ffffff 45deg, #B37E00 90deg) border-box;
  box-shadow:
    0 0 18px 1px rgba(255, 255, 255, 0.45),
    0 0 40px 7px rgba(255, 204, 1, 0.28);
  animation: tg-btn-spin 2.6s linear infinite;
}
@media (hover: hover) {
  .tg-sv .tg-btn-gold:hover {
    color: #0a0a0a;
    text-decoration: none;
    background:
      linear-gradient(#fff, #fff) padding-box,
      repeating-conic-gradient(from var(--tg-angle),
        #B37E00 0deg, #ffffff 45deg, #B37E00 90deg) border-box;
  }
}
.tg-sv .tg-btn-ghost {
  position: relative;
  border: 2px solid transparent;
  color: var(--tg-fg);
  /* Gold flows around the border via rotating --tg-angle; four highlights
     (90deg repeat) + strong contrast keep the flow clearly visible on the long
     flat edges of wide pills, not just the rounded ends. */
  background:
    linear-gradient(#0a0a0a, #0a0a0a) padding-box,
    repeating-conic-gradient(from var(--tg-angle),
      #6E4E00 0deg, #FFF3B0 45deg, #6E4E00 90deg) border-box;
  box-shadow:
    0 0 18px 1px rgba(255, 204, 1, 0.40),
    0 0 40px 6px rgba(255, 204, 1, 0.18);
  animation: tg-btn-spin 2.5s linear infinite;
  transition: color 0.2s ease;
}
@media (hover: hover) {
  .tg-sv .tg-btn-ghost:hover {
    color: var(--tg-fg);
    text-decoration: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tg-sv .tg-btn-ghost,
  .tg-sv .tg-btn-gold { animation: none; }
}
@keyframes tg-btn-spin { to { --tg-angle: 360deg; } }

/* ============ HERO ============ */
.tg-sv-hero {
  position: relative;
  min-height: 520px;
  height: 62vh;
  overflow: hidden;
  border-bottom: 0.5px solid var(--tg-line);
}
.tg-sv-hero-bg {
  position: absolute; inset: 0; z-index: 1;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: grayscale(0.15) brightness(0.5);
}
.tg-sv-hero .video-background {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background: #0a0a0a;
}
.tg-sv-hero .hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.75s ease;
  filter: grayscale(0.15) brightness(0.5);
}
.tg-sv-hero .hero-bg-video.is-ready { opacity: 1; }
.tg-sv-hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 45%, rgba(0,0,0,0.85) 100%);
}
.tg-sv-hero-inner {
  position: relative; z-index: 3;
  height: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 36px;
  padding: 0 clamp(24px, 6vw, 96px) clamp(60px, 8vw, 96px);
}
.tg-sv-issue {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--tg-gold);
  margin-bottom: 14px;
}
.tg-sv-issue::before {
  content: ''; width: 28px; height: 1px; background: var(--tg-gold);
}
.tg-sv-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(52px, 8.5vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #f5f3ec;
  margin: 0;
}
.tg-sv-hero-title em { font-style: italic; color: var(--tg-gold); }
.tg-sv-hero-side {
  align-self: end;
  text-align: right;
  padding-bottom: 8px;
}
.tg-sv-hero-side p {
  font-size: 13px;
  color: var(--tg-fg-soft);
  max-width: 340px;
  margin: 0 0 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

/* ============ INTRO BAND ============ */
.tg-sv-intro {
  padding: clamp(60px, 9vw, 110px) clamp(20px, 6vw, 64px);
  text-align: center;
  background: var(--tg-bg-soft);
  border-bottom: 0.5px solid var(--tg-line);
}
.tg-sv-intro .tg-divider-gold {
  width: 32px; height: 1px; background: var(--tg-gold);
  margin: 0 auto 20px;
}
.tg-sv-intro h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  max-width: 760px;
  margin: 0 auto 14px;
  color: var(--tg-fg);
  font-weight: 400;
  font-style: italic;
}
.tg-sv-intro p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--tg-muted);
  font-size: 14px;
}

/* ============ SERVICE CHAPTER (list page) ============ */
.tg-sv-chapter {
  padding: clamp(70px, 10vw, 120px) clamp(20px, 6vw, 72px);
  border-bottom: 0.5px solid var(--tg-line);
}
.tg-sv-chapter-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
}
.tg-sv-chapter.reverse .tg-sv-chapter-grid {
  grid-template-columns: 1fr 1.05fr;
}
.tg-sv-chapter.reverse .tg-sv-chapter-img { order: 2; }
.tg-sv-chapter.reverse .tg-sv-chapter-body { order: 1; }

.tg-sv-chapter-img {
  position: relative;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  background-color: #111;
  overflow: hidden;
}
.tg-sv-chapter-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.tg-sv-chapter-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.9;
  color: var(--tg-gold);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}
.tg-sv-chapter-eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--tg-muted);
  margin-bottom: 14px;
}
.tg-sv-chapter-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--tg-fg);
  margin: 0 0 22px;
}
.tg-sv-chapter-title em { font-style: italic; color: var(--tg-gold); }
.tg-sv-chapter-title a,
.tg-sv-chapter-title a:link,
.tg-sv-chapter-title a:visited {
  color: var(--tg-fg) !important;
  text-decoration: none !important;
  font: inherit;
  transition: color 0.2s ease;
}
@media (hover: hover) {
  .tg-sv-chapter-title a:hover { color: var(--tg-gold) !important; }
}
a.tg-sv-chapter-img { display: block; cursor: pointer; }
.tg-sv-chapter-rule {
  width: 60px; height: 1px;
  background: var(--tg-gold);
  margin-bottom: 26px;
}
.tg-sv-chapter-desc {
  color: var(--tg-fg-soft);
  font-size: 15px;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 0 32px;
  font-weight: 300;
}
.tg-sv-chapter-desc pre,
.tg-sv-chapter-desc p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--tg-fg-soft);
  white-space: pre-wrap;
  margin: 0 0 14px;
  background: transparent;
  border: 0;
  padding: 0;
}
.tg-sv-chapter-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ BULLET CHIP GRID (parsed from "• X  • Y" copy) ============ */
.tg-sv-chapter-desc.is-bullets,
.tg-sv-sub-desc.is-bullets {
  max-width: 580px;
}
.tg-sv-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 2px;
  border-top: 0.5px solid var(--tg-line-strong);
  border-bottom: 0.5px solid var(--tg-line-strong);
  padding: 14px 0;
}
.tg-sv-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 4px;
  font-size: 13px;
  color: var(--tg-fg-soft);
  letter-spacing: 0.02em;
  line-height: 1.45;
  border-bottom: 0.5px dotted transparent;
  transition: color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
  font-weight: 300;
}
@media (hover: hover) {
  .tg-sv-bullets li:hover {
    color: var(--tg-fg);
    padding-left: 8px;
  }
}
@media (hover: hover) {
  .tg-sv-bullets li:hover .tg-sv-dot {
    background: var(--tg-gold);
    transform: scale(1.4);
  }
}
.tg-sv-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tg-gold);
  opacity: 0.65;
  margin-top: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
@media (hover: hover) {
  .tg-sv-bullets li:hover .tg-sv-dot { opacity: 1; }
}
.tg-sv-text {
  display: inline-block;
}

/* On the sub-service head (detail page) bullets can use 1 col since column is narrower */
.tg-sv-sub-desc.is-bullets .tg-sv-bullets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 700px) {
  .tg-sv-bullets { grid-template-columns: 1fr; }
}

/* ============ DETAIL: SUB-SERVICE BLOCK ============ */
.tg-sv-sub {
  padding: clamp(60px, 9vw, 110px) clamp(20px, 6vw, 72px);
  border-bottom: 0.5px solid var(--tg-line);
}
.tg-sv-sub-head {
  max-width: 1500px;
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: end;
}
.tg-sv-sub-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.9;
  color: var(--tg-gold);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.tg-sv-sub-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--tg-fg);
  margin: 0;
}
.tg-sv-sub-title em { font-style: italic; color: var(--tg-gold); }
.tg-sv-sub-desc {
  color: var(--tg-fg-soft);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
  max-width: 560px;
  margin: 0 0 6px;
}

/* Masonry of sub-service images */
.tg-sv-masonry {
  column-count: 3;
  column-gap: 14px;
  max-width: 1500px;
  margin: 0 auto;
}
.tg-sv-masonry figure {
  margin: 0 0 14px;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  background: #111;
  display: block;
}
.tg-sv-masonry figure a {
  display: block;
}
.tg-sv-masonry figure img {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.92);
}
@media (hover: hover) {
  .tg-sv-masonry figure:hover img {
    transform: scale(1.04);
    filter: brightness(1);
  }
}
.tg-sv-masonry .tg-cap {
  position: absolute;
  left: 12px; bottom: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: #f5f3ec;
  background: rgba(0,0,0,0.55);
  padding: 4px 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
@media (hover: hover) {
  .tg-sv-masonry figure:hover .tg-cap { opacity: 1; }
}

.tg-sv-masonry .tg-vid {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.tg-sv-masonry .tg-vid iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Sub-service actions row */
.tg-sv-sub-actions {
  max-width: 1500px;
  margin: 36px auto 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ END CTA ============ */
.tg-sv-end {
  padding: clamp(80px, 12vw, 130px) clamp(24px, 7vw, 96px);
  background: var(--tg-bg-soft);
  text-align: center;
}
.tg-sv-end h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 30px;
  color: var(--tg-fg);
}
.tg-sv-end h2 em { font-style: italic; color: var(--tg-gold); }
.tg-sv-end-actions {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}

/* Empty state */
.tg-sv-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--tg-muted);
  font-size: 14px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .tg-sv-masonry { column-count: 2; }
}
@media (max-width: 900px) {
  .tg-sv-hero-inner { grid-template-columns: 1fr; padding-top: 120px; padding-bottom: 80px; }
  .tg-sv-hero-side { text-align: left; }
  .tg-sv-hero-side p { margin-left: 0; }
  .tg-sv-chapter-grid,
  .tg-sv-chapter.reverse .tg-sv-chapter-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .tg-sv-chapter.reverse .tg-sv-chapter-img { order: 0; }
  .tg-sv-chapter.reverse .tg-sv-chapter-body { order: 0; }
  .tg-sv-sub-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}
@media (max-width: 600px) {
  .tg-sv-hero { min-height: 460px; }
  .tg-sv-hero-title { font-size: 54px !important; }
  .tg-sv-chapter-num { font-size: 56px; }
  .tg-sv-chapter-title { font-size: 40px; }
  /* Small multi-column thumbnails on mobile (not one image per row). */
  .tg-sv-masonry { column-count: 3; column-gap: 8px; }
  .tg-sv-masonry figure { margin-bottom: 8px; }
}
