
:root {
  --header-h: 25px; /* default desktop */

  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --chip: #f1f5f9;
  --container: 1120px;
  --gold: #C4A454;
  --black: #0A0A0A;
}
* { box-sizing: border-box; }
html, body {
  padding-top: var(--header-h); height: 100%; }
body {
  padding-top: var(--header-h);
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Times, Georgia, serif;
  color: var(--ink);
  background: linear-gradient(#fff, #f8fafc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.chip { display:inline-block; padding:6px 10px; border:1px solid var(--line); background:var(--chip); border-radius:999px; font-size:12px; letter-spacing:.02em; }
.section { padding: 72px 0; }
.h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.lead { font-size: 18px; max-width: 60ch; }
.btn { display:inline-block; padding: 12px 18px; border:1px solid var(--ink); border-radius: 999px; font-weight: 600; }

/* Header */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1200; background: var(--black); border-bottom:1px solid #111; }
.nav-inner { display:flex; align-items:center; justify-content:space-between; gap: 16px; padding: 22px 0; }
.brand { display:flex; gap:12px; align-items:center; font-weight: 700; letter-spacing:.02em; }
.brand img.logo { height: 88px; display:block; filter: drop-shadow(0 0 0.5px rgba(0,0,0,0.6)); }
.menu { display:flex; gap:22px; font-size: 15px; }
.menu a { color:#fff; opacity:.9; }
.menu a:hover { opacity:1; text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding: 110px 0 92px; background: #0A0A0A; color:#fff; }
.hero .muted { color: #cbd5e1; }
.hero .btn { border-color:#fff; color:#fff; }
.hero .chip { color:#fff; border-color: var(--gold); background: transparent; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-art { border:1px solid #1f2937; border-radius: 16px; background: #0f172a; padding: 18px; }
.tiles { display:grid; grid-template-columns: repeat(3,1fr); gap:12px; margin-top:12px; }
.tile { border:1px solid #1f2937; border-radius: 12px; padding: 14px; text-align:center; background:#0b1220; font-size:12px; color:#cbd5e1; }

/* Cards and grids */
.grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.card { border:1px solid var(--line); background:#fff; border-radius: 14px; padding:18px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15, 23, 42, .08); }
.card h3 { margin:0 0 4px; font-size:18px; }
.tag { display:inline-block; font-size:11px; letter-spacing:.04em; text-transform:uppercase; background:#0f172a; color:#fff; padding:4px 8px; border-radius:999px; }

/* About & legal */
.about { background: linear-gradient(#fff, #f1f5f9); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
details { border:1px solid var(--line); background:#fff; border-radius:12px; padding: 14px 16px; }
summary { cursor:pointer; font-weight:700; }
details + details { margin-top:12px; }

/* Footer */
footer { border-top:1px solid var(--line); background:#fff; }
.foot { display:grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; font-size:14px; }
.small { font-size:12px; color: var(--muted); }

/* Article page */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.meta { font-size: 13px; color: var(--muted); margin-top:8px; }
.pull { border-left:4px solid var(--gold); padding-left:12px; font-style:italic; color:#111827; }
.prose p { margin: 0 0 14px; }
.rel { margin-top: 24px; }
.rel a { color: #0f172a; text-decoration: underline; }

/* Mobile / Tablet tweaks */
@media (max-width: 900px) {
  /* safer gutters & bigger header/footer padding */
  .container { padding-left: 28px; padding-right: 28px; }
  .nav-inner { display:flex; align-items:center; justify-content:space-between; gap: 16px; padding: 22px 0; }
  footer .section { padding-top: 48px !important; padding-bottom: 48px !important; }

  /* hero stacking */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { margin-top: 16px; }

  /* investments as 1 column */
  .grid { grid-template-columns: 1fr; }
  .brand img.logo { height: 88px; display:block; filter: drop-shadow(0 0 0.5px rgba(0,0,0,0.6)); }
}

/* --- Mobile nav (CSS-only hamburger) --- */
#nav-toggle { position: absolute; width: 1px; height: 1px; clip: rect(1px,1px,1px,1px); overflow: hidden; }
.hamburger { display: none; cursor: pointer; padding: 14px 16px; border:1px solid #1f2937; border-radius:12px; }
.hamburger span { display:block; width:22px; height:2px; background:#fff; margin:5px 0; transition: transform .2s ease, opacity .2s ease; }

.menu-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 78%;
  max-width: 320px; background: #0A0A0A; color: #fff;
  border-left: 1px solid #1f2937; transform: translateX(100%);
  transition: transform .25s ease; padding: 18px;
  display: flex; flex-direction: column; gap: 14px; z-index: 2000;
}
.menu-panel a { color:#fff; opacity:.95; font-size: 16px; padding: 14px 0; border-bottom:1px solid #111; }
.menu-panel a:last-child { border-bottom: 0; }
.menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 2000;
}
#nav-toggle:checked ~ .menu-overlay { opacity: 1; pointer-events: auto; }
#nav-toggle:checked ~ .menu-panel { transform: translateX(0); }

#nav-toggle:checked + label.hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle:checked + label.hamburger span:nth-child(2) { opacity: 0; }
#nav-toggle:checked + label.hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu { display: none; }
  .hamburger { display: block; }
}
@media (min-width: 901px) {
  .menu-panel, .menu-overlay { display: none; }
}

/* Close button inside mobile panel */
.close-btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #1f2937;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}
.close-btn:focus { outline: 2px solid #C4A454; outline-offset: 2px; }
.close-icon {
  width: 16px; height: 16px; position: relative;
}
.close-icon::before, .close-icon::after {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 2px; background: #fff;
}
.close-icon::before { transform: rotate(45deg); }
.close-icon::after  { transform: rotate(-45deg); }


/* v18: Smooth scroll & sticky header refinements */
html { scroll-behavior: smooth; }

/* Offset so anchored sections don't hide under the sticky header */
#investments, #about, #legal { scroll-margin-top: calc(var(--header-h) + 10px); }

/* Stronger sticky behavior (header is already sticky); keep it above overlays */
.nav { z-index: 1000; }
.scrolled .nav { box-shadow: 0 10px 24px rgba(0,0,0,.12); }


/* v19: Fixed header height variables */
@media (max-width: 900px) {
  :root { --header-h: 25px; }
}


@media (max-width: 900px) {
  :root { --header-h: 25px; }
}


/* v26: About grid, footer restructure, highlights mobile */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; } /* 1x1 on mobile */
}

/* Footer restructure */
.footer-wrap { display: grid; gap: 16px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-top .block-title { font-weight: 700; margin-bottom: 6px; }
.footer-bottom { margin-top: 6px; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 14px; }
}

/* Ensure highlights tiles are 3x2 on mobile */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
}

/* v27: investment cards */
.card { background: #f8fafc; border-color: #e5e7eb; }
.card .tag { margin-top: 8px; }

/* v29: Highlights 2x3 on mobile (two columns) */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

/* v29: Extend comfy gutters/padding up to just-below-desktop */
@media (max-width: 1100px) {
  .container { padding-left: 28px; padding-right: 28px; }
  .nav-inner { padding-top: 32px; padding-bottom: 32px; }
  footer .section { padding-top: 48px !important; padding-bottom: 48px !important; }
}
