/* ============================================================
   JN Construction — Custom Styles
   Colors: #0d0d0d (bg) | #E8621A (orange) | #C9A84C (gold)
   ============================================================ */

:root {
  --bg:       #0d0d0d;
  --bg-2:     #141414;
  --bg-3:     #1c1c1c;
  --orange:   #E8621A;
  --orange-l: #FF7A35;
  --gold:     #C9A84C;
  --gold-l:   #DFC06A;
  --text:     #F5F0EB;
  --muted:    #a8a8a8;
  --border:   rgba(232,98,26,0.2);
  --border-g: rgba(201,168,76,0.2);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-orange { color: var(--orange); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--orange);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Diagonal accent — echoes logo stripe */
.diagonal-accent {
  position: relative;
  overflow: hidden;
}
.diagonal-accent::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 3px;
  height: 160%;
  background: linear-gradient(180deg, transparent, var(--orange) 40%, var(--gold) 100%);
  transform: rotate(15deg);
  opacity: 0.4;
  pointer-events: none;
}

/* Section label — line draws in on scroll enter */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.visible .section-label::before,
.section-label.visible::before,
.reveal.visible .section-label::before {
  transform: scaleX(1);
}
/* fire immediately when label itself is the observed element */
.section-label.label-animate::before { transform: scaleX(1); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,98,26,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: #0d0d0d;
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: rgba(13,13,13,0.97);
  padding: 0.875rem 2rem;
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(12px);
}
.nav-logo img {
  height: 60px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.nav-logo span em {
  font-style: normal;
  color: var(--orange);
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .nav-cta a {
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-links .nav-cta a:hover {
  background: var(--orange);
  color: #fff;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(13,13,13,0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
  background: var(--bg);
}
/* smooth-scroll hero: sticky section must be exactly viewport height */
#heroScroll > .hero {
  min-height: unset;
  height: 100vh;
}

/* ── Premium hero canvas (no video) ───────────────────────── */
.hero-canvas {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  overflow: hidden;
}

/* Subtle dot-grid texture */
.hc-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Ambient glow — orange bottom-left, gold top-right */
.hc-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hc-glow-1 {
  width: 55vw;
  height: 55vw;
  bottom: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(232,98,26,0.18) 0%, transparent 70%);
  animation: glowPulse 7s ease-in-out infinite alternate;
}
.hc-glow-2 {
  width: 40vw;
  height: 40vw;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  animation: glowPulse 9s ease-in-out infinite alternate-reverse;
}
@keyframes glowPulse {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.12); }
}

/* Logo-echo diagonal stripes — mirrors the orange stripe on the J&N logo */
.hc-stripe {
  position: absolute;
  top: -20%;
  height: 140%;
  transform-origin: center;
  pointer-events: none;
}
.hc-stripe-1 {
  right: 18%;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(232,98,26,0.55) 40%, rgba(201,168,76,0.3) 75%, transparent 100%);
  transform: rotate(15deg);
  animation: stripeDrift 12s ease-in-out infinite alternate;
}
.hc-stripe-2 {
  right: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(232,98,26,0.2) 50%, transparent 100%);
  transform: rotate(15deg);
  animation: stripeDrift 12s ease-in-out infinite alternate 0.5s;
}
.hc-stripe-3 {
  right: 14%;
  width: 1px;
  background: linear-gradient(180deg, transparent 10%, rgba(201,168,76,0.15) 55%, transparent 100%);
  transform: rotate(15deg);
  animation: stripeDrift 12s ease-in-out infinite alternate 1s;
}
@keyframes stripeDrift {
  from { opacity: 0.6; transform: rotate(15deg) translateY(-1%); }
  to   { opacity: 1;   transform: rotate(15deg) translateY(1%); }
}

/* Top-right corner bracket — architectural feel */
.hc-corner {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  width: 64px;
  height: 64px;
  border-top: 1.5px solid rgba(232,98,26,0.4);
  border-right: 1.5px solid rgba(232,98,26,0.4);
  border-radius: 0 4px 0 0;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.8s forwards;
}
.hc-corner::after {
  content: '';
  position: absolute;
  bottom: -2.5rem;
  left: -2.5rem;
  width: 40px;
  height: 40px;
  border-bottom: 1.5px solid rgba(201,168,76,0.25);
  border-left: 1.5px solid rgba(201,168,76,0.25);
  border-radius: 0 0 0 4px;
}

/* Bottom fade so hero blends into next section */
.hc-vignette {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, #0a0a0a);
  pointer-events: none;
}

@keyframes fadeIn {
  to { opacity: 1; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(232,98,26,0.08) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(13,13,13,0.4) 0%, var(--bg) 100%);
  z-index: 1;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1600&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232,98,26,0.1);
  border: 1px solid rgba(232,98,26,0.3);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  max-width: 16ch;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .highlight { color: var(--orange); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 55ch;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.hero-stat-num span { color: var(--orange); }
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  position: relative;
}
.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  animation: scroll-dot 2s infinite;
}
@keyframes scroll-dot {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* Sections */
.section {
  padding: 6rem 2rem;
}
.section-sm { padding: 4rem 2rem; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.section-header { margin-bottom: 4rem; }
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Cards */
.card {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.4s cubic-bezier(0.16,1,0.3,1), transform 0.4s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
/* top-edge trace line */
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.card:hover::after { transform: scaleX(1); }
.card:not(:hover)::after {
  transform-origin: right;
}
.card:hover {
  border-color: rgba(232,98,26,0.35);
  transform: translateY(-3px);
}
.card-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(232,98,26,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--orange);
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}
.card p { font-size: 0.9rem; color: var(--muted); }
.card .card-for {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
}
.card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  transition: gap 0.2s;
}
.card .card-cta:hover { gap: 0.75rem; }

/* Grid layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Services section */
.services-bg { background: var(--bg-2); }

/* Illustrated cards */
.card-illustrated { padding: 0; overflow: hidden; }
.card-illustrated .card-illustration {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: #0f0f0f;
}
.card-illustrated .card-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.card-illustrated:hover .card-illustration img { transform: scale(1.03); }
.card-illustrated .service-tag,
.card-illustrated h3,
.card-illustrated p,
.card-illustrated .card-for,
.card-illustrated .card-cta { margin-left: 1.75rem; margin-right: 1.75rem; }
.card-illustrated .service-tag { margin-top: 1.5rem; }
.service-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 0.75rem;
}

/* Why us / features */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row-reverse { direction: ltr; }
}
.feature-list { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item { display: flex; gap: 1rem; }
.feature-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.feature-item h4 { font-size: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 600; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.875rem; color: var(--muted); }

/* Testimonials */
.testimonials-bg { background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%); }
.testimonial-card {
  background: var(--bg-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.35s;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  border-radius: 2px 0 0 2px;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232,98,26,0.2);
}
.testimonial-card:hover::before { transform: scaleY(1); }
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--orange);
  opacity: 0.15;
  line-height: 1;
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: var(--gold);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-2) 0%, rgba(232,98,26,0.06) 100%);
  border: 1px solid rgba(232,98,26,0.12);
  border-radius: 4px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s;
}
.cta-banner.traced { border-color: rgba(232,98,26,0.35); }
/* SVG trace overlay */
.cta-banner .cta-trace {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.cta-banner .cta-trace rect {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-dasharray: 9999;
  stroke-dashoffset: 9999;
  rx: 4;
  transition: stroke-dashoffset 1s cubic-bezier(0.16,1,0.3,1) 0.1s;
}
.cta-banner.traced .cta-trace rect { stroke-dashoffset: 0; }
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.cta-banner p { color: var(--muted); max-width: 50ch; margin: 0 auto 2rem; }
.cta-banner .btn-group { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Team cards */
.team-card {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.team-card:hover { border-color: var(--orange); }
.team-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.team-body { padding: 1.5rem; }
.team-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.team-role { font-size: 0.8rem; color: var(--orange); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.team-bio { font-size: 0.875rem; color: var(--muted); }

/* Typographic team cards — no photo */
.team-card-type { display: flex; flex-direction: column; }
.team-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  border: 1px solid rgba(232,98,26,0.35);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
  margin: 1.75rem 1.5rem 0;
  letter-spacing: 0.05em;
  background: rgba(232,98,26,0.04);
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s;
}
.stagger.visible .process-steps::before,
.process-steps.line-drawn::before {
  transform: scaleX(1);
}
@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
}
@media (max-width: 480px) { .process-steps { grid-template-columns: 1fr; } }
.process-step { text-align: center; padding: 0 1rem; position: relative; z-index: 1; }
.process-num {
  width: 3rem;
  height: 3rem;
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto 1rem;
  position: relative;
  transition: background 0.35s cubic-bezier(0.16,1,0.3,1),
              color 0.35s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.35s cubic-bezier(0.16,1,0.3,1);
}
.process-num.filled {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(232,98,26,0.12);
}
.process-step h4 { font-size: 0.95rem; font-family: 'DM Sans', sans-serif; font-weight: 600; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.8rem; color: var(--muted); }

/* Flips / JV page */
.flips-hero {
  padding: 10rem 2rem 5rem;
  background: linear-gradient(135deg, rgba(232,98,26,0.05) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}
.flips-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}
.audience-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.audience-tab {
  flex: 1;
  min-width: 220px;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s;
}
.audience-tab:hover, .audience-tab.active {
  border-color: var(--orange);
  background: rgba(232,98,26,0.05);
}
.audience-tab h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.audience-tab p { font-size: 0.875rem; color: var(--muted); }

/* Contact / Form */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  padding: 0.875rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--orange); }
.form-control::placeholder { color: rgba(154,154,154,0.5); }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 120px; resize: vertical; }

/* Contact info */
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(232,98,26,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.contact-icon svg { width: 1.1rem; height: 1.1rem; }
.contact-item h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.25rem; font-family: 'DM Sans', sans-serif; }
.contact-item p, .contact-item a { font-size: 0.95rem; color: var(--text); text-decoration: none; }
.contact-item a:hover { color: var(--orange); }

/* Footer */
footer {
  background: var(--bg-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand img {
  height: 56px;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
}
.footer-brand p { font-size: 0.85rem; color: var(--muted); max-width: 30ch; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-icon:hover {
  background: rgba(232,98,26,0.15);
  color: var(--orange);
  border-color: rgba(232,98,26,0.4);
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 1rem;
  font-family: 'DM Sans', sans-serif;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
  display: inline-block;
  padding-bottom: 1px;
}
.footer-col ul a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.footer-col ul a:hover { color: var(--orange); }
.footer-col ul a:hover::after { transform: scaleX(1); }
.footer-col ul a:not(:hover)::after { transform-origin: right; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }
.abn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.4rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 9rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 0;
}

/* Insurance badge */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.trust-badge svg { width: 0.875rem; height: 0.875rem; color: var(--gold); flex-shrink: 0; }

/* trust badge glint — one-shot on enter */
.trust-badge {
  position: relative;
  overflow: hidden;
}
.trust-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  transform: translateX(-100%);
}
.trust-badge.glinted::after {
  animation: glint 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes glint {
  to { transform: translateX(200%); }
}

/* Highlight box */
.highlight-box {
  background: rgba(232,98,26,0.05);
  border: 1px solid rgba(232,98,26,0.2);
  border-left: 3px solid var(--orange);
  border-radius: 0 4px 4px 0;
  padding: 1.25rem 1.5rem;
}

/* Gold highlight box */
.gold-box {
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 1.25rem 1.5rem;
}

/* ============================================================
   TESTIMONIALS — INFINITE SCROLL COLUMNS
   ============================================================ */

.tscroll-outer {
  position: relative;
  height: 600px;
  overflow: hidden;
}
.tscroll-fade {
  position: absolute;
  left: 0; right: 0;
  z-index: 2;
  pointer-events: none;
  height: 140px;
}
.tscroll-fade-top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}
.tscroll-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}
.tscroll-cols {
  display: flex;
  gap: 1rem;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.tscroll-col {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.tscroll-track {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.col1 { animation: scrollUp 28s linear infinite; }
.col2 { animation: scrollUp 36s linear infinite; }
.col3 { animation: scrollUp 22s linear infinite; }

@keyframes scrollUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Pause on hover */
.tscroll-col:hover .tscroll-track { animation-play-state: paused; }

/* Testimonial card */
.tc {
  background: var(--bg-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 1.5rem;
  flex-shrink: 0;
  transition: border-color 0.3s;
}
.tc:hover { border-color: rgba(232,98,26,0.3); }
.tc-stars {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}
.tc-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.tc-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 768px) {
  .tscroll-cols { gap: 0.75rem; padding: 0 1rem; }
  .tscroll-col:nth-child(3) { display: none; }
  .tscroll-outer { height: 520px; }
}
@media (max-width: 480px) {
  .tscroll-col:nth-child(2) { display: none; }
  .tscroll-outer { height: 480px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }

/* Hero text animation */
.hero-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: slideUp 0.8s ease forwards;
}
.hero-line:nth-child(1) { animation-delay: 0.2s; }
.hero-line:nth-child(2) { animation-delay: 0.4s; }
.hero-line:nth-child(3) { animation-delay: 0.6s; }
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Text cycle */
.text-cycle-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.15;
}
#textCycle {
  display: inline-block;
  animation: slideUp 0.8s ease 0.4s both;
}
#textCycle.cycle-out {
  animation: cycleOut 0.38s cubic-bezier(0.4,0,0.2,1) forwards;
}
#textCycle.cycle-in {
  animation: cycleIn 0.42s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes cycleOut {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-60%); }
}
@keyframes cycleIn {
  0%   { opacity: 0; transform: translateY(60%); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Counter animation */
.count-up { font-variant-numeric: tabular-nums; }

/* Mobile hero — disable sticky scroll effect, use static layout */
@media (max-width: 768px) {
  #heroScroll { height: auto !important; }
  #heroScroll > .hero {
    position: relative !important;
    height: 100svh !important;
    height: 100vh !important;
  }
  #heroBg { clip-path: inset(0%) !important; }
}

/* Section breathing room */
.section { padding: 7rem 2rem; }
.section-sm { padding: 3rem 2rem; }
.section-header { margin-bottom: 4rem; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-left, .reveal-right, .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════════════
   DEDICATED MOBILE DESIGN  ≤ 768px
   Not compressed desktop — genuinely designed for touch
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Spacing rhythm ── */
  .section      { padding: 4rem 1.25rem; }
  .section-sm   { padding: 2rem 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }
  .container    { padding: 0 1.25rem; }

  /* ── Nav ── */
  #navbar { padding: 1rem 1.25rem; }
  .nav-logo img { height: 44px; }
  .nav-logo span { font-size: 1rem; }

  /* Animated hamburger → X */
  .nav-toggle { background: none; border: none; }
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile menu — richer layout */
  .mobile-menu {
    justify-content: space-between;
    padding: 5rem 2rem 3rem;
    align-items: flex-start;
    gap: 0;
  }
  .mobile-menu-links { display: flex; flex-direction: column; gap: 0; width: 100%; }
  .mobile-menu a {
    font-size: 2.2rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: -0.01em;
  }
  .mobile-menu a::after {
    content: '→';
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--orange);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s, transform 0.2s;
  }
  .mobile-menu a:hover::after { opacity: 1; transform: translateX(0); }
  .mobile-menu-footer {
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .mobile-menu-footer a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--muted);
    border: none;
    padding: 0;
    width: auto;
    justify-content: flex-start;
  }
  .mobile-menu-footer a::after { display: none; }
  .mobile-menu-socials { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
  .mobile-close { top: 1.25rem; right: 1.25rem; font-size: 1.5rem; }

  /* ── Hero ── */
  .hero { padding: 7rem 1.25rem 3rem; }
  #heroScroll > .hero { padding: 7rem 1.25rem 3rem; }
  .hero-content { text-align: center; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.5rem); }
  .hero p   { font-size: 1rem; margin-left: auto; margin-right: auto; max-width: 34ch; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Stats — 2×2 grid */
  .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2.5rem;
  }
  .hero-stats > div {
    background: var(--bg-2);
    padding: 1.25rem 1rem;
    text-align: center;
  }
  .hero-stat-num { font-size: 1.6rem !important; }
  .hero-stat-label { font-size: 0.7rem; }

  /* ── Trust bar — horizontal scroll ── */
  .trust-badges {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  }
  .trust-badges::-webkit-scrollbar { display: none; }
  .trust-badge { flex-shrink: 0; white-space: nowrap; }

  /* ── Services — horizontal drag carousel ── */
  .services-bg .grid-3 {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.25rem 0 1rem;
    scrollbar-width: none;
    cursor: grab;
    mask-image: linear-gradient(to right, transparent, black 4%, black 92%, transparent 100%);
  }
  .services-bg .grid-3::-webkit-scrollbar { display: none; }
  .services-bg .grid-3:active { cursor: grabbing; }
  .services-bg .card {
    flex: 0 0 78vw;
    max-width: 320px;
    scroll-snap-align: start;
  }
  .services-bg .grid-3 { scroll-snap-type: x mandatory; }
  .card-illustrated .card-illustration { height: 140px; }

  /* Scroll hint dot-indicators */
  .mobile-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1.25rem;
  }
  .mobile-carousel-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: background 0.3s, width 0.3s;
  }
  .mobile-carousel-dot.active {
    background: var(--orange);
    width: 18px;
    border-radius: 3px;
  }

  /* ── Process — vertical timeline ── */
  .process-steps {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    position: relative;
  }
  .process-steps::before {
    top: 1.5rem;
    left: 1.5rem;
    right: auto;
    width: 1px;
    height: calc(100% - 3rem);
    background: linear-gradient(180deg, var(--orange), var(--gold));
    transform: scaleY(0) !important;
    transform-origin: top !important;
    transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s !important;
  }
  .process-steps.line-drawn::before {
    transform: scaleY(1) !important;
  }
  .process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-align: left !important;
    padding: 0 0 2rem 0;
  }
  .process-step:last-child { padding-bottom: 0; }
  .process-num { margin: 0; flex-shrink: 0; }
  .process-step h4 { margin-top: 0.6rem; }

  /* ── Testimonials — single column, pause on touch ── */
  .tscroll-cols {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .tscroll-col:nth-child(2),
  .tscroll-col:nth-child(3) { display: none; }
  .tscroll-outer { height: 440px; }
  .tscroll-track { touch-action: none; }
  .tscroll-track.paused { animation-play-state: paused; }

  /* ── CTA banner ── */
  .cta-banner { padding: 2.5rem 1.5rem; border-radius: 4px; }
  .cta-banner h2 { font-size: 1.75rem; }
  .cta-banner .btn-group { flex-direction: column; }
  .cta-banner .btn { width: 100%; justify-content: center; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr !important; gap: 0; }
  .footer-brand { padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 0; }

  /* Footer link columns — accordion */
  .footer-col { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .footer-col h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1.1rem 0;
    margin: 0;
    user-select: none;
  }
  .footer-col h4::after {
    content: '+';
    color: var(--muted);
    font-size: 1.1rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    transition: transform 0.3s;
  }
  .footer-col.open h4::after { transform: rotate(45deg); }
  .footer-col ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1);
    padding-bottom: 0;
  }
  .footer-col.open ul {
    max-height: 300px;
    padding-bottom: 1.25rem;
  }

  /* ── Sticky bottom CTA ── */
  .sticky-mobile-cta {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 900;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
    pointer-events: none;
  }
  .sticky-mobile-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .sticky-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    background: var(--orange);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(232,98,26,0.4);
    letter-spacing: 0.01em;
  }

  /* hide sticky near footer */
  .sticky-mobile-cta.near-footer { opacity: 0; pointer-events: none; }
}
/* END MOBILE */
