/* index.css — Nimbus website (UI kit) */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");

:root {
  --nimbus-blue:#0292FC; --nimbus-blue-600:#0079D6; --nimbus-blue-700:#0061AF;
  --nimbus-blue-100:#D5ECFE; --nimbus-blue-050:#EDF6FF;
  --architect-black:#0A0A0A; --paper-white:#FFFFFF;
  --ink-900:#0E1116; --ink-800:#1A1F26; --ink-700:#2B333D; --ink-600:#475160;
  --ink-500:#6B7787; --ink-400:#95A0AE; --ink-300:#C2C9D3; --ink-200:#DEE3EA;
  --ink-100:#EEF1F5; --ink-050:#F6F8FB;
  --max-w: 1280px;
  --nav-h: 72px;
}

*,*::before,*::after { box-sizing: border-box; }
html,body { margin:0; padding:0; }
body {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: var(--architect-black);
  background: var(--paper-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 900px) {
  .container { padding: 0 48px; }
}

.eyebrow {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nimbus-blue);
}
.eyebrow.muted { color: var(--ink-500); }
.eyebrow.on-dark { color: var(--nimbus-blue); }

.display {
  font-weight: 800;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
}
.display .accent { color: var(--nimbus-blue); }

h1, h2, h3, h4 { font-family: "Montserrat", sans-serif; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 56px; font-weight: 800; line-height: 1; }
h2 { font-size: 40px; font-weight: 700; line-height: 1.05; }
h3 { font-size: 24px; font-weight: 700; line-height: 1.2; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.3; }

p { margin: 0 0 16px; color: var(--ink-700); }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-700); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 24px;
  border: 0;
  background: var(--nimbus-blue);
  color: #fff;
  transition: background 150ms cubic-bezier(0.2,0.7,0.2,1);
}
.btn:hover { background: var(--nimbus-blue-600); }
.btn:active { background: var(--nimbus-blue-700); }
.btn.dark { background: var(--architect-black); }
.btn.dark:hover { background: var(--ink-800); }
.btn.ghost {
  background: transparent;
  color: var(--architect-black);
  border: 1.5px solid var(--architect-black);
  padding: 14.5px 22px;
}
.btn.ghost:hover { background: var(--architect-black); color: #fff; }
.btn.ghost.on-dark {
  color: #fff;
  border-color: #fff;
}
.btn.ghost.on-dark:hover { background: #fff; color: var(--architect-black); }
.btn.text {
  background: transparent;
  color: var(--nimbus-blue);
  padding: 8px 0;
  border-bottom: 1.5px solid currentColor;
  letter-spacing: 0.08em;
}
.btn.text:hover { color: var(--nimbus-blue-600); }

/* Pill chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink-100);
  color: var(--architect-black);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.chip.active { background: var(--architect-black); color: #fff; }
.chip.brand { background: var(--nimbus-blue-050); color: var(--nimbus-blue-700); }

/* Status badge — sharp rectangle, brand signature */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nimbus-blue);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.status-badge::before {
  content: "";
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 999px;
}
.status-badge.planning { background: var(--ink-700); }
.status-badge.delivered { background: var(--ink-300); color: var(--ink-700); }

/* Brand baseline rule — 1.5px black under section headers */
.section-rule {
  height: 1.5px;
  background: var(--architect-black);
  width: 64px;
  margin: 0 0 24px;
}

/* Sections */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
@media (max-width: 768px) {
  section { padding: 64px 0; }
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-header h2 { max-width: 720px; }

/* Cards (project / fact) */
.card {
  background: #fff;
  border: 1px solid var(--ink-200);
  transition: box-shadow 240ms cubic-bezier(0.2,0.7,0.2,1);
}
.card:hover { box-shadow: 0 4px 16px rgba(10,10,10,0.08); }

/* Image placeholder — architectural dusk gradient */
.img-placeholder {
  background:
    linear-gradient(180deg, rgba(2,146,252,0) 0%, rgba(2,146,252,0.10) 60%, rgba(10,10,10,0.55) 100%),
    linear-gradient(180deg, #1A2433 0%, #0E1116 100%);
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 12px; left: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}
.img-placeholder.day {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.0) 0%, rgba(10,10,10,0.18) 100%),
    linear-gradient(160deg, #D5ECFE 0%, #95A0AE 70%, #475160 100%);
}
.img-placeholder.day::after { color: rgba(255,255,255,0.85); }
.img-placeholder.brand {
  background: var(--nimbus-blue);
}
.img-placeholder.brand::after { color: rgba(255,255,255,0.7); }

/* Architectural cross-hair lines for the rendering panel */
.architecture-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
}
.architecture-overlay::before,
.architecture-overlay::after {
  content: ""; position: absolute;
  background: rgba(255,255,255,0.08);
}
.architecture-overlay::before { left: 12%; top: 0; bottom: 0; width: 1px; }
.architecture-overlay::after { left: 0; right: 0; top: 70%; height: 1px; }

/* Stat */
.stat .num {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.025em;
}
.stat .num .unit { font-size: 24px; font-weight: 600; color: var(--ink-500); margin-left: 4px; }
.stat .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-500);
  margin-top: 10px;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 480ms cubic-bezier(0.16,1,0.3,1) both; }


/* ============================================================
   MOBILE RESPONSIVE RULES
   ============================================================ */

/* Smaller type on mobile */
@media (max-width: 768px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  h3 { font-size: 20px; }
  .lead { font-size: 17px; }
  body { font-size: 15px; }

  section { padding: 56px 0; }

  .section-header { margin-bottom: 32px; }

  /* Force all inline-styled multi-column grids to single column */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Tighten the big inline gaps used between major columns */
  [style*="gap: 96"], [style*="gap:96"],
  [style*="gap: 80"], [style*="gap:80"],
  [style*="gap: 64"], [style*="gap:64"],
  [style*="gap: 56"], [style*="gap:56"] {
    gap: 32px !important;
  }
  [style*="gap: 48"], [style*="gap:48"],
  [style*="gap: 40"], [style*="gap:40"] {
    gap: 24px !important;
  }

  /* Drop sticky positioning so left columns don't lock weirdly */
  [style*="position: sticky"], [style*="position:sticky"] {
    position: static !important;
  }

  /* Cap oversized inline display type */
  [style*="font-size: 56px"] { font-size: 36px !important; line-height: 1.05 !important; }
  [style*="font-size: 48px"] { font-size: 32px !important; }
  [style*="font-size: 40px"] { font-size: 28px !important; }

  /* Hide the in-page nav links on small screens; keep logo + CTA */
  header nav a { display: none !important; }
  header nav { gap: 0 !important; }

  /* The pedigree row (Leadership) — single-col fallback needs tighter padding */
  .pedigree-row { padding: 20px 0 !important; }

  /* Card paddings — most use 36/32; reduce */
  [style*="padding: 36px 32px"],
  [style*="padding: 40px 36px"] {
    padding: 24px 20px !important;
  }
}

/* Two columns on tablet for the team grid (16 cards) so it doesn't
   end up as one long single-column list. */
@media (min-width: 481px) and (max-width: 900px) {
  /* The project team uses 4-col grid; keep 2-col on tablet */
  section .container > div[style*="repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
