/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #fbfaf3;
  --surface: rgba(60, 48, 15, 0.03);
  --surface-2: rgba(60, 48, 15, 0.06);
  --border: rgba(20, 16, 5, 0.09);
  --border-strong: rgba(20, 16, 5, 0.18);
  --text: #0e0e10;
  --text-dim: #5e5e64;
  --text-muted: #8c8c92;
  --accent: #d4af37;     /* gold */
  --accent-2: #8b6a1c;   /* deep gold */
  --accent-3: #f0d27a;   /* champagne */
  --on-accent: #0e0e10;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 30px 80px -30px rgba(40, 30, 0, 0.18);
  --glow: 0 0 60px rgba(212, 175, 55, 0.5);
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background FX ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}
.orb {
  position: fixed;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  will-change: transform;
}
.orb-1 {
  background: var(--accent-2);
  top: -200px; left: -200px;
  animation: drift1 22s ease-in-out infinite alternate;
}
.orb-2 {
  background: var(--accent);
  bottom: -260px; right: -220px;
  opacity: 0.18;
  animation: drift2 26s ease-in-out infinite alternate;
}
.orb-3 {
  background: var(--accent-3);
  top: 40%; left: 50%;
  width: 480px; height: 480px;
  opacity: 0.16;
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(160px, 120px) scale(1.15); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-140px, -100px) scale(1.1); }
}
@keyframes drift3 {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-30%, -65%) scale(1.2); }
}

main, .nav, .footer, .marquee, .top-bar { position: relative; z-index: 1; }

/* ---------- Top Bar (5-star trust) ---------- */
.top-bar {
  background:
    radial-gradient(ellipse at center, rgba(212, 175, 55, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.85);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.top-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  padding: 10px 24px;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.005em;
  flex-wrap: wrap;
}
.top-bar .stars {
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 3px;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand-mark {
  width: 26px; height: 26px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.4));
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 16px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease;
  font-family: inherit;
  position: relative;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { transform: translateY(-2px); background: #e0bc4e; }
.btn-glow {
  box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  animation: btnGlow 2.6s ease-in-out infinite;
}
.btn-glow:hover {
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.6), 0 0 80px rgba(212, 175, 55, 0.35);
  animation: none;
}
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
  50%      { box-shadow: 0 6px 30px rgba(212, 175, 55, 0.45); }
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: rgba(20, 16, 5, 0.35); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 140px 0 80px;
  position: relative;
}
.hero-inner { text-align: center; max-width: 920px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(46px, 8.5vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
}
.hero-title em {
  font-style: normal;
}
.gradient-sweep {
  background: linear-gradient(
    100deg,
    var(--accent) 0%,
    var(--accent-2) 40%,
    var(--accent-3) 60%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweep 6s linear infinite;
  display: inline-block;
}
@keyframes sweep {
  0%   { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}
.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.hero-sub {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--text-dim);
  max-width: 660px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 36px;
}
.stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 16px;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.55);
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  background: linear-gradient(90deg,
    rgba(212, 175, 55, 0.08),
    rgba(240, 210, 122, 0.14),
    rgba(139, 106, 28, 0.08)
  );
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-top { border-bottom: 1px solid var(--border); }
.marquee-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.marquee-track span:nth-child(even) {
  color: var(--accent);
  opacity: 0.85;
}
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Stats Band ---------- */
.stats {
  padding: 80px 0 60px;
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.stat:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.stat strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ---------- Section ---------- */
.section { padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.04) 50%, transparent); }
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
  font-weight: 700;
}
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.section-head p { color: var(--text-dim); font-size: 17px; margin: 0; }

/* ---------- Card ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--bg);
  box-shadow: 0 20px 50px -25px rgba(40, 30, 0, 0.18);
}

/* ---------- Showcase ---------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.showcase-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
  position: relative;
}
.showcase-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.6), rgba(240, 210, 122, 0.6), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px -30px rgba(40, 30, 0, 0.25), 0 0 60px -20px rgba(212, 175, 55, 0.3);
}
.showcase-card:hover::before { opacity: 1; }
.showcase-thumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .5s ease;
}
.showcase-card:hover .showcase-thumb { transform: scale(1.04); }
.showcase-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 75%, rgba(0, 0, 0, 0.12));
  pointer-events: none;
}
.showcase-pill {
  position: absolute;
  bottom: 14px; left: 14px;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--accent-2);
}
.showcase-arrow {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 1;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  opacity: 0;
  transform: translate(8px, -8px) rotate(-30deg);
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.7);
}
.showcase-card:hover .showcase-arrow {
  opacity: 1;
  transform: translate(0, 0) rotate(0);
}
/* ---------- Live Site Thumbnails (iframes scaled into the card) ---------- */
.thumb-iframe {
  position: absolute;
  top: 0; left: 0;
  width: 250%;
  height: 250%;
  border: 0;
  transform: scale(0.4);
  transform-origin: 0 0;
  pointer-events: none;
  background: #ffffff;
}
.showcase-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.showcase-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.work-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
}
.work-year {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.showcase-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.01em;
}
.showcase-body p { margin: 0; color: var(--text-dim); font-size: 15px; }
.showcase-body p strong { color: var(--text); font-weight: 600; }
.showcase-tech {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.showcase-tech li {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  background: var(--surface);
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.quote { display: flex; flex-direction: column; gap: 16px; }
.quote-stars {
  color: var(--accent);
  letter-spacing: 3px;
  font-size: 14px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
}
.quote blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.quote figcaption {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-3), var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-size: 15px;
}
.quote figcaption strong { display: block; font-size: 14px; }
.quote figcaption span { font-size: 13px; color: var(--text-muted); }

.reviews-cta {
  text-align: center;
  margin-top: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.reviews-cta-note {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.contact-copy h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 18px;
}
.contact-copy p { color: var(--text-dim); margin: 0 0 24px; max-width: 460px; font-size: 17px; }
.contact-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--text);
  font-size: 15px;
}
.contact-list li {
  display: flex; gap: 12px; align-items: baseline;
}
.contact-label {
  display: inline-block;
  min-width: 60px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  color: var(--text-dim);
}
.field input, .field textarea, .field select {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%235e5e64' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}
.form-status {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--accent-2);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 60px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding: 90px 0 50px; }
  .section { padding: 70px 0; }
  .showcase, .testimonials { grid-template-columns: 1fr; }
  .stats { padding: 60px 0 40px; }
  .marquee-track { gap: 18px; }
  .top-bar-inner { padding: 8px 16px; gap: 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .orb-1, .orb-2, .orb-3,
  .gradient-sweep, .marquee-track,
  .btn-glow, .dot {
    animation: none !important;
  }
}
