@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root {
  --black: #120A0B;
  --maroon: #5C1420;
  --maroon-deep: #3A0D15;
  --gold: #C9A24B;
  --cream: #F3EDE4;
  --muted: #8A7A6D;
  --border: rgba(243, 237, 228, 0.12);
  --serif: 'Fraunces', serif;
  --sans: 'Inter', sans-serif;
}

:root {
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* old Edge/IE */
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, newer Edge */
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 10, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand img { height: 100px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--cream);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--cream);
  padding: 8px 12px;
  font-size: 1.2rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 8px 28px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 100px 0;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(92, 20, 32, 0.5), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 30%, rgba(201, 162, 75, 0.08), transparent 55%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 760px; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1,
.hero-content p,
.hero-content .hero-actions {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h1 { animation-delay: 0.05s; }
.hero-content p { animation-delay: 0.2s; }
.hero-content .hero-actions { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .hero-content h1, .hero-content p, .hero-content .hero-actions {
    opacity: 1;
    animation: none;
  }
}

.eyebrow-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.eyebrow-mark::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero p {
  margin-top: 26px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: #dab661; }

.btn-outline { border-color: var(--border); color: var(--cream); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* Category grid: editorial, asymmetric, not identical SaaS cards */
.reel-section { padding: 90px 0; border-bottom: 1px solid var(--border); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.section-head p { color: var(--muted); max-width: 420px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.category-card {
  grid-column: span 1;
  background: var(--black);
  padding: 44px 32px;
  position: relative;
  transition: background 0.25s ease, transform 0.3s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card:hover { background: var(--maroon-deep); transform: translateY(-4px); }

/* Scroll-reveal: elements fade/rise in as they enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.category-card.has-thumb {
  overflow: hidden;
}

.category-card.has-thumb::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-image: var(--thumb-url);
  background-size: cover;
  background-position: center;
  filter: blur(6px);
  transform: scale(1.08);
  transition: filter 0.25s ease;
}

.category-card.has-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,10,11,0.55) 0%, rgba(18,10,11,0.85) 100%);
  transition: background 0.25s ease;
}

.category-card.has-thumb:hover::after {
  background: linear-gradient(180deg, rgba(92,20,32,0.55) 0%, rgba(18,10,11,0.88) 100%);
}

.category-card .num,
.category-card > div {
  position: relative;
  z-index: 1;
}

.category-card .num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 0.85rem;
}

.category-card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin-top: 24px;
}

.category-card .count { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

.category-card .arrow {
  margin-top: 24px;
  color: var(--gold);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.category-card:hover .arrow { transform: translateX(6px); }

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

/* Work grid (category detail pages) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.work-card {
  border: 1px solid var(--border);
  background: rgba(243, 237, 228, 0.02);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.work-card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--maroon-deep);
  position: relative;
  overflow: hidden;
}

.work-card .thumb iframe,
.work-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; border: 0;
}

.yt-facade {
  position: relative;
  cursor: pointer;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(18, 10, 11, 0.75);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.yt-facade:hover .play-btn {
  background: var(--gold);
  color: var(--black);
  transform: translate(-50%, -50%) scale(1.08);
}

.work-card .info { padding: 20px; }
.work-card h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.work-card p { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

.more-cta { margin-top: 56px; text-align: center; }

/* About / Services */
.prose { max-width: 640px; }
.prose p { color: var(--muted); font-size: 1.05rem; margin-bottom: 20px; }
.prose h1, .page-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 32px;
}

.page-header { padding: 100px 0 60px; border-bottom: 1px solid var(--border); }

.services-list { display: flex; flex-direction: column; }

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  gap: 24px;
  flex-wrap: wrap;
  transition: padding-left 0.3s ease;
}

.service-row:hover { padding-left: 8px; }

.service-row h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.service-row p { color: var(--muted); margin-top: 8px; max-width: 460px; }
.service-row .price { color: var(--gold); font-size: 0.95rem; white-space: nowrap; }

/* Reviews */
.reviews-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.reviews-row::-webkit-scrollbar { height: 6px; }
.reviews-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.review-card {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  background: rgba(243, 237, 228, 0.02);
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.review-text {
  color: var(--cream);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.review-name { font-family: var(--serif); font-size: 1rem; }
.review-role { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

/* Add-review modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-panel {
  position: relative;
  background: var(--black);
  border: 1px solid var(--border);
  max-width: 440px;
  width: 100%;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--gold); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

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

.contact-methods { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; }

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.contact-method:hover { border-color: var(--gold); }
.contact-method .label { color: var(--muted); font-size: 0.85rem; }
.contact-method .value { font-family: var(--serif); font-size: 1.15rem; margin-top: 4px; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%;
  background: rgba(243, 237, 228, 0.03);
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 0.95rem;
  border-radius: 2px;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold); }

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer img { height: 100px; opacity: 0.7; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--gold); }

.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  color: var(--muted);
  display: inline-flex;
  transition: color 0.2s ease;
}

.social-icon:hover { color: var(--gold); }

@media (max-width: 760px) {
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
  .footer-brand {
    flex-direction: column;
    gap: 12px;
  }
  .site-footer img { height: 52px; }
  .footer-links {
    width: 100%;
    flex-direction: column;
    gap: 16px;
  }
}

/* Admin */
.admin-lock { max-width: 420px; margin: 140px auto; text-align: center; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.btn-small { padding: 8px 14px; font-size: 0.82rem; }
.admin-table td:first-child .btn-small { padding: 6px 10px; margin-right: 6px; }
.admin-table td:last-child .btn-small { margin-right: 8px; }
.btn-small:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-small:disabled:hover { border-color: var(--border); color: var(--cream); }
.btn-danger { color: #d4756b; border-color: rgba(212,117,107,0.4); }
.btn-danger:hover { background: rgba(212,117,107,0.1); border-color: #d4756b; }
.status-msg { margin-top: 16px; font-size: 0.9rem; }
.status-msg.error { color: #d4756b; }
.status-msg.success { color: #7fbf7f; }

select {
  width: 100%;
  background: rgba(243, 237, 228, 0.03);
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 0.95rem;
}
