/* ============================================================
   ULUWATU CAPITAL — Design System
   Dark, editorial, market-leading VC aesthetic
   ============================================================ */

:root {
  --ink: #0b0d10;
  --ink-2: #12151a;
  --surface: #171b21;
  --line: rgba(237, 237, 230, 0.12);
  --text: #ede9df;
  --muted: #9aa0a8;
  --accent: #35d0c3;      /* reef teal */
  --accent-soft: rgba(53, 208, 195, 0.12);
  --sand: #e3c87e;
  --max: 1200px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--ink); }

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

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

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

/* ---------- Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; max-width: var(--max); margin: 0 auto; padding: 0 32px;
}
.nav .logo img, .nav .logo svg { height: 50px; width: auto; }
.nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav ul a {
  color: var(--muted); font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.nav ul a:hover, .nav ul a.active { color: var(--text); opacity: 1; }
.nav ul a.cta {
  color: var(--ink); background: var(--accent);
  padding: 10px 20px; border-radius: 100px;
}
.nav ul a.cta:hover { background: var(--sand); opacity: 1; }
.nav .burger { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.lede { font-size: 21px; line-height: 1.65; color: var(--muted); max-width: 720px; }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 500px;
  background: radial-gradient(ellipse at center, rgba(53,208,195,.10), transparent 65%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(48px, 6vw, 84px);
  max-width: 15ch;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center;
}
.hero-art img { width: 100%; max-width: 500px; margin: 0 auto; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { margin-top: 34px; }
.hero .actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 16px 34px; border-radius: 100px;
  font-weight: 600; font-size: 15px; letter-spacing: .02em;
}
.btn-solid { background: var(--accent); color: var(--ink); }
.btn-solid:hover { background: var(--sand); opacity: 1; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4.5vw, 56px); max-width: 20ch; }
.section-head .lede { margin-top: 18px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split .photo { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-left: 1px solid var(--line); padding-left: 24px; }
.stat b { display: block; font-family: var(--serif); font-size: 44px; font-weight: 500; color: var(--text); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; letter-spacing: .04em; }

/* ---------- Portfolio grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
  transition: transform .25s, border-color .25s;
}
a.card { color: var(--text); }
a.card:hover { transform: translateY(-4px); border-color: var(--accent); opacity: 1; }
.card .logo-chip {
  background: #f4f2ec; border-radius: 10px; height: 120px;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.card .logo-chip.dark { background: #262b33; }
.card .logo-chip img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; }
.card h3 { font-size: 21px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.card p { color: var(--muted); font-size: 15px; }
.card .tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 100px;
}

/* ---------- Pillars / values ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { border-top: 2px solid var(--accent); padding-top: 26px; }
.pillar h3 { font-size: 24px; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 15.5px; }
.pillar .num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 15px; display: block; margin-bottom: 10px; }

/* ---------- Prose pages ---------- */
.page-hero { padding: 38px 0 32px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(30px, 3.8vw, 48px); max-width: 26ch; }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero .lede { font-size: 18px; margin-top: 12px !important; }
.page-hero + section { padding-top: 48px; }
.prose { max-width: 760px; }
.prose p { margin-bottom: 26px; color: #c4c6c9; font-size: 18px; }
.prose p strong { color: var(--text); }
.prose h2 { font-size: 32px; margin: 48px 0 18px; }
.prose figure { margin: 32px 0; }
.prose figure:first-child { margin-top: 0; }
.prose figure img { border-radius: 14px; border: 1px solid var(--line); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; font-style: italic; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding-left: 28px; margin: 40px 0;
  font-family: var(--serif); font-size: 23px; line-height: 1.5; font-style: italic; color: var(--text);
}
.prose blockquote cite { display: block; margin-top: 14px; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); }

/* ---------- News ---------- */
.news-item {
  display: grid; grid-template-columns: 170px 1fr; gap: 32px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.news-item time { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.news-item p { color: #c4c6c9; }
.news-item a { color: var(--text); }
.news-item a:hover { color: var(--accent); opacity: 1; }

/* ---------- Foundation ---------- */
.org {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.org .logo-chip {
  background: #f4f2ec; border-radius: 12px; padding: 22px;
  display: flex; align-items: center; justify-content: center; min-height: 120px;
}
.org .logo-chip img { max-height: 90px; width: auto; max-width: 100%; object-fit: contain; }
.org h3 { font-size: 26px; margin-bottom: 12px; }
.org p { color: #c4c6c9; }

/* ---------- Contact ---------- */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.office { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
.office .city { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.office h3 { font-size: 24px; margin-bottom: 14px; }
.office p { color: var(--muted); margin-bottom: 16px; }

/* ---------- Big CTA ---------- */
.big-cta { text-align: center; padding: 120px 0; }
.big-cta h2 { font-size: clamp(38px, 5.5vw, 68px); max-width: 18ch; margin: 0 auto 20px; }
.big-cta h2 em { font-style: italic; color: var(--accent); }
.big-cta .lede { margin: 0 auto 40px; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--ink-2);
}
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot .logo svg, .foot .logo img { height: 44px; width: auto; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.foot nav a:hover { color: var(--text); }
.legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: #6b7078; font-size: 13px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid, .pillars, .offices { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art img { max-width: 380px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .nav ul { display: none; }
  .nav ul.open {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
    background: var(--ink-2); padding: 28px 32px; gap: 22px; border-bottom: 1px solid var(--line);
  }
  .nav .burger { display: block; }
}
@media (max-width: 620px) {
  .grid, .pillars, .offices { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .org { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 80px 0 70px; }
}
