/* ============================================================
   CORNWICK — Design Tokens & Global Styles
   Purpose-Led Property Investment
   ============================================================ */

:root {
  /* Core Palette */
  --color-charcoal:       #2C2C27;
  --color-charcoal-mid:   #3D3D36;
  --color-sage:           #6B7F6B;
  --color-sage-mid:       #7E9470;
  --color-sage-light:     #EAF0E6;
  --color-sage-dark:      #3E5040;

  /* Cream / Warm Neutrals */
  --color-cream:          #F7F3EC;
  --color-cream-mid:      #EDE7DC;
  --color-cream-dark:     #DDD5C8;
  --color-white:          #FEFEFE;

  /* Accent */
  --color-amber:          #C8862A;
  --color-amber-light:    #F5E4C3;
  --color-amber-dark:     #9E6A1E;

  /* Text */
  --color-text-primary:   #2C2C27;
  --color-text-secondary: #5A574F;
  --color-text-muted:     #8A8779;
  --color-text-inverse:   #F7F3EC;

  /* Functional */
  --color-rule:           #D8D2C8;
  --color-focus:          #6B7F6B;

  /* Typography */
  --font-sans:  'Outfit', -apple-system, system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
}

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h3 {
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage);
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-sage);
}
.eyebrow.centred { align-items: center; }
.eyebrow.on-dark { color: var(--color-amber); }
.eyebrow.on-dark::after { background: var(--color-amber); }

.serif { font-family: var(--font-serif); }
.sans  { font-family: var(--font-sans); }

/* ====== LAYOUT ====== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: 1320px; }
.container-narrow { max-width: 760px; }

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.section-cream { background: var(--color-cream); }
.section-cream-mid { background: var(--color-cream-mid); }
.section-white { background: var(--color-white); }
.section-sage-light { background: var(--color-sage-light); }
.section-charcoal { background: var(--color-charcoal); color: var(--color-text-inverse); }
.section-charcoal h1, .section-charcoal h2, .section-charcoal h3 { color: var(--color-cream); }
.section-sage-dark { background: var(--color-sage-dark); color: var(--color-cream); }
.section-sage-dark h1, .section-sage-dark h2, .section-sage-dark h3 { color: var(--color-cream); }

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease, color 150ms ease, border-color 150ms ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-amber);
  color: var(--color-charcoal);
  box-shadow: 0 2px 8px rgba(158, 106, 30, 0.12);
}
.btn-primary:hover {
  background: var(--color-amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(158, 106, 30, 0.2);
  color: var(--color-cream);
}
.btn-secondary {
  background: var(--color-sage);
  color: var(--color-white);
}
.btn-secondary:hover { background: var(--color-sage-mid); }
.btn-ghost {
  border-color: var(--color-charcoal);
  color: var(--color-charcoal);
  background: transparent;
}
.btn-ghost:hover { background: var(--color-charcoal); color: var(--color-white); }
.btn-ghost-light {
  border-color: var(--color-cream);
  color: var(--color-cream);
  background: transparent;
}
.btn-ghost-light:hover { background: var(--color-cream); color: var(--color-charcoal); }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ====== TAGS / PILLS ====== */
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--color-sage-light);
  color: var(--color-sage);
  text-transform: uppercase;
}
.pill-featured { background: var(--color-amber-light); color: var(--color-amber-dark); }
.pill-dark { background: var(--color-sage-dark); color: var(--color-cream); }
.pill-amber-fill {
  background: var(--color-amber);
  color: var(--color-charcoal);
  font-weight: 600;
  padding: 8px 14px;
}

/* ====== CARDS ====== */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-rule);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(44, 44, 39, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease, border-left-color 200ms ease;
  border-left: 3px solid transparent;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(44, 44, 39, 0.10);
  border-left-color: var(--color-sage);
}
.card-body { padding: 28px; }
.card-top-sage { border-top: 3px solid var(--color-sage); }

/* ====== IMAGE PLACEHOLDER ====== */
.image-ph {
  background: linear-gradient(135deg, var(--color-sage-dark) 0%, var(--color-charcoal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.image-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(247, 243, 236, 0.025) 18px 36px);
  pointer-events: none;
}
.image-ph span {
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 20px;
  max-width: 80%;
  position: relative;
  z-index: 1;
}
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-3-4 { aspect-ratio: 3 / 4; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-landscape { aspect-ratio: 21 / 9; }

/* Real-image figure used in the Our Model section (square, balanced with text column) */
.model-image-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(44, 44, 39, 0.08);
}
.model-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 58% 45%;
  display: block;
}

/* Team / directors landscape hero photo */
.team-photo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(44, 44, 39, 0.10);
  background: var(--color-cream-mid);
}
.team-photo-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
@media (max-width: 700px) {
  .team-photo-img { aspect-ratio: 16 / 9; object-position: center 28%; }
}

/* Values section (About page) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}
@media (max-width: 980px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-rule);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  border-top: 3px solid var(--color-sage);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(44, 44, 39, 0.10);
}
.value-card h3 {
  font-size: 22px;
  margin: 0 0 8px;
  line-height: 1.25;
}
.value-card p { margin: 0; }
.value-card p + p { margin-top: 14px; }
.value-card .value-num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 40px;
  color: var(--color-sage);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  opacity: 0.95;
}
.value-card .value-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--color-sage-dark);
  margin-bottom: 14px;
  line-height: 1.4;
}

.value-card-feature {
  background: var(--color-charcoal);
  border: none;
  border-top: 3px solid var(--color-amber);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}
.value-card-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(247, 243, 236, 0.025) 22px 44px);
  pointer-events: none;
}
.value-card-feature > * { position: relative; z-index: 1; }
.value-num-light {
  color: var(--color-amber) !important;
  font-size: 56px !important;
  opacity: 1 !important;
  margin: 0 !important;
}
@media (max-width: 540px) {
  .value-card-feature { padding: 32px 24px; }
  .value-num-light { font-size: 44px !important; }
}

/* ====== NAVIGATION ====== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-rule);
  transition: box-shadow 200ms ease;
}
.site-nav.scrolled { box-shadow: 0 2px 12px rgba(44, 44, 39, 0.08); }
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1320px;
  margin: 0 auto;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.logo-mark {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 22px;
  color: var(--color-charcoal);
  letter-spacing: 0.04em;
}
.logo-sub {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}
.footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 4px;
}
@media (max-width: 540px) {
  .logo-img { height: 40px; }
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-charcoal);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-sage);
  transition: width 200ms ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--color-sage-dark); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 4px;
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  transition: transform 200ms ease, opacity 200ms ease, top 200ms ease;
}
.hamburger span:nth-child(1) { top: 9px; }
.hamburger span:nth-child(2) { top: 15px; }
.hamburger span:nth-child(3) { top: 21px; }
.hamburger.open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-charcoal);
  z-index: 99;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 80px 24px 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a.nav-link {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-cream);
}
.mobile-menu a.nav-link::after { background: var(--color-amber); }
.mobile-menu .mobile-ctas {
  position: absolute;
  bottom: 32px;
  left: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 540px) {
  .nav-cta .btn { padding: 10px 18px; font-size: 13px; }
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--color-charcoal);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 32s infinite;
}
.hero-slide-fallback {
  background: linear-gradient(135deg, var(--color-sage-dark) 0%, var(--color-charcoal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 24px, rgba(247, 243, 236, 0.03) 24px 48px);
}
.hero-slide-fallback span {
  color: rgba(247, 243, 236, 0.4);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 8s; }
.hero-slide:nth-child(3) { animation-delay: 16s; }
.hero-slide:nth-child(4) { animation-delay: 24s; }
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.06); }
  6%   { opacity: 1; }
  25%  { opacity: 1; transform: scale(1.0); }
  31%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(44,44,39,0.78) 0%, rgba(44,44,39,0.55) 40%, rgba(44,44,39,0.25) 100%);
}
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 24px, rgba(247, 243, 236, 0.025) 24px 48px);
}
.hero-inner { padding: 120px 0 100px; width: 100%; }
.hero h1 { color: var(--color-cream); margin-bottom: 28px; }
.hero-subhead {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.55;
  color: rgba(247, 243, 236, 0.85);
  max-width: 580px;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-pill {
  background: var(--color-amber);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 28px;
}
.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(247, 243, 236, 0.18);
}
.hero-trust-strip span {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: rgba(247, 243, 236, 0.7);
  letter-spacing: 0.02em;
}
.hero-trust-strip span::before {
  content: "✓ ";
  color: var(--color-amber);
  font-weight: 700;
}
.scroll-chevron {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-amber);
  font-size: 22px;
  animation: bounce 2.4s ease-in-out infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Sub-hero (for non-home pages) */
.subhero {
  position: relative;
  padding: 80px 0 72px;
  background: linear-gradient(135deg, var(--color-sage-dark) 0%, var(--color-charcoal) 100%);
  color: var(--color-cream);
  overflow: hidden;
}
.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(247, 243, 236, 0.03) 22px 44px);
}
.subhero .container { position: relative; z-index: 1; }
.subhero h1 { color: var(--color-cream); max-width: 900px; }
.subhero .eyebrow { color: var(--color-amber); }
.subhero .eyebrow::after { background: var(--color-amber); }
.subhero-sub {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.6;
  color: rgba(247, 243, 236, 0.8);
  max-width: 640px;
  margin-top: 24px;
}

/* ====== STAT BLOCKS ====== */
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 56px);
  color: var(--color-sage);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-primary);
  line-height: 1.4;
}
.stat-source {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ====== GRID HELPERS ====== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid-2-1 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4, .grid-2-1 { grid-template-columns: 1fr; gap: 40px; }
}

/* ====== PULL QUOTE ====== */
.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.4;
  text-align: center;
  color: var(--color-cream);
  max-width: 800px;
  margin: 0 auto;
  text-wrap: balance;
}
.pullquote-attr {
  display: block;
  margin-top: 28px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  font-size: 13px;
  color: var(--color-amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Inline sage blockquote */
.sage-quote {
  background: var(--color-sage-light);
  border-left: 3px solid var(--color-sage);
  padding: 24px 28px;
  border-radius: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--color-sage-dark);
  margin: 28px 0;
}

/* Card bio quote */
.bio-quote {
  border-left: 3px solid var(--color-sage);
  background: var(--color-sage-light);
  padding: 16px 20px;
  margin-top: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-sage-dark);
  border-radius: 0 6px 6px 0;
}

/* ====== CTA BANNER (persistent above footer) ====== */
.cta-banner {
  background: var(--color-sage-dark);
  color: var(--color-cream);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 20px, rgba(247, 243, 236, 0.025) 20px 40px);
}
.cta-banner .container { position: relative; z-index: 1; text-align: center; }
.cta-banner .eyebrow { color: var(--color-amber); justify-content: center; align-items: center; }
.cta-banner .eyebrow::after { background: var(--color-amber); }
.cta-banner h2 {
  color: var(--color-cream);
  margin: 0 0 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner p {
  font-family: var(--font-serif);
  color: rgba(247, 243, 236, 0.75);
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 1.6;
}
.cta-banner-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ====== FOOTER ====== */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .logo-mark { color: var(--color-cream); }
.footer-brand p {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(247, 243, 236, 0.7);
  margin-top: 16px;
  font-size: 16px;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-cream);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(247, 243, 236, 0.75);
  transition: color 150ms ease;
}
.footer-col a:hover { color: var(--color-amber); }

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(107, 127, 107, 0.6);
  border-radius: 6px;
  color: var(--color-sage);
  transition: all 150ms ease;
}
.footer-social a:hover {
  background: var(--color-sage);
  color: var(--color-charcoal);
  border-color: var(--color-sage);
}

.compliance-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  padding: 28px 0;
  border-top: 1px solid rgba(247, 243, 236, 0.1);
  border-bottom: 2px solid var(--color-sage);
}
.compliance-strip span {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  color: rgba(247, 243, 236, 0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.disclaimer {
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.6;
  color: #9A9790;
  margin-top: 28px;
  max-width: 920px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(247, 243, 236, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ====== FORMS ====== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text-primary);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(107, 127, 107, 0.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.checkbox-row input { margin-top: 3px; }

/* ====== UTILITY ====== */
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.text-sage { color: var(--color-sage); }
.text-amber { color: var(--color-amber); }
.text-cream { color: var(--color-cream); }
.divider-sage {
  width: 48px;
  height: 2px;
  background: var(--color-sage);
  border: none;
  margin: 24px 0;
}
.divider-sage.centred { margin: 24px auto; }

.serif-link {
  color: var(--color-sage);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
.serif-link:hover { border-bottom-color: var(--color-sage); }

/* Important note (amber bordered box) */
.notice-amber {
  background: var(--color-amber-light);
  border-left: 4px solid var(--color-amber-dark);
  border-radius: 8px;
  padding: 24px 28px;
  color: var(--color-charcoal);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
}
.notice-amber strong {
  font-family: var(--font-sans);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

/* Hero line reveal */
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroLine 700ms ease-out forwards;
}
.hero-line:nth-child(1) { animation-delay: 200ms; }
.hero-line:nth-child(2) { animation-delay: 350ms; }
.hero-line:nth-child(3) { animation-delay: 500ms; }
@keyframes heroLine {
  to { opacity: 1; transform: translateY(0); }
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 3px;
}


/* ============================================================
   MOBILE RESPONSIVE — additional tightening for small screens
   Appended for the static GHL export
   ============================================================ */
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(34px, 8vw, 48px); line-height: 1.1; }
  h2 { font-size: clamp(24px, 6vw, 34px); line-height: 1.2; }
  h3 { font-size: clamp(19px, 4.5vw, 22px); }

  .hero { min-height: 86vh; }
  .hero-inner { padding: 100px 0 80px; }
  .hero-subhead { font-size: 17px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { flex: 1; min-width: 0; padding: 14px 14px; font-size: 14px; }

  .subhero { padding: 56px 0 48px; }
  .subhero-sub { font-size: 17px; }

  section { padding: 56px 0; }
  .container { padding: 0 20px; }

  /* Cards & grids */
  .grid-2-1, .grid-2, .grid-3, .grid-4 { gap: 32px; }

  /* Project cards: stack neatly, ensure carousel arrows always visible on touch */
  .pc-arrow { opacity: 1 !important; width: 34px; height: 34px; }
  .pc-arrow.prev { left: 8px; }
  .pc-arrow.next { right: 8px; }
  .pc-count { top: 8px; right: 8px; font-size: 10px; padding: 3px 8px; }

  .project-card .body { padding: 22px 22px 24px; }
  .project-card h3 { font-size: 20px; }
  .project-card .descr { font-size: 15px; }
  .project-card .meta-row { grid-template-columns: 110px 1fr; gap: 10px; }
  .project-card .meta-label { font-size: 10px; }
  .project-card .meta-value { font-size: 13px; }

  /* Blog featured card stacks on mobile */
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .body { padding: 24px 22px; }
  .featured-post h3 { font-size: 22px; }
  .featured-post .excerpt { font-size: 16px; }

  /* Filter bars: keep horizontally scrollable instead of wrapping awkwardly */
  .filter-bar { top: 64px; padding: 12px 0; }
  .filter-bar-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 16px;
    margin: 0 -16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar-inner::-webkit-scrollbar { display: none; }
  .filter-tab { white-space: nowrap; flex-shrink: 0; padding: 9px 14px; font-size: 12px; }

  /* Post pages */
  .post-hero { min-height: 50vh; }
  .post-hero-content { padding: 56px 0 40px; }
  .post-body p { font-size: 17px; line-height: 1.7; }
  .post-body h2 { font-size: 24px; margin: 40px 0 16px; }
  .post-body blockquote { font-size: 19px; padding: 20px 22px; }

  /* CTA banner */
  .cta-banner { padding: 64px 0; }
  .cta-banner-actions .btn { flex: 1; min-width: 0; padding: 14px 14px; font-size: 14px; }

  /* Footer: tighter columns */
  .compliance-strip { gap: 18px 24px; padding: 22px 0; }
  .compliance-strip span { font-size: 11px; }

  /* Stat counters: stack 2x2 always */
  .stat-num { font-size: clamp(38px, 8vw, 46px); }
  .stat-label { font-size: 15px; }

  /* Values grid */
  .values-grid { gap: 18px; }
  .value-card { padding: 26px 22px; }

  /* Buttons big & finger-friendly */
  .btn { min-height: 48px; }
  .btn-lg { padding: 16px 22px; }

  /* Forms */
  .form-panel { padding: 24px 20px !important; }
  .form-group input, .form-group select, .form-group textarea { padding: 14px 14px; min-height: 48px; font-size: 16px; /* iOS no-zoom */ }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-pill { font-size: 11px; padding: 6px 12px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .cta-banner-actions { flex-direction: column; }
  .cta-banner-actions .btn { width: 100%; }

  /* Nav: hide the secondary "Investor Pack" ghost on tiny screens */
  .nav-cta > .btn-ghost { display: none; }

  /* Tighter card padding */
  .card-body { padding: 22px 20px; }
  .project-card .body { padding: 20px 18px 22px; }
  .post-card .body { padding: 18px 18px 22px; }

  /* Stack stats single column on very small screens */
  .stat { margin-bottom: 4px; }
}

/* Touch-friendly tap targets across the site */
@media (hover: none) and (pointer: coarse) {
  .pc-arrow { opacity: 1 !important; }
  .nav-link::after { transition: none; }
}

/* Prevent horizontal scroll on any device */
html, body { overflow-x: hidden; max-width: 100vw; }
img, video { max-width: 100%; height: auto; }
