/* Custom layer on top of Tailwind – cPanel static site */
:root {
  --bg: #0e0d0c;
  --bg-elevated: #171614;
  --bg-soft: #1f1e1b;
  --line: rgba(255, 244, 220, 0.12);
  --text: #f6f1e8;
  --muted: #a8a194;
  --accent: #e8b04a;
  --accent-hover: #f0c066;
  --accent-ink: #1a1206;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Soft ambient glow + fingerprint/topography ripple */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% 10%, rgba(232, 176, 74, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 70%, rgba(232, 176, 74, 0.04), transparent 50%),
    repeating-radial-gradient(circle at 50% -30%, transparent, transparent 7px, rgba(232, 176, 74, 0.02) 8px, rgba(232, 176, 74, 0.02) 9px);
}

/* Film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, #c9922e, var(--accent), #f5d98a);
  box-shadow: 0 0 12px rgba(232, 176, 74, 0.55);
  transform-origin: left;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Nav glass */
.nav-glass {
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgba(14, 13, 12, 0.82);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.nav-glass.is-scrolled {
  background: rgba(14, 13, 12, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* Header avatar */
.nav-avatar {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  ring: 2px;
  box-shadow:
    0 0 0 2px rgba(232, 176, 74, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

a:hover .nav-avatar {
  transform: scale(1.05);
  box-shadow:
    0 0 0 2px rgba(232, 176, 74, 0.7),
    0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Accent helpers */
.text-accent {
  color: var(--accent);
}

.bg-accent {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.bg-elevated {
  background-color: var(--bg-elevated);
}

.border-line {
  border-color: var(--line);
}

/* ---------- Buttons: high contrast gold + dark text ---------- */
.btn-primary,
a.btn-primary,
button.btn-primary {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(232, 176, 74, 0.22);
  transition:
    filter 0.2s var(--ease),
    transform 0.15s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
  background: var(--accent-hover) !important;
  color: var(--accent-ink) !important;
  filter: none;
  box-shadow: 0 10px 28px rgba(232, 176, 74, 0.32);
}

.btn-primary:active,
.btn-ghost:active {
  transform: scale(0.98);
}

.btn-ghost,
a.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text) !important;
  background: transparent;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.15s var(--ease),
    color 0.2s var(--ease);
}

.btn-ghost:hover,
a.btn-ghost:hover {
  border-color: rgba(232, 176, 74, 0.45);
  background: rgba(232, 176, 74, 0.08);
  color: var(--text) !important;
}

/* Work cards */
.work-card {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 0;
  margin: 0;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.35s var(--ease),
    box-shadow 0.4s var(--ease);
}

.work-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- In-page YouTube modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.video-modal[hidden] {
  display: none !important;
}

.video-modal.is-open[hidden] {
  display: grid !important;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 4, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.video-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  border-radius: 18px;
  border: 1px solid rgba(232, 176, 74, 0.28);
  background: #141310;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.35s var(--ease-out);
}

.video-modal.is-open .video-modal__panel {
  transform: none;
}

.video-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.video-modal__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-modal__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.video-modal__close:hover {
  background: rgba(232, 176, 74, 0.15);
  border-color: rgba(232, 176, 74, 0.4);
}

.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__hint {
  margin: 0;
  padding: 0.55rem 1rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

body.modal-open {
  overflow: hidden;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 176, 74, 0.45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

.work-card .thumb img {
  transition: transform 0.6s var(--ease-out);
}

.work-card:hover .thumb img {
  transform: scale(1.06);
}

.play-icon {
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.work-card:hover .play-icon {
  transform: scale(1.1);
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

/* Venture cards */
.venture-card {
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.35s var(--ease),
    box-shadow 0.4s var(--ease);
}

.venture-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 176, 74, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- Scroll reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

.reveal-left.in {
  opacity: 1;
  transform: none;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

.reveal-right.in {
  opacity: 1;
  transform: none;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.reveal-scale.in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* Hero photo float */
.photo-glow {
  background: radial-gradient(ellipse at center, rgba(232, 176, 74, 0.32), transparent 70%);
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.92); opacity: 0.55; }
  70% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes fade-up-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-photo-wrap {
  animation: float-soft 7s ease-in-out infinite;
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    #ffe9b0 45%,
    var(--accent) 90%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4.5s linear infinite;
}

.availability-dot {
  position: relative;
}

.availability-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.65);
  animation: pulse-ring 2s ease-out infinite;
}

/* Magnetic CTAs */
.magnetic {
  transition: transform 0.25s var(--ease);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
}

.mobile-menu.open {
  max-height: 380px;
  opacity: 1;
}

/* Logo white plate – keeps brand logos readable */
.logo-plate {
  background: #ffffff;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.logo-plate img {
  height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Shop logo: green mark on light plate so it stays readable */
.logo-plate.shop-logo {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7f3 100%);
  height: 90px;
}

.logo-plate.shop-logo img {
  height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  /* Boost visibility if the source is low-contrast green */
  filter: contrast(1.25) saturate(1.2) brightness(0.95);
}

/* Nav link active */
.nav-link-active {
  color: #f6f1e8 !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-photo-wrap,
  .shimmer-text,
  .availability-dot::after {
    animation: none !important;
  }

  .work-card:hover,
  .venture-card:hover {
    transform: none;
  }

  .scroll-progress {
    transition: none;
  }
}

/* ---------- Custom Cursor ---------- */
@media (pointer: fine) {
  body, a, button, input, textarea, .work-card, .venture-card {
    cursor: none !important;
  }
}

.custom-cursor,
.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  transition: transform 0.1s ease;
}

.custom-cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(0);
}

.custom-cursor-follower.hover {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: rgba(232, 176, 74, 0.1);
  border-color: rgba(232, 176, 74, 0.5);
}
