/*
  Suncubico - design system (warm editorial direction)
  Shape lock: panels/images/cards = soft rounded (--radius-card / --radius-img).
  Buttons = full pill. Inputs/selects = --radius-field. One accent (terracotta,
  stored in --electric/--electric-deep for minimal diff churn) for all
  interactive elements; champagne/gold/teal/rust are a contained categorical
  palette used only on the Solutions cards. Serif display font (Playfair
  Display, self-hosted) for headline moments only; Geist everywhere else.
  Theme: single fixed warm-cream composition throughout - no dark sections,
  no OS dark-mode toggle.
*/

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-Variable.woff2") format("woff2-variations");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #251c14;
  --navy-deep: #1a130d;
  --paper: #ffffff;
  --mist: #f7f0e4;
  --steel: #7a6f60;
  --steel-light: #a69a89;
  --electric: #c05f33;
  --electric-deep: #9c4a28;
  --champagne: #c99a3e;
  --card-blue: #4f86c6;
  --card-gold: #c99a3e;
  --card-rust: #b5502b;
  --card-teal: #3f8f82;
  --line-light: rgba(37, 28, 20, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-field: 10px;
  --radius-card: 24px;
  --radius-img: 20px;
  --radius-chip: 999px;
  --shadow-sm: 0 8px 24px -16px rgba(37, 28, 20, 0.16);
  --shadow-md: 0 20px 48px -20px rgba(37, 28, 20, 0.2);
  --shadow-lg: 0 32px 72px -24px rgba(37, 28, 20, 0.28);
  --shadow-electric: 0 20px 48px -18px rgba(192, 95, 51, 0.35);
  --font-display: "Playfair Display", "Geist", serif;
  --container: 1360px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(192, 95, 51, 0.08), transparent 60%),
    radial-gradient(900px 540px at -10% 40%, rgba(201, 154, 62, 0.1), transparent 60%),
    var(--paper);
  color: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: var(--electric);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.1;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  .container { padding-inline: 2.5rem; }
}

section {
  position: relative;
}

.section-pad {
  padding-block: 6rem;
}

@media (min-width: 1024px) {
  .section-pad { padding-block: 8rem; }
}

.eyebrow {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--steel);
  font-weight: 600;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  text-wrap: balance;
}

.section-head p {
  margin-top: 1rem;
  color: var(--steel);
  font-size: 1.0625rem;
  max-width: 38rem;
}

/* ---------- Glassmorphism ----------
   Two frosted-glass recipes: .glass-dark for panels sitting over photography
   or saturated color (hero search, hero orbit frame, CTA panel), .glass-light
   for panels sitting over the cream page background (scrolled nav, chips,
   floating controls). Both get a real inner-edge highlight so they read as
   physical glass, not just a blurred box, and both fall back to a solid fill
   under prefers-reduced-transparency. */

.glass-dark {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    var(--shadow-lg);
}

.glass-light {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    var(--shadow-sm);
}

@media (prefers-reduced-transparency: reduce) {
  .glass-dark {
    background: rgba(26, 19, 13, 0.82);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .glass-light {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-luxury), box-shadow 0.35s var(--ease-luxury), background-color 0.35s var(--ease-luxury), border-color 0.35s var(--ease-luxury);
  will-change: transform;
}

.btn:active { transform: scale(0.97) !important; }

.btn--primary {
  background: var(--electric);
  color: var(--paper);
  border: 1px solid var(--electric);
  box-shadow: var(--shadow-electric);
}

.btn--primary:hover {
  background: var(--electric-deep);
  border-color: var(--electric-deep);
  box-shadow: 0 24px 56px -16px rgba(192, 95, 51, 0.5);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  color: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), var(--shadow-sm);
}

.btn--outline-dark:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--paper);
  transform: translateY(-2px);
}

.btn--sm { padding: 0.65rem 1.25rem; font-size: 0.875rem; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease-luxury), border-color 0.5s var(--ease-luxury);
}

.nav.is-scrolled,
.nav.is-open {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 32px -20px rgba(37, 28, 20, 0.25);
}

@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled,
  .nav.is-open {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.nav__inner {
  width: 100%;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--paper);
  transition: color 0.4s var(--ease-luxury);
}

.nav.is-scrolled .nav__logo, .nav.is-open .nav__logo { color: var(--navy); }

.nav__links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
}

.nav__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s var(--ease-luxury);
}

.nav__links a:hover { color: var(--paper); }

.nav.is-scrolled .nav__links a, .nav.is-open .nav__links a { color: var(--steel); }
.nav.is-scrolled .nav__links a:hover, .nav.is-open .nav__links a:hover { color: var(--navy); }

.nav__cta { display: none; }
@media (min-width: 1024px) { .nav__cta { display: inline-flex; } }

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--paper);
  transition: color 0.4s var(--ease-luxury);
}

.nav.is-scrolled .nav__toggle, .nav.is-open .nav__toggle { color: var(--navy); }

@media (min-width: 1024px) { .nav__toggle { display: none; } }

.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav.is-open .nav__toggle .icon-menu { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem 2.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.62));
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), var(--shadow-lg);
}

@media (prefers-reduced-transparency: reduce) {
  .nav__mobile {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.nav.is-open .nav__mobile { display: flex; }

.nav__mobile a {
  font-size: 1.125rem;
  color: var(--navy);
}

@media (min-width: 1024px) {
  .nav__mobile { display: none !important; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--paper);
  overflow: hidden;
  padding-top: 4.5rem;
  padding-bottom: 6rem;
}

.hero__bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform: translateY(var(--parallax-1, 0px));
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s var(--ease-luxury);
}

.hero__bg.is-active {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26, 19, 13, 0.6) 0%, rgba(26, 19, 13, 0.4) 45%, rgba(26, 19, 13, 0.8) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 4rem;
}

.hero__copy {
  max-width: 34rem;
}

.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.08;
  text-wrap: balance;
  color: var(--paper);
}

.hero__subtext {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 30rem;
}

.hero__ctas {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Hero orbit (3D visual + rotating location ring) ---------- */

.hero__orbit {
  position: absolute;
  z-index: 3;
  top: 6.5rem;
  right: clamp(1.25rem, 6vw, 5rem);
  width: clamp(11rem, 16vw, 14.5rem);
  aspect-ratio: 1;
  transform: translateY(var(--parallax-2, 0px));
}

@media (max-width: 640px) {
  .hero__orbit { display: none; }
}

.hero__orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  height: 58%;
  margin: -29% 0 0 -29%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--mist);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    var(--shadow-lg);
  z-index: 2;
}

.hero__orbit-core img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__orbit-core.has-3d img { opacity: 0.3; }
.hero__orbit-core .hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease-luxury);
}

.hero__orbit-core.has-3d .hero__canvas { opacity: 1; }

.orbit-ring {
  position: absolute;
  inset: 0;
  animation: orbit-rotate 28s linear infinite;
}

.orbit-slot {
  position: absolute;
  inset: 0;
  transform: rotate(var(--angle, 0deg));
}

.orbit-thumb {
  position: absolute;
  top: 0;
  left: 50%;
  width: 26%;
  aspect-ratio: 1;
  margin-left: -13%;
  margin-top: -13%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--paper);
  box-shadow: var(--shadow-sm);
  animation: orbit-counter 28s linear infinite;
}

.orbit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbit-counter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* ---------- Hero search ---------- */

.hero__search {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

@media (prefers-reduced-transparency: reduce) {
  .hero__search {
    background: rgba(26, 19, 13, 0.85);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (min-width: 768px) {
  .hero__search {
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end;
  }
}

.hero__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero__field label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.65);
}

.hero__field select {
  appearance: none;
  background: rgba(255, 255, 255, 0.1) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 0.9rem center;
  background-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-field);
  color: var(--paper);
  padding: 0.85rem 2.25rem 0.85rem 0.9rem;
  font-size: 0.9375rem;
  width: 100%;
}

.hero__field select option { color: var(--navy); }

.hero__search .btn { width: 100%; }

/* ---------- Hero stats (overlaps the hero/next-section seam) ---------- */

.hero__stats {
  position: relative;
  z-index: 3;
  margin-top: 2.5rem;
}

.hero__stats-card {
  max-width: var(--container);
  margin-inline: auto;
  background: var(--paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem clamp(1rem, 3vw, 2.5rem);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: var(--navy);
}

.hero__stat span {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--steel);
}

.hero__stat-divider {
  width: 14px;
  height: 14px;
  color: var(--champagne);
  flex: none;
}

@media (max-width: 767px) {
  .hero__stat-divider { display: none; }
}

/* ---------- Solutions (colorful horizontal cards) ---------- */

.solutions__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  margin: 0 -1.5rem;
  padding-inline: 1.5rem;
  scrollbar-width: thin;
}

@media (min-width: 1024px) {
  .solutions__track { margin: 0 -2.5rem; padding-inline: 2.5rem; }
}

.solution-card {
  position: relative;
  flex: 0 0 min(19rem, 78vw);
  scroll-snap-align: start;
  min-height: 23rem;
  padding: 1.75rem 1.75rem 0;
  color: var(--paper);
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-luxury), box-shadow 0.45s var(--ease-luxury);
  transform: translateY(0) perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.solution-card:hover {
  box-shadow: var(--shadow-lg);
}

.solution-card--blue { background: var(--card-blue); }
.solution-card--gold { background: var(--card-gold); }
.solution-card--rust { background: var(--card-rust); }
.solution-card--teal { background: var(--card-teal); }

.solution-card__arrow {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.12));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-luxury), background 0.4s var(--ease-luxury);
}

.solution-card__arrow svg { width: 16px; height: 16px; }

.solution-card:hover .solution-card__arrow {
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(45deg);
}

.solution-card__title {
  position: relative;
  z-index: 2;
  font-size: 1.5rem;
  font-weight: 600;
  max-width: 10rem;
}

.solution-card__desc {
  position: relative;
  z-index: 2;
  margin-top: 0.65rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 14rem;
}

.solution-card__image {
  position: absolute;
  inset: 45% 0 0 0;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.solution-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-luxury);
}

.solution-card:hover .solution-card__image img { transform: scale(1.06); }

.solution-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 35%);
}

.solutions__nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.solutions__nav button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-chip);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.45));
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.solutions__nav button:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.solutions__nav svg { width: 16px; height: 16px; }

/* ---------- Locations ---------- */

.locations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .locations { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; }
}

.locations__list {
  border-top: 1px solid var(--line-light);
}

.locations__item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line-light);
  transition: padding-left 0.4s var(--ease-luxury), color 0.3s;
  color: var(--steel);
}

.locations__item:hover,
.locations__item.is-active {
  padding-left: 0.75rem;
  color: var(--navy);
}

.locations__item.is-active .locations__name { color: var(--electric); }

.locations__name {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--navy);
}

.locations__meta {
  font-size: 0.875rem;
  color: var(--steel);
}

.locations__panel {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
}

.locations__panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease-luxury);
}

.locations__panel img.is-active { opacity: 1; }

.locations__badge {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  background: linear-gradient(135deg, rgba(26, 19, 13, 0.6), rgba(26, 19, 13, 0.4));
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: var(--paper);
  padding: 0.75rem 1.1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-chip);
}

/* ---------- Properties (horizontal scroll) ---------- */

.properties__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  margin: 0 -1.5rem;
  padding-inline: 1.5rem;
  scrollbar-width: thin;
}

@media (min-width: 1024px) {
  .properties__track { margin: 0 -2.5rem; padding-inline: 2.5rem; }
}

.property-card {
  flex: 0 0 min(22rem, 84vw);
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-luxury), box-shadow 0.45s var(--ease-luxury);
  transform: translateY(0) perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.property-card:hover {
  box-shadow: var(--shadow-lg);
}

.property-card__image {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  perspective: 1000px;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-luxury);
}

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

.property-card__body { padding: 1.5rem; }

.property-card__location {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--electric);
  font-weight: 600;
}

.property-card__name {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.property-card__specs {
  margin-top: 0.75rem;
  color: var(--steel);
  font-size: 0.9375rem;
}

.property-card__chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-chip);
  color: var(--steel);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(247, 240, 228, 0.6));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.property-card__cta {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--electric);
}

.property-card__cta svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-luxury); }
.property-card__cta:hover svg { transform: translateX(3px); }

.properties__nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.properties__nav button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-chip);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.45));
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.properties__nav button:hover { background: var(--mist); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.properties__nav svg { width: 16px; height: 16px; }

/* ---------- Designed for Business (mosaic) ---------- */

.mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .mosaic {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 9rem;
  }
  .mosaic__item--1 { grid-column: 1 / 8; grid-row: 1 / 5; }
  .mosaic__item--2 { grid-column: 8 / 13; grid-row: 1 / 3; }
  .mosaic__item--3 { grid-column: 8 / 13; grid-row: 3 / 6; }
  .mosaic__item--4 { grid-column: 1 / 8; grid-row: 5 / 7; }
}

.mosaic__item {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.mosaic__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic__caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  z-index: 2;
}

.mosaic__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0) 55%, rgba(5, 11, 22, 0.65) 100%);
  z-index: 1;
}

/* ---------- Impact ---------- */

.impact {
  position: relative;
  background: var(--paper);
  color: var(--navy);
  overflow: hidden;
}

.impact__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.impact__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 240, 228, 0.55) 0%, rgba(247, 240, 228, 0.85) 100%);
}

.impact__inner { position: relative; z-index: 2; }

.impact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
}

@media (min-width: 768px) {
  .impact__grid { grid-template-columns: repeat(4, 1fr); }
}

.impact__stat {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-left: 3px solid var(--champagne);
  border-radius: var(--radius-img);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    var(--shadow-sm);
  transition: transform 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury);
}

.impact__stat:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    var(--shadow-md);
}

@media (prefers-reduced-transparency: reduce) {
  .impact__stat {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.impact__value {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--electric);
}

.impact__label {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--steel);
}

/* ---------- Trusted By ---------- */

.logo-wall {
  margin-bottom: 4rem;
}

.logo-wall__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 6rem;
  color: var(--steel);
  opacity: 0.85;
  transition: opacity 0.3s, color 0.3s;
}

.logo-wall__mark:hover { opacity: 1; color: var(--navy); }
.logo-wall__mark svg { height: 2rem; width: auto; }

.testimonial {
  position: relative;
  max-width: 44rem;
}

.testimonial__quote {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  text-wrap: balance;
}

.testimonial__attribution {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--steel);
}

.testimonial__attribution strong {
  color: var(--navy);
  font-weight: 600;
}

.testimonial__nav {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial__nav button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-chip);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.45));
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.testimonial__nav button:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.testimonial__nav svg { width: 14px; height: 14px; }

.testimonial__dots {
  display: flex;
  gap: 0.4rem;
}

.testimonial__dots button {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--line-light);
  padding: 0;
}

.testimonial__dots button.is-active { background: var(--electric); }

/* ---------- Process ---------- */

.process {
  background: var(--mist);
  color: var(--navy);
}

.process__track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .process__track { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
}

.process__step {
  border-top: 1px solid var(--line-light);
  padding-top: 1.5rem;
}

.process__index {
  font-size: 0.8125rem;
  color: var(--electric);
  font-weight: 600;
}

.process__name {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.process__desc {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--steel);
}

/* ---------- Insights ---------- */

.insights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .insights { grid-template-columns: repeat(2, 1fr); }
}

.insight-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .insight-card--featured { grid-template-columns: 1.2fr 1fr; }
}

.insight-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease-luxury);
}

.insight-card:hover .insight-card__image { box-shadow: var(--shadow-md); }

.insight-card--featured .insight-card__image { aspect-ratio: auto; min-height: 20rem; }

.insight-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-luxury);
}

.insight-card:hover .insight-card__image img { transform: scale(1.04); }

.insight-card__body {
  padding: 1.5rem 0.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insight-card--featured .insight-card__body { padding: 1.75rem; }

.insight-card__meta {
  font-size: 0.8125rem;
  color: var(--steel);
}

.insight-card__title {
  margin-top: 0.6rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.insight-card--featured .insight-card__title { font-size: 1.75rem; }

.insight-card__excerpt {
  margin-top: 0.75rem;
  color: var(--steel);
  font-size: 0.9375rem;
}

/* ---------- Conversion CTA ---------- */

.cta {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--mist);
  color: var(--navy);
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 30rem;
  height: 30rem;
  top: -8rem;
  left: 20%;
  border-radius: 50%;
  filter: blur(100px);
  background: radial-gradient(circle, rgba(192, 95, 51, 0.16), transparent 70%);
  pointer-events: none;
}

.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(247, 240, 228, 0.35) 0%, rgba(247, 240, 228, 0.08) 65%);
}

.cta__inner {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.22));
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    var(--shadow-lg);
}

@media (prefers-reduced-transparency: reduce) {
  .cta__inner {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.cta__title {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  text-wrap: balance;
}

.cta__body {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: var(--steel);
  max-width: 28rem;
}

.cta__ctas { margin-top: 2rem; }

/* ---------- Footer ---------- */

.footer {
  background: var(--mist);
  color: var(--steel);
  border-top: 1px solid var(--line-light);
  padding-block: 4.5rem 2.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.2fr repeat(3, 1fr); }
}

.footer__logo {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--navy);
}

.footer__address {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  max-width: 18rem;
}

.footer__contact {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}

.footer__social {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__social img { width: 15px; height: 15px; }

.footer__heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel-light);
}

.footer__links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a:hover { color: var(--navy); }

.footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--steel-light);
}

@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-luxury), transform 0.9s var(--ease-luxury), filter 0.9s var(--ease-luxury);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  filter: blur(5px);
  transition: opacity 0.7s var(--ease-luxury), transform 0.7s var(--ease-luxury), filter 0.7s var(--ease-luxury);
}

.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.27s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.45s; }

/* Curtain-style image reveal: clip-path lifts away while the image settles
   from a slight zoom, applied to photography across solution/property/mosaic/
   insight/location cards as they enter the viewport. The *parent* container
   (not the clipped image itself) is what gets observed/marked is-visible -
   a fully clip-path'd element reports zero intersection area to
   IntersectionObserver, so observing it directly never fires. */
.img-curtain {
  clip-path: inset(0% 0% 100% 0%);
  transform: scale(1.12);
  transition: clip-path 1.1s var(--ease-luxury), transform 1.3s var(--ease-luxury);
}

.solution-card__image.is-visible .img-curtain,
.property-card__image.is-visible .img-curtain,
.mosaic__item.is-visible .img-curtain,
.insight-card__image.is-visible .img-curtain,
.locations__panel.is-visible .img-curtain {
  clip-path: inset(0% 0% 0% 0%);
  transform: scale(1);
}

/* ---------- Scroll parallax hooks (set via CSS custom properties in JS) --- */
/* .hero__bg and .hero__orbit read --parallax-1/-2 directly, declared with the
   rest of their rules above. */

.cta::before { transform: translateY(var(--parallax-3, 0px)); }

/* ---------- Logo marquee ---------- */

.logo-wall {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-wall__track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.logo-wall:hover .logo-wall__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Nav link underline ---------- */

.nav__links a {
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--electric);
  transition: right 0.35s var(--ease-luxury);
}

.nav__links a:hover::after { right: 0; }

/* ---------- Testimonial crossfade ---------- */

.testimonial__quote,
.testimonial__attribution {
  transition: opacity 0.35s var(--ease-luxury), transform 0.35s var(--ease-luxury);
}

.testimonial.is-switching .testimonial__quote,
.testimonial.is-switching .testimonial__attribution {
  opacity: 0;
  transform: translateY(8px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal, .reveal-stagger > *, .img-curtain {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }

  .logo-wall__track {
    animation: none !important;
    transform: none !important;
  }
}
