/* Vince J. Code — main site
   Palette: near-black ink base #101014, off-white #F5F1E8,
   ONE accent: laurel gold #C19A3D (headlines / CTA / hero element only). */

:root {
  color-scheme: dark;
  --bg: #101014;
  --surface: #17171e;
  --surface-2: #1d1d26;
  --paper: #f5f1e8;
  --muted: #bab4a4;
  --gold: #c19a3d;
  --gold-bright: #d6b25e;
  --ink-on-gold: #101014;
  --line: rgba(245, 241, 232, 0.14);
  --wrap: 72rem;
  --font-display: "Cinzel", "Georgia", serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle film grain — cheapest premium signal */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--ink-on-gold); }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--ink-on-gold);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

a { color: var(--paper); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(16, 16, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-height: 44px;
}
.brand-mark {
  width: 0.8rem;
  height: 0.8rem;
  flex: none;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
}
.brand-name, .footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.brand-accent { color: var(--gold); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars {
  width: 1.15rem;
  height: 2px;
  background: var(--paper);
  box-shadow: 0 -6px 0 var(--paper), 0 6px 0 var(--paper);
}
.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.25rem 1.25rem;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 500;
  padding-inline: 0.25rem;
}
.site-nav li a:hover { color: var(--gold-bright); }
.nav-cta { margin-top: 0.75rem; }

@media (min-width: 48rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: flex;
    position: static;
    align-items: center;
    gap: 1.75rem;
    background: transparent;
    border: none;
    padding: 0;
  }
  .site-nav ul { display: flex; gap: 1.75rem; }
  .nav-cta { margin-top: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink-on-gold); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-outline { border-color: var(--line); color: var(--paper); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-small { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4.5rem;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(193, 154, 61, 0.13), transparent 60%),
    var(--bg);
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6.2vw, 3.9rem);
  line-height: 1.12;
  margin: 0 0 1.4rem;
  max-width: 22ch;
}
.hero-title .accent { color: var(--gold); }
.hero-sub {
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 1.4rem;
}
.hero-fact {
  font-size: 1.05rem;
  margin: 0 0 2.2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  max-width: 58ch;
}
.hero-fact strong { color: var(--gold-bright); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--surface); }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.section-lede { color: var(--muted); max-width: 60ch; margin: 0 0 2.5rem; font-size: 1.05rem; }
#services .cards, #work .cards { margin-top: 2.5rem; }

.cards {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
}
.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.6rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.section .card { background: var(--surface); }
.section-alt .card { background: var(--surface-2); }
.card:hover { border-color: rgba(193, 154, 61, 0.55); transform: translateY(-3px); }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.card p { margin: 0; color: var(--muted); }
.price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--paper) !important;
  margin: 0 0 0.7rem !important;
}
.price-alt { font-size: 0.85rem; font-weight: 500; color: var(--muted); }

.work-meta { margin-bottom: 1.1rem !important; }

/* featured portfolio piece — spans the full work grid */
.work-featured {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
  display: grid;
}
.work-featured-media { display: block; line-height: 0; }
.work-featured-media img {
  width: 100%;
  height: 100%;
  max-height: 20rem;
  object-fit: cover;
}
.work-featured-body { padding: 1.6rem; }
.work-featured-tag {
  margin: 0 0 0.5rem !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold) !important;
}
.work-featured-body .work-link { margin-top: 0.4rem; }
@media (min-width: 48rem) {
  .work-featured { grid-template-columns: 1.15fr 1fr; }
  .work-featured-media img { max-height: none; }
  .work-featured-body { padding: 2rem; align-self: center; }
}
.work-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--gold-bright);
  text-decoration: none;
}
.work-link::after { content: " →"; transition: transform 0.15s ease; }
.work-link:hover { text-decoration: underline; }
.work-link:hover::after { transform: translateX(3px); }

.about-inner p { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }
.about-inner .section-title { color: var(--paper); }

.contact-inner .section-lede { margin-bottom: 2rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
.footer-inner { display: grid; gap: 0.35rem; }
.footer-brand { margin: 0; }
.footer-meta { margin: 0; color: var(--muted); font-size: 0.92rem; }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--gold-bright); }

/* ---------- scroll reveals ----------
   Default state is fully visible (complete first frame, no JS needed).
   Only when JS is present AND the user allows motion do elements
   start hidden and reveal on scroll. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  html.js .reveal.in { opacity: 1; transform: none; }
}

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