/* Viginti Octo — shared refinements on top of Tailwind CDN */

:root {
  --vo-black: #0a0a0a;
  --vo-white: #fafafa;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--vo-black);
  color: var(--vo-white);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.font-display {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
}

/* subtle film-grain texture over the whole page */
.vo-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%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");
}

/* hairline rule */
.vo-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250,250,250,0.35), transparent);
}

/* number badges (01, 02, 03...) */
.vo-index {
  font-family: 'Cormorant Garamond', serif;
  font-variant-numeric: tabular-nums;
}

/* link underline sweep */
.vo-link {
  position: relative;
  display: inline-block;
}
.vo-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.vo-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* fade-up on scroll */
.vo-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.vo-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* card hover invert */
.vo-card {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

/* custom scrollbar, minimal */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--vo-black);
}
::-webkit-scrollbar-thumb {
  background: rgba(250,250,250,0.15);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(250,250,250,0.3);
}

/* marquee */
.vo-marquee-track {
  display: flex;
  width: max-content;
  animation: vo-scroll 32s linear infinite;
}
@keyframes vo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* mobile nav */
.vo-nav-panel {
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.vo-nav-panel.is-open {
  transform: translateY(0);
}

/* ===== Cartier-style layout additions ===== */

/* full-screen menu overlay */
.vo-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--vo-black);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.vo-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.vo-menu-overlay a {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.vo-menu-overlay.is-open a {
  opacity: 1;
  transform: translateY(0);
}
.vo-menu-overlay.is-open a:nth-child(1) { transition-delay: 0.08s; }
.vo-menu-overlay.is-open a:nth-child(2) { transition-delay: 0.14s; }
.vo-menu-overlay.is-open a:nth-child(3) { transition-delay: 0.2s; }
.vo-menu-overlay.is-open a:nth-child(4) { transition-delay: 0.26s; }
.vo-menu-overlay.is-open a:nth-child(5) { transition-delay: 0.32s; }

/* generated monochrome "imagery" tiles, in place of photography */
.vo-tile {
  position: relative;
  background-color: #050505;
  overflow: hidden;
}
.vo-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.vo-tile:hover::before {
  transform: scale(1.06);
}
.vo-tile-1::before { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.16), transparent 55%), radial-gradient(circle at 80% 90%, rgba(255,255,255,0.08), transparent 60%), #050505; }
.vo-tile-2::before { background: radial-gradient(circle at 75% 25%, rgba(255,255,255,0.14), transparent 50%), radial-gradient(circle at 20% 85%, rgba(255,255,255,0.09), transparent 55%), #050505; }
.vo-tile-3::before { background: radial-gradient(circle at 50% 15%, rgba(255,255,255,0.15), transparent 50%), radial-gradient(circle at 15% 75%, rgba(255,255,255,0.07), transparent 55%), #050505; }
.vo-tile-4::before { background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.13), transparent 50%), radial-gradient(circle at 85% 70%, rgba(255,255,255,0.1), transparent 55%), #050505; }
.vo-tile-5::before { background: radial-gradient(circle at 65% 80%, rgba(255,255,255,0.15), transparent 50%), radial-gradient(circle at 25% 20%, rgba(255,255,255,0.08), transparent 55%), #050505; }
.vo-tile-6::before { background: radial-gradient(circle at 40% 60%, rgba(255,255,255,0.14), transparent 50%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.09), transparent 55%), #050505; }

.vo-tile-lines {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 64px);
}

/* thin serif eyebrow rule */
.vo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.vo-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* faint embossed logo watermark, fixed behind all page content */
.vo-watermark {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}
.vo-watermark img {
  width: min(58vw, 780px);
  max-width: none;
  height: auto;
  opacity: 0.16;
  transform: translateY(-2%);
}

/* live site screenshot thumbnails, shown in full color */
.vo-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.08) contrast(1.03) brightness(0.97);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.vo-tile:hover .vo-shot {
  transform: scale(1.06);
  filter: saturate(1.15) contrast(1.05) brightness(1);
}
.vo-shot-frame {
  position: relative;
}
.vo-shot-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.55), transparent 45%);
  pointer-events: none;
}

/* hero vignette */
.vo-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(255,255,255,0.04), transparent 70%),
    #060606;
}
