/* ==========================================================================
   FESTIVL — Premium Digital Agency
   Design tokens: bg #07070C / #0C0C14, purple #8B5CF6, blue #3B82F6,
   cyan accent #22D3EE, text #F5F5F7 / #9CA3AF
   Type: Space Grotesk (display) + Inter (body) + JetBrains Mono (labels)
   ========================================================================== */

:root {
  /* Color — quiet luxury: ivory ground, ink type, gold accent */
  --bg: #FAF8F3;
  --bg-soft: #09090B;
  --bg-elevated: #ffffff;
  --gold:  #353803;
  --gold-bright:  #DDD6FE;
  --ink-soft: #2b2b2b;
  --white: #111111;
  --gray: #5c584f;
  --gray-dim: #8c8778;
  --border: rgba(17, 17, 17, 0.10);
  --border-bright: rgba(200, 169, 81, 0.5);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-hover: rgba(222, 165, 165, 0);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  --grad-text: linear-gradient(135deg, #111111 0%, #6b5b2e 55%, #c8a951 100%);
  --grad-bg: radial-gradient(ellipse 80% 60% at 20% -10%, rgba(200,169,81,0.16), transparent 60%),
             radial-gradient(ellipse 70% 60% at 90% 10%, rgba(17,17,17,0.05), transparent 60%),
             radial-gradient(ellipse 60% 50% at 50% 100%, rgba(200,169,81,0.10), transparent 60%);

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
linear-gradient(
rgba(248, 239, 216, 0.8),
rgba(250,248,243,0.8)
),
url("../assets/images/festivl-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #111111; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Ambient background layer ---------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: transparent;
}
.ambient-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-bg);
  animation: driftGlow 22s ease-in-out infinite alternate;
}
.ambient-bg .noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
@keyframes driftGlow {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.08); }
}

/* ---------- Containers / Section rhythm ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 128px 0; position: relative; }
.section-tight { padding: 88px 0; }
@media (max-width: 900px) {
  .section { padding: 84px 0; }
  .section-tight { padding: 64px 0; }
  .container { padding: 0 22px; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 25px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 18px; }
h3 { font-size: 1.5rem; }
p { color: var(--gray); }
.lead { font-size: 1.15rem; color: var(--gray); }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 0 rgba(200,169,81,0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -6px rgba(200,169,81,0.45);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--white);
  background: var(--glass);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--border-bright); background: var(--glass-hover); transform: translateY(-2px); }
.btn-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 11px 20px; font-size: 13.5px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 14px 0;
  background: rgba(250,249,246,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad-primary);
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  background: var(--bg);
}
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray);
  position: relative;
  transition: color 0.3s;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 200;
}
.nav-toggle span {
  height: 2px; width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(78vw, 340px);
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
    transition: right 0.5s var(--ease);
    border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 20px; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 100px;
  position: relative;
}
.hero-grid {
  display: flex;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-copy .eyebrow {margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  margin-bottom: 26px;
}
.hero .lead { font-size: 1.2rem; max-width: 500px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-proof { display: flex; gap: 36px; flex-wrap: wrap; }
.proof-stat { display: flex; flex-direction: column; }
.proof-stat strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--white); }
.proof-stat span { font-size: 13px; color: var(--gray-dim); font-family: var(--font-mono); letter-spacing: 0.02em; }

/* Hero visual: layered glass constellation */
/* .hero-visual {
  position: relative;
  height: 520px;
}
.hv-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.85;
}
.hv-orb.o1 {
  width: 260px; height: 260px;
  top: 10%; left: 15%;
  background: radial-gradient(circle at 35% 30%, rgba(200,169,81,0.55), rgba(200,169,81,0) 70%);
  animation: floatSlow 9s ease-in-out infinite;
}
.hv-orb.o2 {
  width: 200px; height: 200px;
  bottom: 8%; right: 8%;
  background: radial-gradient(circle at 40% 35%, rgba(17,17,17,0.18), rgba(17,17,17,0) 70%);
  animation: floatSlow 11s ease-in-out infinite reverse;
}
.hv-orb.o3 {
  width: 140px; height: 140px;
  top: 45%; right: 25%;
  background: radial-gradient(circle at 40% 35%, rgba(217,189,109,0.6), rgba(217,189,109,0) 70%);
  animation: floatSlow 7.5s ease-in-out infinite;
}
@keyframes floatSlow {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(14px, -22px); }
}
.hv-card {
  position: absolute;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  transition: transform 0.4s var(--ease);
}
.hv-card.c1 { top: 6%; right: 4%; width: 200px; animation: driftCard 8s ease-in-out infinite; }
.hv-card.c2 { bottom: 14%; left: 2%; width: 220px; animation: driftCard 10s ease-in-out infinite reverse; }
.hv-card.c3 { top: 42%; left: 30%; width: 170px; animation: driftCard 9.5s ease-in-out infinite; }
@keyframes driftCard {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}
.hv-card .hv-label { font-family: var(--font-mono); font-size: 11px; color: var(--gold); letter-spacing: 0.06em; margin-bottom: 6px; text-transform: uppercase; }
.hv-card .hv-value { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.hv-bars { display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-top: 10px; }
.hv-bars span { flex: 1; border-radius: 3px; background: var(--grad-primary); animation: barPulse 2.4s ease-in-out infinite; }
.hv-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.hv-bars span:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.hv-bars span:nth-child(3) { height: 55%; animation-delay: 0.4s; }
.hv-bars span:nth-child(4) { height: 90%; animation-delay: 0.6s; }
.hv-bars span:nth-child(5) { height: 65%; animation-delay: 0.8s; }
@keyframes barPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; order: -1; }
  .hero { padding-top: 130px; }
} */

/* ---------- Marquee ---------- */
.marquee-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-soft);
}
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-dim);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.marquee-track span::before { content: '◆'; color: var(--gold); font-size: 8px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Glass card base ---------- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  background: var(--glass-hover);
  box-shadow: 0 24px 60px -24px rgba(17,17,17,0.16);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.about-pillars { display: grid; gap: 18px; margin-top: 32px; }
.pillar { display: flex; gap: 16px; padding: 20px; }
.pillar-num { font-family: var(--font-mono); color: var(--gold); font-size: 13px; padding-top: 4px; }
.pillar h4 { font-size: 1.05rem; margin-bottom: 6px; }
.pillar p { font-size: 14.5px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
}
.service-card .svc-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-card .svc-icon svg { width: 22px; height: 22px; stroke: #fff; }
.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-card p { font-size: 14.5px; margin-bottom: 18px; }
.service-card ul { display: grid; gap: 8px; margin-bottom: 6px; }
.service-card ul li {
  font-size: 13.5px; color: var(--gray);
  display: flex; align-items: center; gap: 9px;
}
.service-card ul li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
.service-card .svc-tag {
  position: absolute; top: 28px; right: 28px;
  font-family: var(--font-mono); font-size: 11px; color: var(--gray-dim);
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Process timeline ---------- */
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-track::before {
  content: '';
  position: absolute;
  top: 27px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), var(--border-bright), transparent);
}
.process-step { position: relative; padding-top: 70px; }
.process-num {
  position: absolute; top: 0; left: 0;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 15px; color: var(--gold);
  z-index: 2;
}
.process-step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 14px; }
@media (max-width: 900px) {
  .process-track { grid-template-columns: 1fr; gap: 36px; }
  .process-track::before { top: 0; bottom: 0; left: 27px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--border-bright), var(--border-bright), transparent); }
  .process-step { padding-top: 0; padding-left: 84px; min-height: 54px; }
  .process-num { top: 0; }
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.portfolio-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
  cursor: pointer;
}
.portfolio-card .pf-bg {
  position: fixed; inset: 0;
  background: var(--pf-grad, var(--grad-primary));
  transition: transform 0.6s var(--ease);
}
.pf-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.portfolio-card:hover .pf-bg { transform: scale(1.08); }
.portfolio-card .pf-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.1) 30%, rgba(17,17,17,0.92) 100%);
}
.portfolio-card .pf-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease);
}
.portfolio-card:hover .pf-content { transform: translateY(0); }
.pf-cat {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-bright); margin-bottom: 8px; display: block;
}
.portfolio-card h4 { font-size: 1.2rem; margin-bottom: 8px; color: #faf9f6; }
.portfolio-card p { font-size: 13.5px; color: rgba(250,249,246,0.75); max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.portfolio-card:hover p { max-height: 80px; }
@media (max-width: 1000px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ---------- Why choose ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.why-card { padding: 28px 22px; text-align: left; }
.why-card .why-icon { font-family: var(--font-mono); color: var(--gold); font-size: 20px; margin-bottom: 16px; }
.why-card h4 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { font-size: 13.5px; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card { padding: 30px 28px; display: flex; flex-direction: column; gap: 20px; }
.t-stars { color: var(--gold); font-size: 14px; letter-spacing: 3px; }
.t-quote { font-size: 15px; color: var(--white); font-weight: 400; line-height: 1.7; }
.t-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff;
  flex-shrink: 0;
}
.t-person strong { font-size: 14px; display: block; }
.t-person span { font-size: 12.5px; color: var(--gray-dim); }
@media (max-width: 1000px) { .testimonial-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, rgba(200,169,81,0.16), rgba(17,17,17,0.035));
}
.cta-banner::before {
  content: '';
  position: absolute; inset: -40%;
  background: radial-gradient(circle at 50% 50%, rgba(200,169,81,0.28), transparent 60%);
  animation: driftGlow 14s ease-in-out infinite alternate;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { max-width: 640px; margin: 0 auto 16px; }
.cta-banner p { max-width: 520px; margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 72px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p { font-size: 14px; margin: 18px 0 22px; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.footer-social a:hover { border-color: var(--border-bright); background: var(--glass); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; }
.footer h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-dim); margin-bottom: 20px; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { font-size: 14.5px; color: var(--gray); transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }
.footer-contact div { font-size: 14.5px; color: var(--gray); margin-bottom: 10px; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--gray-dim); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--gray-dim); }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
/* Content is visible by default. Only once JS confirms it's running
   (html.js-enabled) do reveal elements start hidden and animate in.
   This means a JS failure never hides page content. */

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js-enabled .reveal.in-view { opacity: 1; transform: translateY(0); }
.js-enabled .reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.js-enabled .reveal-stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.33s; }

/* ---------- Page hero (services/contact) ---------- */
.page-hero { padding: 160px 0 80px; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 780px; margin: 0 auto 20px; }
.page-hero p { max-width: 560px; margin: 0 auto; font-size: 1.08rem; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-info-card { padding: 36px; margin-bottom: 20px; }
.contact-info-card h4 { font-size: 1rem; margin-bottom: 6px; }
.contact-info-card p { font-size: 14px; margin-bottom: 4px; }
.contact-info-card a { color: var(--white); font-size: 15px; }
.contact-info-card a:hover { color: var(--gold); }
.info-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.info-row:last-child { margin-bottom: 0; }
.info-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon svg { width: 19px; height: 19px; stroke: #fff; }

.contact-form-card { padding: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.04em; color: var(--gray); }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--white);
  transition: border-color 0.3s, background 0.3s;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(200,169,81,0.05);
}
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa0ac' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-note { font-size: 12.5px; color: var(--gray-dim); margin-top: 14px; }
.form-success {
  display: none;
  align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1px solid rgba(200,169,81,0.4);
  background: rgba(200,169,81,0.08);
  font-size: 14px; margin-top: 20px;
}
.form-success.show { display: flex; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- FAQ (services page) ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--glass); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 26px; text-align: left; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
}
.faq-icon { font-size: 20px; color: var(--gold); transition: transform 0.35s var(--ease); flex-shrink: 0; margin-left: 20px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 26px 22px; font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 240px; }

/* ---------- Pricing-style service detail blocks on services.html ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-of-type { border-bottom: none; }
.service-detail.reverse { grid-template-columns: 1.1fr 0.9fr; }
.service-detail.reverse .sd-visual { order: 2; }
.sd-tagnum { font-family: var(--font-display); color: var(--gold); font-size: 23px; margin-bottom: 14px; }
.service-detail h3 { font-size: 1.9rem; margin-bottom: 16px; }
.sd-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 30px; }
.sd-list li { font-size: 14px; color: var(--gray); display: flex; gap: 9px; align-items: center; }
.sd-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.sd-visual {
  aspect-ratio: 4/2.2;
  border-radius: var(--radius-lg);
  background: var(--sd-grad, var(--grad-primary));
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.sd-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 55%); }
@media (max-width: 900px) {
  .service-detail, .service-detail.reverse { grid-template-columns: 1fr; gap: 30px; }
  .service-detail.reverse .sd-visual { order: 0; }
  .sd-list { grid-template-columns: 1fr; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s var(--ease);
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--gold); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
