/* ==========================================================================
   HNI Group — one-page site
   Design tokens
   ========================================================================== */
:root {
  --navy: #253085;
  --navy-dark: #171f5c;
  --navy-deep: #0d1140;
  --red: #ed1c24;
  --red-dark: #c8161d;
  --charcoal: #33343a;
  --gray-mid: #57585b;
  --gray-line: #dde0e9;
  --bg-alt: #eef0f5;
  --white: #ffffff;

  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --max-width: 1120px;
  --gutter: 24px;
  --radius: 6px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-sm: 0.25s;
  --dur-md: 0.5s;
  --dur-lg: 0.8s;

  --shadow-sm: 0 1px 2px rgba(15, 20, 66, 0.06), 0 1px 1px rgba(15, 20, 66, 0.04);
  --shadow-md: 0 10px 24px -8px rgba(15, 20, 66, 0.18), 0 2px 6px rgba(15, 20, 66, 0.06);
  --shadow-lg: 0 24px 48px -12px rgba(15, 20, 66, 0.28), 0 4px 12px rgba(15, 20, 66, 0.08);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

#top, #about, #construction, #real-estate, #contact {
  scroll-margin-top: 76px;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; color: var(--navy-dark); }
p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==========================================================================
   Scroll progress bar
   ========================================================================== */
.nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--navy));
  z-index: 600;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Reveal / stagger animation system
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-lg) var(--ease), transform var(--dur-lg) var(--ease);
  will-change: opacity, transform;
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

.stagger-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-md) var(--ease), transform var(--dur-md) var(--ease);
}
.stagger-item.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-line);
  transition: box-shadow var(--dur-sm) ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  gap: 0.35em;
}
.wordmark-hni { color: var(--navy); }
.wordmark-group { color: var(--red); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  padding: 6px 2px;
  position: relative;
  transition: color var(--dur-sm) ease;
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active { color: var(--navy); }

.nav-link--cta {
  background: var(--navy);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius);
  transition: background-color var(--dur-sm) ease, transform var(--dur-sm) ease, box-shadow var(--dur-sm) ease;
}
.nav-link--cta:hover,
.nav-link--cta:focus-visible {
  background: var(--navy-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-indicator {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: left var(--dur-md) var(--ease), width var(--dur-md) var(--ease), opacity var(--dur-sm) ease;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-dark);
  border-radius: 1px;
  transition: transform var(--dur-sm) ease, opacity var(--dur-sm) ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--navy-deep);
  color: var(--white);
  padding: 130px 0 96px;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.hero-bg-layer--1 {
  width: 620px;
  height: 620px;
  top: -220px;
  right: -160px;
  background: radial-gradient(circle at 30% 30%, var(--navy) 0%, transparent 70%);
  animation: driftOne 22s ease-in-out infinite;
}
.hero-bg-layer--2 {
  width: 520px;
  height: 520px;
  bottom: -240px;
  left: -140px;
  background: radial-gradient(circle at 60% 60%, var(--red) 0%, transparent 72%);
  opacity: 0.28;
  animation: driftTwo 26s ease-in-out infinite;
}

@keyframes driftOne {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.08); }
}
@keyframes driftTwo {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-layer--1, .hero-bg-layer--2 { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: #b9c0ea;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--red);
}

.hero-headline {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.12rem;
  color: #dcdff2;
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color var(--dur-sm) ease, color var(--dur-sm) ease,
    border-color var(--dur-sm) ease, transform var(--dur-sm) ease, box-shadow var(--dur-sm) ease;
}

.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 8px 20px -8px rgba(237, 28, 36, 0.55); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(237, 28, 36, 0.6); }

.btn-outline { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  transition: border-color var(--dur-sm) ease;
}
.scroll-cue:hover { border-color: rgba(255, 255, 255, 0.85); }
.scroll-cue-line {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--white);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-line { animation: none; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 84px 0; background: var(--white); }
.about-inner { max-width: 800px; }

.section-heading {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.about-text { font-size: 1.08rem; color: var(--gray-mid); }
.about-text strong { color: var(--navy-dark); }

/* ==========================================================================
   Chapter dividers — strong visual transitions
   ========================================================================== */
.chapter-divider {
  position: relative;
  overflow: hidden;
  padding: 64px var(--gutter) 76px;
  isolation: isolate;
}

.chapter-divider-bg { position: absolute; inset: 0; z-index: -1; }

.chapter-divider--construction { background: var(--navy-deep); }
.chapter-divider--construction .chapter-divider-bg {
  background:
    radial-gradient(circle at 15% 20%, rgba(237, 28, 36, 0.16), transparent 45%),
    linear-gradient(120deg, var(--navy-deep) 0%, var(--navy-dark) 55%, var(--navy) 100%);
}
.chapter-divider--construction .chapter-divider-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 26px);
}

.chapter-divider--real-estate { background: var(--bg-alt); }
.chapter-divider--real-estate .chapter-divider-bg {
  background:
    radial-gradient(circle at 85% 30%, rgba(37, 48, 133, 0.08), transparent 50%),
    linear-gradient(120deg, #f5f6fa 0%, var(--bg-alt) 100%);
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}

.chapter-divider::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
  z-index: 1;
}
.chapter-divider--construction::before { background: var(--white); }
.chapter-divider--real-estate::before { background: var(--white); }

.chapter-divider-inner {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.chapter-divider-index {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--red);
  opacity: 0.85;
}
.chapter-divider--real-estate .chapter-divider-index { color: var(--red); }

.chapter-divider-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.chapter-divider--construction .chapter-divider-label { color: var(--white); }
.chapter-divider--real-estate .chapter-divider-label { color: var(--navy-dark); }

.chapter-divider-sub {
  font-family: var(--font-body);
  font-size: 0.98rem;
  flex-basis: 100%;
  padding-left: calc(3.4rem + 24px);
}
.chapter-divider--construction .chapter-divider-sub { color: #b9c0ea; }
.chapter-divider--real-estate .chapter-divider-sub { color: var(--gray-mid); }

@media (max-width: 560px) {
  .chapter-divider-sub { padding-left: 0; }
  .chapter-divider-index { font-size: 2.4rem; }
}

/* ==========================================================================
   Shared section content
   ========================================================================== */
.construction { position: relative; overflow: hidden; padding: 72px 0 88px; background: var(--white); isolation: isolate; }
.construction .section-inner { position: relative; z-index: 1; }
.real-estate { padding: 72px 0 88px; background: var(--white); }

/* --- Construction section: architectural background layer --- */
.construction-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.construction-grid {
  position: absolute;
  inset: -10% -5%;
  background-image:
    linear-gradient(rgba(37, 48, 133, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 48, 133, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 78% 8%, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 78% 8%, rgba(0,0,0,0.9), transparent 70%);
}

.construction-scanline {
  position: absolute;
  top: 0;
  left: -20%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 48, 133, 0.05), transparent);
  animation: scanSweep 16s linear infinite;
}
@keyframes scanSweep {
  0% { transform: translateX(0); }
  100% { transform: translateX(420%); }
}
@media (prefers-reduced-motion: reduce) {
  .construction-scanline { animation: none; display: none; }
}

.construction-blueprint {
  position: absolute;
  top: 0;
  right: 0;
  width: 360px;
  height: 360px;
  color: var(--navy);
  opacity: 0.06;
}
@media (max-width: 720px) {
  .construction-blueprint { width: 220px; height: 220px; }
}

.brand-text-lockup {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-mid);
  margin-bottom: 10px;
}
.brand-text-lockup strong { color: var(--navy); font-weight: 700; }

.quote-line {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--red-dark);
  margin: 8px 0 14px;
}

.lede {
  font-size: 1.15rem;
  color: var(--navy-dark);
  max-width: 760px;
  margin: 18px 0;
}

.body-text {
  font-size: 1.02rem;
  color: var(--gray-mid);
  max-width: 760px;
  margin: 14px 0;
}
.body-text.small { font-size: 0.96rem; max-width: 640px; }

.vm-block {
  margin-top: 36px;
  padding: 28px 30px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #f7f8fb 100%);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  max-width: 800px;
  box-shadow: var(--shadow-sm);
}

.sub-heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-line);
}

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.services-col {
  position: relative;
  padding: 30px 26px 28px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--white) 0%, #fbfbfd 100%);
  overflow: hidden;
  transition: transform var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease), border-color var(--dur-md) var(--ease);
}
.services-col::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-md) var(--ease);
}
.services-col:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.services-col:hover::before { transform: scaleX(1); }

.services-col-index {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--navy);
  opacity: 0.07;
  line-height: 1;
}

.services-col-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background-color var(--dur-md) ease, color var(--dur-md) ease, transform var(--dur-md) var(--ease);
}
.services-col-icon svg { width: 22px; height: 22px; }
.services-col:hover .services-col-icon {
  background: var(--navy);
  color: var(--white);
  transform: scale(1.06);
}

.services-col-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 12px;
}
.services-col-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.plain-list li {
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid var(--gray-line);
  position: relative;
  font-size: 0.97rem;
  color: var(--charcoal);
  transition: padding-left var(--dur-sm) ease, color var(--dur-sm) ease;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 2px;
  background: var(--red);
  transition: width var(--dur-sm) ease;
}
.plain-list li:hover { padding-left: 22px; color: var(--navy-dark); }
.plain-list li:hover::before { width: 12px; }
.plain-list li:last-child { border-bottom: none; }

/* Sectors grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 4px;
}
.sector-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease);
}
.sector-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--navy), var(--red));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-md) var(--ease);
}
.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.sector-card:hover::before { transform: scaleY(1); }

.sector-index {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--navy);
  opacity: 0.08;
  line-height: 1;
}

.sector-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--bg-alt);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background-color var(--dur-md) ease, color var(--dur-md) ease, transform var(--dur-md) var(--ease);
}
.sector-icon svg { width: 20px; height: 20px; }
.sector-card:hover .sector-icon {
  background: var(--red);
  color: var(--white);
  transform: scale(1.06);
}

.sector-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

/* ==========================================================================
   Real estate — logos + portfolio
   ========================================================================== */
.re-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-line);
}
.re-logos img { height: 42px; width: auto; }

/* --- Cinematic portfolio slider --- */
.portfolio-slider {
  position: relative;
  margin-top: 28px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-deep);
}

.slider-viewport { overflow: hidden; width: 100%; }
.slider-track {
  display: flex;
  transition: transform var(--dur-lg) var(--ease);
}

.slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 21 / 9;
  margin: 0;
  overflow: hidden;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 1.2s ease;
}
.slide.is-active img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .slide.is-active img { animation: none; }
}

.slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 26px 24px;
  background: linear-gradient(0deg, rgba(13, 17, 64, 0.92) 0%, rgba(13, 17, 64, 0.35) 60%, transparent 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slide-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffb1b4;
  letter-spacing: 0.01em;
}
.slide-caption {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(13, 17, 64, 0.45);
  backdrop-filter: blur(6px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--dur-sm) ease, transform var(--dur-sm) ease, border-color var(--dur-sm) ease;
  z-index: 2;
}
.slider-arrow svg { width: 20px; height: 20px; }
.slider-arrow:hover { background: rgba(237, 28, 36, 0.85); border-color: transparent; transform: translateY(-50%) scale(1.06); }
.slider-arrow--prev { left: 16px; }
.slider-arrow--next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 16px;
  right: 22px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width var(--dur-sm) ease, background-color var(--dur-sm) ease;
}
.slider-dot.is-active { width: 26px; background: var(--red); }

@media (max-width: 720px) {
  .slide { aspect-ratio: 4 / 3.4; }
  .slider-arrow { width: 38px; height: 38px; }
  .slider-arrow--prev { left: 10px; }
  .slider-arrow--next { right: 10px; }
}

/* Residential list / service property */
.portfolio-group {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-line);
}

.portfolio-group-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.portfolio-group-title { font-size: 1.25rem; font-weight: 700; }
.portfolio-entity-tag {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-alt);
  padding: 3px 10px;
  border-radius: 999px;
}

.residential-list {
  margin-top: 18px;
  max-width: 560px;
}
.residential-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--gray-line);
  font-size: 0.97rem;
  transition: padding-left var(--dur-sm) ease, background-color var(--dur-sm) ease;
}
.residential-list li:hover { padding-left: 8px; background: var(--bg-alt); }
.residential-city { color: var(--navy-dark); font-weight: 600; }
.residential-count { color: var(--gray-mid); }

.text-only-property {
  margin-top: 18px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #f7f8fb 100%);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 640px;
  box-shadow: var(--shadow-sm);
}
.text-only-property-location { font-weight: 700; color: var(--navy-dark); }
.text-only-property-detail { color: var(--gray-mid); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: linear-gradient(160deg, var(--bg-alt) 0%, #f7f8fb 100%);
  padding: 84px 0;
}
.contact-inner { max-width: 760px; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-md) var(--ease), transform var(--dur-md) var(--ease);
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.contact-card-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-md) ease, color var(--dur-md) ease;
}
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card:hover .contact-card-icon { background: var(--navy); color: var(--white); }

.contact-card-label {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
  font-size: 0.98rem;
}
.contact-card-value {
  font-style: normal;
  font-size: 0.98rem;
  color: var(--gray-mid);
  line-height: 1.55;
  margin: 0;
}
.contact-email-link {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-sm) ease, border-color var(--dur-sm) ease;
}
.contact-email-link:hover,
.contact-email-link:focus-visible {
  color: var(--red-dark);
  border-bottom-color: var(--red-dark);
}

@media (max-width: 640px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: #c7cbe6;
  padding: 40px 0 32px;
}
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-brands { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.footer-brand-name { font-family: var(--font-head); font-weight: 600; color: var(--white); font-size: 0.98rem; }
.footer-brands img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.88rem;
  color: #b9c0ea;
}
.footer-contact a { color: var(--white); font-weight: 600; transition: color var(--dur-sm) ease; }
.footer-contact a:hover, .footer-contact a:focus-visible { color: #ffb1b4; }
.footer-copy {
  font-size: 0.85rem;
  color: #99a0c9;
  padding-top: 20px;
  border-top: 1px solid #262e6e;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .sectors-grid { grid-template-columns: 1fr; }
}

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .nav-indicator { display: none; }
  .nav-link {
    width: 100%;
    padding: 12px 2px;
    border-bottom: 1px solid var(--gray-line);
  }
  .nav-link--cta { margin-top: 10px; text-align: center; }

  .hero { padding: 100px 0 72px; min-height: auto; }
  .re-logos { gap: 24px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 14px var(--gutter); }
  .wordmark { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}
