/* ══════════════════════════════════════════════════════════════
   JZAC DESIGNS — DIGITAL CARD / PORTFOLIO SITE
   Design tokens in :root. Same black + chrome brand as the rest
   of JZac Designs' materials.
   ══════════════════════════════════════════════════════════════ */

:root {
  --black: #0a0a0a;
  --charcoal: #141414;
  --charcoal-2: #1b1b1b;
  --line-dark: #262626;
  --paper: #ffffff;
  --paper-soft: #f6f7f6;
  --ink: #131515;
  --ink-soft: #52585a;
  --muted: #8b9194;
  --muted-on-dark: #9aa0a0;
  --border: #e4e6e5;

  --chrome-gradient: linear-gradient(160deg, #ffffff 0%, #a8a8ac 55%, #e8e8ea 100%);

  --maxw: 1080px;
  --maxw-narrow: 640px;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.5);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html { background: var(--black); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap-narrow { max-width: var(--maxw-narrow); }

/* ── Sticky nav ────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.nav.is-visible { transform: translateY(0); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  text-decoration: none;
  background: var(--chrome-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 101;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: fixed;
  inset: 0 0 0 30%;
  z-index: 150;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 1px solid var(--line-dark);
}

.nav-menu.is-open { transform: translateX(0); }

.nav-menu a {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
}

/* ── Card hero ─────────────────────────────────────────────── */

.card-hero {
  min-height: 100svh;
  background: var(--black);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 20px 40px;
  position: relative;
  overflow: hidden;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
}

.card-scene {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  perspective: 1400px;
}

.card-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.4, 0.15, 0.2, 1);
  background: none;
  border: none;
  padding: 0;
}

.card-flip.is-flipped { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
}

.card-back { background: var(--charcoal); }

.card-mark {
  font-size: 64px;
  font-weight: 800;
  background: var(--chrome-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-tap-hint {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.card-front {
  background: var(--charcoal);
  transform: rotateY(180deg);
}

.card-wordmark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--chrome-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-tagline {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  line-height: 1.6;
}

.card-divider {
  width: 40px;
  height: 1px;
  background: var(--line-dark);
  margin: 20px 0;
}

.card-loc {
  font-size: 11px;
  color: var(--muted-on-dark);
  letter-spacing: 0.5px;
}

.card-intro-line {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--muted-on-dark);
  text-align: center;
}

.card-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.pill-btn {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pill-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: #3a3a3a; }

.pill-primary {
  background: #fff;
  color: var(--black);
  border-color: #fff;
}

.pill-primary:hover { background: #e4e4e4; }

.card-quicklinks {
  margin-top: 22px;
  display: flex;
  gap: 20px;
}

.quicklink {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 2px;
}

.quicklink:hover { color: #fff; }

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 40px;
  border: 1.5px solid var(--line-dark);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-cue span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-on-dark);
  animation: scrollcue 1.8s ease infinite;
}

@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ── Section base ──────────────────────────────────────────── */

.section { padding: 72px 0; background: var(--paper); color: var(--ink); }
.section-dark { background: var(--black); color: #fff; }

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.section-dark .eyebrow { color: var(--muted-on-dark); }

.section-title {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  max-width: 20ch;
}

.section-sub {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 50ch;
}

.section-dark .section-sub { color: var(--muted-on-dark); }

/* ── Explore grid ──────────────────────────────────────────── */

.explore-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.explore-card {
  display: block;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.explore-card:hover { border-color: var(--ink); transform: translateY(-2px); }

.explore-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
}

.explore-card h3 {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
}

.explore-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ── Portfolio ─────────────────────────────────────────────── */

.filter-row {
  margin-top: 32px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-pill {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-dark);
  background: transparent;
  color: var(--muted-on-dark);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-pill.is-active { background: #fff; color: var(--black); border-color: #fff; }

.portfolio-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.portfolio-card {
  position: relative;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal);
  padding: 0;
  text-align: left;
  aspect-ratio: 4 / 3;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover img { transform: scale(1.05); }

.portfolio-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pc-client {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.pc-type {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
}

.portfolio-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted-on-dark);
  text-align: center;
}

/* ── Lightbox ──────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open { display: flex; }

.lightbox-body { max-width: 92vw; max-height: 88vh; text-align: center; }

.lightbox-body img {
  max-width: 92vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 4px;
  margin: 0 auto;
}

.lightbox-caption { margin-top: 16px; }

.lc-client { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: 0.5px; }
.lc-desc { margin-top: 4px; font-size: 12.5px; color: var(--muted-on-dark); }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  padding: 8px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ── Funnel ────────────────────────────────────────────────── */

.funnel-card {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
}

.funnel-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.fp-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-step.is-active, .fp-step.is-done {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.fp-line { width: 28px; height: 1.5px; background: var(--border); }
.fp-line.is-done { background: var(--ink); }

.funnel-step { display: none; }
.funnel-step.is-active { display: block; }

.funnel-h { font-size: 17px; font-weight: 800; margin-bottom: 18px; }

.option-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }

.option-card {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-card.is-selected { border-color: var(--ink); background: var(--paper-soft); }

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin: 16px 0 6px;
}

.field-label:first-of-type { margin-top: 0; }

.field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
}

.field-input:focus { outline: none; border-color: var(--ink); }

textarea.field-input { resize: vertical; }

.funnel-nav {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.btn-text {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-right: auto;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  text-decoration: none;
}

.btn-solid:hover { background: var(--black); }

/* ── About ─────────────────────────────────────────────────── */

.about-text {
  margin-top: 20px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted-on-dark);
  max-width: 60ch;
}

.about-text:first-of-type { margin-top: 28px; }

/* ── Business info ─────────────────────────────────────────── */

.info-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.info-value { font-size: 15px; color: var(--ink); line-height: 1.5; }
.info-value a { color: var(--ink); text-decoration: underline; }

/* ── Contact ───────────────────────────────────────────────── */

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

.btn-large { padding: 16px 28px; font-size: 15.5px; width: 100%; }

.btn-outline.btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}

.btn-outline.btn-large:hover { background: rgba(255, 255, 255, 0.06); }

.section-dark .btn-solid { background: #fff; color: var(--black); }
.section-dark .btn-solid:hover { background: #e4e4e4; }

/* ── Footer ────────────────────────────────────────────────── */

.site-footer { background: var(--black); color: var(--muted-on-dark); padding: 48px 0 32px; }

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: var(--chrome-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }

.footer-links a { font-size: 14px; color: var(--muted-on-dark); text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-link { font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; }
.footer-link:hover { color: var(--muted-on-dark); }

.footer-copy {
  margin-top: 20px;
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--line-dark);
}

/* ── Toast (share/copy feedback) ──────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  color: var(--black);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 300;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Tablet / desktop ──────────────────────────────────────── */

@media (min-width: 700px) {
  .wrap { padding-left: 40px; padding-right: 40px; }
  .nav-menu { inset: 0 0 0 60%; }

  .section-title { font-size: 38px; max-width: 24ch; }

  .explore-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .option-grid { grid-template-columns: 1fr 1fr; }

  .contact-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .btn-large { width: auto; }

  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-links { flex-direction: row; gap: 28px; }
}

@media (min-width: 960px) {
  .nav-menu { inset: 0 0 0 75%; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 44px; }
}

/* ── Shake (funnel validation) ─────────────────────────────── */

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

.shake { animation: shake 0.4s ease; }

/* ── Reduced motion ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-flip { transition: none; }
  .scroll-cue span { animation: none; }
}
