/* ===========================================================================
   Infinite Fusion — Microsoft / Fluent corporate template
   Same HTML class names as the Apple template; swap this file to switch themes.
   =========================================================================== */
:root {
  --ink: #242424;
  --ink-deep: #201f1e;
  --muted: #616161;
  --muted-soft: #797775;
  --line: #e1dfdd;
  --line-strong: #8a8886;
  --line-dark: rgba(255, 255, 255, 0.14);
  --paper: #f3f2f1;
  --paper-2: #faf9f8;
  --white: #ffffff;
  --blue: #0078d4;
  --blue-hover: #106ebe;
  --blue-pressed: #005a9e;
  --blue-tint: #eff6fc;
  --blue-tint-2: #deecf9;
  --blue-mid: #6cb8f0;
  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 8px;
  --shadow-4: 0 1.6px 3.6px rgba(0, 0, 0, 0.13), 0 0.3px 0.9px rgba(0, 0, 0, 0.11);
  --shadow-8: 0 3.2px 7.2px rgba(0, 0, 0, 0.13), 0 0.6px 1.8px rgba(0, 0, 0, 0.11);
  --shadow-16: 0 6.4px 14.4px rgba(0, 0, 0, 0.13), 0 1.2px 3.6px rgba(0, 0, 0, 0.11);
  --shadow-media: 0 6.4px 14.4px rgba(0, 0, 0, 0.13), 0 1.2px 3.6px rgba(0, 0, 0, 0.11);
  --ease: cubic-bezier(0.1, 0.9, 0.2, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1 {
  max-width: 18ch;
  margin-bottom: 24px;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  margin-bottom: 18px;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.005em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Top navigation ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.brand,
.nav,
.hero-actions,
.status-strip,
.metrics,
.mini-list {
  display: flex;
  align-items: center;
}

.brand img {
  width: min(200px, 48vw);
  height: auto;
}

.nav {
  gap: 28px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease);
}

.nav a:hover {
  color: var(--blue);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-cta,
.primary-button {
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
}

.nav-cta:hover,
.primary-button:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.nav-cta:active,
.primary-button:active {
  background: var(--blue-pressed);
}

.nav-cta {
  min-height: 36px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.primary-button,
.secondary-button {
  padding: 0 24px;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
}

.secondary-button:hover {
  background: var(--paper);
  border-color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1.04fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 69px);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px);
  background: var(--paper-2);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-text,
.section-heading p,
.agent-card p,
.product-card p,
.property-actions span,
.media-copy p,
.mythos-band p,
.footer p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 32px;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--ink);
}

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

.hero-media,
.wide-image,
.feature-image,
.media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-media);
}

.hero-media {
  position: relative;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(32, 31, 30, 0) 62%, rgba(32, 31, 30, 0.5));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
}

.status-strip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  flex-wrap: wrap;
  gap: 8px;
}

.status-strip span,
.pill,
.mini-list span {
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-strip span {
  padding: 7px 12px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.55);
}

/* ---------- Metrics ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 64px);
}

.metrics div {
  text-align: center;
  padding: 8px;
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ---------- Generic section ---------- */
.section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 64px);
}

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

.section-heading.compact {
  margin-bottom: 0;
}

.wide-image {
  margin-bottom: 24px;
}

.wide-image img {
  width: 100%;
  height: clamp(300px, 44vw, 540px);
  object-fit: cover;
}

.service-grid,
.product-grid,
.company-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.agent-card,
.product-card {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-4);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.agent-card:hover,
.product-card:hover {
  box-shadow: var(--shadow-8);
  border-color: var(--blue);
}

.agent-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--blue-tint);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Dark feature sections ---------- */
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  background: var(--ink-deep);
}

.split-section h2,
.properties-section h2,
.mythos-band h2,
.footer {
  color: var(--white);
}

.split-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.readiness-list {
  display: grid;
  gap: 12px;
}

.readiness-list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.readiness-list div:hover {
  background: rgba(255, 255, 255, 0.09);
}

.readiness-list span {
  color: var(--blue-mid);
  font-weight: 600;
}

.readiness-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

/* ---------- Shop ---------- */
.shop-section {
  background: var(--paper);
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.product-card .primary-button {
  align-self: flex-start;
}

.pill {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 12px;
  color: var(--blue);
  background: var(--blue-tint);
}

/* ---------- Services / properties / agents / mythos shared layout ---------- */
.services-section,
.properties-section,
.mythos-band,
.media-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.services-section {
  background: var(--paper);
}

.services-section > div:first-child {
  max-width: 680px;
}

.services-section p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.delivery-grid article {
  min-height: 172px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-4);
}

.delivery-grid strong,
.delivery-grid span {
  display: block;
}

.delivery-grid strong {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.delivery-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.assets-intro {
  padding-bottom: clamp(36px, 5vw, 60px);
  background: var(--white);
}

.properties-section {
  background: var(--ink-deep);
}

.properties-section .eyebrow,
.mythos-band .eyebrow {
  color: var(--blue-mid);
}

.feature-image {
  margin-bottom: 18px;
}

.feature-image img,
.media-frame img {
  width: 100%;
  height: clamp(260px, 34vw, 440px);
  object-fit: cover;
}

.property-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.property-actions a {
  min-height: 192px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.property-actions a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--blue-mid);
}

.property-actions strong,
.property-actions span {
  display: block;
}

.property-actions strong {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: var(--white);
}

.property-actions span {
  color: rgba(255, 255, 255, 0.78);
}

.media-section {
  background: var(--paper);
}

.media-copy {
  max-width: 680px;
}

.mini-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.mini-list span {
  border: 1px solid var(--line);
  padding: 9px 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}

.mythos-band {
  background: var(--blue);
}

.mythos-band p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.08rem;
}

.mythos-band .mini-list span {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

/* ---------- Companies ---------- */
.company-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-grid span {
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.company-grid span:hover {
  box-shadow: var(--shadow-4);
  border-color: var(--blue);
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 64px);
  background: var(--ink-deep);
}

.footer p {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer-brand img {
  filter: brightness(0) invert(1);
}

/* ---------- Centered headings & shared helpers ---------- */
.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mini-list.center {
  justify-content: center;
}

.cta-row {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-row.center {
  justify-content: center;
}

.about-section {
  background: var(--paper);
}

/* ---------- Group in numbers ---------- */
.numbers-section .metrics {
  padding-top: 8px;
  padding-bottom: 0;
}

/* ---------- Companies (division cards) ---------- */
.companies-section {
  background: var(--paper);
}

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

.company-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-4);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.company-card:hover {
  box-shadow: var(--shadow-8);
  border-color: var(--blue);
}

.company-media {
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.company-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.company-card:hover .company-media img {
  transform: scale(1.03);
}

.company-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px;
}

.company-body .eyebrow {
  margin-bottom: 10px;
}

.company-body h3 {
  margin-bottom: 14px;
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.company-body > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.tag-list {
  list-style: none;
  margin: 22px 0 30px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 7px 13px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tag-list li:hover {
  color: var(--blue);
  background: var(--blue-tint);
  border-color: var(--blue);
}

.company-body .primary-button {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Vision ---------- */
.vision-section {
  background: var(--ink-deep);
}

.vision-section h2 {
  color: var(--white);
}

.vision-section .eyebrow {
  color: var(--blue-mid);
}

.vision-section .section-heading p {
  color: rgba(255, 255, 255, 0.74);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.vision-grid div {
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.vision-grid div:hover {
  background: rgba(255, 255, 255, 0.09);
}

.vision-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 600;
}

.vision-grid span {
  color: var(--blue-mid);
}

/* ---------- Why ---------- */
.why-section {
  background: var(--paper);
}

/* ---------- Careers ---------- */
.careers-section {
  background: var(--white);
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--blue);
  text-align: center;
}

.contact-section h2 {
  color: var(--white);
}

.contact-section .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.contact-section .section-heading p {
  color: rgba(255, 255, 255, 0.94);
}

.footer-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

/* ---------- Subpages ---------- */
.subpage-hero {
  min-height: auto;
  padding-top: clamp(44px, 6vw, 80px);
}

.crumb {
  margin: 0 0 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.crumb a {
  color: var(--blue);
}

.crumb a:hover {
  text-decoration: underline;
}

.cap-card h3 {
  margin-bottom: 12px;
}

.cap-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ===========================================================================
   Microsoft layout — full-bleed banner, stats band, alternating feature rows
   =========================================================================== */
.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(500px, 78vh, 760px);
  overflow: hidden;
  color: var(--white);
}

.hero-banner .banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(14, 14, 18, 0.88) 0%, rgba(14, 14, 18, 0.58) 46%, rgba(14, 14, 18, 0.12) 100%);
}

.banner-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
}

.banner-inner .eyebrow {
  color: #7fc4ff;
}

.banner-inner h1 {
  color: var(--white);
  max-width: 20ch;
}

.banner-inner .hero-text {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
}

/* Stats band (full-bleed colour) */
.stats-band {
  background: var(--blue);
  color: var(--white);
}

.stats-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
}

.stats-inner strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1;
}

.stats-inner span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
  line-height: 1.45;
}

/* Alternating full-bleed feature rows */
.divisions-head {
  padding-bottom: clamp(20px, 3vw, 36px);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--white);
}

.feature-row.alt {
  background: var(--paper);
}

.feature-media {
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  display: block;
}

.feature-row.alt .feature-media {
  order: 2;
}

.feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 5vw, 88px);
}

.feature-content h2 {
  max-width: 20ch;
}

.feature-content > p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 52ch;
}

.feature-content .tag-list {
  margin: 22px 0 28px;
}

.feature-content .eyebrow {
  color: var(--blue);
}

/* Careers as a feature row (content left, media right) */
.careers-row {
  background: var(--white);
}

/* ---------- Scroll reveal ---------- */
.reveal-on .section,
.reveal-on .metrics {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-on .section.in-view,
.reveal-on .metrics.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on .section,
  .reveal-on .metrics {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero,
  .services-section,
  .split-section,
  .properties-section,
  .media-section,
  .mythos-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .product-grid,
  .delivery-grid,
  .property-actions,
  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading.compact {
    margin-bottom: 30px;
  }

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

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

  .feature-row,
  .careers-row {
    grid-template-columns: 1fr;
  }

  .feature-row.alt .feature-media {
    order: 0;
  }

  .feature-media img {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .nav,
  .nav-cta {
    display: none;
  }

  h1 {
    font-size: clamp(2.3rem, 10vw, 3.4rem);
  }

  .hero {
    padding-top: 44px;
  }

  .hero-media img {
    min-height: 320px;
  }

  .metrics,
  .service-grid,
  .product-grid,
  .delivery-grid,
  .property-actions,
  .company-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    gap: 34px;
  }

  .stats-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .readiness-list div,
  .vision-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
