:root {
  --blue: #1A3D5A;
  --warm-white: #F6F4EF;
  --slate: #4A4F55;
  --border: rgba(74, 79, 85, 0.22);
  --border-soft: rgba(74, 79, 85, 0.14);
  --card-bg: rgba(246, 244, 239, 0.70);
  --max: 1710px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--slate);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: clamp(28px, 3vw, 54px);
  left: clamp(28px, 5vw, 68px);
}

.logo-link { display: block; }

.logo {
  display: block;
  width: clamp(190px, 16vw, 275px);
  height: auto;
}

.hero {
  position: relative;
  min-height: clamp(620px, 67vw, 780px);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(130px, 13vw, 220px) clamp(32px, 6vw, 96px) clamp(120px, 13vw, 210px);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(246,244,239,0.96) 0%, rgba(246,244,239,0.76) 30%, rgba(246,244,239,0.26) 62%, rgba(246,244,239,0.10) 100%),
    linear-gradient(180deg, rgba(246,244,239,0.16) 0%, rgba(246,244,239,0.03) 46%, var(--warm-white) 98%),
    url("assets/lac-leman-hero.jpg");
  background-size: cover;
  background-position: center right;
}

/* Fallback when no hero image is uploaded yet. Remove this gradient once assets/lac-leman-hero.jpg is added. */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 34%, rgba(26,61,90,0.22), transparent 34%),
    radial-gradient(circle at 58% 54%, rgba(255,255,255,0.72), transparent 30%),
    linear-gradient(135deg, #eef2f2 0%, #dce6ea 36%, #f6f4ef 72%, #f6f4ef 100%);
  opacity: 0.65;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 220px;
  background: linear-gradient(180deg, rgba(246,244,239,0), var(--warm-white) 72%);
  z-index: -1;
  pointer-events: none;
}

.hero-copy {
  width: min(740px, 100%);
  margin-top: clamp(44px, 5vw, 76px);
}

h1, h2, h3 {
  margin: 0;
  color: var(--blue);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 830px;
  font-size: clamp(64px, 6vw, 116px);
  line-height: 0.96;
}

h1 em {
  font-style: italic;
  font-weight: 500;
}

.intro {
  max-width: 620px;
  margin: clamp(30px, 2.8vw, 42px) 0 0;
  color: #24364a;
  font-size: clamp(18px, 1.2vw, 22px);
  line-height: 1.65;
  font-weight: 400;
}

.hero-note {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(74, 79, 85, 0.86);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(17px, 1.05vw, 20px);
  line-height: 1.55;
}

.portfolio-section {
  width: min(var(--max), calc(100% - clamp(48px, 9vw, 160px)));
  margin: 0 auto;
}

.investment-section {
  margin-top: clamp(46px, 5vw, 74px);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3vw, 54px);
  margin-bottom: clamp(22px, 2.4vw, 34px);
}

.section-heading h2 {
  flex: 0 0 auto;
  font-size: clamp(32px, 2.6vw, 44px);
  line-height: 1.1;
}

.section-heading span {
  height: 1px;
  flex: 1 1 auto;
  background: rgba(74, 79, 85, 0.22);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 1.65vw, 32px);
}

.portfolio-card {
  min-height: clamp(148px, 10.5vw, 190px);
  padding: clamp(22px, 1.8vw, 32px);
  border: 1px solid var(--border-soft);
  background: rgba(246, 244, 239, 0.54);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  border-color: rgba(26, 61, 90, 0.38);
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
  outline: none;
}

.portfolio-card h3 {
  font-size: clamp(22px, 1.45vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.portfolio-card p {
  min-height: 42px;
  margin: 13px 0 18px;
  color: var(--slate);
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.42;
}

.card-rule {
  width: 100%;
  height: 1px;
  margin: 0 0 16px;
  background: rgba(74, 79, 85, 0.14);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 13px 4px;
  margin-right: 8px;
  border: 1px solid rgba(74, 79, 85, 0.48);
  color: var(--slate);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portfolio-note {
  margin: clamp(18px, 2vw, 30px) 0 0 auto;
  max-width: 520px;
  text-align: right;
  color: var(--slate);
  font-size: 15px;
}

.site-footer {
  width: min(var(--max), calc(100% - clamp(48px, 9vw, 160px)));
  margin: clamp(44px, 5vw, 78px) auto 0;
  padding: clamp(22px, 2.2vw, 34px) 0 clamp(34px, 3vw, 52px);
  border-top: 1px solid rgba(74, 79, 85, 0.24);
  display: flex;
  justify-content: space-between;
  gap: 28px;
  color: var(--slate);
  font-size: 15px;
}

.site-footer p { margin: 0; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-links span {
  width: 1px;
  height: 20px;
  background: rgba(74, 79, 85, 0.35);
}

.footer-links a:hover {
  color: var(--blue);
}

@media (max-width: 1180px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 690px; }
}

@media (max-width: 760px) {
  .site-header {
    top: 24px;
    left: 24px;
  }

  .logo { width: 184px; }

  .hero {
    min-height: 640px;
    align-items: flex-start;
    padding: 128px 24px 96px;
  }

  .hero-copy { margin-top: 52px; }

  h1 {
    font-size: clamp(54px, 15vw, 76px);
    max-width: 460px;
  }

  .intro {
    max-width: 420px;
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-note { font-size: 16px; }

  .portfolio-section,
  .site-footer {
    width: calc(100% - 44px);
  }

  .section-heading {
    display: block;
    margin-bottom: 22px;
  }

  .section-heading h2 { font-size: 31px; }

  .section-heading span {
    display: block;
    margin-top: 16px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .portfolio-card {
    min-height: 156px;
    padding: 18px;
  }

  .portfolio-card h3 { font-size: 21px; }
  .portfolio-card p { font-size: 13px; min-height: 54px; }

  .role-badge {
    font-size: 10px;
    padding: 5px 9px 4px;
    min-height: 26px;
  }

  .portfolio-note {
    font-size: 13px;
    text-align: left;
    max-width: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .card-grid { grid-template-columns: 1fr; }
}


/* =========================
   V7 LOGO FIX ONLY
   Uses supplied logo.png and overrides earlier duplicate rules
   ========================= */

.site-header {
  padding-top: 48px !important;
  padding-left: clamp(42px, 5vw, 76px) !important;
}

.logo-link {
  display: inline-flex !important;
  align-items: center !important;
}

.logo {
  display: block !important;
  width: clamp(280px, 20vw, 360px) !important;
  max-width: 360px !important;
  height: auto !important;
}

@media (max-width: 900px) {
  .logo {
    width: clamp(220px, 42vw, 280px) !important;
    max-width: 280px !important;
  }
}

@media (max-width: 520px) {
  .logo {
    width: 200px !important;
    max-width: 200px !important;
  }
}


/* =========================
   V8 FINAL HERO IMAGE + LOGO ONLY
   Base: v7
   Changes:
   - Larger supplied logo
   - Lavaux / Lac Léman hero image
   - Soft fade into Warm Ice White
   ========================= */

.site-header {
  position: absolute !important;
  z-index: 20 !important;
  top: 0 !important;
  left: 0 !important;
  padding-top: 48px !important;
  padding-left: clamp(44px, 5vw, 78px) !important;
}

.logo-link {
  display: inline-flex !important;
  align-items: center !important;
}

.logo {
  display: block !important;
  width: clamp(340px, 23vw, 420px) !important;
  max-width: 420px !important;
  height: auto !important;
}

.hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: 720px !important;
  padding-top: 190px !important;
  background:
    linear-gradient(
      90deg,
      rgba(246, 244, 239, 0.96) 0%,
      rgba(246, 244, 239, 0.86) 28%,
      rgba(246, 244, 239, 0.46) 55%,
      rgba(246, 244, 239, 0.16) 100%
    ),
    url("assets/lac-leman-hero.jpg") center top / cover no-repeat !important;
}

.hero::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 240px !important;
  pointer-events: none !important;
  background: linear-gradient(
    to bottom,
    rgba(246, 244, 239, 0) 0%,
    rgba(246, 244, 239, 0.82) 60%,
    rgba(246, 244, 239, 1) 100%
  ) !important;
}

.hero-copy {
  position: relative !important;
  z-index: 2 !important;
}

@media (max-width: 900px) {
  .site-header {
    padding-top: 32px !important;
    padding-left: 28px !important;
  }

  .logo {
    width: clamp(240px, 48vw, 300px) !important;
    max-width: 300px !important;
  }

  .hero {
    min-height: 670px !important;
    padding-top: 150px !important;
    background-position: 58% top !important;
  }
}

@media (max-width: 520px) {
  .logo {
    width: 220px !important;
    max-width: 220px !important;
  }

  .hero {
    min-height: 620px !important;
    padding-top: 132px !important;
    background-position: 62% top !important;
  }
}


/* =========================
   V9 HERO IMAGE VISIBILITY FIX
   Base: v8
   Changes:
   - Reduce hero overlay
   - Shorten bottom fade
   - Make Lac Léman / Lavaux image more visible
   ========================= */

.hero {
  background:
    linear-gradient(
      90deg,
      rgba(246, 244, 239, 0.78) 0%,
      rgba(246, 244, 239, 0.46) 28%,
      rgba(246, 244, 239, 0.12) 55%,
      rgba(246, 244, 239, 0.00) 100%
    ),
    url("assets/lac-leman-hero.jpg") center top / cover no-repeat !important;
}

.hero::after {
  height: 135px !important;
  background: linear-gradient(
    to bottom,
    rgba(246, 244, 239, 0) 0%,
    rgba(246, 244, 239, 0.58) 66%,
    rgba(246, 244, 239, 1) 100%
  ) !important;
}

@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(
        90deg,
        rgba(246, 244, 239, 0.82) 0%,
        rgba(246, 244, 239, 0.56) 42%,
        rgba(246, 244, 239, 0.18) 100%
      ),
      url("assets/lac-leman-hero.jpg") 58% top / cover no-repeat !important;
  }

  .hero::after {
    height: 120px !important;
  }
}

@media (max-width: 520px) {
  .hero {
    background:
      linear-gradient(
        90deg,
        rgba(246, 244, 239, 0.86) 0%,
        rgba(246, 244, 239, 0.64) 48%,
        rgba(246, 244, 239, 0.28) 100%
      ),
      url("assets/lac-leman-hero.jpg") 62% top / cover no-repeat !important;
  }

  .hero::after {
    height: 105px !important;
  }
}


/* =========================
   V10 HERO IMAGE STRONGER VISIBILITY
   Base: v9
   Changes:
   - Image is now the dominant hero element
   - Overlay kept mainly to the left text area
   - Bottom fade reduced significantly
   ========================= */

.hero {
  background:
    linear-gradient(
      90deg,
      rgba(246, 244, 239, 0.64) 0%,
      rgba(246, 244, 239, 0.38) 25%,
      rgba(246, 244, 239, 0.08) 50%,
      rgba(246, 244, 239, 0.00) 100%
    ),
    url("assets/lac-leman-hero.jpg") center top / cover no-repeat !important;
}

.hero::after {
  height: 82px !important;
  background: linear-gradient(
    to bottom,
    rgba(246, 244, 239, 0) 0%,
    rgba(246, 244, 239, 0.34) 58%,
    rgba(246, 244, 239, 1) 100%
  ) !important;
}

@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(
        90deg,
        rgba(246, 244, 239, 0.76) 0%,
        rgba(246, 244, 239, 0.48) 42%,
        rgba(246, 244, 239, 0.14) 100%
      ),
      url("assets/lac-leman-hero.jpg") 58% top / cover no-repeat !important;
  }

  .hero::after {
    height: 78px !important;
  }
}

@media (max-width: 520px) {
  .hero {
    background:
      linear-gradient(
        90deg,
        rgba(246, 244, 239, 0.82) 0%,
        rgba(246, 244, 239, 0.58) 50%,
        rgba(246, 244, 239, 0.20) 100%
      ),
      url("assets/lac-leman-hero.jpg") 62% top / cover no-repeat !important;
  }

  .hero::after {
    height: 70px !important;
  }
}


/* =========================
   V11 DEFINITIVE HERO IMAGE FIX
   This must be the final override in the file.
   ========================= */

.hero-bg {
  display: none !important;
}

.hero {
  position: relative !important;
  overflow: hidden !important;
  background-image:
    linear-gradient(
      90deg,
      rgba(246, 244, 239, 0.42) 0%,
      rgba(246, 244, 239, 0.20) 28%,
      rgba(246, 244, 239, 0.03) 50%,
      rgba(246, 244, 239, 0.00) 100%
    ),
    url("assets/lac-leman-hero.jpg") !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}

.hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background: linear-gradient(
    180deg,
    rgba(246, 244, 239, 0.00) 0%,
    rgba(246, 244, 239, 0.00) 72%,
    rgba(246, 244, 239, 0.82) 94%,
    rgba(246, 244, 239, 1.00) 100%
  ) !important;
}

.hero::after {
  display: none !important;
}

.hero-copy {
  position: relative !important;
  z-index: 2 !important;
}

/* Put a very subtle local wash behind copy only, not across whole image */
.hero-copy::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  top: -44px !important;
  left: -44px !important;
  width: min(760px, calc(100% + 88px)) !important;
  height: calc(100% + 88px) !important;
  background: radial-gradient(
    ellipse at left center,
    rgba(246, 244, 239, 0.56) 0%,
    rgba(246, 244, 239, 0.34) 44%,
    rgba(246, 244, 239, 0.00) 76%
  ) !important;
}

@media (max-width: 900px) {
  .hero {
    background-image:
      linear-gradient(
        90deg,
        rgba(246, 244, 239, 0.58) 0%,
        rgba(246, 244, 239, 0.32) 48%,
        rgba(246, 244, 239, 0.08) 100%
      ),
      url("assets/lac-leman-hero.jpg") !important;
    background-position: 58% top !important;
  }
}

@media (max-width: 520px) {
  .hero {
    background-image:
      linear-gradient(
        90deg,
        rgba(246, 244, 239, 0.70) 0%,
        rgba(246, 244, 239, 0.45) 50%,
        rgba(246, 244, 239, 0.12) 100%
      ),
      url("assets/lac-leman-hero.jpg") !important;
    background-position: 62% top !important;
  }
}


/* =========================
   V12 HIERARCHY REBALANCE
   - Larger brand
   - Smaller headline
   ========================= */

.logo{
    width: clamp(360px, 25vw, 460px) !important;
    max-width: 460px !important;
}

.hero h1,
.hero-copy h1{
    font-size: clamp(72px, 5.6vw, 96px) !important;
    line-height: 0.95 !important;
}

@media (max-width: 900px){
    .logo{
        width: clamp(260px, 46vw, 340px) !important;
        max-width: 340px !important;
    }

    .hero h1,
    .hero-copy h1{
        font-size: clamp(58px, 9vw, 78px) !important;
    }
}


/* =========================
   V18 FINAL POLISH TEST
   - Hero image changed to Stefano's Mont Blanc image
   - Headline changed to upright style in HTML
   - Tagline removed in HTML
   - No card/footer/layout changes
   Crop used: left=0, top=163, right=2048, bottom=1315
   ========================= */


/* =========================
   V19 HERO CROP RETRY
   Base: v18
   - Keeps Stefano's Mont Blanc image
   - Moves crop lower so mountain/peak detail is visible
   - Keeps headline upright and tagline removed
   - No card/footer/content changes
   ========================= */

.hero {
  background-position: center bottom !important;
}

.hero::before {
  background: linear-gradient(
    180deg,
    rgba(246, 244, 239, 0.00) 0%,
    rgba(246, 244, 239, 0.00) 68%,
    rgba(246, 244, 239, 0.62) 92%,
    rgba(246, 244, 239, 1.00) 100%
  ) !important;
}

.hero-copy::before {
  background: radial-gradient(
    ellipse at left center,
    rgba(246, 244, 239, 0.46) 0%,
    rgba(246, 244, 239, 0.26) 42%,
    rgba(246, 244, 239, 0.00) 76%
  ) !important;
}

@media (max-width: 900px) {
  .hero {
    background-position: 60% bottom !important;
  }
}

@media (max-width: 520px) {
  .hero {
    background-position: 64% bottom !important;
  }
}


/* =========================
   V20 HERO IMAGE UPDATE
   Uses uploaded leman-mountians-v1.jpg as the hero image.
   No layout, card, footer or link changes.
   ========================= */

.hero {
  background-position: center center !important;
}

.hero h1,
.hero-copy h1 {
  max-width: none !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .hero {
    background-position: 58% center !important;
  }

  .hero h1,
  .hero-copy h1 {
    white-space: normal !important;
  }
}


/* =========================
   FINAL BUILD HERO UPDATE
   - Uses Stefano's original Mont Blanc image
   - Text remains left
   - Mont Blanc detail visible on the right
   - Slight fade on left for readability
   - Headline upright and one line on desktop
   - Tagline removed in HTML
   ========================= */

.hero {
  background-image:
    linear-gradient(
      90deg,
      rgba(246, 244, 239, 0.22) 0%,
      rgba(246, 244, 239, 0.10) 32%,
      rgba(246, 244, 239, 0.00) 58%
    ),
    url("assets/lac-leman-hero.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.hero-copy::before {
  background: radial-gradient(
    ellipse at left center,
    rgba(246, 244, 239, 0.38) 0%,
    rgba(246, 244, 239, 0.22) 42%,
    rgba(246, 244, 239, 0.00) 76%
  ) !important;
}

.hero h1,
.hero-copy h1 {
  max-width: none !important;
  white-space: nowrap !important;
  font-style: normal !important;
}

.hero h1 em,
.hero-copy h1 em {
  font-style: normal !important;
}

@media (max-width: 900px) {
  .hero {
    background-position: 60% center !important;
  }

  .hero h1,
  .hero-copy h1 {
    white-space: normal !important;
  }
}

@media (max-width: 520px) {
  .hero {
    background-position: 68% center !important;
  }
}


/* Production final fixed tweaks */
.hero {
  background-position: center center !important;
}

/* With role badges removed, keep card spacing clean */
.portfolio-card .card-rule {
  margin-top: auto;
  margin-bottom: 0;
}

.governance-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .governance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  .governance-grid {
    grid-template-columns: 1fr;
  }
}
