/* Open refinement of the local Studio Dark experiment.
   Same FreeThinkBox tokens. No outer window, no nested hero or service cards. */

:root {
  --bg: #15181B;
  --bg-deep: #0D0F12;
  --bg-card: #1B2024;
  --border: #253036;
  --border-subtle: #20282C;
  --border-outline-btn: #2E3A3F;
  --text-main: #F2F6F6;
  --text-sub: #A9B4B6;
  --text-muted: #8E9A9C;
  --pill-bg: #133333;
  --pill-border: #255858;
  --pill-text: #8CECE6;
  --accent-1: #7CE8E2;
  --accent-ink: #082223;
  --coral: #F4A698;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(1080px, calc(100% - 80px));
  margin: 0 auto;
}

.top-nav {
  border-bottom: 1px solid var(--border-subtle);
}
.top-nav .wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.crest {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}
.brand b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 999px;
}
.nav-tab {
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav-tab:hover { color: var(--text-main); }
.nav-tab.active {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-1);
  color: var(--accent-ink);
  border-color: var(--accent-1);
}
.btn-primary:hover { filter: brightness(1.04); }
.btn-outline {
  background: transparent;
  border-color: var(--border-outline-btn);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--pill-border);
  background: var(--pill-bg);
  color: var(--pill-text);
}

.hero { padding: 88px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
  gap: 88px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--pill-text);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 {
  margin: 18px 0 18px;
  max-width: 12ch;
  font-size: clamp(46px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 0.98;
}
h1 em {
  font-style: normal;
  color: var(--accent-1);
}
.manifesto {
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 2.5px solid var(--accent-1);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}
.lead {
  margin: 0;
  max-width: 42ch;
  color: var(--text-sub);
  font-size: 16.5px;
  line-height: 1.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.wayfinding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  padding: 12px 0 12px 8px;
}
.compass { width: 44px; height: 44px; }
.wayfinding h2 {
  margin: 0;
  max-width: 14ch;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.wayfinding p {
  margin: 12px 0 0;
  max-width: 28ch;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.5;
}

.work {
  background: var(--bg-deep);
  padding: 88px 0 96px;
}
.work-head {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
}
.work-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
}
.work-item {
  padding: 28px 0 30px;
  border-top: 1px solid var(--border);
}
.idx {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-1);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.idx.coral { color: var(--coral); }
.work-item h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.work-item p {
  margin: 0;
  max-width: 42ch;
  color: var(--text-sub);
  font-size: 15.5px;
  line-height: 1.5;
}

.ventures { padding: 88px 0 96px; }
.ventures-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.ventures-head h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.ventures-head span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.venture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.venture {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
  padding: 0 0 22px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.venture-identity {
  min-height: 148px;
  display: flex;
  align-items: center;
  padding: 28px 26px;
}
.ftb-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.ftb-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 14px;
  border-radius: 14px;
  background: var(--accent-1);
  color: var(--accent-ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ftb-box { display: block; width: 32px; height: 28px; flex: 0 0 auto; }
.ftb-tag {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.cos-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.tf-ground { background: transparent; }
.tf-word {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  padding: 16px 20px 18px;
  border-radius: 14px;
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.tf-word .trustee { color: #111111; }
.tf-word .flow { color: #FF6A1A; }
.venture > p {
  margin: 20px 26px 0;
  flex: 1;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.5;
}
.venture .btn { margin: 20px 26px 0; align-self: flex-start; }

.site-footer {
  border-top: 1px solid var(--border-subtle);
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 28px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 860px) {
  .hero-grid, .venture-grid, .work-list { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
}

@media (max-width: 720px) {
  .wrap { width: min(1080px, calc(100% - 36px)); }
  .top-nav .wrap {
    min-height: 0;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0 14px;
  }
  .nav-center { order: 3; width: 100%; }
  .nav-tab { flex: 1; text-align: center; padding-inline: 8px; }
  .crest { width: 40px; height: 40px; }
  .brand b { font-size: 15px; }
  .hero { padding: 40px 0 48px; }
  .hero-grid { gap: 36px; }
  h1 { font-size: 38px; max-width: none; }
  .wayfinding { gap: 18px; padding: 8px 0 0; }
  .compass { width: 36px; height: 36px; }
  .work, .ventures { padding: 48px 0 56px; }
  .work-item { padding: 22px 0 24px; }
  .work-item h3 { font-size: 22px; }
  .ventures-head { flex-direction: column; gap: 6px; }
  .ventures-head h2 { font-size: 28px; }
}
