@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #262262;
  --orange: #FCAE38;
  --white: #ffffff;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html, body.landing-body {
  height: 100%;
  background: #fff;
  color: var(--navy);
  font-family: "Jost", "Futura", "Trebuchet MS", sans-serif;
  overflow: hidden;
}

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

/* ---------- Header rules retained but unused: landing has no logo and no menu (Aanshul, 5:07 PM). Tiles stay full-bleed. ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px 18px;
  pointer-events: none;
}
.site-header a { pointer-events: auto; }

/* Official V5C logo, no frosted plate. Size matches Lovable header mark (55×72). */
.logo {
  display: flex;
  align-items: center;
  padding: 0;
  background: none;
}
.logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 36px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.site-nav a:hover { color: #0095DA; }

/* ---------- Stage + diagonal tiles ---------- */
/* Rest geometry matches the boss visual: one continuous / slash
   from ~73% at the top to ~47% at the bottom, mid split at 50.6%. */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #fff;
  overflow: hidden;
  cursor: none;
}

.tile {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  transition: clip-path 0.75s var(--ease);
}
.tile:hover,
.stage.is-build .tile-build,
.stage.is-tech .tile-tech,
.stage.is-invest .tile-invest,
.stage.is-home .tile-home { z-index: 2; }

.tile img {
  position: absolute;
  inset: auto;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: left 0.75s var(--ease), top 0.75s var(--ease),
              width 0.75s var(--ease), height 0.75s var(--ease),
              transform 0.9s var(--ease);
  pointer-events: none;
}
/* Size each photo to the tile's visible box, not the full viewport */
.tile-build img  { left: 0;    top: 0;    width: 73%;  height: 51.2%; object-position: 48% 22%; }
.tile-tech img   { left: 60%;  top: 0;    width: 40%;  height: 51.2%; object-position: 50% 55%; }
.tile-invest img { left: 0;    top: 50%;  width: 62%;  height: 50%;   object-position: 45% 60%; }
.tile-home img   { left: 47%;  top: 50%;  width: 53%;  height: 50%;   object-position: 50% 50%; }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.38) 100%);
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* Default polygons (4 points each — required for a smooth clip-path tween) */
.tile-build { clip-path: polygon(0% 0%, 72.5% 0%, 60.3% 50.2%, 0% 50.2%); }
.tile-tech  { clip-path: polygon(73.3% 0%, 100% 0%, 100% 50.2%, 61.1% 50.2%); }
.tile-invest{ clip-path: polygon(0% 51.2%, 60.3% 51.2%, 46.9% 100%, 0% 100%); }
.tile-home  { clip-path: polygon(61.1% 51.2%, 100% 51.2%, 100% 100%, 47.7% 100%); }

/* Hover / forced expand: hovered tile grows, the other three shrink */
.stage:has(.tile-build:hover) .tile-build,
.stage.is-build .tile-build { clip-path: polygon(0% 0%, 84.5% 0%, 78.5% 71%, 0% 71%); }
.stage:has(.tile-build:hover) .tile-tech,
.stage.is-build .tile-tech  { clip-path: polygon(85.3% 0%, 100% 0%, 100% 71%, 79.3% 71%); }
.stage:has(.tile-build:hover) .tile-invest,
.stage.is-build .tile-invest{ clip-path: polygon(0% 72%, 78.5% 72%, 68% 100%, 0% 100%); }
.stage:has(.tile-build:hover) .tile-home,
.stage.is-build .tile-home  { clip-path: polygon(79.3% 72%, 100% 72%, 100% 100%, 68.8% 100%); }

.stage:has(.tile-tech:hover) .tile-build,
.stage.is-tech .tile-build { clip-path: polygon(0% 0%, 38% 0%, 34% 71%, 0% 71%); }
.stage:has(.tile-tech:hover) .tile-tech,
.stage.is-tech .tile-tech  { clip-path: polygon(38.8% 0%, 100% 0%, 100% 71%, 34.8% 71%); }
.stage:has(.tile-tech:hover) .tile-invest,
.stage.is-tech .tile-invest{ clip-path: polygon(0% 72%, 34% 72%, 30% 100%, 0% 100%); }
.stage:has(.tile-tech:hover) .tile-home,
.stage.is-tech .tile-home  { clip-path: polygon(34.8% 72%, 100% 72%, 100% 100%, 30.8% 100%); }

.stage:has(.tile-invest:hover) .tile-build,
.stage.is-invest .tile-build { clip-path: polygon(0% 0%, 82% 0%, 78% 29%, 0% 29%); }
.stage:has(.tile-invest:hover) .tile-tech,
.stage.is-invest .tile-tech  { clip-path: polygon(82.8% 0%, 100% 0%, 100% 29%, 78.8% 29%); }
.stage:has(.tile-invest:hover) .tile-invest,
.stage.is-invest .tile-invest{ clip-path: polygon(0% 30%, 78% 30%, 70% 100%, 0% 100%); }
.stage:has(.tile-invest:hover) .tile-home,
.stage.is-invest .tile-home  { clip-path: polygon(78.8% 30%, 100% 30%, 100% 100%, 70.8% 100%); }

.stage:has(.tile-home:hover) .tile-build,
.stage.is-home .tile-build { clip-path: polygon(0% 0%, 36% 0%, 32% 29%, 0% 29%); }
.stage:has(.tile-home:hover) .tile-tech,
.stage.is-home .tile-tech  { clip-path: polygon(36.8% 0%, 100% 0%, 100% 29%, 32.8% 29%); }
.stage:has(.tile-home:hover) .tile-invest,
.stage.is-home .tile-invest{ clip-path: polygon(0% 30%, 32% 30%, 28% 100%, 0% 100%); }

.stage:has(.tile-home:hover) .tile-home,
.stage.is-home .tile-home  { clip-path: polygon(32.8% 30%, 100% 30%, 100% 100%, 28.8% 100%); }

/* Keep photos filling the expanded / shrunk polygons */
.stage:has(.tile-build:hover) .tile-build img,
.stage.is-build .tile-build img { left: 0; top: 0; width: 86%; height: 72%; }
.stage:has(.tile-build:hover) .tile-tech img,
.stage.is-build .tile-tech img  { left: 78%; top: 0; width: 22%; height: 72%; }
.stage:has(.tile-build:hover) .tile-invest img,
.stage.is-build .tile-invest img{ left: 0; top: 71%; width: 80%; height: 29%; }
.stage:has(.tile-build:hover) .tile-home img,
.stage.is-build .tile-home img  { left: 68%; top: 71%; width: 32%; height: 29%; }

.stage:has(.tile-tech:hover) .tile-build img,
.stage.is-tech .tile-build img { left: 0; top: 0; width: 39%; height: 72%; }
.stage:has(.tile-tech:hover) .tile-tech img,
.stage.is-tech .tile-tech img  { left: 34%; top: 0; width: 66%; height: 72%; }
.stage:has(.tile-tech:hover) .tile-invest img,
.stage.is-tech .tile-invest img{ left: 0; top: 71%; width: 35%; height: 29%; }
.stage:has(.tile-tech:hover) .tile-home img,
.stage.is-tech .tile-home img  { left: 30%; top: 71%; width: 70%; height: 29%; }

.stage:has(.tile-invest:hover) .tile-build img,
.stage.is-invest .tile-build img { left: 0; top: 0; width: 83%; height: 31%; }
.stage:has(.tile-invest:hover) .tile-tech img,
.stage.is-invest .tile-tech img  { left: 78%; top: 0; width: 22%; height: 31%; }
.stage:has(.tile-invest:hover) .tile-invest img,
.stage.is-invest .tile-invest img{ left: 0; top: 29%; width: 79%; height: 71%; }
.stage:has(.tile-invest:hover) .tile-home img,
.stage.is-invest .tile-home img  { left: 70%; top: 29%; width: 30%; height: 71%; }

.stage:has(.tile-home:hover) .tile-build img,
.stage.is-home .tile-build img { left: 0; top: 0; width: 37%; height: 31%; }
.stage:has(.tile-home:hover) .tile-tech img,
.stage.is-home .tile-tech img  { left: 32%; top: 0; width: 68%; height: 31%; }
.stage:has(.tile-home:hover) .tile-invest img,
.stage.is-home .tile-invest img{ left: 0; top: 29%; width: 33%; height: 71%; }
.stage:has(.tile-home:hover) .tile-home img,
.stage.is-home .tile-home img  { left: 28%; top: 29%; width: 72%; height: 71%; }

.tile:hover img,
.stage.is-build .tile-build img,
.stage.is-tech .tile-tech img,
.stage.is-invest .tile-invest img,
.stage.is-home .tile-home img {
  transform: scale(1.07);
}

/* ---------- Tile typography ---------- */
.tile-copy {
  position: absolute;
  z-index: 2;
  color: #fff;
  max-width: 520px;
  transition: left 0.75s var(--ease), bottom 0.75s var(--ease), right 0.75s var(--ease), opacity 0.35s ease;
}
.tile-copy h2 {
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.28);
}
.tile-copy .bar {
  display: block;
  width: 72px;
  height: 5px;
  margin: 14px 0 12px;
  background: var(--orange);
}
.tile-copy p {
  font-weight: 300;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.45;
  max-width: 420px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}

/* Hide copy on tiles that have been shrunk, so titles are not clipped */
.stage:has(.tile:hover) .tile:not(:hover) .tile-copy,
.stage.is-build .tile:not(.tile-build) .tile-copy,
.stage.is-tech .tile:not(.tile-tech) .tile-copy,
.stage.is-invest .tile:not(.tile-invest) .tile-copy,
.stage.is-home .tile:not(.tile-home) .tile-copy {
  opacity: 0;
}
.tile-copy { transition: left 0.75s var(--ease), bottom 0.75s var(--ease), right 0.75s var(--ease), opacity 0.35s ease; }

.tile-copy .explore {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tile:hover .explore,
.stage.is-build .tile-build .explore,
.stage.is-tech .tile-tech .explore,
.stage.is-invest .tile-invest .explore,
.stage.is-home .tile-home .explore {
  opacity: 1;
  transform: translateY(0);
}

/* Rest text placement — lower-left of each visible polygon */
.tile-build .tile-copy  { left: 5.5%; bottom: 52.5%; }
.tile-tech .tile-copy   { left: 75.5%; bottom: 52.5%; }
.tile-invest .tile-copy { left: 5.5%; bottom: 8%; }
.tile-home .tile-copy   { left: 64%; bottom: 8%; }

/* Reposition copy so it stays inside the expanded polygon */
.stage:has(.tile-build:hover) .tile-build .tile-copy,
.stage.is-build .tile-build .tile-copy { left: 5.5%; bottom: 32%; }
.stage:has(.tile-tech:hover) .tile-tech .tile-copy,
.stage.is-tech .tile-tech .tile-copy { left: 42%; bottom: 32%; }
.stage:has(.tile-invest:hover) .tile-invest .tile-copy,
.stage.is-invest .tile-invest .tile-copy { left: 5.5%; bottom: 8%; }
.stage:has(.tile-home:hover) .tile-home .tile-copy,
.stage.is-home .tile-home .tile-copy { left: 37%; bottom: 8%; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 1px rgba(38,34,98,0.15);
  transform: translate(-100px, -100px);
  transition: width 0.28s var(--ease), height 0.28s var(--ease),
              margin 0.28s var(--ease), background 0.28s ease, border-color 0.28s ease;
  mix-blend-mode: difference;
}
.cursor span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cursor.is-explore {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  background: rgba(38,34,98,0.28);
  border-color: #fff;
  mix-blend-mode: normal;
  backdrop-filter: blur(4px);
}
.cursor.is-explore span { opacity: 1; }
.cursor.is-demo { transition: none; } /* position is set in JS; size still eases via classes */

/* ---------- Quick Enquiry ---------- */
.qe-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.qe-btn:hover { background: #1b1748; }

.qe-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20,18,50,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: auto;
}
.qe-modal[hidden] { display: none; }
.qe-panel {
  background: #fff;
  color: #111;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 36px 36px 32px;
  position: relative;
}
.qe-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
}
.qe-panel h2 {
  font-weight: 600;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 6px;
}
.qe-lead { font-weight: 300; font-size: 14px; margin-bottom: 22px; color: #333; }
.qe-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qe-panel label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  color: var(--navy);
}
.qe-panel input,
.qe-panel select,
.qe-panel textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-bottom: 1px solid #cfcfcf;
  padding: 8px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  background: transparent;
  color: #111;
}
.qe-panel textarea { resize: vertical; }
.hint { font-weight: 300; color: #666; letter-spacing: 0; text-transform: none; }
.word-count { font-size: 12px; font-weight: 300; color: #666; margin: -8px 0 16px; }
.qe-submit {
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.qe-note { margin-top: 14px; font-size: 13px; font-weight: 300; color: #333; }

/* ---------- Tablet: 2×2 rectangles, still expand on hover ---------- */
@media (max-width: 1024px) and (min-width: 721px) {
  .stage { cursor: auto; }
  .cursor { display: none !important; }
  .logo img { height: 62px; }
  .site-header { padding: 16px 24px; }
  .site-nav { gap: 20px; }
  .tile-build { clip-path: polygon(0% 0%, 49.6% 0%, 49.6% 49.6%, 0% 49.6%); }
  .tile-tech  { clip-path: polygon(50.4% 0%, 100% 0%, 100% 49.6%, 50.4% 49.6%); }
  .tile-invest{ clip-path: polygon(0% 50.4%, 49.6% 50.4%, 49.6% 100%, 0% 100%); }
  .tile-home  { clip-path: polygon(50.4% 50.4%, 100% 50.4%, 100% 100%, 50.4% 100%); }

  .stage:has(.tile-build:hover) .tile-build,
  .stage.is-build .tile-build { clip-path: polygon(0% 0%, 70% 0%, 70% 70%, 0% 70%); }
  .stage:has(.tile-build:hover) .tile-tech,
  .stage.is-build .tile-tech  { clip-path: polygon(70.8% 0%, 100% 0%, 100% 70%, 70.8% 70%); }
  .stage:has(.tile-build:hover) .tile-invest,
  .stage.is-build .tile-invest{ clip-path: polygon(0% 70.8%, 70% 70.8%, 70% 100%, 0% 100%); }
  .stage:has(.tile-build:hover) .tile-home,
  .stage.is-build .tile-home  { clip-path: polygon(70.8% 70.8%, 100% 70.8%, 100% 100%, 70.8% 100%); }

  .stage:has(.tile-tech:hover) .tile-build,
  .stage.is-tech .tile-build { clip-path: polygon(0% 0%, 29.2% 0%, 29.2% 70%, 0% 70%); }
  .stage:has(.tile-tech:hover) .tile-tech,
  .stage.is-tech .tile-tech  { clip-path: polygon(30% 0%, 100% 0%, 100% 70%, 30% 70%); }
  .stage:has(.tile-tech:hover) .tile-invest,
  .stage.is-tech .tile-invest{ clip-path: polygon(0% 70.8%, 29.2% 70.8%, 29.2% 100%, 0% 100%); }
  .stage:has(.tile-tech:hover) .tile-home,
  .stage.is-tech .tile-home  { clip-path: polygon(30% 70.8%, 100% 70.8%, 100% 100%, 30% 100%); }

  .stage:has(.tile-invest:hover) .tile-build,
  .stage.is-invest .tile-build { clip-path: polygon(0% 0%, 70% 0%, 70% 29.2%, 0% 29.2%); }
  .stage:has(.tile-invest:hover) .tile-tech,
  .stage.is-invest .tile-tech  { clip-path: polygon(70.8% 0%, 100% 0%, 100% 29.2%, 70.8% 29.2%); }
  .stage:has(.tile-invest:hover) .tile-invest,
  .stage.is-invest .tile-invest{ clip-path: polygon(0% 30%, 70% 30%, 70% 100%, 0% 100%); }
  .stage:has(.tile-invest:hover) .tile-home,
  .stage.is-invest .tile-home  { clip-path: polygon(70.8% 30%, 100% 30%, 100% 100%, 70.8% 100%); }

  .stage:has(.tile-home:hover) .tile-build,
  .stage.is-home .tile-build { clip-path: polygon(0% 0%, 29.2% 0%, 29.2% 29.2%, 0% 29.2%); }
  .stage:has(.tile-home:hover) .tile-tech,
  .stage.is-home .tile-tech  { clip-path: polygon(30% 0%, 100% 0%, 100% 29.2%, 30% 29.2%); }
  .stage:has(.tile-home:hover) .tile-invest,
  .stage.is-home .tile-invest{ clip-path: polygon(0% 30%, 29.2% 30%, 29.2% 100%, 0% 100%); }
  .stage:has(.tile-home:hover) .tile-home,
  .stage.is-home .tile-home  { clip-path: polygon(30% 30%, 100% 30%, 100% 100%, 30% 100%); }

  .tile-build .tile-copy, .tile-tech .tile-copy { bottom: 52.5%; }
  .tile-tech .tile-copy { left: 53.5%; }
  .tile-home .tile-copy { left: 53.5%; }
  .stage:has(.tile-tech:hover) .tile-tech .tile-copy,
  .stage.is-tech .tile-tech .tile-copy { left: 34%; bottom: 32%; }
  .stage:has(.tile-home:hover) .tile-home .tile-copy,
  .stage.is-home .tile-home .tile-copy { left: 34%; }
}

/* ---------- Mobile: stacked tiles, tap to open ---------- */
@media (max-width: 720px) {
  html, body.landing-body { overflow: auto; height: auto; }
  .stage {
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    cursor: auto;
  }
  .cursor { display: none !important; }
  .site-header {
    position: sticky;
    top: 0;
    background: transparent;
    padding: 12px 16px;
    pointer-events: auto;
  }
  .logo { background: none; padding: 0; }
  .logo img { height: 55px; }
  .site-nav { gap: 12px; padding: 0; background: none; backdrop-filter: none; }
  .site-nav a { font-size: 10px; letter-spacing: 0.1em; }

  .tile {
    position: relative;
    inset: auto;
    clip-path: none !important;
    min-height: 430px;
    height: 430px;
    flex: 0 0 auto;
  }
  .tile img { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; inset: auto; }
  .tile-copy {
    left: 7% !important;
    right: 7%;
    bottom: 10% !important;
    max-width: none;
  }
  .tile-copy h2 { font-size: 42px; }
  .tile-copy .explore { opacity: 1; transform: none; }
  .qe-btn { right: 16px; bottom: 16px; padding: 12px 16px; }
  .qe-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .tile img, .tile-copy, .tile-copy .explore { transition: none; }
}


/* Visually hidden H1 — text stays in the document for crawlers and assistive tech.
   Do not use display:none or visibility:hidden for landing tile titles. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.qe-btn { text-decoration: none; }
