/* ============================================================
   BEACON NEST TRADINGS LIMITED — DESIGN SYSTEM
   Real-estate development & investment · Kenya
   Palette:  Black · White · restrained oxblood red accent
   Type:     Newsreader (editorial serif) · Inter (body / UI)
   ============================================================ */

:root {
  /* ---- Brand: red is an ACCENT ONLY (CTAs, labels, dividers, hovers) ---- */
  --red:        #8a1f1f;   /* deep, restrained oxblood */
  --red-600:    #701818;   /* hover / pressed */
  --red-700:    #5c1414;
  --red-50:     #f5ecec;   /* faint tint for small tags */

  /* ---- Ink / neutrals ---- */
  --ink:        #14140f;   /* headings — near-black */
  --black:      #0d0d0d;   /* strong dark sections */
  --near-black: #161613;   /* nested dark surfaces */
  --charcoal:   #2b2b28;   /* secondary dark UI */
  --text:       #46464a;   /* body copy */
  --text-soft:  #6c6c72;   /* muted / meta */
  --text-faint: #97979d;

  --bg:         #ffffff;
  --bg-subtle:  #f5f4f1;   /* light neutral section */
  --bg-sunken:  #eceae5;
  --surface:    #ffffff;

  --line:       rgba(18,18,16,0.14);
  --line-soft:  rgba(18,18,16,0.08);
  --line-dark:  rgba(255,255,255,0.13);

  /* ---- Legacy aliases (keep old inline styles working) ---- */
  --white: #ffffff;
  --off-white: var(--bg-subtle);
  --red-hover: var(--red-600);
  --grey-900: var(--ink);
  --grey-700: var(--text);
  --grey-500: var(--text-soft);
  --grey-300: #d3d2cd;
  --grey-100: #eae9e4;
  --border: var(--line);
  --serif: var(--font-display);
  --sans: var(--font-body);

  /* ---- Type ---- */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* ---- Spacing scale (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;
  --space-20: 9rem;

  /* ---- Radius (architectural — minimal rounding) ---- */
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-pill: 999px;

  /* ---- Elevation (used sparingly) ---- */
  --shadow-xs: 0 1px 2px rgba(18,18,16,0.05);
  --shadow-sm: 0 1px 3px rgba(18,18,16,0.06), 0 6px 18px -10px rgba(18,18,16,0.12);
  --shadow-md: 0 10px 30px -14px rgba(18,18,16,0.16);
  --shadow-lg: 0 24px 56px -24px rgba(18,18,16,0.20);

  /* ---- Layout ---- */
  --max: 1200px;
  --max-text: 720px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 78px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@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;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

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

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.011em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.55rem, 1.4rem + 4.9vw, 4.6rem); letter-spacing: -0.018em; line-height: 1.05; }
h2 { font-size: clamp(1.95rem, 1.2rem + 2.8vw, 3.05rem); letter-spacing: -0.014em; }
h3 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.8rem); font-weight: 500; letter-spacing: -0.008em; }
h4 { font-size: 1.18rem; font-weight: 600; letter-spacing: 0; }

.lede {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 52ch;
  font-weight: 400;
}
.body-text { max-width: 64ch; color: var(--text); }
.body-text + .body-text { margin-top: 1.1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
}
.section--black .eyebrow, .cta-banner .eyebrow { color: rgba(255,255,255,0.62); }

.text-red { color: var(--red); }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(72px, 11vw, 148px) 0; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section--off { background: var(--bg-subtle); }
.section--black {
  background: var(--black);
  color: rgba(255,255,255,0.72);
}
.section--black h1, .section--black h2,
.section--black h3, .section--black h4 { color: #fff; }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--wide { max-width: 820px; }
.section-head .lede { margin-top: var(--space-4); }
.section-head h2 { margin-top: var(--space-4); }

.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.hr { border: none; border-top: 1px solid var(--line-soft); margin: 0; }
.section--black .hr { border-top-color: var(--line-dark); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.95em 1.7em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--red); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--red-600); }

.btn--dark { --btn-bg: var(--black); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: #000; }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}
.btn--outline:hover { --btn-bd: var(--ink); background: var(--ink); --btn-fg: #fff; }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,0.32);
}
.btn--outline-light:hover { --btn-bd: #fff; background: rgba(255,255,255,0.10); }

.btn--text {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0;
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  background: none;
  border-radius: 0;
}
.btn--text::after { content: "\2192"; transition: transform 0.18s var(--ease); }
.btn--text:hover { transform: none; }
.btn--text:hover::after { transform: translateX(4px); }
.section--black .btn--text { color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(18,18,16,0.04);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--red);
  flex-shrink: 0;
}
.logo-mark { width: 25px; height: 25px; flex-shrink: 0; }
.logo-word {
  font-family: var(--font-body);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--red);
}
.logo-word span { color: var(--ink); }

.main-nav { display: none; }
@media (min-width: 1000px) {
  .main-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
  .main-nav a {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-soft);
    padding: 6px 0;
    transition: color 0.16s var(--ease);
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  }
  .main-nav a:hover { color: var(--ink); }
  .main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .main-nav a[aria-current="page"]::after { opacity: 1; transform: translate(-50%, 0); }
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn {
  padding: 0.72em 1.25em;
  font-size: 0.88rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0 10px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 1000px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  overflow-y: auto;
  padding: clamp(24px, 6vw, 44px) var(--gutter) 48px;
  animation: navIn 0.3s var(--ease);
}
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a[aria-current="page"] { color: var(--red); }
.mobile-nav .btn { margin-top: 28px; width: 100%; justify-content: center; padding: 1.05em; }
@media (min-width: 1000px) { .mobile-nav { display: none !important; } }

/* ============================================================
   HERO (home) — real photograph on the right, content on the left
   ============================================================ */
.hero { padding: 0; overflow: hidden; }
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(500px, 66vh, 660px);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero-inner > * { max-width: 30rem; }
.hero-inner .eyebrow { margin-bottom: var(--space-5); }
.hero-inner h1 { margin-bottom: var(--space-5); }
.hero-inner .lede { margin-bottom: var(--space-7); }

.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
  display: block;
  pointer-events: none;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 100%);
}
@media (max-width: 1200px) and (min-width: 901px) {
  .hero-art { width: 47%; }
  .hero-inner > * { max-width: 27rem; }
}
@media (max-width: 900px) {
  .hero { overflow: visible; }
  .hero-stage { display: block; min-height: 0; }
  .hero-inner { padding-bottom: var(--space-6); }
  .hero-inner > * { max-width: none; }
  .hero-art {
    position: relative;
    width: 100%;
    margin-top: var(--space-4);
    aspect-ratio: 16 / 10;
  }
  .hero-art img {
    object-position: 58% center;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.hero-foot {
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line-soft);
}
.hero-foot .wrap {
  display: grid;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 40px;
}
@media (min-width: 760px) {
  .hero-foot .wrap { grid-template-columns: repeat(3, 1fr); gap: 44px; }
}
.hero-foot-item { font-size: 0.98rem; color: var(--text-soft); max-width: 34ch; }
.hero-foot-item strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
}
.hero-foot-item strong::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
}

/* ============================================================
   IMAGE FRAMES / PLACEHOLDERS
   ============================================================ */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-sunken);
  isolation: isolate;
}
.img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.img-frame:hover img { transform: scale(1.03); }

/* Tasteful placeholder for imagery still to be supplied (project cards etc.) */
.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-sunken);
  border: 1px solid var(--line-soft);
}
.img-placeholder::before {
  content: "";
  width: 38%;
  max-width: 96px;
  aspect-ratio: 1;
  opacity: 0.14;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M6.5 16.5c2.4 3.4 5.2 5 8.5 5s6.1-1.6 8.5-5' stroke='%238a1f1f' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M9 20.6c1.7 2.2 3.9 3.3 6 3.3s4.3-1.1 6-3.3' stroke='%238a1f1f' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M15 3.4c2.8 3.3 4.2 6 4.2 8.2a4.2 4.2 0 1 1-8.4 0c0-2.2 1.4-4.9 4.2-8.2z' fill='%238a1f1f'/%3E%3C/svg%3E");
}
.img-placeholder span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.section--black .img-placeholder {
  background: var(--near-black);
  border-color: var(--line-dark);
}
.section--black .img-placeholder::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M6.5 16.5c2.4 3.4 5.2 5 8.5 5s6.1-1.6 8.5-5' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M9 20.6c1.7 2.2 3.9 3.3 6 3.3s4.3-1.1 6-3.3' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M15 3.4c2.8 3.3 4.2 6 4.2 8.2a4.2 4.2 0 1 1-8.4 0c0-2.2 1.4-4.9 4.2-8.2z' fill='%23ffffff'/%3E%3C/svg%3E");
  opacity: 0.1;
}
.section--black .img-placeholder span { color: rgba(255,255,255,0.4); }

.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* ============================================================
   PROCESS SEQUENCE
   ============================================================ */
.sequence {
  display: grid;
  gap: clamp(8px, 1.4vw, 18px);
  background: transparent;
  border: none;
}
@media (min-width: 640px) {
  .sequence--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 780px) {
  .sequence--5 { grid-template-columns: repeat(5, 1fr); }
  .sequence--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .sequence--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Related-paths cross-link band ---- */
.related { display: grid; gap: 20px; }
@media (min-width: 760px) { .related { grid-template-columns: auto 1fr; align-items: baseline; gap: 40px; } }
.related-links { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.related-links a {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.related-links a span { color: var(--red); transition: transform 0.16s var(--ease); }
.related-links a:hover { border-bottom-color: var(--ink); }
.related-links a:hover span { transform: translateX(4px); }
.sequence-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 32px);
  transition: border-color 0.2s var(--ease);
}
.sequence-step:hover { border-color: var(--ink); }
.section--black .sequence-step { background: var(--near-black); border-color: var(--line-dark); }
.section--black .sequence-step:hover { border-color: rgba(255,255,255,0.4); }
.sequence-step .num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--red);
}
.sequence-step h4 { margin-bottom: 8px; }
.sequence-step p { font-size: 0.94rem; color: var(--text-soft); }
.section--black .sequence-step p { color: rgba(255,255,255,0.66); }

/* ============================================================
   AUDIENCE FORK (homepage)
   ============================================================ */
.audience { display: grid; gap: 0; }
@media (min-width: 820px) { .audience { grid-template-columns: repeat(3, 1fr); } }
.audience-item {
  padding: 32px 0 0;
  border-top: 2px solid var(--ink);
}
@media (min-width: 820px) {
  .audience-item { padding: 32px 36px 0 0; }
  .audience-item + .audience-item { padding-left: 36px; border-left: 1px solid var(--line-soft); }
}
.audience-item h3 { margin-bottom: 12px; }
.audience-item p { color: var(--text-soft); font-size: 0.98rem; margin-bottom: 18px; }

/* ---- Principles list (About) ---- */
.principles { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles > div { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 760px) {
  .principles > div:nth-child(odd) { padding-right: 40px; }
  .principles > div:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--line-soft); }
}
.principles dt {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.principles dd { margin: 0; color: var(--text-soft); font-size: 0.96rem; }

/* ============================================================
   CARDS
   ============================================================ */
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  transition: border-color 0.2s var(--ease);
}
.info-card:hover { border-color: var(--ink); }
.info-card h4 { margin-bottom: 12px; }
.info-card p { font-size: 0.96rem; color: var(--text-soft); }
.section--black .info-card { background: var(--near-black); border-color: var(--line-dark); }

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 16px;
  height: 2px;
  background: var(--red);
}
.section--black .check-list li { color: rgba(255,255,255,0.72); }

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.status-legend {
  display: grid;
  gap: 0;
  margin: 0 0 clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .status-legend { grid-template-columns: repeat(2, 1fr); } }
.status-legend > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 720px) {
  .status-legend > div:nth-child(odd) { padding-right: 32px; }
  .status-legend > div:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line-soft); }
}
.status-legend dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 5px;
}
.status-legend dd { margin: 0; font-size: 0.92rem; color: var(--text-soft); }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.filter-pill {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  background: transparent;
  transition: all 0.16s var(--ease);
}
.filter-pill:hover { border-color: var(--ink); color: var(--ink); }
.filter-pill.is-active { background: var(--black); color: #fff; border-color: var(--black); }

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.project-card:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.project-card .img-frame { border-radius: 0; }
.project-card-body {
  padding: clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.status-tag {
  align-self: flex-start;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  background: none;
  border: none;
  border-bottom: 1px solid var(--red);
  border-radius: 0;
  padding: 0 0 4px;
}
.section--black .status-tag { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }
.project-card-meta { font-size: 0.86rem; color: var(--text-faint); }
.project-card p.desc { font-size: 0.96rem; color: var(--text-soft); flex: 1; }
.project-card .btn--text { margin-top: 6px; }
.section--black .project-card {
  background: var(--near-black);
  border-color: var(--line-dark);
  color: rgba(255,255,255,0.7);
}
.section--black .project-card p.desc { color: rgba(255,255,255,0.62); }
.section--black .project-card-meta { color: rgba(255,255,255,0.42); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: none;
}
.timeline-stage {
  flex: 1 1 130px;
  padding: 16px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-faint);
  text-align: center;
}
.timeline-stage.is-current {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   FACTS TABLE
   ============================================================ */
.facts-table { width: 100%; border-collapse: collapse; }
.facts-table tr { border-bottom: 1px solid var(--line-soft); }
.facts-table tr:last-child { border-bottom: none; }
.facts-table td { padding: 16px 4px; font-size: 0.96rem; vertical-align: top; }
.facts-table td:first-child { color: var(--text-faint); width: 40%; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 19px; }
.facts-table td:last-child { color: var(--ink); font-weight: 500; }

/* ============================================================
   FORMS
   ============================================================ */
.form-grid { display: grid; gap: 22px; }
@media (min-width: 680px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.field .hint { font-size: 0.8rem; color: var(--text-faint); font-weight: 400; letter-spacing: 0; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(138,31,31,0.16);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-full { grid-column: 1 / -1; }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.16s var(--ease);
}
.radio-pill input { accent-color: var(--red); }

.form-note { font-size: 0.84rem; color: var(--text-faint); margin-top: 18px; line-height: 1.6; }

.form-success, .form-error {
  display: none;
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 22px;
}
.form-success { border: 1px solid var(--line); background: var(--bg-subtle); }
.form-error { border: 1px solid var(--red); background: var(--red-50); }
.form-success.is-visible, .form-error.is-visible { display: block; }
.form-error h4 { color: var(--red-700); }

/* ============================================================
   INSIGHTS
   ============================================================ */
.article-card {
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(26px, 3.4vw, 40px) 0;
}
.article-card:first-child { padding-top: 0; }
.article-card .cat {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.article-card h3 { margin: 12px 0; }
.article-card .meta { font-size: 0.85rem; color: var(--text-faint); margin-top: 12px; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stat-strip { display: grid; gap: 32px; }
@media (min-width: 680px) { .stat-strip { grid-template-columns: repeat(3, 1fr); } }
.stat-strip .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.stat-strip .stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.66); margin-top: 12px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: #fff;
  padding: clamp(64px, 10vw, 120px) 0;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 360px;
  height: 360px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M6.5 16.5c2.4 3.4 5.2 5 8.5 5s6.1-1.6 8.5-5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M9 20.6c1.7 2.2 3.9 3.3 6 3.3s4.3-1.1 6-3.3' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M15 3.4c2.8 3.3 4.2 6 4.2 8.2a4.2 4.2 0 1 1-8.4 0c0-2.2 1.4-4.9 4.2-8.2z' fill='%23ffffff'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}
.cta-banner .wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-banner h2 { color: #fff; max-width: 18ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.66);
  padding: clamp(64px, 9vw, 104px) 0 40px;
}
.footer-grid {
  display: grid;
  gap: 44px;
  margin-bottom: 56px;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand .logo-word { color: var(--red); }
.footer-brand .logo-word span { color: #fff; }
.footer-brand p { font-size: 0.94rem; color: rgba(255,255,255,0.5); max-width: 38ch; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.94rem;
  color: rgba(255,255,255,0.66);
  margin-bottom: 12px;
  transition: color 0.16s var(--ease);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: #fff; }
.footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.34);
  max-width: 940px;
  margin-top: 26px;
  line-height: 1.65;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,0.6);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 36px -10px rgba(37,211,102,0.7); }
.wa-float svg { width: 26px; height: 26px; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: clamp(64px, 10vw, 132px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: clamp(-120px, -6vw, -40px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 32vw, 460px);
  height: clamp(260px, 32vw, 460px);
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M6.5 16.5c2.4 3.4 5.2 5 8.5 5s6.1-1.6 8.5-5' stroke='%232f2f2f' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M9 20.6c1.7 2.2 3.9 3.3 6 3.3s4.3-1.1 6-3.3' stroke='%232f2f2f' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M15 3.4c2.8 3.3 4.2 6 4.2 8.2a4.2 4.2 0 1 1-8.4 0c0-2.2 1.4-4.9 4.2-8.2z' fill='%232f2f2f'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-top: 22px; }

.breadcrumb { font-size: 0.84rem; color: var(--text-faint); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--ink); }

/* ---- Project pages ---- */
.project-strap {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.callout {
  border-left: 3px solid var(--red);
  padding: 2px 0 2px 26px;
}
.callout .eyebrow { margin-bottom: 12px; }
.callout > p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.55rem);
  line-height: 1.42;
  color: var(--ink);
  max-width: 60ch;
}
.callout .callout-note {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin-top: 16px;
  max-width: 62ch;
}

/* ---- Featured project (Developments) ---- */
.featured { background: var(--bg-subtle); }
.featured .wrap {
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
@media (min-width: 900px) { .featured .wrap { grid-template-columns: 1.05fr 0.95fr; } }
.featured .img-frame { box-shadow: var(--shadow-md); }
.featured h2 { margin-top: 10px; }
.featured .featured-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 22px 0 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-soft);
}
.featured .featured-facts b { color: var(--ink); font-weight: 600; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 940px) {
  .contact-layout { grid-template-columns: 1.15fr 0.85fr; }
}
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-panel {
  background: var(--black);
  color: rgba(255,255,255,0.72);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
}
.contact-panel h3 { color: #fff; }
.contact-panel > p { margin-top: 8px; font-size: 0.94rem; color: rgba(255,255,255,0.55); }
.contact-methods { margin-top: 28px; display: flex; flex-direction: column; gap: 4px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
}
.contact-method:first-child { border-top: none; }
.contact-method-ico {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.contact-method-ico svg { width: 19px; height: 19px; }
.contact-method-ico.is-red { background: var(--red); }
.contact-method-ico.is-wa { background: #25d366; }
.contact-method .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.contact-method .val { display: block; margin-top: 2px; color: #fff; font-weight: 500; font-size: 0.98rem; }
.contact-method a.val:hover { color: var(--red); }

.contact-base {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
}
.contact-base .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact-base h4 { margin: 8px 0 6px; }
.contact-base p { font-size: 0.92rem; color: var(--text-soft); }

.contact-cats { margin-bottom: 28px; }
.contact-cat-intro {
  margin: 20px 0 4px;
  font-size: 1.02rem;
  color: var(--text);
  font-style: italic;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.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;
}
