/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: #0C0C0C;
  font-family: 'Nunito', system-ui, sans-serif;
  color: #F5F5F5;
  overflow-x: hidden;
}

/* ── Grain overlay ────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 150px;
  pointer-events: none;
  z-index: 9999;
  opacity: .6;
}

/* ── Typography ───────────────────────────────────────── */
.font-serif { font-family: 'Permanent Marker', cursive; }

/* ── Thin rule ────────────────────────────────────────── */
.rule { display: block; width: 100%; height: 1px; background: #F5F5F5; opacity: .1; }

/* ── Nav ──────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12,12,12,.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .3s ease;
}
nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.5); }

.nav-link {
  position: relative;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: #6B6B6B; transition: color .25s ease;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: #C8C8C8; transform: scaleX(0);
  transform-origin: right; transition: transform .3s ease;
}
.nav-link:hover { color: #F5F5F5; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Hero ─────────────────────────────────────────────── */
.hero-eyebrow {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: #6B6B6B;
}
.hero-headline {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: #F5F5F5;
  letter-spacing: .01em;
}
.hero-headline em {
  font-style: normal;
  color: #C8C8C8;
}

/* ── Marquee strip ────────────────────────────────────── */
.marquee-track { overflow: hidden; }
.marquee-inner {
  display: flex; gap: 3rem; white-space: nowrap;
  animation: marquee 18s linear infinite;
}
@media (min-width: 768px) {
  .marquee-inner { gap: 5rem; animation-duration: 22s; }
}
.marquee-inner:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Service cards ────────────────────────────────────── */
.card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 3px;
  background: #181818;
  transition: transform .45s cubic-bezier(.22,.61,.36,1),
              box-shadow .45s cubic-bezier(.22,.61,.36,1),
              border-color .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 4px 16px rgba(0,0,0,.4);
  border-color: rgba(200,200,200,.3);
}
.card-bg {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .5s ease;
}
.card:hover .card-bg { opacity: 1; }
.card-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .35s ease, border-color .35s ease;
}
.card:hover .card-icon {
  background: rgba(200,200,200,.08);
  border-color: #C8C8C8;
}
.card-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: #C8C8C8;
  transition: gap .3s ease;
}
.card:hover .card-arrow { gap: .7rem; }

/* ── Tag pills ────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .7rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #8A8A8A;
  transition: background .25s, border-color .25s;
}
.tag:hover { background: rgba(200,200,200,.08); border-color: rgba(200,200,200,.4); color: #C8C8C8; }

/* ── Book card ────────────────────────────────────────── */
.book-spine {
  width: 12px; min-height: 100%;
  border-radius: 1px 0 0 1px;
  flex-shrink: 0;
}
.book-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px;
  transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease;
}
.book-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-3px);
}

/* ── CTA button ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .85rem 2rem;
  background: #C8C8C8; color: #0C0C0C;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid #C8C8C8;
  border-radius: 2px;
  transition: background .3s ease, color .3s ease, gap .3s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: #E2E2E2; border-color: #E2E2E2; gap: 1rem;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .85rem 2rem;
  background: transparent; color: #F5F5F5;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 2px;
  transition: border-color .3s ease, color .3s ease;
  text-decoration: none; cursor: pointer;
}
.btn-ghost:hover { border-color: #C8C8C8; color: #C8C8C8; }

/* ── Section label ────────────────────────────────────── */
.section-label {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: #6B6B6B;
}

/* ── Animated entry ───────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* delay helpers */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .22s; }
.delay-3 { transition-delay: .36s; }
.delay-4 { transition-delay: .5s; }
.delay-5 { transition-delay: .64s; }

/* ── Services carousel dots ──────────────────────────── */
.svc-dot {
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: rgba(212,175,55,.2);
  border: none; cursor: pointer;
  transition: width .3s ease, background .3s ease;
  flex-shrink: 0;
}
.svc-dot.active {
  width: 20px;
  background: rgba(212,175,55,.65);
}

/* ── Cursor dot ───────────────────────────────────────── */
#cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: #C8C8C8;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .08s ease, width .25s ease, height .25s ease, background .25s ease;
  mix-blend-mode: normal;
}
#cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(200,200,200,.35);
  pointer-events: none; z-index: 9997;
  transform: translate(-50%,-50%);
  transition: transform .18s ease;
}
body:hover #cursor-dot { opacity: 1; }

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0C0C0C; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

/* ── Misc ─────────────────────────────────────────────── */
::selection { background: rgba(200,200,200,.2); }
.divider { width: 1px; height: 100%; background: rgba(255,255,255,.1); }


/* ── Footer background override ────────────────────────── */
footer#contact { background: #080808; color: #F5F5F5; }
