/* --------------------------------------------------------------
   Jiwani Holdings · Design system v4
   Modern consumer brand. Pure white + electric violet + black.
   Bricolage Grotesque display + Inter Tight body.
-------------------------------------------------------------- */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F5F0;
  --bg-card: #FFFFFF;
  --bg-violet-light: #F3ECFF;
  --bg-violet: #7C3AED;
  --ink: #0A0A0A;
  --ink-soft: #2A2A2A;
  --muted: #707070;
  --rule: #E5E5E5;
  --rule-strong: #0A0A0A;
  --rule-violet: #C9B3F5;
  --accent: #7C3AED;
  --accent-deep: #5B21B6;
  --accent-soft: #A78BFA;
  --pop-yellow: #FACC15;
  --pop-lime: #A3E635;

  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --bounce-soft: cubic-bezier(0.45, 1.25, 0.55, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --max: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Type ---------------------------------------------------- */

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
}

h1 {
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  font-variation-settings: "opsz" 96, "wdth" 92, "wght" 700;
}

h2 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 700;
  font-variation-settings: "opsz" 72, "wdth" 95, "wght" 700;
}

h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  font-variation-settings: "opsz" 32, "wdth" 100, "wght" 700;
}

h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h5 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 5px 11px;
  background: var(--bg-violet-light);
  border-radius: 999px;
}

.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  max-width: 56ch;
  color: var(--ink-soft);
  line-height: 1.5;
  font-weight: 400;
}

/* --- Nav ---------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "wdth" 92, "wght" 800;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--bounce);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 22px;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  transition: transform 0.35s var(--bounce), background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.nav-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* --- Hero --------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 112px) var(--pad) clamp(72px, 10vw, 144px);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -10%;
  width: clamp(320px, 42vw, 620px);
  height: clamp(320px, 42vw, 620px);
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.18) 0%, rgba(167, 139, 250, 0.06) 50%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: float 14s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -12%;
  width: clamp(260px, 32vw, 440px);
  height: clamp(260px, 32vw, 440px);
  background: radial-gradient(circle at 50% 50%, rgba(250, 204, 21, 0.22) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: float 16s ease-in-out infinite reverse;
}

.hero > * { position: relative; z-index: 1; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -30px) scale(1.06); }
  66% { transform: translate(-20px, 20px) scale(0.96); }
}

.hero-video { width: 100%; }

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-soft);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--accent);
  transition: transform 0.5s var(--bounce), box-shadow 0.5s var(--ease-out);
}
.video-wrap:hover {
  transform: translate(-3px, -3px);
  box-shadow: 14px 14px 0 var(--accent);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  pointer-events: none;
}
.video-placeholder p { color: var(--muted); margin: 0; }

.hero-copy { max-width: 920px; }

.hero-sub {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  color: var(--ink);
  font-weight: 500;
  max-width: 56ch;
  margin: 1.5rem 0 1.75rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  font-family: var(--font-display);
}

/* --- Section scaffolding ----------------------------------- */

section {
  padding: clamp(80px, 10vw, 150px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.section-head {
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 800px;
}

/* --- Thesis ------------------------------------------------ */

.thesis h2 {
  max-width: 22ch;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  border-top: 2px solid var(--ink);
  padding-top: clamp(32px, 5vw, 56px);
}

.thesis-grid h4 { margin-bottom: 14px; color: var(--ink); font-size: 1.1rem; }
.thesis-grid p { color: var(--ink-soft); margin: 0; }

/* --- Funds / Portfolio ------------------------------------- */

.fund-card {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  margin-top: clamp(24px, 3vw, 32px);
  box-shadow: 6px 6px 0 var(--accent);
  transition: transform 0.5s var(--bounce), box-shadow 0.5s var(--ease-out);
}
.fund-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 var(--accent);
}

.fund-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(20px, 2vw, 28px);
  flex-wrap: wrap;
}

.fund-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  padding: 6px 14px;
  background: var(--pop-yellow);
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.fund-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  display: inline-block;
}

.fund-card h3 {
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  letter-spacing: -0.035em;
  font-weight: 700;
  font-variation-settings: "opsz" 72, "wdth" 90, "wght" 700;
  color: var(--ink);
}

.fund-meta {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
  font-family: var(--font-sans);
}

.fund-status {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 18px 0 0;
  line-height: 1.4;
  font-weight: 400;
}

.fund-portfolio { list-style: none; margin: 0; padding: 0; }

.fund-portfolio li {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  cursor: default;
  transition: padding 0.3s var(--bounce-soft);
}
.fund-portfolio li:last-child { border-bottom: 0; }

.brand-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48, "wdth" 95, "wght" 700;
  transition: color 0.3s var(--ease-out), transform 0.4s var(--bounce);
  display: inline-block;
}
.fund-portfolio li:hover .brand-name {
  color: var(--accent);
  transform: translateX(10px);
}
.brand-sector {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-violet-light);
  padding: 4px 10px;
  border-radius: 999px;
}
.brand-desc {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.97rem;
  transition: max-height 0.45s var(--ease-out), opacity 0.3s ease 0.05s, margin-top 0.3s var(--bounce-soft);
}
.fund-portfolio li:hover .brand-desc,
.fund-portfolio li:focus-within .brand-desc {
  max-height: 120px;
  opacity: 1;
  margin-top: 12px;
}

/* --- Sectors ----------------------------------------------- */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  border-top: 2px solid var(--ink);
  padding-top: clamp(40px, 5vw, 64px);
}

.sector-grid article {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.5s var(--bounce), box-shadow 0.5s var(--ease-out), background 0.4s ease;
  box-shadow: 4px 4px 0 var(--ink);
}
.sector-grid article:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--accent);
}

.sector-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.2rem);
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.05em;
  margin-bottom: 6px;
  font-weight: 800;
  font-variation-settings: "opsz" 96, "wdth" 75, "wght" 800;
  display: inline-block;
  transform-origin: left center;
  transition: transform 0.5s var(--bounce);
}
.sector-grid article:hover .sector-num {
  transform: rotate(-6deg) scale(1.1);
}

.sector-grid h3 { color: var(--ink); }
.sector-grid p { color: var(--ink-soft); margin: 0; }

/* --- Approach (operator value) ----------------------------- */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  border-top: 2px solid var(--ink);
  padding-top: clamp(40px, 5vw, 64px);
}
@media (min-width: 1100px) {
  .approach-grid { grid-template-columns: repeat(3, 1fr); }
}

.approach-grid article {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.5s var(--bounce), box-shadow 0.5s var(--ease-out);
  box-shadow: 4px 4px 0 var(--ink);
}
.approach-grid article:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--accent);
}

.approach-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.2rem);
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.05em;
  margin-bottom: 6px;
  font-weight: 800;
  font-variation-settings: "opsz" 96, "wdth" 75, "wght" 800;
  display: inline-block;
  transform-origin: left center;
  transition: transform 0.5s var(--bounce);
}
.approach-grid article:hover .approach-num {
  transform: rotate(-6deg) scale(1.1);
}

.approach-grid h3 { color: var(--ink); }
.approach-grid p { color: var(--ink-soft); margin: 0; }

/* --- Founder ----------------------------------------------- */

.founder {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.founder-photo {
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 6px 6px 0 var(--accent);
  transition: transform 0.6s var(--bounce), box-shadow 0.5s var(--ease-out);
}
.founder-photo:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 12px 12px 0 var(--accent);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.8s var(--ease-out);
}
.founder-photo:hover img { transform: scale(1.05); }

.founder-copy { max-width: 60ch; }
.founder-copy h2 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-bottom: 28px;
  letter-spacing: -0.04em;
}
.founder-copy p { color: var(--ink-soft); }

@media (max-width: 720px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 280px; }
}

/* --- Foundation (the violet impact block) ------------------ */

.foundation {
  text-align: center;
  background: var(--bg-violet);
  color: #FFFFFF;
  max-width: 100%;
  margin: 0;
  padding: clamp(96px, 12vw, 160px) var(--pad);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.foundation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.45) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(250, 204, 21, 0.18) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.foundation > * { position: relative; z-index: 1; }

.foundation-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.foundation .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.foundation h2 {
  max-width: 22ch;
  margin: 0 auto 28px;
  color: #FFFFFF;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
}

.foundation p {
  max-width: 56ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

/* --- Footer ------------------------------------------------ */

.footer {
  padding: clamp(56px, 6vw, 88px) var(--pad) 32px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer .wordmark { color: #FFFFFF; }
.footer-grid h5 { margin-bottom: 14px; color: rgba(255, 255, 255, 0.55); }
.footer-grid a {
  color: #FFFFFF;
  font-weight: 500;
  transition: color 0.3s var(--ease-out);
}
.footer-grid a:hover { color: var(--accent-soft); }

.footer-base {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-base { flex-direction: column; gap: 8px; }
}

/* --- Reveal on scroll (bouncy) ----------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--bounce);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.thesis-grid.visible > *,
.sector-grid.visible > article,
.approach-grid.visible > article {
  animation: rise 0.8s var(--bounce) both;
}
.thesis-grid.visible > *:nth-child(1),
.sector-grid.visible > article:nth-child(1),
.approach-grid.visible > article:nth-child(1) { animation-delay: 0.05s; }
.thesis-grid.visible > *:nth-child(2),
.sector-grid.visible > article:nth-child(2),
.approach-grid.visible > article:nth-child(2) { animation-delay: 0.18s; }
.thesis-grid.visible > *:nth-child(3),
.sector-grid.visible > article:nth-child(3),
.approach-grid.visible > article:nth-child(3) { animation-delay: 0.31s; }
.approach-grid.visible > article:nth-child(4) { animation-delay: 0.44s; }
.approach-grid.visible > article:nth-child(5) { animation-delay: 0.57s; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero::before, .hero::after { animation: none; }
}
