/* ============================================================================
   Charlwood Wealth — Site v2
   Shared stylesheet
   ============================================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand palette */
  --cw-green: #0F2A1D;
  --cw-green-deep: #08180F;
  --cw-green-light: #1B3D2C;
  --cw-ivory: #F4F1EC;
  --cw-ivory-light: #FAF9F7;
  --cw-white: #FFFFFF;
  --cw-gold: #A69368;
  --cw-gold-bright: #B5A478;
  --cw-gold-dark: #8A7A55;
  --cw-warm: #C8B998;
  --cw-text: #1E1E1E;
  --cw-text-muted: #4A4A4A;
  --cw-text-soft: #6B6B6B;
  --cw-text-light: #F4F1EC;
  --cw-text-light-muted: rgba(244, 241, 236, 0.78);
  --cw-text-light-soft: rgba(244, 241, 236, 0.55);
  --cw-muted-line: #D8D2C8;
  --cw-divider: rgba(15, 42, 29, 0.08);
  --cw-divider-light: rgba(244, 241, 236, 0.15);

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-max: min(1400px, 90vw);
  --container-narrow: min(1000px, 85vw);
  --container-text: min(780px, 80vw);
  --section-pad-y: 140px;
  --section-pad-y-tight: 100px;
  --section-pad-y-loose: 180px;

  /* Radii */
  --r-card: 20px;
  --r-image: 8px;
  --r-button: 2px;

  /* Transitions */
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.25s;
  --t-base: 0.4s;
  --t-slow: 0.8s;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--cw-green);
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol { list-style: none; }

/* ---------- Base typography ---------- */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--cw-text);
  /* Green canvas: iOS Safari paints its top/bottom bars from the body
     background, ignoring theme-color. Content keeps ivory via main below. */
  background: var(--cw-green);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  background: var(--cw-ivory-light);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--cw-text);
  letter-spacing: -0.005em;
}

p { font-feature-settings: "kern", "liga", "calt"; }

::selection {
  background: var(--cw-gold);
  color: var(--cw-green);
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

.container-text {
  max-width: var(--container-text);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-pad-y) 0;
}

.section-tight { padding: var(--section-pad-y-tight) 0; }
.section-loose { padding: var(--section-pad-y-loose) 0; }

.section-ivory { background: var(--cw-ivory-light); }
.section-ivory-warm { background: var(--cw-ivory); }
.section-white { background: var(--cw-white); }
.section-green { background: var(--cw-green); color: var(--cw-text-light); }
.section-green-deep { background: var(--cw-green-deep); color: var(--cw-text-light); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 32px;
  background: rgba(15, 42, 29, 0);
  backdrop-filter: blur(0);
  transition: background var(--t-base) var(--ease-out-soft),
              backdrop-filter var(--t-base) var(--ease-out-soft),
              padding var(--t-base) var(--ease-out-soft);
}

.nav.scrolled {
  background: rgba(15, 42, 29, 0.97);
  backdrop-filter: blur(12px);
  padding: 16px 32px;
}

/* Pages with white/ivory hero need solid nav from the start */
.nav.solid {
  background: rgba(15, 42, 29, 0.98);
  backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cw-ivory);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-logo-divider {
  width: 1px;
  height: 26px;
  background: var(--cw-gold);
  opacity: 0.6;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--cw-ivory);
  opacity: 0.78;
  transition: opacity var(--t-fast) var(--ease-out-soft);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--cw-gold);
}

.nav-cta {
  margin-left: 12px;
  padding: 9px 22px;
  border: 1px solid var(--cw-gold);
  border-radius: 4px;
  color: var(--cw-gold) !important;
  opacity: 1 !important;
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease-out-soft),
              color var(--t-fast) var(--ease-out-soft);
}

.nav-cta:hover {
  background: var(--cw-gold);
  color: var(--cw-green) !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
}

.nav-toggle-icon {
  position: relative;
  width: 22px;
  height: 1px;
  background: var(--cw-ivory);
  transition: background var(--t-fast) var(--ease-out-soft);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1px;
  background: var(--cw-ivory);
  transition: transform var(--t-base) var(--ease-out-soft);
}

.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }

.nav.open .nav-toggle-icon { background: transparent; }
.nav.open .nav-toggle-icon::before { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle-icon::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--cw-green-deep);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out-soft);
}

.nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.nav-drawer a {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cw-ivory);
  transition: color var(--t-fast) var(--ease-out-soft);
}

.nav-drawer a:hover { color: var(--cw-gold); }

.nav-drawer .drawer-cta {
  margin-top: 16px;
  padding: 12px 28px;
  border: 1px solid var(--cw-gold);
  border-radius: 4px;
  color: var(--cw-gold);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Homepage hero ---------- */

/* iOS 26 Safari ignores theme-color; its bottom toolbar samples a solid-colour
   fixed element touching the bottom viewport edge. This invisible strip keeps
   the toolbar brand green. Gated to iOS Safari only. */
#fixed-bottom {
  position: fixed;
  bottom: -8px;
  left: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 12px;
  z-index: 5;
  background-color: var(--cw-green);
  display: none;
}
@supports (-webkit-text-size-adjust: none) and (font: -apple-system-body) and (-webkit-touch-callout: none) {
  @media (width < 768px) {
    #fixed-bottom { display: block; }
  }
}

.hero-home {
  position: relative;
  min-height: 100vh;
  min-height: 100lvh; /* fill behind Safari's collapsed toolbar so no ivory peeks on load */
  background: var(--cw-green);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=2400&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.75;
  filter: grayscale(0.15) brightness(1.08) contrast(1.05);
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Localised text scrim: a soft pool of green behind the headline block only,
     stacked over the original vertical fade — the rest of the image keeps its light */
  background:
    radial-gradient(ellipse 64% 72% at 26% 52%, rgba(8, 24, 15, 0.68), rgba(8, 24, 15, 0) 76%),
    linear-gradient(180deg, rgba(15, 42, 29, 0.2) 0%, rgba(15, 42, 29, 0.4) 60%, rgba(15, 42, 29, 0.75) 85%, rgba(15, 42, 29, 0.96) 100%);
}

.hero-home-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cw-gold-bright);
  margin-bottom: 36px;
  opacity: 0;
  animation: heroFadeUp 1.2s var(--ease-out-soft) 0.05s forwards;
}

.hero-home-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 120px 32px 80px;
}

.hero-home h1 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 110px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cw-ivory);
  margin-bottom: 28px;
  opacity: 0;
  animation: heroFadeUp 1.2s var(--ease-out-soft) 0.2s forwards;
}

.hero-home-tagline {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--cw-gold-bright);
  margin-bottom: 56px;
  opacity: 0;
  animation: heroFadeUp 1.2s var(--ease-out-soft) 0.6s forwards;
}

.hero-trust-strip {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--cw-divider-light);
  opacity: 0;
  animation: heroFadeUp 1.2s var(--ease-out-soft) 1s forwards;
}

.hero-trust-item {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cw-text-light-muted);
}

.hero-trust-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cw-gold-bright);
  text-transform: none;
  margin-bottom: 4px;
  font-feature-settings: "lnum";
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Heritage moment (poster section) ---------- */
.heritage-moment {
  position: relative;
  background: var(--cw-green-deep);
  color: var(--cw-ivory);
  overflow: hidden;
  padding: 160px 32px;
  text-align: center;
}

.heritage-moment::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=2400&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: grayscale(0.6) brightness(0.7) contrast(1.1);
}

.heritage-moment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(8, 24, 15, 0.4) 0%, rgba(8, 24, 15, 0.85) 90%);
}

.heritage-moment-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.heritage-moment-year {
  font-family: var(--font-serif);
  font-size: clamp(96px, 16vw, 200px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--cw-gold);
  font-feature-settings: "lnum";
  margin-bottom: 24px;
}

.heritage-moment-lead {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cw-ivory);
  letter-spacing: 0.01em;
  margin-bottom: 48px;
}

.heritage-moment-trio {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--cw-divider-light);
}

.heritage-moment-word {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cw-text-light-muted);
}

.heritage-moment-dot {
  width: 4px;
  height: 4px;
  background: var(--cw-gold);
  border-radius: 50%;
  opacity: 0.7;
}

@media (max-width: 868px) {
  .heritage-moment { padding: 110px 24px; }
  .heritage-moment-trio { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .heritage-moment-word { font-size: 11px; letter-spacing: 0.24em; }
}

/* ---------- Sub-page hero ---------- */
.hero-sub {
  background: var(--cw-green);
  padding: 200px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-sub::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=2400&q=80&auto=format&fit=crop'));
  background-size: cover;
  /* Portrait paintings set --hero-position inline to keep heads in frame */
  background-position: var(--hero-position, center);
  opacity: 0.7;
  filter: grayscale(0.15) brightness(1.08) contrast(1.05);
}

.hero-sub::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 75% at 22% 62%, rgba(8, 24, 15, 0.62), rgba(8, 24, 15, 0) 76%),
    linear-gradient(180deg, rgba(15, 42, 29, 0.3) 0%, rgba(15, 42, 29, 0.5) 60%, rgba(15, 42, 29, 0.85) 100%);
}

.hero-sub-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.hero-sub h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cw-ivory);
  margin-bottom: 20px;
}

.hero-sub-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cw-gold-bright);
  margin-bottom: 16px;
}

.hero-sub-lede {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--cw-text-light-muted);
  max-width: 680px;
}

/* Full-viewport variant — hero fills the screen so the artwork is fully visible */
.hero-sub-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
}

.hero-sub-full .hero-sub-content { width: 100%; }

/* Let the painting read more strongly on the full-bleed hero */
.hero-sub-full::before {
  opacity: 0.82;
  filter: grayscale(0.08) brightness(1.06) contrast(1.05);
}

.hero-sub-full::after {
  background: linear-gradient(180deg, rgba(15, 42, 29, 0.35) 0%, rgba(15, 42, 29, 0.42) 55%, rgba(15, 42, 29, 0.78) 100%);
}

/* ---------- CW Monogram ---------- */
.cw-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 48px;
}

.cw-monogram::before,
.cw-monogram::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--cw-gold);
  opacity: 0.35;
}

.cw-monogram-mark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cw-gold);
}


/* ---------- Thesis / intro section ---------- */
.thesis {
  text-align: center;
  padding: var(--section-pad-y) 32px var(--section-pad-y-tight);
}

.thesis-content { max-width: 820px; margin: 0 auto; }

.thesis h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.22;
  color: var(--cw-green);
  letter-spacing: 0.005em;
  margin-bottom: 48px;
}

.thesis-body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  color: var(--cw-text-muted);
}

.thesis-body + .thesis-body { margin-top: 18px; }

/* ---------- Block cards (homepage sections) ---------- */
.blocks {
  padding: 40px 32px 140px;
}

.blocks-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.block-card {
  background: var(--cw-green);
  color: var(--cw-text-light);
  border-radius: var(--r-card);
  padding: 64px 56px;
  box-shadow: 0 16px 50px rgba(15, 42, 29, 0.12);
  transition: transform var(--t-base) var(--ease-out-soft),
              box-shadow var(--t-base) var(--ease-out-soft);
}

.block-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 42, 29, 0.18);
}

.block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.block-card.reverse .block-grid { direction: rtl; }
.block-card.reverse .block-grid > * { direction: ltr; }

.block-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-image);
  overflow: hidden;
  background: var(--cw-green-light);
}

.block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.95) saturate(0.85);
  transition: transform 1.2s var(--ease-out-soft), filter var(--t-base) var(--ease-out-soft);
}

.block-card:hover .block-image img {
  transform: scale(1.03);
  filter: brightness(1) saturate(0.95);
}

.block-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.18;
  color: var(--cw-text-light);
  margin-bottom: 20px;
}

.block-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--cw-text-light-muted);
  margin-bottom: 28px;
}

/* ---------- Gold CTA link ---------- */
.gold-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cw-gold-dark);
  transition: gap var(--t-fast) var(--ease-out-soft),
              opacity var(--t-fast) var(--ease-out-soft);
}

.hero-sub .gold-cta, .founder-note .gold-cta, .section-green .gold-cta, .section-green-deep .gold-cta { color: var(--cw-gold); }

.gold-cta:hover { gap: 14px; opacity: 0.85; }

.gold-cta-line {
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--cw-gold);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-button);
  transition: background var(--t-fast) var(--ease-out-soft),
              color var(--t-fast) var(--ease-out-soft),
              border-color var(--t-fast) var(--ease-out-soft);
}

.button-primary {
  background: var(--cw-gold);
  color: var(--cw-green);
}

.button-primary:hover { background: var(--cw-gold-dark); }

.button-ghost {
  background: transparent;
  color: var(--cw-gold);
  border: 1px solid var(--cw-gold);
}

.button-ghost:hover { background: var(--cw-gold); color: var(--cw-green); }

.button-ghost-light {
  background: transparent;
  color: var(--cw-ivory);
  border: 1px solid var(--cw-ivory);
}

.button-ghost-light:hover { background: var(--cw-ivory); color: var(--cw-green); }

/* ---------- Tabs ---------- */
.tabs-section {
  background: var(--cw-ivory-light);
  padding: var(--section-pad-y-tight) 32px var(--section-pad-y);
}

.tabs-container { max-width: var(--container-max); margin: 0 auto; }

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.tab-button {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cw-text-muted);
  background: transparent;
  border: 1px solid var(--cw-muted-line);
  padding: 14px 28px;
  border-radius: var(--r-button);
  transition: all var(--t-fast) var(--ease-out-soft);
}

.tab-button:hover {
  border-color: var(--cw-green);
  color: var(--cw-green);
}

.tab-button.active {
  background: var(--cw-green);
  border-color: var(--cw-green);
  color: var(--cw-ivory);
}

.tab-panels { position: relative; }

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  animation: tabFadeIn var(--t-base) var(--ease-out-soft) forwards;
}

.tab-panel.reverse { direction: rtl; }
.tab-panel.reverse > * { direction: ltr; }

@keyframes tabFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.tab-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cw-muted-line);
  border-radius: var(--r-image);
  overflow: hidden;
}

.tab-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.96) saturate(0.85);
}

.tab-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.22;
  color: var(--cw-green);
  margin-bottom: 24px;
}

.tab-text p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--cw-text-muted);
  margin-bottom: 16px;
}

.tab-text p:last-of-type { margin-bottom: 28px; }

/* ---------- Service / content blocks (vertical) ---------- */
.content-list {
  background: var(--cw-ivory-light);
  padding: var(--section-pad-y-tight) 32px var(--section-pad-y);
}

.content-list-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.content-list-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  padding: 80px 0;
  border-bottom: 1px solid var(--cw-divider);
}

.content-list-item:first-child { padding-top: 0; }
.content-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.content-list-item.reverse { direction: rtl; }
.content-list-item.reverse > * { direction: ltr; }

.content-list-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cw-muted-line);
  border-radius: var(--r-image);
  overflow: hidden;
}

.content-list-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.96) saturate(0.85);
  transition: transform 1s var(--ease-out-soft);
}

.content-list-item:hover .content-list-image img {
  transform: scale(1.03);
}

.content-list-text {
  padding-top: 8px;
}

.content-list-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cw-gold-dark);
  margin-bottom: 18px;
}

.content-list-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.22;
  color: var(--cw-green);
  margin-bottom: 22px;
}

.content-list-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--cw-text-muted);
  margin-bottom: 16px;
}

.content-list-text p:last-of-type { margin-bottom: 24px; }

/* ---------- Content blocks (centered, stacked) ---------- */
.content-block {
  max-width: var(--container-text);
  margin: 0 auto 64px;
}

.content-block:last-child { margin-bottom: 0; }

.independence-blocks .content-block {
  margin-bottom: 0;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--cw-muted-line);
}

.independence-blocks .content-block + .content-block {
  padding-top: 56px;
}

.independence-blocks .content-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.content-block h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.22;
  color: var(--cw-green);
  margin-bottom: 18px;
}

.content-block p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--cw-text-muted);
  margin-bottom: 16px;
}

/* ---------- Numbered principle list ---------- */
.principle {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--cw-divider);
}

.principle:last-child { border-bottom: none; }

.principle-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--cw-gold);
  font-feature-settings: "lnum";
}

.principle h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  color: var(--cw-green);
  margin-bottom: 16px;
}

.principle p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--cw-text-muted);
  margin-bottom: 14px;
}

/* ---------- Trust strip (page-level) ---------- */
.trust-strip {
  background: var(--cw-ivory);
  padding: 60px 32px;
  border-top: 1px solid var(--cw-divider);
  border-bottom: 1px solid var(--cw-divider);
}

.trust-strip-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.trust-strip-item {
  text-align: center;
}

.trust-strip-value {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--cw-green);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  font-feature-settings: "lnum";
}

.trust-strip-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cw-text-soft);
}

/* ---------- Testimonials ---------- */
.testimonial-block {
  background: var(--cw-ivory);
  padding: var(--section-pad-y) 32px;
}

.testimonial-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.testimonial-card {
  background: var(--cw-white);
  padding: 48px 40px;
  border-radius: var(--r-image);
  border: 1px solid var(--cw-divider);
  position: relative;
  transition: transform var(--t-base) var(--ease-out-soft),
              box-shadow var(--t-base) var(--ease-out-soft);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 42, 29, 0.06);
}

.testimonial-quote-mark {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  color: var(--cw-gold);
  opacity: 0.4;
  position: absolute;
  top: 24px;
  left: 32px;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--cw-green);
  margin-top: 36px;
  margin-bottom: 28px;
}

.testimonial-attribution {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cw-text-soft);
}

/* ---------- Founder note (From the Managing Director) ---------- */
.founder-note {
  background: var(--cw-green);
  color: var(--cw-text-light);
  padding: var(--section-pad-y) 32px;
}

.founder-note-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
}

.founder-note-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cw-gold);
  margin-bottom: 36px;
}

.founder-note-quote {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--cw-ivory);
  letter-spacing: 0.005em;
  margin-bottom: 48px;
}

.founder-note-attribution {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.founder-note-rule {
  width: 40px;
  height: 1px;
  background: var(--cw-gold);
  opacity: 0.6;
}

.founder-note-name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cw-gold);
}

.founder-note-heritage {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--cw-text-light-soft);
  margin-top: 32px;
  letter-spacing: 0.02em;
}

@media (max-width: 868px) {
  .founder-note { padding: var(--section-pad-y-tight) 24px; }
  .founder-note-eyebrow { margin-bottom: 28px; }
  .founder-note-quote { margin-bottom: 32px; }
}

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.team-member {
  text-align: left;
}

.team-photo {
  aspect-ratio: 4 / 5;
  background: var(--cw-muted-line);
  border-radius: var(--r-image);
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.team-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cw-green-light), var(--cw-green));
  color: var(--cw-gold);
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.team-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--cw-green);
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cw-gold-dark);
  margin-bottom: 16px;
}

.team-bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cw-text-muted);
}

/* ---------- Timeline ---------- */
.timeline {
  max-width: var(--container-narrow);
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--cw-divider);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  align-items: start;
  padding: 32px 0;
  position: relative;
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--cw-gold-dark);
  text-align: right;
  padding-right: 16px;
  font-feature-settings: "lnum";
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: 96px;
  top: 44px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cw-gold);
}

.timeline-text h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--cw-green);
  margin-bottom: 8px;
}

.timeline-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--cw-text-muted);
}

/* ---------- "Not suited" callout ---------- */
.callout-muted {
  background: var(--cw-ivory);
  padding: var(--section-pad-y-tight) 32px;
}

.callout-muted-content {
  max-width: var(--container-text);
  margin: 0 auto;
  text-align: center;
  padding: 56px 48px;
  border: 1px solid var(--cw-divider);
  border-radius: var(--r-image);
}

.callout-muted h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--cw-green);
  margin-bottom: 20px;
}

.callout-muted p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--cw-text-muted);
}

/* ---------- Insights ---------- */
.insights-featured {
  background: var(--cw-white);
  padding: var(--section-pad-y-tight) 32px;
}

.insights-featured-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.insights-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.insights-featured-image {
  aspect-ratio: 4 / 3;
  background: var(--cw-muted-line);
  border-radius: var(--r-image);
  overflow: hidden;
}

.insights-featured-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.96);
}

.insights-featured-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cw-gold-dark);
  margin-bottom: 18px;
}

.insights-featured-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.22;
  color: var(--cw-green);
  margin-bottom: 18px;
}

.insights-featured-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--cw-text-muted);
  margin-bottom: 28px;
}

.insights-grid-section {
  background: var(--cw-ivory-light);
  padding: var(--section-pad-y) 32px;
}

.insights-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease-out-soft);
}

.insight-card:hover { transform: translateY(-4px); }

.insight-card-image {
  aspect-ratio: 4 / 3;
  background: var(--cw-muted-line);
  border-radius: var(--r-image);
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}

/* Painting attribution — fades up on hover (insights page only) */
.painting-attribution {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 24px 20px;
  background: linear-gradient(180deg, rgba(15, 42, 29, 0) 0%, rgba(15, 42, 29, 0.55) 40%, rgba(15, 42, 29, 0.94) 100%);
  color: var(--cw-ivory);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease-out-soft), transform 0.45s var(--ease-out-soft);
  pointer-events: none;
  z-index: 2;
}

.insight-card-image:hover .painting-attribution,
.insights-featured-image:hover .painting-attribution,
.block-image:hover .painting-attribution,
.content-list-image:hover .painting-attribution,
.tab-image:hover .painting-attribution {
  opacity: 1;
  transform: translateY(0);
}

.painting-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--cw-ivory);
  margin-bottom: 6px;
}

.painting-artist {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cw-gold);
}

.insights-featured-image {
  position: relative;
}

.insights-featured-image .painting-title {
  font-size: 22px;
}

.insight-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.96);
  transition: transform 0.8s var(--ease-out-soft);
}

.insight-card:hover .insight-card-image img { transform: scale(1.04); }

/* Portrait-orientation paintings: bias the 4:3 crop toward the top so
   heads and focal subjects aren't cut off */
.insight-card-image img.portrait-crop,
.insights-featured-image img.portrait-crop {
  object-position: 50% 22%;
}

.insight-card-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cw-gold-dark);
  margin-bottom: 12px;
}

.insight-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--cw-green);
  margin-bottom: 12px;
}

.insight-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cw-text-muted);
  margin-bottom: 16px;
}

/* ---------- Contact form ---------- */
.contact-section {
  background: var(--cw-white);
  padding: var(--section-pad-y) 32px;
}

.contact-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  color: var(--cw-green);
  margin-bottom: 24px;
  line-height: 1.22;
}

.contact-info p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--cw-text-muted);
  margin-bottom: 32px;
}

.contact-detail {
  padding: 20px 0;
  border-top: 1px solid var(--cw-divider);
}

.contact-detail:last-child { border-bottom: 1px solid var(--cw-divider); }

.contact-detail-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cw-text-soft);
  margin-bottom: 6px;
}

.contact-detail-value {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--cw-green);
  line-height: 1.5;
}

.contact-detail-value a {
  color: var(--cw-green);
  border-bottom: 1px solid var(--cw-gold);
  padding-bottom: 1px;
  transition: color var(--t-fast) var(--ease-out-soft);
}

.contact-detail-value a:hover { color: var(--cw-gold); }

.contact-form {
  background: var(--cw-ivory-light);
  padding: 56px 48px;
  border-radius: var(--r-image);
}

.form-row { margin-bottom: 24px; }
.form-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cw-text-soft);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--cw-text);
  background: var(--cw-white);
  border: 1px solid var(--cw-muted-line);
  border-radius: var(--r-button);
  transition: border-color var(--t-fast) var(--ease-out-soft);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--cw-green);
}

.form-textarea {
  resize: none;
  overflow: hidden;
  min-height: 140px;
  font-family: var(--font-sans);
  font-size: 14px;
}

select.form-input:focus {
  outline: 2px solid var(--cw-green);
  outline-offset: -1px;
  border-color: var(--cw-green);
}

.form-submit { margin-top: 12px; }

/* ---------- Closing CTA ---------- */
.closing-cta {
  background: var(--cw-ivory);
  text-align: center;
  padding: 120px 32px var(--section-pad-y-tight);
}

.closing-cta-content {
  max-width: 680px;
  margin: 0 auto;
}

.closing-cta-text {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--cw-green);
  margin-bottom: 36px;
}

/* ---------- Login form (portal) ---------- */
.portal-section {
  min-height: calc(100vh - 80px);
  background: var(--cw-green);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 32px;
  position: relative;
  overflow: hidden;
}

.portal-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?w=2000&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: grayscale(0.6);
}

.portal-card {
  position: relative;
  background: var(--cw-ivory-light);
  padding: 64px 56px;
  border-radius: var(--r-image);
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(8, 24, 15, 0.4);
}

.portal-card h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--cw-green);
  margin-bottom: 8px;
}

.portal-card .portal-sub {
  font-size: 14px;
  color: var(--cw-text-soft);
  margin-bottom: 36px;
}

.portal-card .form-row { text-align: left; }

/* ---------- Footer ---------- */
.footer {
  background: var(--cw-green-deep);
  color: var(--cw-text-light-muted);
  padding: 80px 32px 40px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px));
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--cw-divider-light);
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cw-ivory);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-brand-mark svg { width: 28px; height: 28px; }

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--cw-text-light-muted);
  margin-bottom: 28px;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cw-gold);
  margin-bottom: 20px;
}

.footer-list li {
  margin-bottom: 12px;
}

.footer-list a {
  font-size: 14px;
  color: var(--cw-text-light-muted);
  transition: color var(--t-fast) var(--ease-out-soft);
}

.footer-list a:hover { color: var(--cw-ivory); }

.footer-regulatory {
  padding: 32px 0;
  border-bottom: 1px solid var(--cw-divider-light);
  font-size: 11px;
  line-height: 1.75;
  color: var(--cw-text-light-soft);
  max-width: 940px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: var(--cw-text-light-soft);
  letter-spacing: 0.05em;
}

.footer-bottom-links {
  display: flex;
  gap: 28px;
}

.footer-bottom-links a {
  color: var(--cw-text-light-soft);
  transition: color var(--t-fast) var(--ease-out-soft);
}

.footer-bottom-links a:hover { color: var(--cw-ivory); }

/* ---------- Page transition + scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out-soft), transform 1s var(--ease-out-soft);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-home h1,
  .hero-home-tagline,
  .hero-trust-strip {
    opacity: 1;
    animation: none;
  }
}

/* Page transition: subtle fade on load */
.page-fade-in {
  animation: pageFadeIn var(--t-base) var(--ease-out-soft);
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --section-pad-y: 110px;
    --section-pad-y-tight: 80px;
    --section-pad-y-loose: 140px;
  }
  .nav-links { gap: 28px; }
  .nav-links a { font-size: 13px; }
  .block-card { padding: 52px 44px; }
  .block-grid { gap: 44px; }
  .tab-panel.active { gap: 56px; }
  .content-list-item { gap: 56px; }
  .insights-featured-card { gap: 40px; }
  .contact-grid { gap: 56px; }
  .footer-grid { gap: 40px; }
}

.insights-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 1080px) {
  /* On narrow screens the hero text spans most of the width, so the
     text scrim pool centres and widens to keep the gold readable */
  /* Portrait crop: keep the lone figure and sunlit rocks in frame */
  .hero-home::before { background-position: 62% center; }
  .hero-home::after {
    background: linear-gradient(180deg, rgba(15, 42, 29, 0.25) 0%, rgba(15, 42, 29, 0.4) 22%, rgba(8, 24, 15, 0.74) 40%, rgba(8, 24, 15, 0.8) 72%, rgba(15, 42, 29, 0.96) 100%);
  }
  .hero-sub::after {
    background: linear-gradient(180deg, rgba(15, 42, 29, 0.35) 0%, rgba(8, 24, 15, 0.74) 30%, rgba(8, 24, 15, 0.76) 75%, rgba(15, 42, 29, 0.88) 100%);
  }

  /* Six links + the login button wrap below ~1080px; switch to the drawer early */
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 868px) {
  .nav { padding: 18px 24px; }
  .insights-teaser-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .container,
  .container-narrow,
  .container-text { padding: 0 24px; }
  .hero-home-content { padding: 110px 24px 60px; }
  .hero-trust-strip { gap: 24px; padding-top: 28px; }
  .hero-trust-item { font-size: 11px; }
  .hero-trust-item strong { font-size: 22px; }
  .hero-sub { padding: 160px 0 80px; }
  .thesis { padding: 100px 24px 60px; }
  .thesis h2 { margin-bottom: 36px; }
  .cw-monogram { margin-bottom: 40px; }
  .blocks { padding: 30px 24px 100px; }
  .blocks-wrapper { gap: 40px; }
  .block-card { padding: 40px 28px; }
  .block-grid { grid-template-columns: 1fr; gap: 32px; }
  .block-card.reverse .block-grid { direction: ltr; }
  .block-image { aspect-ratio: 16 / 10; }
  .tabs-section { padding: 80px 24px 100px; }
  .tab-nav { gap: 6px; margin-bottom: 48px; }
  .tab-button { padding: 12px 20px; font-size: 12px; }
  .tab-panel.active { grid-template-columns: 1fr; gap: 36px; }
  .tab-panel.reverse { direction: ltr; }
  .content-list-item { grid-template-columns: 1fr; gap: 32px; padding: 60px 0; }
  .content-list-item.reverse { direction: ltr; }
  .content-list-image { aspect-ratio: 16 / 10; }
  .trust-strip-container { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 24px; }
  .testimonial-card { padding: 36px 28px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .timeline::before { left: 60px; }
  .timeline-entry { grid-template-columns: 60px 1fr; gap: 24px; }
  .timeline-year { font-size: 20px; padding-right: 12px; }
  .timeline-entry::before { left: 58px; top: 38px; width: 8px; height: 8px; }
  .insights-featured-card { grid-template-columns: 1fr; gap: 28px; }
  .insights-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 40px 28px; }
  .form-row.split { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding: 60px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

@media (max-width: 520px) {
  .hero-home h1 { letter-spacing: 0.06em; }
  .hero-trust-strip { gap: 20px; }
  .hero-trust-item { font-size: 10px; }
  .hero-trust-item strong { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .trust-strip-container { grid-template-columns: 1fr 1fr; }
  .callout-muted-content { padding: 40px 28px; }
  .portal-card { padding: 48px 28px; }
}

/* ---------- Print & utility ---------- */
@media print {
  .nav, .footer, .closing-cta { display: none; }
  body { background: white; color: black; }
}

/* ---------- Refinement pass (2026-07) ---------- */

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cw-gold);
  outline-offset: 3px;
}

/* Chrome paints the OS blue focus ring on the document root after the
   basic-auth dialog is submitted with Enter — never outline the page itself */
html:focus, body:focus,
html:focus-visible, body:focus-visible {
  outline: none;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 32px;
  background: var(--cw-green);
  border-top: 1px solid rgba(200, 169, 106, 0.45);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}

.cookie-banner-text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--cw-ivory);
  margin: 0;
}

.cookie-banner-text a {
  color: var(--cw-gold);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 22px;
  cursor: pointer;
  border-radius: 2px;
}

.cookie-btn-accept {
  background: var(--cw-gold);
  color: var(--cw-green);
  border: 1px solid var(--cw-gold);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--cw-ivory);
  border: 1px solid rgba(245, 241, 232, 0.5);
}

.cookie-btn-accept:hover { filter: brightness(1.08); }
.cookie-btn-decline:hover { border-color: var(--cw-ivory); }

/* More generous measure on long-form article text */
.container-text .content-block p {
  line-height: 1.9;
}

/* ---------- Mobile polish (2026-08) ---------- */

/* Balanced heading rags — avoids one-word orphan lines */
h1, h2, h3, .closing-cta-text { text-wrap: balance; }

/* Stable hero heights on mobile (browser URL bar collapse) */
@supports (height: 100lvh) {
  /* Size heroes to the LARGEST viewport so no ivory ever peeks below the
     image when the browser toolbar collapses */
  .hero-home { min-height: 100lvh; }
  .hero-sub-full { min-height: 100lvh; }
}

/* ---- Phone refinements (≤ 640px) ---- */
@media (max-width: 640px) {
  :root {
    --section-pad-y: 80px;
    --section-pad-y-tight: 56px;
    --section-pad-y-loose: 100px;
  }

  body { font-size: 16px; line-height: 1.75; }

  /* ---- Navigation ---- */
  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-logo { font-size: 13px; letter-spacing: 0.14em; gap: 10px; }
  .nav-logo-mark { width: 24px; height: 24px; }
  .nav-logo-divider { height: 22px; }

  .nav-drawer a { font-size: 24px; }
  .nav-drawer ul { gap: 24px; }
  .nav-drawer .drawer-cta { font-size: 12px; padding: 11px 24px; }

  /* ---- Homepage hero ---- */
  .hero-home-content { padding: 0 24px 48px; }
  .hero-home h1 {
    font-size: 40px;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
  }
  .hero-home-eyebrow { font-size: 11px; letter-spacing: 0.26em; margin-bottom: 28px; }
  .hero-home-tagline {
    font-size: 15px;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    text-shadow: 0 1px 16px rgba(15, 42, 29, 0.55);
  }
  .hero-trust-strip { flex-direction: column; gap: 18px; padding-top: 24px; }
  .hero-trust-item { font-size: 10px; letter-spacing: 0.14em; }
  .hero-trust-item strong { font-size: 20px; }

  /* ---- Sub-page heroes ---- */
  .hero-sub { padding: 130px 0 56px; }
  .hero-sub-content { padding: 0 24px; }
  .hero-sub h1 { font-size: 32px; letter-spacing: 0.01em; margin-bottom: 14px; }
  .hero-sub-eyebrow { font-size: 11px; letter-spacing: 0.16em; margin-bottom: 12px; }
  .hero-sub-lede { font-size: 16px; line-height: 1.6; }
  .hero-sub-full { padding: 120px 0 56px; }

  /* ---- Thesis / intro sections ---- */
  .thesis { padding: 72px 24px 48px; }
  .thesis h2 { margin-bottom: 24px; }
  .thesis-body { font-size: 16px; line-height: 1.8; }
  .cw-monogram { margin-bottom: 28px; }

  /* ---- Heritage moment ---- */
  .heritage-moment { padding: 80px 24px; }
  .heritage-moment-lead { margin-bottom: 36px; }
  .heritage-moment-trio { gap: 14px; padding-top: 24px; }
  .heritage-moment-word { font-size: 10px; letter-spacing: 0.2em; }

  /* ---- Homepage block cards ---- */
  .blocks { padding: 20px 20px 72px; }
  .blocks-wrapper { gap: 24px; }
  .block-card { padding: 32px 22px; border-radius: 16px; }
  .block-grid { gap: 24px; }
  .block-image { aspect-ratio: 3 / 2; border-radius: 6px; }
  .block-text h2 { font-size: 24px; margin-bottom: 16px; }
  .block-text p { font-size: 15px; margin-bottom: 22px; }

  /* ---- Tabs (approach page) ---- */
  .tabs-section { padding: 56px 20px 72px; }
  .tab-nav { gap: 6px; margin-bottom: 36px; }
  .tab-button { padding: 10px 16px; font-size: 11px; letter-spacing: 0.08em; }
  .tab-panel.active { gap: 28px; }
  .tab-text h3 { font-size: 24px; margin-bottom: 18px; }
  .tab-text p { font-size: 15px; line-height: 1.8; }
  .tab-image { aspect-ratio: 3 / 2; }

  /* ---- Service content list ---- */
  .content-list { padding: 56px 24px 72px; }
  .content-list-item { padding: 48px 0; gap: 24px; }
  .content-list-image { aspect-ratio: 3 / 2; }
  .content-list-eyebrow { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 14px; }
  .content-list-text h2 { font-size: 24px; margin-bottom: 16px; }
  .content-list-text p { font-size: 15px; }
  .content-list-text { padding-top: 0; }

  /* ---- Trust strip (page-level stats) ---- */
  .trust-strip { padding: 48px 24px; }
  .trust-strip-container { gap: 28px 20px; }
  .trust-strip-value { font-size: 28px; }
  .trust-strip-label { font-size: 10px; letter-spacing: 0.14em; }

  /* ---- Testimonials ---- */
  .testimonial-block { padding: var(--section-pad-y) 20px; }
  .testimonial-card { padding: 32px 24px; }
  .testimonial-quote-mark { font-size: 44px; top: 18px; left: 24px; }
  .testimonial-text { font-size: 17px; line-height: 1.55; margin-top: 28px; margin-bottom: 22px; }
  .testimonial-attribution { font-size: 10px; letter-spacing: 0.12em; line-height: 1.7; }

  /* ---- Founder note ---- */
  .founder-note { padding: var(--section-pad-y-tight) 24px; }
  .founder-note-eyebrow { font-size: 10px; margin-bottom: 24px; }
  .founder-note-quote { font-size: 22px; line-height: 1.45; margin-bottom: 28px; }
  .founder-note-name { font-size: 11px; }

  /* ---- Insights (listing page) ---- */
  .insights-featured { padding: var(--section-pad-y-tight) 24px; }
  .insights-featured-card { gap: 24px; }
  .insights-featured-content h2 { font-size: 26px; }
  .insights-featured-content p { font-size: 15px; margin-bottom: 22px; }
  .insights-grid-section { padding: var(--section-pad-y) 20px; }
  .insights-grid { gap: 36px; }
  .insight-card-image { margin-bottom: 18px; }
  .insight-card h3 { font-size: 20px; margin-bottom: 10px; }
  .insight-card p { font-size: 14px; margin-bottom: 14px; }
  .insight-card-meta { font-size: 10px; letter-spacing: 0.14em; margin-bottom: 10px; }

  /* ---- Insights teaser (homepage) ---- */
  .insights-teaser-grid { gap: 32px; }

  /* ---- Long-form content pages ---- */
  .content-block { margin-bottom: 48px; }
  .content-block h2 { font-size: 24px; margin-bottom: 14px; }
  .content-block p { font-size: 16px; line-height: 1.8; }

  /* ---- Numbered principles (article pages) ---- */
  .principle { grid-template-columns: 52px 1fr; gap: 20px; padding: 40px 0; }
  .principle-number { font-size: 36px; }
  .principle h3 { font-size: 21px; margin-bottom: 12px; }
  .principle p { font-size: 15px; line-height: 1.75; }

  /* ---- Timeline (about page) ---- */
  .timeline { padding: 24px 0; }
  .timeline::before { left: 48px; }
  .timeline-entry { grid-template-columns: 48px 1fr; gap: 18px; padding: 24px 0; }
  .timeline-year { font-size: 17px; padding-right: 8px; }
  .timeline-entry::before { left: 46px; top: 34px; width: 7px; height: 7px; }
  .timeline-text h4 { font-size: 19px; }
  .timeline-text p { font-size: 15px; line-height: 1.7; }

  /* ---- Team grid: single-column rows on phones; the 2-up grid went
     ragged because bios differ in length ---- */
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-member {
    display: grid;
    grid-template-columns: 92px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 20px;
    align-items: start;
  }
  .team-photo {
    grid-row: 1 / span 3;
    width: 92px;
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
  }
  .team-photo-placeholder { font-size: 28px; }
  .team-name { font-size: 18px; margin-bottom: 2px; }
  .team-role { font-size: 10px; letter-spacing: 0.12em; margin-bottom: 10px; }
  .team-bio { font-size: 14px; line-height: 1.65; }

  /* ---- Vignette cards ---- */
  .vignette-grid { gap: 20px; }
  .vignette-card { padding: 32px 24px; }
  .vignette-card h3 { font-size: 20px; margin-bottom: 12px; }
  .vignette-card p { font-size: 14px; line-height: 1.75; }

  /* ---- Callout boxes ---- */
  .callout-muted { padding: var(--section-pad-y-tight) 20px; }
  .callout-muted-content { padding: 36px 24px; }
  .callout-muted h3 { font-size: 22px; margin-bottom: 16px; }
  .callout-muted p { font-size: 15px; }

  /* ---- Contact page ---- */
  .contact-section { padding: var(--section-pad-y) 20px; }
  .contact-grid { gap: 40px; }
  .contact-info h2 { font-size: 28px; margin-bottom: 18px; }
  .contact-info p { font-size: 15px; margin-bottom: 24px; }
  .contact-detail { padding: 16px 0; }
  .contact-detail-value { font-size: 16px; }
  .contact-form { padding: 32px 22px; }
  .form-row { margin-bottom: 20px; }
  .form-input,
  .form-textarea { padding: 13px 14px; font-size: 16px; }
  .contact-form .button { width: 100%; padding: 15px 24px; }
  .form-success { padding: 40px 24px; }

  /* ---- Portal (login) ---- */
  .portal-section { padding: 100px 20px; }
  .portal-card { padding: 40px 24px; }
  .portal-card h1 { font-size: 28px; }

  /* ---- Closing CTA ---- */
  .closing-cta { padding: var(--section-pad-y-tight) 24px; }
  .closing-cta-text { font-size: 22px; margin-bottom: 24px; }
  .closing-cta .button { width: 100%; }

  /* ---- Gold CTA links ---- */
  .gold-cta { font-size: 12px; letter-spacing: 0.1em; line-height: 1.8; }

  /* ---- Footer ---- */
  .footer { padding: 48px 20px 28px; }
  .footer-grid { gap: 28px; padding-bottom: 32px; }
  .footer-brand-mark { font-size: 14px; margin-bottom: 18px; }
  .footer-brand-mark svg { width: 24px; height: 24px; }
  .footer-tagline { font-size: 15px; margin-bottom: 20px; }
  .footer-heading { font-size: 10px; margin-bottom: 14px; }
  .footer-list a { font-size: 13px; }
  .footer-list li { margin-bottom: 10px; }
  .footer-regulatory { font-size: 10px; padding: 24px 0; }
  .footer-bottom { font-size: 11px; padding-top: 18px; }
  .footer-bottom-links { gap: 20px; }
}

/* ---- Tiny screens (≤ 380px) ---- */
@media (max-width: 380px) {
  .hero-home h1 { font-size: 36px; letter-spacing: 0.05em; }
  .hero-sub h1 { font-size: 28px; }
  .block-text h2 { font-size: 22px; }
  .tab-button { padding: 9px 12px; font-size: 10px; }
  .team-bio { display: none; }
}

/* Consistent, subtle card hover elevation */
.insight-card:hover {
  transform: translateY(-4px);
}

.content-list-item {
  transition: transform var(--t-base) var(--ease-out-soft);
}

/* ---------- Vignettes (illustrative situations) ---------- */
.vignette-intro {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.vignette-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.22;
  color: var(--cw-green);
  margin-bottom: 14px;
}

.vignette-intro p {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--cw-text-soft);
  font-style: italic;
}

.vignette-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.vignette-card {
  background: var(--cw-white);
  border: 1px solid var(--cw-divider);
  border-radius: var(--r-image);
  padding: 44px 36px;
  transition: transform var(--t-base) var(--ease-out-soft),
              box-shadow var(--t-base) var(--ease-out-soft);
}

.vignette-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 42, 29, 0.06);
}

.vignette-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--cw-green);
  margin-bottom: 14px;
}

.vignette-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--cw-text-muted);
}

@media (max-width: 868px) {
  .vignette-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Form validation and success state ---------- */
.form-input.invalid,
.form-textarea.invalid {
  border-color: #8A3B2E;
}

.form-error {
  font-size: 13px;
  line-height: 1.5;
  color: #8A3B2E;
  margin-top: 6px;
}

.form-success {
  background: var(--cw-ivory-light);
  border: 1px solid var(--cw-divider);
  border-radius: var(--r-image);
  padding: 56px 48px;
  text-align: center;
}

.form-success h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  color: var(--cw-green);
  margin-bottom: 14px;
}

.form-success p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--cw-text-muted);
}

/* ── Insights archive ─────────────────────────────── */
.archive-year + .archive-year { margin-top: 160px; padding-top: 96px; border-top: 1px solid var(--cw-muted-line); }
.archive-year-heading { font-family: var(--font-serif); font-size: 40px; font-weight: 500; color: var(--cw-green); margin-bottom: 64px; }
@media (max-width: 640px) {
  .archive-year + .archive-year { margin-top: 96px; padding-top: 56px; }
  .archive-year-heading { font-size: 30px; margin-bottom: 40px; }
}
