/* Punta Rasa Holdings — refined light / cream family-office theme */
:root {
  --bg: #FAF9F7;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --border: rgba(11, 18, 32, 0.08);
  --border-strong: rgba(196, 165, 116, 0.45);
  --text: #0B1220;
  --text-muted: #4A5568;
  --text-soft: #6B7280;
  --gold: #C4A574;
  --gold-soft: rgba(196, 165, 116, 0.16);
  --cream: #0B1220;
  --focus: #C4A574;
  --shadow-card: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px rgba(11, 18, 32, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(11, 18, 32, 0.06), 0 16px 40px rgba(11, 18, 32, 0.08);
  --radius: 12px;
  --header-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 165, 116, 0.09), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 10%, rgba(11, 18, 32, 0.03), transparent 50%);
  z-index: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #0B1220;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header — sticky, readable on light */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  background: rgba(250, 249, 247, 0.88);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

/* Header mark — compact square icon */
.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: transparent;
  mix-blend-mode: multiply;
}

/* Hero — prominent horizontal lockup (name is in the image) */
.hero-logo {
  display: block;
  width: min(560px, 88vw);
  height: auto;
  max-height: none;
  margin: 0 auto 0.5rem;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
  border-radius: 0;
}

.brand-wordmark {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--gold);
  outline: none;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(4.5rem, 12vw, 7.5rem) 1.5rem clamp(3rem, 6vw, 4rem);
  text-align: center;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.accent-line {
  width: 48px;
  height: 1px;
  margin: 1.5rem auto;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(196, 165, 116, 0.35);
}

.hero-copy {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 36em;
  margin-inline: auto;
}

/* Themes — filter chips */
.themes {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem 3.5rem;
}

.themes-thesis {
  margin: 0 auto 0.85rem;
  max-width: 880px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.themes-row {
  margin: 0 auto;
  padding: 0.85rem 1rem;
  max-width: 960px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.theme-filter {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.4rem 0.75rem 0.45rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.theme-filter:hover {
  color: var(--gold);
  background: var(--gold-soft);
}

.theme-filter:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.theme-filter[aria-pressed="true"] {
  color: #8A7048;
  background: var(--gold-soft);
  border-color: rgba(196, 165, 116, 0.55);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.card.is-filtered-out {
  display: none;
}

.portfolio.is-view-hidden {
  display: none;
}

.theme-filter--funds {
  margin-left: 0.35rem;
}

.theme-filter--funds::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin-right: 0.7rem;
  vertical-align: -0.1em;
  background: var(--border);
}

/* Portfolio */
.portfolio {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem 5rem;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Cards — white with subtle border/shadow */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 112px;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  outline: none;
}

.card:hover,
.card:focus-within {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.card-logo-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F3F1ED;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.card-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.card-monogram {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold);
  line-height: 1;
  user-select: none;
}

.card-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.35;
}

.theme-chip {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A7048;
  background: var(--gold-soft);
  border-radius: 999px;
  white-space: nowrap;
}

.card-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition:
    grid-template-rows 0.35s var(--ease),
    opacity 0.3s var(--ease),
    margin-top 0.35s var(--ease);
}

.card-reveal-inner {
  overflow: hidden;
  min-height: 0;
}

.card:hover .card-reveal,
.card:focus-within .card-reveal,
.card.is-open .card-reveal {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.85rem;
}

.card-desc {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #8A7048;
  transition: opacity 0.2s var(--ease);
}

.card-link:hover,
.card-link:focus-visible {
  opacity: 0.85;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.card-meta {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.card--pending .card-name {
  color: var(--text-muted);
}


.portfolio--funds {
  padding-top: 0.5rem;
}

.portfolio + .portfolio--funds .section-header {
  margin-top: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.footer-inner p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .card-reveal,
  .nav a,
  .theme-filter {
    transition: none;
  }

  .card:hover,
  .card:focus-within {
    transform: none;
  }
}

@media (max-width: 560px) {
  .brand-wordmark {
    font-size: 0.85rem;
  }

  .nav {
    gap: 1.1rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
