/* ===========================================================
   STETOL — Tech & Business Consulting
   Design tokens
   =========================================================== */
:root {
  --ink: #0f1b2b;
  --ink-soft: #1c2c40;
  --muted: #5b6b7d;
  --muted-light: #8898a8;
  --blue: #0e5389;
  --blue-bright: #1672b8;
  --blue-deep: #072a47;
  --blue-deepest: #051c30;
  --teal: #129089;
  --teal-bright: #17b3a8;
  --gold: #c99a3e;
  --gold-bright: #e0b659;
  --paper: #f6f8fa;
  --paper-dim: #eef2f5;
  --line: rgba(15, 27, 43, 0.12);
  --line-soft: rgba(15, 27, 43, 0.07);
  --line-on-dark: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 8px 24px rgba(7, 26, 43, 0.08);
  --shadow-md: 0 18px 48px rgba(7, 26, 43, 0.14);
  --shadow-lg: 0 30px 80px rgba(5, 18, 31, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--teal);
  color: #fff;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ===========================================================
   Header / Nav
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 250, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 280ms var(--ease), box-shadow 280ms var(--ease), background 280ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px rgba(7, 26, 43, 0.06);
}

.nav {
  width: min(var(--container), calc(100% - 32px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: var(--blue-deep);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.93rem;
  transition: color 200ms var(--ease);
}

.nav-links a:not(.nav-join)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.nav-links a:not(.nav-join):hover,
.nav-links a:not(.nav-join):focus-visible {
  color: var(--blue-deep);
}

.nav-links a:not(.nav-join):hover::after,
.nav-links a:not(.nav-join):focus-visible::after {
  transform: scaleX(1);
}

.nav-join {
  margin-left: 6px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(14, 83, 137, 0.26);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.nav-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(14, 83, 137, 0.34);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  place-items: center;
  gap: 4px;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

section {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--teal);
}

/* ===========================================================
   Hero — signature circuit-trace animation
   =========================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: 40px;
  padding: 64px 0 48px;
  background: var(--blue-deepest);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(23, 179, 168, 0.22), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(14, 83, 137, 0.35), transparent 46%),
    linear-gradient(165deg, var(--blue-deepest) 0%, var(--blue-deep) 56%, #0a3257 100%);
  z-index: -2;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 0%, transparent 75%);
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cfe3ee;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-badge .dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 0 rgba(23, 179, 168, 0.6);
  animation: dotPulse 2.2s ease-out infinite;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(23, 179, 168, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(23, 179, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 179, 168, 0); }
}

.hero h1 {
  color: #fff;
}

.hero h1 .accent {
  background: linear-gradient(100deg, var(--teal-bright), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 600px;
  margin-top: 18px;
  color: #b9cad8;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 24px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-bright), var(--teal));
  box-shadow: 0 16px 36px rgba(14, 83, 137, 0.3);
}

.button.primary:hover,
.button.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(14, 83, 137, 0.4);
}

.button.secondary {
  border: 1px solid var(--line-on-dark);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* light variant used outside the hero */
.section .button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--blue-deep);
}

.section .button.secondary:hover {
  background: var(--paper-dim);
}

.hero-visual {
  position: relative;
  z-index: 2;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trace-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trace-grey {
  stroke: rgba(184, 199, 211, 0.85);
  stroke-width: 2.4;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: drawTrace 1.1s var(--ease) forwards;
}

.trace-blue {
  fill: var(--blue-bright);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) forwards;
  animation-delay: 0.85s;
}

.trace-node {
  fill: var(--blue-deepest);
  stroke: rgba(184, 199, 211, 0.9);
  stroke-width: 2.4;
  opacity: 0;
  animation: nodePop 0.5s var(--ease) forwards;
}

.trace-pulse {
  fill: var(--teal-bright);
  opacity: 0;
}

@keyframes drawTrace {
  to { stroke-dashoffset: 0; }
}

@keyframes nodePop {
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-visual .pulse-1 { animation: travelPulse1 4.5s var(--ease-soft) 1.4s infinite; }
.hero-visual .pulse-2 { animation: travelPulse2 4.5s var(--ease-soft) 2.1s infinite; }
.hero-visual .pulse-3 { animation: travelPulse3 4.5s var(--ease-soft) 1.8s infinite; }

@keyframes travelPulse1 {
  0% { opacity: 0; offset-distance: 0%; }
  6% { opacity: 1; }
  46% { opacity: 1; offset-distance: 100%; }
  52% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes travelPulse2 {
  0% { opacity: 0; offset-distance: 0%; }
  6% { opacity: 1; }
  46% { opacity: 1; offset-distance: 100%; }
  52% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes travelPulse3 {
  0% { opacity: 0; offset-distance: 0%; }
  6% { opacity: 1; }
  46% { opacity: 1; offset-distance: 100%; }
  52% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-stats {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 18px;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 28px;
}

.hero-stats article {
  padding: 4px 18px 4px 0;
  border-left: 1px solid var(--line-on-dark);
  padding-left: 18px;
}

.hero-stats article:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero-stats strong {
  display: block;
  color: #fff;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-stats strong .count-suffix {
  color: var(--teal-bright);
}

.hero-stats span {
  color: #93a8b9;
  font-size: 0.88rem;
}

/* ===========================================================
   Generic section rhythm
   =========================================================== */
.section {
  padding: 96px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading p.lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 620px;
}

/* ===========================================================
   Intro / About
   =========================================================== */
.intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.intro > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.intro-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-weight: 600;
}

.intro-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.split article {
  position: relative;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}

.split article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.split article::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 144, 137, 0.1), transparent 70%);
}

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(14, 83, 137, 0.12), rgba(18, 144, 137, 0.14));
  color: var(--blue);
  font-weight: 800;
}

.split p {
  color: var(--muted);
}

/* ===========================================================
   Services — Carousel
   =========================================================== */
.services-section {
  background: var(--paper);
}

.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  margin: 0 -2px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.service-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(260px, 32vw, 330px);
  min-height: 360px;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 144, 137, 0.4);
}

.service-card.accent-card {
  background: linear-gradient(160deg, var(--blue-deep), var(--blue-deepest));
  border-color: transparent;
  color: #fff;
}

.service-card.accent-card .card-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.service-card.accent-card ul {
  color: #bcd0de;
}

.service-card.accent-card h3 {
  color: #fff;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #e9f1f6;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
}

.service-card ul {
  margin: 18px 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.service-card ul li {
  padding-left: 18px;
  position: relative;
}

.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.service-card.accent-card ul li::before {
  background: var(--gold-bright);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.88rem;
  transition: gap 200ms var(--ease);
}

.card-link:hover {
  gap: 10px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 220ms var(--ease), width 220ms var(--ease);
}

.carousel-dots button.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--teal);
}

.carousel-arrows {
  display: flex;
  gap: 10px;
}

.carousel-arrows button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-deep);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}

.carousel-arrows button:hover {
  background: var(--blue-deep);
  color: #fff;
  border-color: var(--blue-deep);
  transform: translateY(-2px);
}

.carousel-arrows button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.carousel-arrows svg {
  width: 18px;
  height: 18px;
}

/* ===========================================================
   Real Estate Project Management
   =========================================================== */
.real-estate-panel {
  background: linear-gradient(180deg, #fff, var(--paper-dim));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 56px;
}

.real-estate-intro {
  max-width: 760px;
  margin-bottom: 44px;
}

.real-estate-intro .eyebrow {
  color: var(--gold);
}

.real-estate-intro .eyebrow::before {
  background: var(--gold);
}

.real-estate-intro p.lede {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 640px;
}

.real-estate-intro p:not(.lede):not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  max-width: 640px;
}

.real-estate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.real-estate-grid article {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}

.real-estate-grid article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 154, 62, 0.4);
}

.real-estate-grid h3 {
  font-size: 1.04rem;
}

.real-estate-grid p {
  color: var(--muted);
  font-size: 0.92rem;
}

.re-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(201, 154, 62, 0.14);
  color: #8a661f;
  font-size: 0.78rem;
  font-weight: 800;
}

.real-estate-why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.real-estate-why .eyebrow {
  color: var(--gold);
}

.real-estate-why .eyebrow::before {
  background: var(--gold);
}

.real-estate-why h3 {
  font-size: 1.5rem;
  max-width: 560px;
}

.real-estate-why p {
  color: var(--muted);
  max-width: 600px;
}

.real-estate-why p + p {
  margin-top: 10px;
}

/* ===========================================================
   Competition
   =========================================================== */
.competition {
  background: linear-gradient(165deg, var(--blue-deep), var(--blue-deepest));
  border-radius: 20px;
  color: #fff;
  padding: 64px;
}

.competition .eyebrow {
  color: var(--teal-bright);
}

.competition h2 {
  color: #fff;
}

.comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: center;
}

.comparison > div:first-child p {
  color: #b9cad8;
  font-size: 1.06rem;
}

.benchmarks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.benchmarks a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--line-on-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce7ee;
  font-weight: 700;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}

.benchmarks a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--teal-bright);
}

/* ===========================================================
   Industries
   =========================================================== */
.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.industry-list span {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}

.industry-list span:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  background: rgba(18, 144, 137, 0.06);
}

/* ===========================================================
   Leaders
   =========================================================== */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.leader-grid article {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}

.leader-grid article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.leader-photo {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.leader-initials {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

/* Shown only when the photo fails to load (no headshot uploaded yet) */
.leader-photo.photo-missing img {
  display: none;
}

.leader-photo.photo-missing .leader-initials {
  display: flex;
}

.role {
  color: var(--blue) !important;
  font-weight: 700;
  font-size: 0.92rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.badge-list span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper-dim);
  color: var(--blue-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.leader-grid p:not(.role) {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ===========================================================
   Insights
   =========================================================== */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.insight-grid article {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}

.insight-grid article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 83, 137, 0.3);
}

.insight-grid > article > span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(201, 154, 62, 0.14);
  color: #8a661f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.insight-grid p {
  color: var(--muted);
}

.insight-grid a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.92rem;
  transition: gap 200ms var(--ease);
}

.insight-grid a:hover {
  gap: 10px;
}

/* ===========================================================
   Contact
   =========================================================== */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-copy {
  padding: 50px 44px;
}

.contact-copy p {
  color: var(--muted);
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-cards a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}

.contact-cards a:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.contact-cards strong {
  display: block;
  color: var(--blue-deep);
  font-weight: 800;
}

.contact-cards span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.map-wrap {
  min-height: 440px;
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===========================================================
   Join / Application form
   =========================================================== */
.join {
  background: linear-gradient(165deg, #0e2942, var(--blue-deepest));
  border-radius: 20px;
  color: #fff;
  padding: 64px;
}

.join .eyebrow {
  color: var(--teal-bright);
}

.join h2 {
  color: #fff;
}

.join .section-heading p.lede {
  color: #aebfcd;
}

.application-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-on-dark);
  border-radius: 14px;
  padding: 32px;
}

label {
  display: grid;
  gap: 8px;
  color: #dce7ee;
  font-weight: 700;
  font-size: 0.92rem;
}

.wide {
  grid-column: 1 / -1;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-on-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  padding: 13px 14px;
  outline: none;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}

input::placeholder, textarea::placeholder {
  color: #7e93a4;
}

select option {
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--teal-bright);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(23, 179, 168, 0.16);
}

.join .button.primary {
  width: fit-content;
}

.form-status {
  align-self: center;
  margin: 0;
  color: #9fb6c5;
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 1.4em;
}

.form-status.is-success {
  color: var(--teal-bright);
}

/* ===========================================================
   Footer
   =========================================================== */
.footer {
  width: 100%;
  margin-top: 40px;
  padding: 56px max(20px, calc((100% - var(--container)) / 2)) 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  color: #9fb2c2;
  background: var(--blue-deepest);
}

.footer-bottom {
  width: 100%;
  padding: 20px max(20px, calc((100% - var(--container)) / 2));
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #75899a;
  background: var(--blue-deepest);
  font-size: 0.85rem;
}

.footer p {
  margin: 0;
}

.footer .brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 76px;
  height: 76px;
  border-radius: 12px;
}

.footer-brand span {
  font-size: 1.32rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: 0;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  background: rgba(255, 255, 255, 0.05);
  color: #cfe0ea;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}

.social-links svg {
  width: 17px;
  height: 17px;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--blue-bright), var(--teal));
  color: #fff;
  border-color: transparent;
}

.footer-col strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.footer-col a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--teal-bright);
  font-weight: 700;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

/* ===========================================================
   Scroll reveal system
   =========================================================== */
.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-visual {
    order: -1;
    max-width: 300px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }

  .hero-stats article:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .intro, .comparison, .contact-panel {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    min-height: 320px;
  }

  .competition, .join {
    padding: 48px;
  }

  .real-estate-panel {
    padding: 40px;
  }

  .real-estate-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .real-estate-why {
    grid-template-columns: 1fr;
  }

  .real-estate-why .button.primary {
    width: fit-content;
  }
}

@media (max-width: 900px) {
  .leader-grid, .insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 88px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-lg);
  }

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

  .nav-links a {
    padding: 13px 14px;
  }

  .nav-join {
    margin-left: 0;
    margin-top: 4px;
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }

  .split, .leader-grid, .insight-grid, .application-form, .benchmarks, .footer, .real-estate-grid {
    grid-template-columns: 1fr;
  }

  .competition, .join {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .real-estate-panel {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .contact-copy {
    padding: 32px 24px;
  }

  h1 {
    letter-spacing: -0.01em;
  }
}

@media (max-width: 560px) {
  .nav {
    min-height: 72px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .nav-links {
    top: 72px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    flex-basis: 78vw;
  }
}

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

  .trace-grey { stroke-dashoffset: 0; }
  .trace-blue, .trace-node { opacity: 1; }
}
