/* ============================================================
   JxI Unified Solutions — Design System
   Luxury editorial: warm black + champagne gold
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces (warm near-black) */
  --black:      #0B0907;
  --ink:        #100D0A;
  --charcoal:   #161210;
  --surface:    #1C1714;
  --surface-2:  #241D17;
  --surface-3:  #2C231B;

  /* Gold range pulled from the logo */
  --gold:        #E6B873;
  --gold-bright: #F4DCA8;
  --gold-deep:   #B07D3A;
  --amber:       #D98A3D;

  /* Secondary jewel accents — used sparingly to lift the black & gold */
  --teal:        #4FB39A;  /* emerald-teal */
  --teal-deep:   #1F6B57;
  --copper:      #E08A5B;  /* warm terracotta */
  --copper-deep: #B45A33;
  --plum:        #B98BC9;  /* soft amethyst */
  --plum-deep:   #6E4B82;

  /* Default accent (components read --accent and fall back to gold) */
  --accent:        var(--gold);
  --accent-bright: var(--gold-bright);
  --accent-deep:   var(--gold-deep);
  --accent-rgb:    230,184,115;

  /* Text */
  --cream:   #F6F1E8;
  --muted:   #B2A795;
  --muted-2: #7C7264;
  --faint:   #4E463C;

  /* Hairlines */
  --line:        rgba(230,184,115,0.16);
  --line-soft:   rgba(246,241,232,0.08);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing rhythm */
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 12vw, 10rem);

  /* Motion */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Shadows (gold-tinted, layered) */
  --shadow-soft:
    0 1px 1px rgba(0,0,0,0.5),
    0 8px 24px rgba(0,0,0,0.45),
    0 24px 60px rgba(0,0,0,0.4);
  --shadow-gold:
    0 0 0 1px rgba(230,184,115,0.10),
    0 18px 50px rgba(176,125,58,0.18),
    0 40px 90px rgba(0,0,0,0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.7;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  font-weight: 300;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Atmosphere: grain + ambient glow ---------- */
body::before {
  /* layered ambient glow — gold, teal, copper for depth */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 50% at 85% -5%, rgba(217,138,61,0.11), transparent 60%),
    radial-gradient(45% 45% at 2% 42%, rgba(79,179,154,0.07), transparent 60%),
    radial-gradient(50% 40% at 100% 88%, rgba(224,138,91,0.07), transparent 60%),
    radial-gradient(50% 40% at 8% 100%, rgba(176,125,58,0.07), transparent 60%);
}
body::after {
  /* film grain */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:where(.site-header, main, .site-footer) { position: relative; z-index: 2; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gut);
}
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3.5rem, 8vw, 6rem); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.eyebrow--center::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--cream);
  font-optical-sizing: auto;
}
.display {
  font-size: clamp(2.7rem, 1.6rem + 5.2vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h2.heading, .heading {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  letter-spacing: -0.03em;
}
h3.subhead {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  letter-spacing: -0.02em;
}
.serif-i { font-style: italic; }
.gold-text {
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 40%, var(--gold-bright) 70%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1.1rem, 1rem + 0.55vw, 1.35rem);
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  max-width: 56ch;
}
.muted { color: var(--muted); }
.measure { max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  position: relative;
  isolation: isolate;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring), color 0.3s ease;
  will-change: transform;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-gold {
  color: #2A1C0A;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 8px 24px rgba(176,125,58,0.32), inset 0 1px 0 rgba(255,255,255,0.4);
  font-weight: 600;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(217,138,61,0.42), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-ghost {
  color: var(--cream);
  border: 1px solid var(--line);
  background: rgba(246,241,232,0.02);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: rgba(230,184,115,0.5);
  color: var(--gold-bright);
  transform: translateY(-2px);
}
.btn .arrow { transition: transform 0.4s var(--ease-spring); }
.btn:hover .arrow { transform: translate(4px, -1px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  width: fit-content;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.35s var(--ease-out), gap 0.35s var(--ease-spring);
}
.link-arrow:hover { border-color: var(--gold); gap: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11,9,7,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 78px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: 46px;
  width: auto;
  mix-blend-mode: screen; /* drops the logo's dark backplate */
  transition: transform 0.4s var(--ease-spring);
}
.brand:hover .brand-logo { transform: scale(1.04); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  margin-right: 1.4rem;
}
.nav a {
  position: relative;
  padding: 0.5rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.95rem; right: 0.95rem;
  bottom: 0.25rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-spring);
}
.nav a:hover { color: var(--cream); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--cream);
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 78px 0 auto 0;
  background: rgba(11,9,7,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  padding: 1.5rem var(--gut) 2.5rem;
  display: grid;
  gap: 0.25rem;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-spring), opacity 0.35s ease;
  z-index: 99;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--display);
  font-size: 1.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--cream);
}
.mobile-nav a[aria-current="page"] { color: var(--gold); }
.mobile-nav .btn { margin-top: 1.2rem; justify-content: center; }

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 78px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* neutral darkening for text legibility only — no colour tint over the image */
  background:
    linear-gradient(90deg, rgba(11,9,7,0.88) 0%, rgba(11,9,7,0.62) 38%, rgba(11,9,7,0.18) 70%, rgba(11,9,7,0.40) 100%),
    linear-gradient(0deg, rgba(11,9,7,0.92) 2%, transparent 38%);
}
.hero__spot {
  /* gold cursor glow disabled — keeps the hero image free of any colour tint */
  display: none;
}
.hero__inner { max-width: 760px; }
.hero h1 { margin-block: 1.6rem 1.2rem; }
.hero__tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 1.7rem;
  max-width: 24ch;
}
.hero .lead { margin-bottom: 2.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero__meta {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 3rem);
  right: var(--gut);
  display: flex;
  gap: 2.5rem;
  z-index: 1;
}
.hero__meta .stat-num { font-family: var(--display); }
@media (max-width: 860px) { .hero__meta { display: none; } }

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: var(--gut);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 1;
}
.scroll-cue .line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--gold-bright);
  animation: cue 2.4s var(--ease-out) infinite;
}
@keyframes cue { 0% { top: -50%; } 60%,100% { top: 110%; } }

/* ---------- Section header ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  flex-wrap: wrap;
}
.section-head .heading { margin-top: 1.1rem; max-width: 18ch; }
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head--center .heading { max-width: 24ch; }

/* ---------- Stat ---------- */
.stat-num {
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  font-family: var(--display);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gold-bright);
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 0.5rem;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2rem, 5vw, 3.2rem);
}

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: linear-gradient(170deg, var(--surface), var(--charcoal));
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
  transition: transform 0.5s var(--ease-spring), border-color 0.5s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.55), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.card:hover { transform: translateY(-6px); }
.card:hover::before { opacity: 1; }
/* soft accent wash that fades in on hover */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 100% 0%, rgba(var(--accent-rgb), 0.10), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

/* Accent variants — set per element */
.accent-teal   { --accent: var(--teal);   --accent-bright: #7FD2BC; --accent-deep: var(--teal-deep);   --accent-rgb: 79,179,154; }
.accent-copper { --accent: var(--copper); --accent-bright: #F0A77E; --accent-deep: var(--copper-deep); --accent-rgb: 224,138,91; }
.accent-plum   { --accent: var(--plum);   --accent-bright: #D3B0DE; --accent-deep: var(--plum-deep);   --accent-rgb: 185,139,201; }
.accent-gold   { --accent: var(--gold);   --accent-bright: var(--gold-bright); --accent-deep: var(--gold-deep); --accent-rgb: 230,184,115; }

.service-card .num {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--accent-deep);
  letter-spacing: 0.05em;
}
.service-card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(var(--accent-rgb), 0.16), transparent 70%),
    radial-gradient(circle at 30% 25%, var(--surface-3), var(--charcoal));
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  margin: 1.5rem 0 1.6rem;
  color: var(--accent);
  transition: box-shadow 0.5s ease, transform 0.5s var(--ease-spring);
}
.service-card:hover .icon {
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.22);
  transform: translateY(-2px);
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.service-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.5rem; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.service-card .link-arrow { color: var(--accent); }
.service-card .link-arrow:hover { border-color: var(--accent); }
.tag {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.06);
}

/* ---------- Process ---------- */
.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
.process-step:last-child { border-bottom: 1px solid var(--line-soft); }
.process-step .pnum {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1;
  color: var(--faint);
  transition: color 0.5s ease;
  font-style: italic;
}
.process-step:hover .pnum { color: var(--gold); }
.process-step h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 0.7rem; }
.process-step p { color: var(--muted); max-width: 60ch; }

/* ---------- Feature band (image) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
.feature__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
  border: 1px solid var(--line);
}
.feature__media img { width: 100%; transition: transform 1.2s var(--ease-out); }
.feature__media:hover img { transform: scale(1.04); }
.feature__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(190deg, transparent 55%, rgba(11,9,7,0.55));
  pointer-events: none;
}
.feature ul.ticks { display: grid; gap: 1rem; margin-top: 2rem; }
.feature ul.ticks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  color: var(--cream);
}
.feature ul.ticks li span.t {
  color: var(--muted);
  font-size: 0.98rem;
}
.tick-ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(230,184,115,0.12);
  border: 1px solid var(--line);
  color: var(--gold);
  margin-top: 3px;
}
.tick-ico svg { width: 12px; height: 12px; }

/* ---------- Work / portfolio ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--charcoal);
  aspect-ratio: 4 / 3;
  display: block;
}
.work-card.tall { aspect-ratio: 4 / 5; }
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.02);
  transition: transform 0.9s var(--ease-out), filter 0.6s ease;
}
.work-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,9,7,0.92) 8%, rgba(11,9,7,0.2) 55%, rgba(217,138,61,0.12));
  mix-blend-mode: multiply;
  transition: opacity 0.5s ease;
  opacity: 0.85;
}
.work-card:hover img { transform: scale(1.06); filter: grayscale(0) contrast(1.05); }
.work-card:hover::after { opacity: 1; }
.work-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.5s var(--ease-spring);
}
.work-card:hover .work-card__body { transform: translateY(0); }
.work-card__cat {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.work-card__title { font-family: var(--display); font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin-top: 0.5rem; }
.work-card__meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.4s ease, max-height 0.5s ease;
}
.work-card:hover .work-card__meta { opacity: 1; max-height: 60px; }

/* ---------- Testimonials ---------- */
.tcard {
  background: linear-gradient(170deg, var(--surface), var(--charcoal));
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: clamp(1.75rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  break-inside: avoid;
  transition: transform 0.5s var(--ease-spring), border-color 0.5s ease;
}
.tcard:hover { transform: translateY(-5px); border-color: var(--line); }
.tcard .quote-mark {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 0.5;
  color: var(--accent-deep);
  height: 1.2rem;
}
.tcard:hover { border-color: rgba(var(--accent-rgb), 0.3); }
.tcard p.quote { font-size: 1.05rem; color: var(--cream); line-height: 1.6; font-weight: 300; }
.tcard .who { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.tcard .avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  flex-shrink: 0;
}
.tcard .who .name { font-weight: 500; color: var(--cream); font-size: 0.96rem; }
.tcard .who .role { color: var(--muted-2); font-size: 0.82rem; }
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }
.tcard-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.t-google { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.t-google svg { width: 18px; height: 18px; flex-shrink: 0; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 2.5vw, 1.75rem); max-width: 980px; margin-inline: auto; }
@media (max-width: 760px) { .tgrid { grid-template-columns: 1fr; } }

.masonry {
  columns: 3;
  column-gap: clamp(1.25rem, 2.5vw, 1.75rem);
}
.masonry > * { margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
@media (max-width: 1000px) { .masonry { columns: 2; } }
@media (max-width: 660px) { .masonry { columns: 1; } }
/* rotate accent colour across testimonial cards */
.masonry .tcard:nth-child(4n+2) { --accent: var(--teal);   --accent-bright: #7FD2BC; --accent-deep: var(--teal-deep);   --accent-rgb: 79,179,154; }
.masonry .tcard:nth-child(4n+3) { --accent: var(--copper); --accent-bright: #F0A77E; --accent-deep: var(--copper-deep); --accent-rgb: 224,138,91; }
.masonry .tcard:nth-child(4n+4) { --accent: var(--plum);   --accent-bright: #D3B0DE; --accent-deep: var(--plum-deep);   --accent-rgb: 185,139,201; }

/* ---------- Review form ---------- */
.review-wrap {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(217,138,61,0.10), transparent 55%),
    linear-gradient(170deg, var(--surface-2), var(--charcoal));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-soft);
}
.field { display: grid; gap: 0.5rem; margin-bottom: 1.3rem; }
.field label { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--cream);
  background: rgba(11,9,7,0.5);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(230,184,115,0.6);
  box-shadow: 0 0 0 3px rgba(230,184,115,0.12);
}
.rating { display: inline-flex; gap: 0.4rem; }
.rating button {
  color: var(--faint);
  transition: transform 0.25s var(--ease-spring), color 0.2s ease;
  line-height: 0;
}
.rating button svg { width: 30px; height: 30px; }
.rating button:hover { transform: scale(1.18); }
.rating button.active { color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .review-grid { grid-template-columns: 1fr !important; } }
.review-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- QR code (leave a review) ---------- */
.qr-card {
  background: #fff;
  padding: 9px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(246,241,232,0.06);
  display: inline-block;
  line-height: 0;
}
.qr-card img { width: 132px; height: 132px; display: block; border-radius: 4px; }
.qr-block { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.qr-label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
/* centered banner variant (between reviews and form) */
.qr-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.4rem);
  flex-wrap: wrap;
  text-align: left;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: linear-gradient(170deg, var(--surface), var(--charcoal));
  max-width: 680px;
  margin-inline: auto;
}
.qr-banner__text { max-width: 30ch; }
.qr-banner__text .qr-label { font-size: 0.78rem; }
.qr-banner__text p { color: var(--muted); margin-top: 0.5rem; font-size: 0.98rem; }
@media (max-width: 520px) { .qr-banner { flex-direction: column; text-align: center; } .qr-banner__text { max-width: 36ch; } }

/* footer variant: compact, horizontal */
.footer-qr { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.8rem; }
.footer-qr .qr-card img { width: 86px; height: 86px; }
.footer-qr .qr-label {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.92rem;
  font-weight: 400;
  max-width: 15ch;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  border-radius: 28px;
  padding: clamp(3rem, 8vw, 6rem) var(--gut);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(217,138,61,0.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--black));
}
.cta-band h2 { margin-bottom: 1.2rem; }
.cta-band .lead { margin-inline: auto; margin-bottom: 2.2rem; }
.cta-band__glow {
  position: absolute;
  width: 600px; height: 300px;
  background: radial-gradient(circle, rgba(230,184,115,0.18), transparent 70%);
  top: -120px; left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(0deg, var(--black), var(--ink));
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
  margin-top: clamp(3rem, 8vw, 6rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 2.5rem; } }
.footer-logo { height: 64px; width: auto; mix-blend-mode: screen; margin-bottom: 1.4rem; }
.footer-brand p { color: var(--muted); max-width: 38ch; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col a, .footer-col li {
  display: block;
  color: var(--muted);
  padding: 0.4rem 0;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
  width: fit-content;
}
.footer-col a:hover { color: var(--gold); transform: translateX(3px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Reveal animation (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-spring);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-spring);
}
.js [data-stagger].in > * { opacity: 1; transform: none; }

/* generic helpers */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--section-y); }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(246,241,232,0.02);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* Alternating feature rows (services) */
.feature--rev .feature__media { order: 2; }
@media (max-width: 900px) { .feature--rev .feature__media { order: 0; } }
.svc-row { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line-soft); }
.svc-art {
  position: relative;
  border-radius: 22px;
  min-height: 360px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(var(--accent-rgb), 0.20), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--black));
  box-shadow: var(--shadow-soft);
}
.svc-art .glyph {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(6rem, 16vw, 11rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.55);
  opacity: 0.9;
}
.svc-art .badge { position: absolute; bottom: 1.4rem; left: 1.4rem; }
.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem 1.6rem; margin-top: 1.8rem; }
@media (max-width: 520px) { .deliverables { grid-template-columns: 1fr; } }
.deliverables li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; color: var(--muted); font-size: 0.96rem; }
.svc-price { font-family: var(--display); color: var(--gold-bright); font-size: 1.05rem; margin-top: 1.8rem; }
.svc-price span { color: var(--muted-2); font-family: var(--sans); font-size: 0.85rem; }

/* FAQ */
.faq details {
  border-top: 1px solid var(--line-soft);
  padding: 1.4rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--cream);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--gold);
  transition: transform 0.4s var(--ease-spring), background 0.3s ease;
}
.faq details[open] summary .pm { transform: rotate(45deg); background: rgba(230,184,115,0.1); }
.faq p { color: var(--muted); margin-top: 1rem; max-width: 70ch; }

/* Featured project showcase (work) */
.showcase {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 920px) { .showcase { grid-template-columns: 1fr; gap: 2.5rem; } }
.showcase__media { position: relative; }
.showcase__media::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(58% 58% at 50% 46%, rgba(var(--accent-rgb), 0.20), transparent 70%);
  filter: blur(34px);
  z-index: 0;
}
.showcase__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 34px 60px rgba(0,0,0,0.6));
  transition: transform 0.9s var(--ease-out);
}
.showcase__media:hover img { transform: translateY(-8px) scale(1.015); }
.showcase__info .eyebrow { margin-bottom: 1.1rem; }
.showcase__info h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
.showcase__loc {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin: 0.8rem 0 1.4rem;
}
.showcase__loc svg { width: 15px; height: 15px; color: var(--accent); }
/* second+ projects: spacing + divider */
.showcase + .showcase {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line-soft);
}
/* mirrored layout */
.showcase--rev { grid-template-columns: 0.88fr 1.12fr; }
.showcase--rev .showcase__media { order: 2; }
@media (max-width: 920px) {
  .showcase--rev { grid-template-columns: 1fr; }
  .showcase--rev .showcase__media { order: 0; }
}

/* Filter bar (work) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.filter-bar button {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.filter-bar button:hover { color: var(--cream); border-color: var(--line); }
.filter-bar button.active {
  color: #2A1C0A;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  border-color: transparent;
  font-weight: 500;
}

/* Areas We Serve — globe */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 920px) { .areas-grid { grid-template-columns: 1fr; } }
.areas-list { display: grid; gap: 0.85rem; margin-top: 1.9rem; }
.areas-list li { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 1rem; }
.dot-g { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); flex-shrink: 0; }
.globe-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}
/* ambient glow + fallback orb (shows if WebGL/CDN unavailable) */
.globe-wrap::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(230,184,115,0.16), transparent 62%),
    radial-gradient(circle at 50% 50%, rgba(28,23,20,0.9), rgba(11,9,7,0.9) 70%);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.6), 0 30px 80px rgba(0,0,0,0.5);
  filter: blur(0.5px);
}
#areasGlobe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  cursor: grab;
  opacity: 0;
  transition: opacity 1.2s ease;
  touch-action: none;
}

/* Legal / long-form content (privacy policy) */
.legal { max-width: 840px; }
.legal > p:first-of-type { font-size: 1.05rem; }
.legal h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.9rem);
  margin: 2.6rem 0 0.9rem;
  scroll-margin-top: 100px;
}
.legal h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--gold);
  margin: 1.6rem 0 0.6rem;
}
.legal p { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; }
.legal ul { display: grid; gap: 0.5rem; margin: 0.4rem 0 1.3rem; }
.legal ul li {
  color: var(--muted);
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.7;
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.legal a { color: var(--gold); border-bottom: 1px solid rgba(230,184,115,0.4); }
.legal a:hover { border-color: var(--gold); }
.legal strong { color: var(--cream); font-weight: 600; }
.legal-callout {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.4rem, 3vw, 2rem);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(217,138,61,0.08), transparent 55%),
    linear-gradient(170deg, var(--surface-2), var(--charcoal));
  margin: 0 0 2.5rem;
}
.legal-callout h2 { margin-top: 0; font-size: 1.15rem; color: var(--gold); font-family: var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.legal-callout p { color: var(--cream); margin-bottom: 0; }
.legal .effective { color: var(--muted-2); font-size: 0.9rem; letter-spacing: 0.02em; }

/* Page hero (interior pages) */
.page-hero {
  padding-top: calc(78px + clamp(3.5rem, 9vw, 7rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
}
.page-hero .display { max-width: 16ch; }
.page-hero .lead { margin-top: 1.6rem; }
.breadcrumb { color: var(--muted-2); font-size: 0.82rem; letter-spacing: 0.04em; margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--gold); }
